hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringdate
2015-01-01 00:00:47
2022-03-31 23:42:18
max_issues_repo_issues_event_max_datetime
stringdate
2015-01-01 17:43:30
2022-03-31 23:59:58
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
a0bb420692799a6a79988f6528e8182e5954185a
3,234
py
Python
cifar10/train.py
ashawkey/hawtorch
a6e28422da9258458b6268f5981c68d60623e12f
[ "MIT" ]
1
2019-12-01T05:48:00.000Z
2019-12-01T05:48:00.000Z
cifar10/train.py
ashawkey/hawtorch
a6e28422da9258458b6268f5981c68d60623e12f
[ "MIT" ]
null
null
null
cifar10/train.py
ashawkey/hawtorch
a6e28422da9258458b6268f5981c68d60623e12f
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler import torchvision from torchvision import datasets, transforms from torch.utils.data import DataLoader import hawtorch import hawtorch.io as io from hawtorch import Trainer from hawtorch.metrics import ClassificationM...
34.042105
119
0.62987
a0bbcdf05486aa95d06b89b25ca7866a985c51bb
718
py
Python
examples/scatterplot.py
ajduberstein/slayer
e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea
[ "MIT" ]
2
2019-02-26T23:55:06.000Z
2019-02-26T23:56:09.000Z
examples/scatterplot.py
ajduberstein/slayer
e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea
[ "MIT" ]
1
2019-02-10T07:00:39.000Z
2019-02-10T07:00:39.000Z
examples/scatterplot.py
ajduberstein/slayer
e4f2b6e0277ac38fe71ec99eaf3ee4769057b0ea
[ "MIT" ]
null
null
null
""" Example of how to make a Scatterplot with a time component """ import slayer as sly import pandas as pd DATA_URL = 'https://raw.githubusercontent.com/ajduberstein/sf_growth/master/public/data/business.csv' businesses = pd.read_csv(DATA_URL) FUCHSIA_RGBA = [255, 0, 255, 140] color_scale = sly.ColorScale( pal...
26.592593
101
0.693593
a0bc99badd8c414f8e67c165139e1e1864acd087
3,699
py
Python
test_dictondisk.py
MKuranowski/dictondisk
ca25f8fed2f60d8ee63d6c5eaa9e620555581383
[ "MIT" ]
null
null
null
test_dictondisk.py
MKuranowski/dictondisk
ca25f8fed2f60d8ee63d6c5eaa9e620555581383
[ "MIT" ]
null
null
null
test_dictondisk.py
MKuranowski/dictondisk
ca25f8fed2f60d8ee63d6c5eaa9e620555581383
[ "MIT" ]
null
null
null
import dictondisk import random import pytest import os remove_keys = {0, (33, 12.23), "c", "中国"} vanilla_dict = { 0: 1337, 1: 3.14, 2: 2.71, 3: 1.61, "a": "Ą", "b": "✈!", "c": "東京", "中国": "共産", (1, .5): "lorem", (33, 12.23): "ipsum", -1: ["one", "two", "three"] } def test_contains_update(): t = ...
20.324176
58
0.593674
a0bd4d5ee3152479bb0efe0eaded5fd65042adf4
1,904
py
Python
backend/src/users/models.py
moatom/alistice
222217928d9634b14e3c192abedc8c7d419ab868
[ "MIT" ]
null
null
null
backend/src/users/models.py
moatom/alistice
222217928d9634b14e3c192abedc8c7d419ab868
[ "MIT" ]
null
null
null
backend/src/users/models.py
moatom/alistice
222217928d9634b14e3c192abedc8c7d419ab868
[ "MIT" ]
null
null
null
from src.extentions import db from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash import datetime as dt # https://help.twitter.com/en/managing-your-account/twitter-username-rules # https://office-hack.com/gmail/password/ class User(UserMixin, db.Model): __ta...
46.439024
87
0.628151
a0bead6599200d03855aef8174ff835ecca2f74f
76,496
py
Python
commonroad/scenario/lanelet.py
CommonRoad/commonroad-io
93824961da9c41eb7768b5cf1acbed9a07446dc2
[ "BSD-3-Clause" ]
3
2022-01-05T09:10:18.000Z
2022-03-22T15:09:43.000Z
commonroad/scenario/lanelet.py
CommonRoad/commonroad-io
93824961da9c41eb7768b5cf1acbed9a07446dc2
[ "BSD-3-Clause" ]
null
null
null
commonroad/scenario/lanelet.py
CommonRoad/commonroad-io
93824961da9c41eb7768b5cf1acbed9a07446dc2
[ "BSD-3-Clause" ]
null
null
null
import copy import enum from typing import * import numpy as np from shapely.geometry import MultiPolygon as ShapelyMultiPolygon from shapely.geometry import Point as ShapelyPoint from shapely.geometry import Polygon as ShapelyPolygon from shapely.strtree import STRtree import commonroad.geometry.transform from commo...
45.103774
120
0.629314
a0bf221732ca55e79444af87da162c6c9266b8fc
363
py
Python
djangoProject/djangoProject/myApp/urls.py
EldiiarDzhunusov/Code
6b0708e4007233d3efdc74c09d09ee5bc377a45d
[ "MIT" ]
2
2020-10-12T06:50:03.000Z
2021-06-08T17:19:43.000Z
djangoProject/djangoProject/myApp/urls.py
EldiiarDzhunusov/Code
6b0708e4007233d3efdc74c09d09ee5bc377a45d
[ "MIT" ]
null
null
null
djangoProject/djangoProject/myApp/urls.py
EldiiarDzhunusov/Code
6b0708e4007233d3efdc74c09d09ee5bc377a45d
[ "MIT" ]
1
2020-12-22T16:44:50.000Z
2020-12-22T16:44:50.000Z
from django.urls import path from . import views urlpatterns = [ path("test/", views.index, name = "index"), path('completed/',views.show_completed,name= "completed"), path('<int:action_id>/', views.show_action, name='action'), path('update/', views.update_status, name="update_status"), path('new/...
33
63
0.674931
a0c050b20614c1dbb61208ccd768082e1160610d
14,673
py
Python
tests/test_data_frame.py
gordonwatts/dataframe_expressions
cf135415f739377e9c2accb82606957417c7e0e6
[ "MIT" ]
4
2020-03-16T14:22:33.000Z
2021-09-08T17:56:47.000Z
tests/test_data_frame.py
gordonwatts/dataframe_expressions
cf135415f739377e9c2accb82606957417c7e0e6
[ "MIT" ]
26
2020-05-28T20:58:42.000Z
2020-10-21T01:27:17.000Z
tests/test_data_frame.py
gordonwatts/dataframe_expressions
cf135415f739377e9c2accb82606957417c7e0e6
[ "MIT" ]
null
null
null
import ast from typing import List, Optional, cast import pytest from dataframe_expressions import ( Column, DataFrame, ast_Callable, ast_Column, ast_DataFrame, define_alias) from .utils_for_testing import reset_var_counter # NOQA # numpy math functions (??) # Advanced math operators # (https://docs.python....
28.827112
122
0.647584
a0c2eb12b9028951da45c66cf06efe7db3fad008
520
py
Python
redis/redismq/redismq.py
dineshkumar2509/learning-python
e8af11ff0b396da4c3f2cfe21d14131bae4b2adb
[ "MIT" ]
86
2015-06-13T16:53:55.000Z
2022-03-24T20:56:42.000Z
redis/redismq/redismq.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
9
2015-05-27T07:52:44.000Z
2022-03-29T21:52:40.000Z
redis/redismq/redismq.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
124
2015-12-10T01:17:18.000Z
2021-11-08T04:03:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import redis rc = redis.StrictRedis(host='localhost', port=6379, db=0) def fifo_push(q, data): rc.lpush(q, data) def fifo_pop(q): return rc.rpop(q) def filo_push(q, data): rc.lpush(q, data) def filo_pop(q): return rc.lpop(q) def safe_fifo_push(q,...
15.294118
57
0.634615
a0c41cacd5163331beb9572314dcb4bf4d9b8235
12,660
py
Python
main.py
ESSAKHI10/SharpZone
1d145cb22c5a8f6777d2f6e05a9a16f8e528c92c
[ "MIT" ]
null
null
null
main.py
ESSAKHI10/SharpZone
1d145cb22c5a8f6777d2f6e05a9a16f8e528c92c
[ "MIT" ]
null
null
null
main.py
ESSAKHI10/SharpZone
1d145cb22c5a8f6777d2f6e05a9a16f8e528c92c
[ "MIT" ]
null
null
null
# import encode import eel import cv2 import io import numpy as np import base64 import os import time import face_recognition import pickle import imutils import datetime from multiprocessing.pool import ThreadPool import random import shutil from database import * from camera import VideoCamera fro...
29.648712
169
0.562243
39f81d8b6eef50e0aea91f95d8884d5a0a59d256
3,713
py
Python
models/job.py
k-wojcik/kylin_client_tool
0fe827d1c8a86e3da61c85c48f78ce03c9260f3c
[ "Apache-2.0" ]
null
null
null
models/job.py
k-wojcik/kylin_client_tool
0fe827d1c8a86e3da61c85c48f78ce03c9260f3c
[ "Apache-2.0" ]
null
null
null
models/job.py
k-wojcik/kylin_client_tool
0fe827d1c8a86e3da61c85c48f78ce03c9260f3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Huang, Hua' from models.object import JsonSerializableObj class CubeJobStatus: NEW = 'NEW' PENDING = 'PENDING' RUNNING = 'RUNNING' ERROR = 'ERROR' FINISHED = 'FINISHED' DISCARDED = 'DISCARDED' class JobInstance(JsonSerializableObj): def __init__(sel...
30.434426
75
0.622408
39f8dcdaeba92c1fff96ab2beb0ef7065bdd2f6c
1,770
py
Python
stakingsvc/walletgui/views/paymentmethodview.py
biz2013/xwjy
8f4b5e3e3fc964796134052ff34d58d31ed41904
[ "Apache-2.0" ]
1
2019-12-15T16:56:44.000Z
2019-12-15T16:56:44.000Z
stakingsvc/walletgui/views/paymentmethodview.py
biz2013/xwjy
8f4b5e3e3fc964796134052ff34d58d31ed41904
[ "Apache-2.0" ]
87
2018-01-06T10:18:31.000Z
2022-03-11T23:32:30.000Z
stakingsvc/walletgui/views/paymentmethodview.py
biz2013/xwjy
8f4b5e3e3fc964796134052ff34d58d31ed41904
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import logging, sys from django.contrib.auth.decorators import login_required from django.shortcuts import render from walletgui.controller.global_constants import * from walletgui.controller.crypto_utils import CryptoUtility from walletgui.controller.walletmanager import Wal...
37.659574
76
0.70565
39f8e72f0d8a4ab5e6ca1adccd579c3125c23d90
1,643
py
Python
tools.py
yflyzhang/cascade_virality
9d856a3fbe45330a9434ba4bad9d5f248e2f1dd5
[ "MIT" ]
6
2020-09-09T15:31:02.000Z
2022-02-16T04:57:55.000Z
tools.py
yflyzhang/cascade_virality
9d856a3fbe45330a9434ba4bad9d5f248e2f1dd5
[ "MIT" ]
null
null
null
tools.py
yflyzhang/cascade_virality
9d856a3fbe45330a9434ba4bad9d5f248e2f1dd5
[ "MIT" ]
null
null
null
import numpy as np import networkx as nx # For illustration purpose only [easy to understand the process] # ----------------------------- def pure_cascade_virality(G): '''G is a directed graph(tree)''' if not nx.is_weakly_connected(G): # return None return nodes = [k for (k,v) in G....
23.471429
105
0.57395
39f9818d1295e4cbcfc1bb13178c81b8bc72f7ba
1,492
py
Python
pyjira/actions.py
FulcrumIT/pyjira
8ed0d22136808ba95ace253e66dd4ad7bb6b387a
[ "MIT" ]
1
2020-11-05T10:24:15.000Z
2020-11-05T10:24:15.000Z
pyjira/actions.py
FulcrumIT/pyjira
8ed0d22136808ba95ace253e66dd4ad7bb6b387a
[ "MIT" ]
null
null
null
pyjira/actions.py
FulcrumIT/pyjira
8ed0d22136808ba95ace253e66dd4ad7bb6b387a
[ "MIT" ]
2
2017-05-15T20:06:25.000Z
2020-11-17T09:46:34.000Z
import pyjira.api as _api import json as _json def get_issues(id, limit=50): """Return 50 issues for a project. Parameters: - id: id of a project. - limit: max number of results to be returned. """ return _api.rest("/search?jql=project=" + str(id) + "&maxResults=" + str(limit)) def get_issue...
24.866667
84
0.589812
39fb765d92c4d3395b8dec3f9fb952f0fa19dddd
963
py
Python
gongish/cli/serve.py
meyt/gongish
0e3cd478677c19c9331a2b563ce792d16f2860b3
[ "MIT" ]
null
null
null
gongish/cli/serve.py
meyt/gongish
0e3cd478677c19c9331a2b563ce792d16f2860b3
[ "MIT" ]
1
2021-09-11T22:53:48.000Z
2021-09-11T22:53:48.000Z
gongish/cli/serve.py
meyt/gongish
0e3cd478677c19c9331a2b563ce792d16f2860b3
[ "MIT" ]
null
null
null
import importlib from argparse import ArgumentParser from wsgiref.simple_server import make_server p = ArgumentParser( prog="gongish serve", description="Serve a WSGI application" ) p.add_argument( "module", nargs="?", help="Module and application name (e.g: myapp:app)", type=str, ) p.add_argument...
22.395349
64
0.626168
39fbc1222f2bd73553fac90c67abef716e48ef7b
2,248
py
Python
tests/test_cmd_trie.py
ncloudioj/rhino-rox
7e3c70edebca5cc0f847d777c2bff02218b4ca69
[ "BSD-3-Clause" ]
1
2016-06-14T11:16:43.000Z
2016-06-14T11:16:43.000Z
tests/test_cmd_trie.py
ncloudioj/rhino-rox
7e3c70edebca5cc0f847d777c2bff02218b4ca69
[ "BSD-3-Clause" ]
null
null
null
tests/test_cmd_trie.py
ncloudioj/rhino-rox
7e3c70edebca5cc0f847d777c2bff02218b4ca69
[ "BSD-3-Clause" ]
null
null
null
import unittest import redis import random class TestTrieCmd(unittest.TestCase): rr = redis.Redis("localhost", 6000) def tearDown(self): self.rr.execute_command("del trie") def test_basic_cmds(self): self.rr.execute_command("rset trie ape 1") self.rr.execute_command("rset trie ap...
35.125
77
0.607651
39fbe8706a2051eee9dadaa5adf1cf67f5342a04
325
py
Python
4. 01.07.2021/0. Secret Messages. New position.py
AntonVasko/CodeClub-2021-SUMMER
14a80168bb7c2eb3c0c157d6d5b7630c05decb31
[ "CC0-1.0" ]
null
null
null
4. 01.07.2021/0. Secret Messages. New position.py
AntonVasko/CodeClub-2021-SUMMER
14a80168bb7c2eb3c0c157d6d5b7630c05decb31
[ "CC0-1.0" ]
null
null
null
4. 01.07.2021/0. Secret Messages. New position.py
AntonVasko/CodeClub-2021-SUMMER
14a80168bb7c2eb3c0c157d6d5b7630c05decb31
[ "CC0-1.0" ]
null
null
null
#Secret Messages. New position alphabet = 'abcdefghijklmnopqrstuvwxyz' key = 3 character = input('Please enter a character ') position = alphabet.find(character) print('Position of a character ', character, ' is ', position) newPosition = position + key print('New position of a character ', character, ' is ', newPosit...
32.5
69
0.747692
39fcb7feb468394c971a4be4fe1ebd1c774cf3a6
1,376
py
Python
examples/plot/lines.py
beidongjiedeguang/manim-express
e9c89b74da3692db3ea9b568727e78d5cbcef503
[ "MIT" ]
12
2021-06-14T07:28:29.000Z
2022-02-25T02:49:49.000Z
examples/plot/lines.py
beidongjiedeguang/manim-kunyuan
e9c89b74da3692db3ea9b568727e78d5cbcef503
[ "MIT" ]
1
2022-02-01T12:30:14.000Z
2022-02-01T12:30:14.000Z
examples/plot/lines.py
beidongjiedeguang/manim-express
e9c89b74da3692db3ea9b568727e78d5cbcef503
[ "MIT" ]
2
2021-05-13T13:24:15.000Z
2021-05-18T02:56:22.000Z
from examples.example_imports import * from manim_express.eager import PlotObj scene = EagerModeScene(screen_size=Size.bigger) graph = Line().scale(0.2) # t0 = time.time() # # delta_t = 0.5 # for a in np.linspace(3, 12, 3): # graph2 = ParametricCurve(lambda t: [t, # 0.8 * n...
27.52
111
0.5625
39fede8d13d0249be971c45d4492a0a209527ae6
785
py
Python
get_observation.py
RadixSeven/FhirGaP
1fb8ff8b86089cdec9b1f796e06aeb0e20db14a0
[ "Apache-2.0" ]
null
null
null
get_observation.py
RadixSeven/FhirGaP
1fb8ff8b86089cdec9b1f796e06aeb0e20db14a0
[ "Apache-2.0" ]
null
null
null
get_observation.py
RadixSeven/FhirGaP
1fb8ff8b86089cdec9b1f796e06aeb0e20db14a0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Note that this is python3 only import argparse import requests parser = argparse.ArgumentParser( "Get an observation from a FHIR server with authentication") parser.add_argument( "id", help="The observation id to retrieve") parser.add_argument( "auth", default="Admin", help="The...
30.192308
78
0.699363
39ff330d14f36471f4ac2d1038f80fb721a10e6c
14,331
py
Python
resources/src/mythbox/mythtv/enums.py
bopopescu/ServerStatus
a883598248ad6f5273eb3be498e3b04a1fab6510
[ "MIT" ]
null
null
null
resources/src/mythbox/mythtv/enums.py
bopopescu/ServerStatus
a883598248ad6f5273eb3be498e3b04a1fab6510
[ "MIT" ]
1
2015-04-21T22:05:02.000Z
2015-04-22T22:27:15.000Z
resources/src/mythbox/mythtv/enums.py
GetSomeBlocks/Score_Soccer
a883598248ad6f5273eb3be498e3b04a1fab6510
[ "MIT" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
# # MythBox for XBMC - http://mythbox.googlecode.com # Copyright (C) 2010 analogue@yahoo.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at yo...
29.670807
114
0.526551
2600aabf67e890934f21d69c79a38729246c8b46
3,989
py
Python
model_training_scripts/image_processing.py
jc2554/iVending
2a6b04143a56e202eba99b0a509945cf31aa956d
[ "MIT" ]
null
null
null
model_training_scripts/image_processing.py
jc2554/iVending
2a6b04143a56e202eba99b0a509945cf31aa956d
[ "MIT" ]
null
null
null
model_training_scripts/image_processing.py
jc2554/iVending
2a6b04143a56e202eba99b0a509945cf31aa956d
[ "MIT" ]
null
null
null
""" script to post-process training images by using OpenCV face detection and normalization MIT License Copyright (c) 2019 JinJie Chen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without re...
36.263636
102
0.656806
260184f873fdef40a6660e5cdbc4d152fa8c734a
1,816
py
Python
flask_map.py
zenranda/proj5-map
13dc8866483f45ac806342c1b3aa2eec1354a0dc
[ "Artistic-2.0" ]
null
null
null
flask_map.py
zenranda/proj5-map
13dc8866483f45ac806342c1b3aa2eec1354a0dc
[ "Artistic-2.0" ]
null
null
null
flask_map.py
zenranda/proj5-map
13dc8866483f45ac806342c1b3aa2eec1354a0dc
[ "Artistic-2.0" ]
null
null
null
import flask from flask import render_template from flask import request from flask import url_for import json import logging ### # Globals ### app = flask.Flask(__name__) import CONFIG ### # Pages ### @app.route("/") @app.route("/index") @app.route("/map") def index(): app.logger.debug("Main page entry") if '...
25.222222
91
0.614537
2602aa16755c35ffe309d7e1deefd2b15d53fedd
3,717
py
Python
tcvx21/grillix_post/observables/parallel_gradient_m.py
dsoliveir/TCV-X21
784c55adb33417e21a6736e2504a3895a9348dbe
[ "CC-BY-4.0" ]
1
2021-12-13T11:52:39.000Z
2021-12-13T11:52:39.000Z
tcvx21/grillix_post/observables/parallel_gradient_m.py
dsoliveir/TCV-X21
784c55adb33417e21a6736e2504a3895a9348dbe
[ "CC-BY-4.0" ]
2
2021-12-18T17:18:52.000Z
2022-01-26T09:23:23.000Z
tcvx21/grillix_post/observables/parallel_gradient_m.py
dsoliveir/TCV-X21
784c55adb33417e21a6736e2504a3895a9348dbe
[ "CC-BY-4.0" ]
2
2021-12-13T12:56:09.000Z
2022-01-25T20:30:28.000Z
import xarray as xr import numpy as np from pathlib import Path from tcvx21.grillix_post.components import FieldlineTracer from tcvx21.grillix_post.lineouts import Lineout xr.set_options(keep_attrs=True) def initialise_lineout_for_parallel_gradient( lineout, grid, equi, norm, npol, stored_trace: Path = None ): ...
37.17
117
0.684154
2602c88691bffc3721e77c257e3bfd7bb2de90f1
246
py
Python
skypy/galaxy/tests/test_import.py
ArthurTolley/skypy
5621877ada75c667b1af7e665b02a91026f7ef0f
[ "BSD-3-Clause" ]
1
2020-12-28T18:00:24.000Z
2020-12-28T18:00:24.000Z
skypy/galaxy/tests/test_import.py
ArthurTolley/skypy
5621877ada75c667b1af7e665b02a91026f7ef0f
[ "BSD-3-Clause" ]
2
2020-12-28T20:14:40.000Z
2020-12-28T21:49:27.000Z
skypy/galaxy/tests/test_import.py
ArthurTolley/skypy
5621877ada75c667b1af7e665b02a91026f7ef0f
[ "BSD-3-Clause" ]
null
null
null
def test_import(): import skypy.galaxy import skypy.galaxy.ellipticity import skypy.galaxy.luminosity import skypy.galaxy.redshift import skypy.galaxy.size import skypy.galaxy.spectrum import skypy.galaxy.stellar_mass
27.333333
36
0.756098
2603181f0b3082fdc38b19973a3aa85c33523f68
22,466
py
Python
tests/hwsim/test_ap_ht.py
rzr/wpasupplicant
3f7ac05878ba965e941f2b5b80b8cb744e63f506
[ "Unlicense" ]
19
2015-04-02T13:50:00.000Z
2022-01-19T02:45:18.000Z
tests/hwsim/test_ap_ht.py
jku/hostap
a61fcc131aa6a7e396eee6a3c613001bf0475cd1
[ "Unlicense" ]
3
2016-03-16T13:46:10.000Z
2016-08-30T12:42:52.000Z
tests/hwsim/test_ap_ht.py
jku/hostap
a61fcc131aa6a7e396eee6a3c613001bf0475cd1
[ "Unlicense" ]
11
2015-05-18T07:37:12.000Z
2021-11-12T10:28:50.000Z
# Test cases for HT operations with hostapd # Copyright (c) 2013-2014, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. import time import logging logger = logging.getLogger() import struct import subprocess import hostapd def clear_scan_...
37.694631
199
0.582614
26043d5d77004fcf11c43eb7691efa8015b6c1e6
1,039
py
Python
rhymes.py
hayderkharrufa/arabic_poetry_generator
82f2ed726ec6270c3ee1d2f7c7aa1783df973708
[ "MIT" ]
72
2020-05-29T19:58:22.000Z
2022-03-11T18:53:56.000Z
rhymes.py
mahfoudhich/arabic_poem_generator
82f2ed726ec6270c3ee1d2f7c7aa1783df973708
[ "MIT" ]
1
2020-06-12T11:03:45.000Z
2020-08-05T17:52:27.000Z
rhymes.py
mahfoudhich/arabic_poem_generator
82f2ed726ec6270c3ee1d2f7c7aa1783df973708
[ "MIT" ]
34
2020-06-04T14:38:39.000Z
2022-03-16T20:50:56.000Z
# coding: utf-8 # author: Haydara https://www.youtube.com/haydara import pickle with open('vocabs.pkl', 'rb') as pickle_load: voc_list = pickle.load(pickle_load) allowed_chars = ['ذ', 'ض', 'ص', 'ث', 'ق', 'ف', 'غ', 'ع', 'ه', 'خ', 'ح', 'ج', 'د', 'ش', 'س', 'ي', 'ب', 'ل', 'ا', 'أ', 'ت', 'ن', '...
29.685714
102
0.505294
2604cf6f50e982afd7ab5c70c9417b6682140a5d
6,513
py
Python
tests/test_facade.py
seucolega/lista-de-listas-cli
48815fac9cf3332c5e4fbc935d6ddd09be2738a8
[ "MIT" ]
null
null
null
tests/test_facade.py
seucolega/lista-de-listas-cli
48815fac9cf3332c5e4fbc935d6ddd09be2738a8
[ "MIT" ]
null
null
null
tests/test_facade.py
seucolega/lista-de-listas-cli
48815fac9cf3332c5e4fbc935d6ddd09be2738a8
[ "MIT" ]
null
null
null
import facade import pytest import schemas @pytest.fixture(autouse=True) def configure_db_session(db_session): facade.db_session = db_session def test_get_item_list__empty(): assert facade.get_item_list() == [] def test_get_item_list__with_item(item_1): assert facade.get_item_list() == [item_1] def ...
24.484962
79
0.76094
2607fe4913aa92b0a573f52ce885f77ac1e7a144
17,667
py
Python
ots_eval/outlier_detection/doots.py
YellowOfTheEgg/ots-eval
8ec08e60330d41f8f7ffd571dd6301cdedaefd99
[ "BSD-3-Clause" ]
3
2021-03-28T14:46:57.000Z
2022-01-03T17:25:19.000Z
ots_eval/outlier_detection/doots.py
YellowOfTheEgg/ots-eval
8ec08e60330d41f8f7ffd571dd6301cdedaefd99
[ "BSD-3-Clause" ]
null
null
null
ots_eval/outlier_detection/doots.py
YellowOfTheEgg/ots-eval
8ec08e60330d41f8f7ffd571dd6301cdedaefd99
[ "BSD-3-Clause" ]
1
2022-01-11T10:56:14.000Z
2022-01-11T10:56:14.000Z
import pandas import numpy as np from .reference_histogram_outlier import HistOutlier from typing import Union, Tuple class DOOTS(object): def __init__(self, data: pandas.DataFrame, weighting: bool = False, jaccard: bool = False): """ Params: data (DataFrame) - pandas DataFrame with c...
49.487395
138
0.572819
260902dd3e508f3dd93dbd19435e62ca56223adf
3,405
py
Python
SWIG_fast_functions/test.py
twni2016/OrganSegRSTN_PyTorch
bf571320e718c8f138e04d48645e3b4dfe75801d
[ "MIT" ]
100
2018-08-01T04:42:36.000Z
2022-03-23T07:01:21.000Z
SWIG_fast_functions/test.py
bharat3012/OrganSegRSTN_PyTorch
aff23489b1f3006761e3270178adfcccb63d0de9
[ "MIT" ]
12
2018-08-07T10:35:47.000Z
2022-02-21T09:09:42.000Z
SWIG_fast_functions/test.py
bharat3012/OrganSegRSTN_PyTorch
aff23489b1f3006761e3270178adfcccb63d0de9
[ "MIT" ]
35
2018-08-06T21:27:36.000Z
2021-11-03T10:20:16.000Z
import numpy as np import fast_functions as ff import time def DSC_computation(label, pred): pred_sum = pred.sum() label_sum = label.sum() inter_sum = (pred & label).sum() return 2 * float(inter_sum) / (pred_sum + label_sum), inter_sum, pred_sum, label_sum def post_processing(F, S, threshold, top2): F_sum = F....
29.608696
85
0.595888
260aad7a8e1f7dc10f9fc0b29cb23cbf4ba1d39e
221
py
Python
smart-chatbot-zero/Rerank/data_preprocess1.py
WenRichard/Customer-Chatbot
48508c40574ffac8ced414a5bea799e2c85341ca
[ "MIT" ]
268
2019-07-26T01:40:43.000Z
2022-03-28T14:54:57.000Z
xiaotian-chatbot1.0/Rerank/data_preprocess1.py
abc668/Customer-Chatbot
48508c40574ffac8ced414a5bea799e2c85341ca
[ "MIT" ]
7
2019-08-13T04:17:55.000Z
2020-08-06T08:57:34.000Z
xiaotian-chatbot1.0/Rerank/data_preprocess1.py
abc668/Customer-Chatbot
48508c40574ffac8ced414a5bea799e2c85341ca
[ "MIT" ]
113
2019-07-26T01:40:47.000Z
2022-03-18T13:22:44.000Z
# -*- coding: utf-8 -*- # @Time : 2019/5/25 16:09 # @Author : Alan # @Email : xiezhengwen2013@163.com # @File : data_preprocess2.py # @Software: PyCharm # 自己写一个生成词表的函数 def read(stopword_file, in_file): pass
20.090909
36
0.638009
260b023afea60f62495ec2404352213dae65708e
1,160
py
Python
PageMonitor/project/lib/config.py
DanylZhang/IdeaWorkspace
726be80db4ca7dac4104ebaa22b795f37aca73e0
[ "MIT" ]
null
null
null
PageMonitor/project/lib/config.py
DanylZhang/IdeaWorkspace
726be80db4ca7dac4104ebaa22b795f37aca73e0
[ "MIT" ]
null
null
null
PageMonitor/project/lib/config.py
DanylZhang/IdeaWorkspace
726be80db4ca7dac4104ebaa22b795f37aca73e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 import pymysql default_config = { 'host': '139.196.96.149', 'port': 13306, 'user': 'dataway-rw', 'password': 'QqHVMhmN*8', 'db': 'jumei', 'charset': 'utf8mb4' } apollo_config = { 'host': '127.0.0.1', 'port': 11306, 'user': 'apollo-rw', 'passw...
20.714286
45
0.546552
260b70a7a637b6e3448163b26c95e89556398218
70
py
Python
24/aoc24-1-cython.py
combs/AdventOfCode2021
925df8a3526cb9c0dde368cf828673f345096e06
[ "MIT" ]
null
null
null
24/aoc24-1-cython.py
combs/AdventOfCode2021
925df8a3526cb9c0dde368cf828673f345096e06
[ "MIT" ]
null
null
null
24/aoc24-1-cython.py
combs/AdventOfCode2021
925df8a3526cb9c0dde368cf828673f345096e06
[ "MIT" ]
null
null
null
import pyximport pyximport.install() from aoc24 import do_it do_it()
11.666667
23
0.8
260b9f9c6262684a4bbfdcc0510786d9313421e4
358
py
Python
tests/main.py
zodiuxus/opensimplex
d8c761d91834a809e51987d25439549c50f0effb
[ "MIT" ]
null
null
null
tests/main.py
zodiuxus/opensimplex
d8c761d91834a809e51987d25439549c50f0effb
[ "MIT" ]
null
null
null
tests/main.py
zodiuxus/opensimplex
d8c761d91834a809e51987d25439549c50f0effb
[ "MIT" ]
null
null
null
from opensimplex import OpenSimplex import torch, time def opensimplex_test(device: str): generator = torch.Generator(device=device) start = time.time() os = OpenSimplex(generator=generator) end = time.time() return os.noise2(10,10), device, end-start print(opensimplex_test('cuda')) pri...
27.538462
47
0.701117
260c11b37ca0f5a211fd4291ad4e8a2a93dbd3d4
83
py
Python
pybktreespellchecker/__init__.py
tomasrasymas/pybktree-spell-checker
e1f7547957a4257a9b6ce470ebc8bcc95767c5d4
[ "MIT" ]
3
2019-01-07T21:34:29.000Z
2020-07-20T23:43:01.000Z
pybktreespellchecker/__init__.py
tomasrasymas/pybktree-spell-checker
e1f7547957a4257a9b6ce470ebc8bcc95767c5d4
[ "MIT" ]
null
null
null
pybktreespellchecker/__init__.py
tomasrasymas/pybktree-spell-checker
e1f7547957a4257a9b6ce470ebc8bcc95767c5d4
[ "MIT" ]
null
null
null
from .levenshtein_distance import levenshtein_distance from .bk_tree import BKTree
27.666667
54
0.879518
260d3744fb17af1e21703f4ae4917654e0d07e54
10,731
py
Python
part1/ELMo/modules/elmo.py
peter850706/Contextual-embeddings-for-sequence-classification
e26ba68f6aa30ec07319dcd37a04a8f56e07d7b0
[ "MIT" ]
null
null
null
part1/ELMo/modules/elmo.py
peter850706/Contextual-embeddings-for-sequence-classification
e26ba68f6aa30ec07319dcd37a04a8f56e07d7b0
[ "MIT" ]
null
null
null
part1/ELMo/modules/elmo.py
peter850706/Contextual-embeddings-for-sequence-classification
e26ba68f6aa30ec07319dcd37a04a8f56e07d7b0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from collections import namedtuple from ELMo.modules.char_embedding import CharEmbedding class ELMo(nn.Module): """Implement the Embeddings from Language Models (ELMo) as described in "Deep contextualized w...
63.875
191
0.594353
260d56541b9590ff3dcf8aa4ac7f649e63e42413
3,106
py
Python
src/app/externalOutages/createRealTimeOutage.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
src/app/externalOutages/createRealTimeOutage.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
21
2021-01-08T18:03:32.000Z
2021-02-02T16:17:34.000Z
src/app/externalOutages/createRealTimeOutage.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
import datetime as dt import cx_Oracle from src.app.externalOutages.getReasonId import getReasonId def createRealTimeOutage(pwcDbConnStr: str, elemTypeId: int, elementId: int, outageDt: dt.datetime, outageTypeId: int, reason: str, elementName: str, sdReqId: int, outageTagId: int) -> int: ...
36.541176
118
0.640052
260e0a514e1da67dfebf1f15683649ad98d25110
918
py
Python
src/backend/marsha/core/utils/jitsi_utils.py
insad-video/marsha
1e6a708c74527f50c4aa24d811049492e75f47a0
[ "MIT" ]
null
null
null
src/backend/marsha/core/utils/jitsi_utils.py
insad-video/marsha
1e6a708c74527f50c4aa24d811049492e75f47a0
[ "MIT" ]
null
null
null
src/backend/marsha/core/utils/jitsi_utils.py
insad-video/marsha
1e6a708c74527f50c4aa24d811049492e75f47a0
[ "MIT" ]
null
null
null
"""Utils for jitsi""" from datetime import timedelta from django.conf import settings from django.utils import timezone import jwt def create_payload(room, moderator=True): """Create the payload so that it contains each information jitsi requires""" token_payload = { "exp": timezone.now() + ...
25.5
80
0.668845
260f70e32d8dcbedd3be143cdb372b3adae4699c
1,356
py
Python
python/code_challenges/hashtable/test_hashtable.py
u-will/data-structures-and-algorithms
7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3
[ "MIT" ]
null
null
null
python/code_challenges/hashtable/test_hashtable.py
u-will/data-structures-and-algorithms
7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3
[ "MIT" ]
null
null
null
python/code_challenges/hashtable/test_hashtable.py
u-will/data-structures-and-algorithms
7ef7b5a527fbcacef8cbfe7a01fc69990c7358c3
[ "MIT" ]
null
null
null
from hashtable import Hashtable def test_create(): hashtable = Hashtable() assert hashtable def test_predictable_hash(): hashtable = Hashtable() initial = hashtable._hash('spam') secondary = hashtable._hash('spam') assert initial == secondary def test_in_range_hash(): hashtable = Hashtab...
22.983051
50
0.672566
261019984f7fcb844ce180e8d6381fbe39be01a7
65,879
py
Python
Code/CustomObjects.py
dluke/lex-talionis
1e02bcd4afdd22737aa3450bbcb269e69551bc39
[ "MIT" ]
1
2019-07-02T12:50:46.000Z
2019-07-02T12:50:46.000Z
Code/CustomObjects.py
dluke/lex-talionis
1e02bcd4afdd22737aa3450bbcb269e69551bc39
[ "MIT" ]
null
null
null
Code/CustomObjects.py
dluke/lex-talionis
1e02bcd4afdd22737aa3450bbcb269e69551bc39
[ "MIT" ]
null
null
null
import os, pickle, re import GlobalConstants as GC import configuration as cf # Custom Imports import MenuFunctions import Utility, Image_Modification, Engine, InputManager import logging logger = logging.getLogger(__name__) # === Simple Finite State Machine Object =============================== class...
45.781098
154
0.579441
26155a333ec0b9d8dbde784e29edc2aabd3bd42b
1,707
py
Python
tests/test_characters.py
uliang/BloodSword
fc7e173ce56989c48009ec86d834072f9f2e70ac
[ "BSD-2-Clause" ]
null
null
null
tests/test_characters.py
uliang/BloodSword
fc7e173ce56989c48009ec86d834072f9f2e70ac
[ "BSD-2-Clause" ]
null
null
null
tests/test_characters.py
uliang/BloodSword
fc7e173ce56989c48009ec86d834072f9f2e70ac
[ "BSD-2-Clause" ]
null
null
null
import pytest from bloodsword.characters.sage import Sage from bloodsword.characters.warrior import Warrior from bloodsword.descriptors.armour import Armour @pytest.fixture def warrior(): return Warrior("Warrior", rank=2) @pytest.fixture def sage(): return Sage("Sage", rank=2) def test_character_initializ...
25.863636
98
0.741652
2616d68573a5381dc443c6d189b9ad8fa29013e9
201
py
Python
examples/nod.py
Antoniii/In_Rust_We_Trust
43513b4a34b2d7e20950db9a0ac811721db06a1a
[ "MIT" ]
null
null
null
examples/nod.py
Antoniii/In_Rust_We_Trust
43513b4a34b2d7e20950db9a0ac811721db06a1a
[ "MIT" ]
null
null
null
examples/nod.py
Antoniii/In_Rust_We_Trust
43513b4a34b2d7e20950db9a0ac811721db06a1a
[ "MIT" ]
null
null
null
def nod(x,y): if y != 0: return nod(y, x % y) else: return x n1 = int(input("Введите n1: ")) n2 = int(input("Введите n2: ")) print("НОД = ", nod(n1,n2)) print("НОK = ", int((n1*n2)/nod(n1,n2)))
18.272727
40
0.547264
2616fa0e716ad26e2e73aae0033703cf5ccaa90b
2,417
py
Python
UML2ER/contracts/HContract03_IsolatedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UML2ER/contracts/HContract03_IsolatedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UML2ER/contracts/HContract03_IsolatedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternLHS import uuid class HContract03_IsolatedLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HContract03_IsolatedLHS """ # Flag this instance as compiled now self.is_compiled = True ...
29.839506
102
0.679355
261a000d9348f195b1440a4cf608cb7c86cce74a
7,359
py
Python
tests/test_mappings.py
cpenv/cpenv
07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39
[ "MIT" ]
15
2017-02-14T04:16:59.000Z
2021-10-05T15:20:02.000Z
tests/test_mappings.py
cpenv/cpenv
07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39
[ "MIT" ]
32
2015-11-04T15:53:50.000Z
2021-12-12T03:28:23.000Z
tests/test_mappings.py
cpenv/cpenv
07e1a6b5d1b20af4adff0c5a6987c7cdc784cc39
[ "MIT" ]
2
2017-02-24T16:30:39.000Z
2021-09-24T05:26:05.000Z
# -*- coding: utf-8 -*- # Local imports from cpenv import mappings from cpenv.compat import platform def test_platform_values(): '''join_dicts with platform values''' tests = { 'implicit_set': { 'osx': 'osx', 'linux': 'linux', 'win': 'win', }, 'imp...
27.055147
75
0.467455
261aa67b18ad9245d7a07ef83e4b670e255e83ff
98
py
Python
src/db.py
jpocentek/flask-project-template
0ba32002d847b04243181485d3c2ec146beb991b
[ "MIT" ]
null
null
null
src/db.py
jpocentek/flask-project-template
0ba32002d847b04243181485d3c2ec146beb991b
[ "MIT" ]
null
null
null
src/db.py
jpocentek/flask-project-template
0ba32002d847b04243181485d3c2ec146beb991b
[ "MIT" ]
null
null
null
"""Database class.""" from flask_sqlalchemy import SQLAlchemy # type: ignore db = SQLAlchemy()
16.333333
55
0.72449
261cb72cdb5369f93d2ed990d5292c026f4a45f8
3,313
py
Python
logial_puzzle/logical_puzzle.py
Adeon18/logical_puzzle
9a5d210bed51a779ceb5b15f720fdecf1860ff76
[ "MIT" ]
null
null
null
logial_puzzle/logical_puzzle.py
Adeon18/logical_puzzle
9a5d210bed51a779ceb5b15f720fdecf1860ff76
[ "MIT" ]
null
null
null
logial_puzzle/logical_puzzle.py
Adeon18/logical_puzzle
9a5d210bed51a779ceb5b15f720fdecf1860ff76
[ "MIT" ]
null
null
null
''' https://github.com/Adeon18/logical_puzzle ''' # There are now proper commits in this repository becouse I # created 1 repo for 2 tasks and then had to move import math def check_rows(board: list) -> bool: ''' Check for row correction in board. >>> check_rows(["**** ****", "***1 ****", "** 3****", "...
29.318584
78
0.543616
261cd8b29762935b9416a0a01f195708019addab
1,528
py
Python
tests/test_signing.py
apache/incubator-milagro-mfa-server
b33dfe864ff0bcb8a26a46745b9c596d72d22ccf
[ "Apache-2.0" ]
21
2016-09-18T19:13:58.000Z
2021-11-10T18:35:30.000Z
tests/test_signing.py
apache/incubator-milagro-mfa-server
b33dfe864ff0bcb8a26a46745b9c596d72d22ccf
[ "Apache-2.0" ]
3
2016-09-21T14:58:41.000Z
2019-05-29T23:35:32.000Z
tests/test_signing.py
apache/incubator-milagro-mfa-server
b33dfe864ff0bcb8a26a46745b9c596d72d22ccf
[ "Apache-2.0" ]
15
2016-05-24T11:15:47.000Z
2021-11-10T18:35:22.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.510638
91
0.744764
261cf1e1d0b31aa16744bdc1d7356972182ab39f
587
py
Python
src/symplectic/test/test_jsonformat.py
pysymplectic/symplectic
bdb46157757eb6e1e12fd3694fdbd0bbf18a70db
[ "MIT" ]
null
null
null
src/symplectic/test/test_jsonformat.py
pysymplectic/symplectic
bdb46157757eb6e1e12fd3694fdbd0bbf18a70db
[ "MIT" ]
1
2017-11-15T22:38:40.000Z
2018-01-24T02:28:29.000Z
src/symplectic/test/test_jsonformat.py
pysymplectic/symplectic
bdb46157757eb6e1e12fd3694fdbd0bbf18a70db
[ "MIT" ]
null
null
null
import tempfile import unittest from symplectic import jsonformat class JSONFormatTest(unittest.TestCase): def test_parse(self): with tempfile.NamedTemporaryFile() as fp: fp.write(""" { "title": "things", "slug": "stuff", "date": "2017-09-14 22...
25.521739
62
0.531516
261ded6e9abcc1091124bde1d09dfb13cef1f119
2,285
py
Python
yatube/posts/tests/test_forms.py
ShumilovAlexandr/hw03_forms
e75fd9a4db1fa7091205877f86d48613febf1484
[ "MIT" ]
null
null
null
yatube/posts/tests/test_forms.py
ShumilovAlexandr/hw03_forms
e75fd9a4db1fa7091205877f86d48613febf1484
[ "MIT" ]
null
null
null
yatube/posts/tests/test_forms.py
ShumilovAlexandr/hw03_forms
e75fd9a4db1fa7091205877f86d48613febf1484
[ "MIT" ]
null
null
null
import shutil import tempfile from django import forms from django.test import Client, TestCase from django.urls import reverse from posts.forms import PostForm from posts.models import Group, Post, User from django.conf import settings TEMP_MEDIA_ROOT = tempfile.mkdtemp(dir=settings.BASE_DIR) class StaticURLTes...
27.865854
91
0.615755
261e064420fd7dcd06ca3011998456030259d91a
8,460
py
Python
python_module/test/unit/functional/test_functional.py
WestCityInstitute/MegEngine
f91881ffdc051ab49314b1bd12c4a07a862dc9c6
[ "Apache-2.0" ]
2
2020-03-26T08:26:29.000Z
2020-06-01T14:41:38.000Z
python_module/test/unit/functional/test_functional.py
ted51/MegEngine
f91881ffdc051ab49314b1bd12c4a07a862dc9c6
[ "Apache-2.0" ]
null
null
null
python_module/test/unit/functional/test_functional.py
ted51/MegEngine
f91881ffdc051ab49314b1bd12c4a07a862dc9c6
[ "Apache-2.0" ]
1
2020-11-09T06:29:51.000Z
2020-11-09T06:29:51.000Z
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
32.045455
88
0.61513
261ea5255801b00d98a0de6fa447d7ccb3d9504f
2,964
py
Python
workflows/pipe-common/pipeline/common/container.py
msleprosy/cloud-pipeline
bccc2b196fad982380efc37a1c3785098bec6c85
[ "Apache-2.0" ]
126
2019-03-22T19:40:38.000Z
2022-02-16T13:01:44.000Z
workflows/pipe-common/pipeline/common/container.py
msleprosy/cloud-pipeline
bccc2b196fad982380efc37a1c3785098bec6c85
[ "Apache-2.0" ]
1,189
2019-03-25T10:39:27.000Z
2022-03-31T12:50:33.000Z
workflows/pipe-common/pipeline/common/container.py
msleprosy/cloud-pipeline
bccc2b196fad982380efc37a1c3785098bec6c85
[ "Apache-2.0" ]
62
2019-03-22T22:09:49.000Z
2022-03-08T12:05:56.000Z
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39
114
0.619096
261ef34aec94e0b7c7ad1e655cd7ebdf1e882520
243,870
py
Python
code/learning/nominalization.py
ktwaco/nlproject
16f02158fecdfe55a73a2c5c1e78376da935b50d
[ "Apache-2.0" ]
null
null
null
code/learning/nominalization.py
ktwaco/nlproject
16f02158fecdfe55a73a2c5c1e78376da935b50d
[ "Apache-2.0" ]
null
null
null
code/learning/nominalization.py
ktwaco/nlproject
16f02158fecdfe55a73a2c5c1e78376da935b50d
[ "Apache-2.0" ]
null
null
null
nominalization_list=["Buddhism", "Catholicity", "Catholicism", "Doppler", "evangelicality", "Frenchness", "Gaussianity", "Gothicness", "Indianness", "Irishness", "Jewishness", "Malthusianism", "mosaicity", "Nordicness", "northernness", "Polishness", "Protestantism", "regency", "Welshness", "abandonment", "abasement", "...
16.549267
53
0.755804
26200a7b0fdb3b7f678a0edc56db44b7bab13d20
2,029
py
Python
tests/test_bulk_stats.py
sixy6e/eo-tools
9e2772a5f15e04f6f7e3941541381544247ae1f2
[ "Apache-2.0" ]
3
2018-04-24T05:57:35.000Z
2019-07-23T13:06:11.000Z
tests/test_bulk_stats.py
sixy6e/eo-tools
9e2772a5f15e04f6f7e3941541381544247ae1f2
[ "Apache-2.0" ]
1
2015-06-17T04:39:23.000Z
2015-06-17T04:39:23.000Z
tests/test_bulk_stats.py
sixy6e/eo-tools
9e2772a5f15e04f6f7e3941541381544247ae1f2
[ "Apache-2.0" ]
2
2016-04-04T10:23:27.000Z
2020-02-28T08:43:49.000Z
#!/usr/bin/env python # =============================================================================== # Copyright 2015 Geoscience Australia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at ...
27.794521
81
0.609167
2620addb6c0a2614912637726159387427b444d3
2,516
py
Python
python-skylark/skylark/tests/nla/test_nla.py
xdata-skylark/libskylark
89c3736136a24d519c14fc0738c21f37f1e10360
[ "Apache-2.0" ]
86
2015-01-20T03:12:46.000Z
2022-01-10T04:05:21.000Z
python-skylark/skylark/tests/nla/test_nla.py
xdata-skylark/libskylark
89c3736136a24d519c14fc0738c21f37f1e10360
[ "Apache-2.0" ]
48
2015-05-12T09:31:23.000Z
2018-12-05T14:45:46.000Z
python-skylark/skylark/tests/nla/test_nla.py
xdata-skylark/libskylark
89c3736136a24d519c14fc0738c21f37f1e10360
[ "Apache-2.0" ]
25
2015-01-18T23:02:11.000Z
2021-06-12T07:30:35.000Z
import unittest import numpy as np import El import skylark.nla as sl_nla from .. import utils class NLATestCase(unittest.TestCase): """Tests nla functions.""" def test_approximate_svd(self): """Compute the SVD of **A** such that **SVD(A) = U S V^T**.""" n = 100 # Generate random m...
25.938144
79
0.543323
2620ea952fc9ad7c4d6a79e6e5fedbfdc07b3d8b
563
py
Python
tut 9 blurring.py
arpit456jain/open-cv-tuts
2ef213b9522a145fa51342d8a1385222cbe265c3
[ "MIT" ]
null
null
null
tut 9 blurring.py
arpit456jain/open-cv-tuts
2ef213b9522a145fa51342d8a1385222cbe265c3
[ "MIT" ]
null
null
null
tut 9 blurring.py
arpit456jain/open-cv-tuts
2ef213b9522a145fa51342d8a1385222cbe265c3
[ "MIT" ]
null
null
null
import numpy as np import cv2 from matplotlib import pyplot as plt img = cv2.imread("images/watter.jpeg") img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB) kernel = np.ones((5,5),np.float32)/25 dst1 = cv2.filter2D(img,-1,kernel) blur = cv2.blur(img,(5,5)) g_blur = cv2.GaussianBlur(img,(5,5),0) median_blur = cv2.medianBlur...
21.653846
66
0.687389
2621a6ccabece576b91cf545a302da60ca663e33
302
py
Python
oauth2_provider/http.py
manelclos/django-oauth-toolkit
c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
oauth2_provider/http.py
manelclos/django-oauth-toolkit
c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3
[ "BSD-2-Clause-FreeBSD" ]
1
2018-03-27T11:33:23.000Z
2018-03-27T11:33:23.000Z
oauth2_provider/http.py
manelclos/django-oauth-toolkit
c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3
[ "BSD-2-Clause-FreeBSD" ]
1
2021-02-13T11:53:48.000Z
2021-02-13T11:53:48.000Z
from django.http import HttpResponseRedirect class HttpResponseUriRedirect(HttpResponseRedirect): def __init__(self, redirect_to, allowed_schemes, *args, **kwargs): self.allowed_schemes = allowed_schemes super(HttpResponseUriRedirect, self).__init__(redirect_to, *args, **kwargs)
37.75
83
0.774834
2621c3a515fc4c1d4a5faef8759aaadc1e7eaeca
8,587
py
Python
backend/main.py
jinjf553/hook_up_rent
401ce94f3140d602bf0a95302ee47b7ef213b911
[ "MIT" ]
null
null
null
backend/main.py
jinjf553/hook_up_rent
401ce94f3140d602bf0a95302ee47b7ef213b911
[ "MIT" ]
null
null
null
backend/main.py
jinjf553/hook_up_rent
401ce94f3140d602bf0a95302ee47b7ef213b911
[ "MIT" ]
null
null
null
import time from datetime import timedelta from random import choice from typing import List, Optional from fastapi import Depends, FastAPI, File, UploadFile from fastapi.staticfiles import StaticFiles from passlib.context import CryptContext from pydantic import BaseModel from sqlalchemy.orm import Session from conf...
37.995575
448
0.584721
262261b72d2641412ed943023fa74d4339a36852
7,665
py
Python
mmdet/models/losses/iou_losses.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
65
2021-12-30T03:30:52.000Z
2022-03-25T01:44:32.000Z
mmdet/models/losses/iou_losses.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
1
2021-12-31T01:51:35.000Z
2022-01-01T14:42:37.000Z
mmdet/models/losses/iou_losses.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
7
2021-12-31T09:25:06.000Z
2022-03-10T01:25:09.000Z
#! /usr/bin/env python # coding=utf-8 # ================================================================ # # Author : miemie2013 # Created date: 2020-10-15 14:50:03 # Description : pytorch_ppyolo # # ================================================================ import torch import torch.nn as nn import to...
35.486111
119
0.562818
2624bc257e8f901aa965ba0e22d2dad3a916b18b
312
py
Python
assignments/assignment2/solutions/Jlopezjlx/src/src/account/forms.py
Jlopezjlx/python-mentorship
d104205bb9330ed5fc0ade433fb9a5aae5df4585
[ "Apache-2.0" ]
1
2019-04-07T12:26:20.000Z
2019-04-07T12:26:20.000Z
assignments/assignment2/solutions/Jlopezjlx/src/src/account/forms.py
Jlopezjlx/python-mentorship
d104205bb9330ed5fc0ade433fb9a5aae5df4585
[ "Apache-2.0" ]
null
null
null
assignments/assignment2/solutions/Jlopezjlx/src/src/account/forms.py
Jlopezjlx/python-mentorship
d104205bb9330ed5fc0ade433fb9a5aae5df4585
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth import get_user_model from .models import Account from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm User = get_user_model() class CustomCreateUser(UserCreationForm): class Meta: model = Account fields = ('username',)
22.285714
70
0.759615
2624f3ec627e513d71eae77da294d30a7ee77f1c
489
py
Python
pygame_gui/elements/__init__.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
pygame_gui/elements/__init__.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
pygame_gui/elements/__init__.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
from .ui_image import UIImage from .ui_button import UIButton from .ui_horizontal_slider import UIHorizontalSlider from .ui_vertical_scroll_bar import UIVerticalScrollBar from .ui_label import UILabel from .ui_screen_space_health_bar import UIScreenSpaceHealthBar from .ui_tool_tip import UITooltip from .ui_drop_down_me...
40.75
62
0.887526
262e2a6baf3b88e437fd423ee773c563521113f5
337
py
Python
src/movie.py
cannibalcheeseburger/RaMu-Discord-bot
6644cec0d249e6a5061ed16035102f97f9fc7ba7
[ "MIT" ]
2
2020-05-28T12:50:33.000Z
2020-05-29T09:06:01.000Z
src/movie.py
cannibalcheeseburger/RaMu-Discord-bot
6644cec0d249e6a5061ed16035102f97f9fc7ba7
[ "MIT" ]
2
2021-03-31T19:55:09.000Z
2021-12-13T20:42:08.000Z
src/movie.py
cannibalcheeseburger/RaMu-Discord-bot
6644cec0d249e6a5061ed16035102f97f9fc7ba7
[ "MIT" ]
null
null
null
import imdb def movie(name): ia = imdb.IMDb() movie_obj = ia.search_movie(name) el = ia.get_movie(movie_obj[0].movieID) title = str(el.get('title')) year = str(el.get('year')) plot = str(el.get('plot')[0]) ty = False if str(el.get('kind')) == 'tv series': ty = True return(ti...
25.923077
43
0.581602
263290a43a7fd76dbddf7ceb014df04f20ba0371
7,249
py
Python
micropy/project/modules/packages.py
MathijsNL/micropy-cli
2dec0ca3045a22f6552dc3813bedaf552d4bad2c
[ "MIT" ]
null
null
null
micropy/project/modules/packages.py
MathijsNL/micropy-cli
2dec0ca3045a22f6552dc3813bedaf552d4bad2c
[ "MIT" ]
null
null
null
micropy/project/modules/packages.py
MathijsNL/micropy-cli
2dec0ca3045a22f6552dc3813bedaf552d4bad2c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Project Packages Module.""" import shutil from pathlib import Path from typing import Any, Union from boltons import fileutils from micropy import utils from micropy.packages import (LocalDependencySource, PackageDependencySource, create_dependency_source) fr...
32.95
100
0.572769
2636d97a76008661a130b2893ade3f12667ed659
361
py
Python
soxs/background/__init__.py
gb-heimaf/lynx-x-ray-observatory
a1e5a17cab3763975e0d3dc0840f0359de8c8087
[ "BSD-3-Clause" ]
10
2020-05-08T01:38:18.000Z
2021-09-30T16:55:49.000Z
soxs/background/__init__.py
gb-heimaf/lynx-x-ray-observatory
a1e5a17cab3763975e0d3dc0840f0359de8c8087
[ "BSD-3-Clause" ]
7
2018-10-03T11:56:01.000Z
2021-08-12T17:54:51.000Z
soxs/background/__init__.py
gb-heimaf/lynx-x-ray-observatory
a1e5a17cab3763975e0d3dc0840f0359de8c8087
[ "BSD-3-Clause" ]
6
2016-11-17T21:15:22.000Z
2021-04-10T11:42:24.000Z
from .foreground import make_foreground from .point_sources import make_ptsrc_background, \ make_point_sources_file, make_point_source_list from .instrument import make_instrument_background from .spectra import BackgroundSpectrum, \ ConvolvedBackgroundSpectrum from .events import add_background_from_file from ...
45.125
51
0.869806
2636fef4d07451a8ef4cb29191498d6952487c63
3,945
py
Python
backup/guitemplates/endofsessiondialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/endofsessiondialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/endofsessiondialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'endofsessiondialog.ui' # # Created by: PyQt4 UI code generator 4.11.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fro...
60.692308
156
0.78834
2637a434166fe45c22b4c9ec763b7c85c5947d98
8,679
py
Python
test/test_logic.py
peteut/ramda.py
d315a9717ebd639366bf3fe26bad9e3d08ec3c49
[ "MIT" ]
null
null
null
test/test_logic.py
peteut/ramda.py
d315a9717ebd639366bf3fe26bad9e3d08ec3c49
[ "MIT" ]
12
2017-09-03T15:25:48.000Z
2020-04-11T15:22:01.000Z
test/test_logic.py
peteut/ramda.py
d315a9717ebd639366bf3fe26bad9e3d08ec3c49
[ "MIT" ]
1
2020-04-11T07:36:47.000Z
2020-04-11T07:36:47.000Z
import ramda as R from ramda.shared import eq from .common import get_arity import pytest try: from collections.abc import Callable except ImportError: from collections import Callable @pytest.fixture def odd(): return lambda n: n % 2 != 0 @pytest.fixture def lt20(): return lambda n: n < 20 @pytes...
26.460366
80
0.57449
263cf4e525b99a26c7f1cf3f1ee37f07078de9e0
7,168
py
Python
src/covid19/dash_forecast.py
marhoy/covid19
b53f7b812edea46bca6b27ac106d2363ee5d44d5
[ "MIT" ]
null
null
null
src/covid19/dash_forecast.py
marhoy/covid19
b53f7b812edea46bca6b27ac106d2363ee5d44d5
[ "MIT" ]
null
null
null
src/covid19/dash_forecast.py
marhoy/covid19
b53f7b812edea46bca6b27ac106d2363ee5d44d5
[ "MIT" ]
null
null
null
"""The dash-tab with forecast data.""" from typing import List import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.graph_objects as go from dash.dependencies import Input, Output import covid19.forecast from covid19.data import DAY_ZERO_START f...
32
87
0.410435
263d7e9a9f0a66a08ad20dffde0a31855dd85fee
145
py
Python
1132.py
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
1132.py
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
1132.py
barroslipe/urionlinejudge
a20d8199d9a92b30ea394a6c949967d2fc51aa34
[ "MIT" ]
null
null
null
x = int(input()) y = int(input()) if x > y: x, y = y, x soma = 0 for i in range(x, y + 1): if i%13 != 0: soma += i print(soma)
12.083333
25
0.448276
263e270fa7c082211ad5f457c9821af9b682d010
91
py
Python
contract-event-listener/src/config/__init__.py
xcantera/demo-provide-baseline
985f391973fa6ca0761104b55077fded28f152fc
[ "CC0-1.0" ]
3
2020-11-17T23:19:20.000Z
2021-03-29T15:08:56.000Z
contract-event-listener/src/config/__init__.py
xcantera/demo-provide-baseline
985f391973fa6ca0761104b55077fded28f152fc
[ "CC0-1.0" ]
null
null
null
contract-event-listener/src/config/__init__.py
xcantera/demo-provide-baseline
985f391973fa6ca0761104b55077fded28f152fc
[ "CC0-1.0" ]
1
2020-12-11T00:26:33.000Z
2020-12-11T00:26:33.000Z
from .schema import ( # noqa Config, SQSReceiver, LogReceiver, Receiver )
13
29
0.615385
263e3167efd7fced0be59c8dcec4e3dcbfdbafc7
193
py
Python
CodeForces/579A. Raising Bacteria/Raising Bacteria.py
tameemalaa/Solved-Problems
9e8bc96eb60f200787f2682e974ec6509a7c1734
[ "MIT" ]
null
null
null
CodeForces/579A. Raising Bacteria/Raising Bacteria.py
tameemalaa/Solved-Problems
9e8bc96eb60f200787f2682e974ec6509a7c1734
[ "MIT" ]
null
null
null
CodeForces/579A. Raising Bacteria/Raising Bacteria.py
tameemalaa/Solved-Problems
9e8bc96eb60f200787f2682e974ec6509a7c1734
[ "MIT" ]
null
null
null
# Solution by : Tameem Alaa El-Deen Sayed n = int(input()) c= 0 while n >= 1 : if n % 2 == 0 : n = n /2 else: n = n -1 n = n / 2 c = c + 1 print (c)
16.083333
41
0.393782
263f1ba2adc1731ba0f7b0bae1afb72287535d53
11,877
py
Python
Vaccine_page/vaccine_maps_population.py
ScilifelabDataCentre/Covid_portal_vis
f41c1fe3b3d271b4d414378d622443f066a69d71
[ "MIT" ]
null
null
null
Vaccine_page/vaccine_maps_population.py
ScilifelabDataCentre/Covid_portal_vis
f41c1fe3b3d271b4d414378d622443f066a69d71
[ "MIT" ]
2
2021-02-24T11:59:16.000Z
2021-04-27T07:48:50.000Z
Vaccine_page/vaccine_maps_population.py
ScilifelabDataCentre/Covid_portal_vis
f41c1fe3b3d271b4d414378d622443f066a69d71
[ "MIT" ]
7
2021-02-18T14:50:03.000Z
2021-11-11T11:41:07.000Z
import plotly.express as px import plotly.graph_objects as go import pandas as pd import json import os from vaccine_dataprep_Swedentots import ( df_vacc_lan, # data on 1st 2 doses third_vacc_dose_lan, # data on 3rd dose # df_vacc_ålders_lan, # a switch to age data for 1st and second doses? SCB_popu...
31.841823
129
0.613707
263ffe0fb0dfe081b932ef96364418b62b9cad91
1,520
py
Python
regression/other/pybindgen/classes/gen.py
ExternalRepositories/shroud
86c39d2324d947d28055f9024f52cc493eb0c813
[ "BSD-3-Clause" ]
73
2017-10-11T17:01:50.000Z
2022-01-01T21:42:12.000Z
regression/other/pybindgen/classes/gen.py
ExternalRepositories/shroud
86c39d2324d947d28055f9024f52cc493eb0c813
[ "BSD-3-Clause" ]
29
2018-03-21T19:34:29.000Z
2022-02-04T18:13:14.000Z
regression/other/pybindgen/classes/gen.py
ExternalRepositories/shroud
86c39d2324d947d28055f9024f52cc493eb0c813
[ "BSD-3-Clause" ]
8
2017-11-22T14:27:01.000Z
2022-03-30T08:49:03.000Z
# Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and # other Shroud Project Developers. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (BSD-3-Clause) # ######################################################################## """ Generate a module for classes using PyBi...
33.043478
97
0.623026
26406e10e1297a7c9003be939dfb3100b8150501
9,995
py
Python
stanCode_Projects/my_photoshop/blur.py
EricCheng8679/sc-projects
85f478ecf4c04f3ee79fd4c911a7122b286aff06
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/blur.py
EricCheng8679/sc-projects
85f478ecf4c04f3ee79fd4c911a7122b286aff06
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/blur.py
EricCheng8679/sc-projects
85f478ecf4c04f3ee79fd4c911a7122b286aff06
[ "MIT" ]
null
null
null
""" File: blur.py ------------------------------- This file shows the original image(smiley-face.png) first, and then its blurred image. The blur algorithm uses the average RGB values of a pixel's nearest neighbors. """ from simpleimage import SimpleImage BLURRED_SCALE = 9 def blur(old_img): """ :param old_...
63.66242
118
0.561681
26406e146753c756d9c6b32ec6a428c03630d569
650
py
Python
app/__init__.py
Moobusy/learnpython
a9a35dec18fcdc4238e83f881c6e308667ec7029
[ "MIT" ]
null
null
null
app/__init__.py
Moobusy/learnpython
a9a35dec18fcdc4238e83f881c6e308667ec7029
[ "MIT" ]
null
null
null
app/__init__.py
Moobusy/learnpython
a9a35dec18fcdc4238e83f881c6e308667ec7029
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Docer ~~~~~~ A document viewing platform. :copyright: (c) 2015 by Docer.Org. :license: MIT, see LICENSE for more details. ''' from flask import Flask from flask.ext.mongoengine import MongoEngine from app.frontend import frontend as frontend_blueprint from app.backend import backend a...
24.074074
81
0.747692
2641b42023211ee1b539a62e50d934444683d94e
953
py
Python
main.py
ghosh-r/text_scraper_for_bengali_poems
da148a0e8680fe365d4177fe269be875b0150c5c
[ "Apache-2.0" ]
null
null
null
main.py
ghosh-r/text_scraper_for_bengali_poems
da148a0e8680fe365d4177fe269be875b0150c5c
[ "Apache-2.0" ]
null
null
null
main.py
ghosh-r/text_scraper_for_bengali_poems
da148a0e8680fe365d4177fe269be875b0150c5c
[ "Apache-2.0" ]
null
null
null
from typing import List from sys import argv from tqdm import tqdm from time import sleep from random import uniform from bs4 import BeautifulSoup import requests from get_pages_urls import get_list_pages from get_urls import get_urls_per_page from write_poem import write_poem def main(root_url: str, poet_...
24.435897
75
0.713536
2641f16660f596ae7a11f3f894108dc509f1b570
12,597
py
Python
aliens4friends/models/tinfoilhat.py
noi-techpark/solda-aliens4friends
65f65f4e6775405e3098b2bac3f5903ff1c56795
[ "Apache-2.0" ]
null
null
null
aliens4friends/models/tinfoilhat.py
noi-techpark/solda-aliens4friends
65f65f4e6775405e3098b2bac3f5903ff1c56795
[ "Apache-2.0" ]
null
null
null
aliens4friends/models/tinfoilhat.py
noi-techpark/solda-aliens4friends
65f65f4e6775405e3098b2bac3f5903ff1c56795
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: NOI Techpark <info@noi.bz.it> # # SPDX-License-Identifier: Apache-2.0 import logging from typing import List, Dict, TypeVar, Optional from copy import deepcopy from deepdiff import DeepDiff from .base import BaseModel, DictModel, ModelError from aliens4friends.commons.utils import sha1sum_...
30.28125
108
0.688656
2642eef0ddc241add30d3eac4bb4b4cb887bc80f
276
py
Python
teachers_sample_codes/spotkanie_3/01b_wheater_json.py
programujemy-python/programuj-w-zespole-test
865f96e5be6ab4e3a7f15b9e446a1c0cbae06472
[ "MIT" ]
2
2022-01-31T20:21:18.000Z
2022-02-22T10:54:41.000Z
teachers_materials/spotkanie_3/01b_wheater_json.py
abixadamj/Popojutrze-Progr-mujemy
d6f5a4de799a486024f799c4c392fdc1419654b8
[ "MIT" ]
null
null
null
teachers_materials/spotkanie_3/01b_wheater_json.py
abixadamj/Popojutrze-Progr-mujemy
d6f5a4de799a486024f799c4c392fdc1419654b8
[ "MIT" ]
1
2022-03-07T11:23:58.000Z
2022-03-07T11:23:58.000Z
# przykład wykorzystania biblioteki requests import requests params = { 'format': 'j1', } api_result = requests.get('https://wttr.in/Varsavia', params) api_response = api_result.json() for elem in api_response: print(f"Klucz: {elem} ma wartość {api_response[elem]}")
25.090909
61
0.724638
264442fc8af628ec3988bcd2a6d680b881abb966
1,327
py
Python
Ejercicio1.py
Rauulito/EjercicioPOO
400ebbe4395548541b5023d8a410ddfa283f88f7
[ "Apache-2.0" ]
null
null
null
Ejercicio1.py
Rauulito/EjercicioPOO
400ebbe4395548541b5023d8a410ddfa283f88f7
[ "Apache-2.0" ]
null
null
null
Ejercicio1.py
Rauulito/EjercicioPOO
400ebbe4395548541b5023d8a410ddfa283f88f7
[ "Apache-2.0" ]
null
null
null
class Libro(): #Creamos el constructor def __init__(self, titulo,autor,editorial,precioBase, genero, nPaginas): self.titulo = titulo self.autor= autor self.editorial= editorial self.precioBase= precioBase self.genero= genero self.nPaginas= nPaginas #Metodos...
33.175
171
0.669932
26445917b8f6b4bc76b5e11b529d19936fabc446
12,938
py
Python
dataPrepScripts/CreateTensor.py
strixy16/Clairvoyante
2bf60f9fc54d51518730d94cb05ffdf3a51f0176
[ "BSD-3-Clause" ]
171
2017-07-24T00:35:48.000Z
2022-03-24T08:28:59.000Z
dataPrepScripts/CreateTensor.py
strixy16/Clairvoyante
2bf60f9fc54d51518730d94cb05ffdf3a51f0176
[ "BSD-3-Clause" ]
45
2018-10-30T07:37:42.000Z
2021-12-30T07:53:24.000Z
dataPrepScripts/CreateTensor.py
strixy16/Clairvoyante
2bf60f9fc54d51518730d94cb05ffdf3a51f0176
[ "BSD-3-Clause" ]
27
2017-07-23T21:43:50.000Z
2021-02-27T01:07:29.000Z
import os import sys import argparse import os import re import shlex import subprocess import signal import gc import param is_pypy = '__pypy__' in sys.builtin_module_names def PypyGCCollect(signum, frame): gc.collect() signal.alarm(60) cigarRe = r"(\d+)([MIDNSHP=X])" base2num = dict(zip("ACGT", (0,1,2,3)))...
41.335463
185
0.552713
26461c895574afc6d2e5c0139208bf8be78b66bf
2,405
py
Python
setup.py
ssjunnebo/MultiQC_NGI
1ca18747256324f1ddcb9ecd68159b2114718e71
[ "MIT" ]
3
2017-02-03T14:18:30.000Z
2019-10-24T14:57:57.000Z
setup.py
ssjunnebo/MultiQC_NGI
1ca18747256324f1ddcb9ecd68159b2114718e71
[ "MIT" ]
27
2015-10-16T16:20:10.000Z
2017-07-03T14:28:40.000Z
setup.py
ssjunnebo/MultiQC_NGI
1ca18747256324f1ddcb9ecd68159b2114718e71
[ "MIT" ]
8
2016-04-20T10:33:29.000Z
2021-03-25T09:01:58.000Z
#!/usr/bin/env python """ MultiQC_NGI is a plugin for MultiQC, providing additional tools which are specific to the National Genomics Infrastructure at the Science for Life Laboratory in Stockholm, Sweden. For more information about NGI, see http://www.scilifelab.se/platforms/ngi/ For more information about MultiQC, s...
34.855072
96
0.63368
2648b74d5b48d2d6ff54adeaeb4a4c006edab254
3,106
py
Python
utils/emails.py
rajattomar1301/HomeWorks-Initial
be7e6b6db2f7cf414a1f488e2efc473a95d9338a
[ "MIT" ]
null
null
null
utils/emails.py
rajattomar1301/HomeWorks-Initial
be7e6b6db2f7cf414a1f488e2efc473a95d9338a
[ "MIT" ]
6
2021-03-18T22:07:14.000Z
2022-03-11T23:39:30.000Z
utils/emails.py
rajattomar1301/HomeWorks-Initial
be7e6b6db2f7cf414a1f488e2efc473a95d9338a
[ "MIT" ]
null
null
null
import re import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart domain = "127.0.0.1" def send_email(to, subject, text): fromaddr = "homeworksmailbot@gmail.com" toaddr = to msg = MIMEMultipart() msg['From'] = fromaddr msg['To'] = toaddr msg['Subject']...
31.06
120
0.716355
264a808d413bbf67e35dd4e04d0a267eaeacb3ac
200
py
Python
thinkpython_allen_downey/exercise_12_1.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
thinkpython_allen_downey/exercise_12_1.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
thinkpython_allen_downey/exercise_12_1.py
alirkaya/programming-textbook-solutions
7362dce474b8a881d654f95604e09d1d0e76aec2
[ "MIT" ]
null
null
null
def sumall(*args): count = 0 for arg in args: count += arg return count print(sumall(1,2,3,4,4,5,6,7)) print(sumall(1,2,34)) numbers = 1,2,3,4,5,6,6,7,8,9 print(sumall(*numbers))
18.181818
30
0.595
264bbde1a1bee4dd16c481cd8e4f5f7b7eedcd79
2,369
py
Python
casino/src/bet.py
gauravvazirani/ooad
f00abd7fee54de8599a96254d9cffac20a3bb3aa
[ "MIT" ]
null
null
null
casino/src/bet.py
gauravvazirani/ooad
f00abd7fee54de8599a96254d9cffac20a3bb3aa
[ "MIT" ]
null
null
null
casino/src/bet.py
gauravvazirani/ooad
f00abd7fee54de8599a96254d9cffac20a3bb3aa
[ "MIT" ]
null
null
null
class Bet(): def __init__(self, amount, outcome, player=None): self.amount = amount self.outcome = outcome self.player = player def setOutcome(self, outcome): """ Sets the Outcome for this bet. This has the effect of moving the bet to another Outcom...
32.013514
95
0.557197
264d60d6576e248900b90821956e258de5d4ec82
866
py
Python
core/admin.py
isGroba/petLost
582851481a80c2e4645425d6b27830e2b7d44376
[ "MIT" ]
4
2017-06-16T11:19:56.000Z
2018-12-20T10:06:51.000Z
core/admin.py
isGroba/petLost
582851481a80c2e4645425d6b27830e2b7d44376
[ "MIT" ]
4
2017-06-06T10:36:32.000Z
2017-06-11T20:26:47.000Z
core/admin.py
isGroba/petLost
582851481a80c2e4645425d6b27830e2b7d44376
[ "MIT" ]
3
2017-06-06T06:54:48.000Z
2018-10-11T22:32:27.000Z
from django.contrib import admin from .models import Color, Pet, Publication class PublicationAdmin(admin.ModelAdmin): fields = ['title', 'description', 'pet', 'member'] search_fields = ['title', 'breed'] list_display = ('title', 'description', 'pet', 'date') list_filter = ['date'] class PetAdmin(...
27.0625
92
0.67552
264fec7de161d7ec6768ac23aa7065cdd2a16bae
1,781
py
Python
newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py
JamilHossain/news-please
6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf
[ "Apache-2.0" ]
null
null
null
newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py
JamilHossain/news-please
6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf
[ "Apache-2.0" ]
null
null
null
newsplease/pipeline/extractor/extractors/beautifulsoup_extractor.py
JamilHossain/news-please
6c7fb001a24f0db80dd4f2cd7f3957a7fe284dcf
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from bs4 import BeautifulSoup from .abstract_extractor import AbstractExtractor from ..article_candidate import ArticleCandidate class ReadabilityExtractor(AbstractExtractor): """This class implements Readability as an article extractor. Readability is a subclass of Extractors and ...
32.381818
109
0.658057
26501096fb0d6e0fc4401d923fa758cce0b9b091
853
py
Python
entity/cards/LETL_017H/LETL_306.py
x014/lushi_script
edab2b88e3f0de8139de2541ab2daa331f777c0e
[ "MIT" ]
102
2021-10-20T09:06:39.000Z
2022-03-28T13:35:11.000Z
entity/cards/LETL_017H/LETL_306.py
x014/lushi_script
edab2b88e3f0de8139de2541ab2daa331f777c0e
[ "MIT" ]
98
2021-10-19T16:13:27.000Z
2022-03-27T13:27:49.000Z
entity/cards/LETL_017H/LETL_306.py
x014/lushi_script
edab2b88e3f0de8139de2541ab2daa331f777c0e
[ "MIT" ]
55
2021-10-19T03:56:50.000Z
2022-03-25T08:25:26.000Z
# -*- coding: utf-8 -*- from hearthstone.entities import Entity from entity.spell_entity import SpellEntity class LETL_306(SpellEntity): """ 冰风暴5 随机对3个敌方佣兵造成$6点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成$7点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成$8点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成$9点伤害,并使其下回合的速度值减慢(2)点。0随机对3个敌方佣兵造成...
32.807692
183
0.644783
2650e879784fe541700fd39b00cc82a607be51e1
2,546
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_16.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_16.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/12_features/numtrees_20/rule_16.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Gender, obj[4]: Age, obj[5]: Education, obj[6]: Occupation, obj[7]: Bar, obj[8]: Coffeehouse, obj[9]: Restaurant20to50, obj[10]: Direction_same, obj[11]: Distance # {"feature": "Restaurant20to50", "instances": 51, "metric_value": 0.9526, ...
34.876712
243
0.558916
26532987010eba65d4709e37e7fe8bdb8b2276d8
346
py
Python
gravityinfraredco2sensor/__init__.py
osoken/py-gravity-infrared-co2-sensor
242885e16d2bb0c43d8abbb9807f9932c8209427
[ "MIT" ]
1
2020-12-28T06:25:25.000Z
2020-12-28T06:25:25.000Z
gravityinfraredco2sensor/__init__.py
osoken/py-gravity-infrared-co2-sensor
242885e16d2bb0c43d8abbb9807f9932c8209427
[ "MIT" ]
null
null
null
gravityinfraredco2sensor/__init__.py
osoken/py-gravity-infrared-co2-sensor
242885e16d2bb0c43d8abbb9807f9932c8209427
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __description__ = 'Python driver and logging app ' +\ 'for Gravity infrared CO2 sensor' __long_description__ = 'Python driver and logging app ' +\ 'for Gravity infrared CO2 sensor' __author__ = 'osoken' __email__ = 'osoken.devel@outlook.jp' __version__ = '0.0.0' __package_name__ = '...
23.066667
58
0.716763
2653fcf693b549d95fda5d96dd6ca0e935afb6e0
1,414
py
Python
src/main.py
fortytw0/vizwiz
36563806d9bf13c8924577141b02bd2552aa48d6
[ "MIT" ]
null
null
null
src/main.py
fortytw0/vizwiz
36563806d9bf13c8924577141b02bd2552aa48d6
[ "MIT" ]
null
null
null
src/main.py
fortytw0/vizwiz
36563806d9bf13c8924577141b02bd2552aa48d6
[ "MIT" ]
null
null
null
import os import time from src.models.model1 import CBD from src.utils.train_utils import TrainGenerator from tensorflow.keras import losses, optimizers, callbacks train_data = TrainGenerator('train') val_data = TrainGenerator('val') epochs = 10 model_dir = 'models/' log_dir = 'logs/' cbd = CBD('models/', 'logs/'...
26.185185
98
0.710042
265421a849a89a636ad43bddadaa5357b6a066c0
1,142
py
Python
models/PSim_net.py
PoChunChen1012/synthesizing_human_like_sketches
ec2ba76cda3f658c21b5484bd478e0d4cee52fc6
[ "MIT" ]
46
2020-03-13T14:30:35.000Z
2021-12-19T11:55:31.000Z
models/PSim_net.py
PoChunChen1012/synthesizing_human_like_sketches
ec2ba76cda3f658c21b5484bd478e0d4cee52fc6
[ "MIT" ]
2
2020-07-17T07:48:35.000Z
2020-10-16T15:35:30.000Z
models/PSim_net.py
PoChunChen1012/synthesizing_human_like_sketches
ec2ba76cda3f658c21b5484bd478e0d4cee52fc6
[ "MIT" ]
2
2020-03-20T18:50:52.000Z
2021-12-06T04:03:01.000Z
import torch.nn as nn from models.PSim_alexnet import PSim_Alexnet import torch from utils import utils class PSimNet(nn.Module): """Pre-trained network with all channels equally weighted by default (cosine similarity)""" def __init__(self, device=torch.device("cuda:0")): super(PSimNet, self).__init_...
33.588235
100
0.627846
26551b53033df1ef4c846dd69a18ee414d9ea7ce
26
py
Python
lib/__init__.py
mswilkhu1/ssense
59987a3c492591c8217811e79a63f25652f0295c
[ "MIT" ]
null
null
null
lib/__init__.py
mswilkhu1/ssense
59987a3c492591c8217811e79a63f25652f0295c
[ "MIT" ]
null
null
null
lib/__init__.py
mswilkhu1/ssense
59987a3c492591c8217811e79a63f25652f0295c
[ "MIT" ]
null
null
null
from . import conf_reader
13
25
0.807692
2655d6c7fb66b3c5d656b8a6666cd3a7c01d406b
271
py
Python
plus-minus.py
saketsuman07/hacker-rank-solutions
9055acf2e710b1a9caefe542b2b5e39b050e59fb
[ "MIT" ]
null
null
null
plus-minus.py
saketsuman07/hacker-rank-solutions
9055acf2e710b1a9caefe542b2b5e39b050e59fb
[ "MIT" ]
null
null
null
plus-minus.py
saketsuman07/hacker-rank-solutions
9055acf2e710b1a9caefe542b2b5e39b050e59fb
[ "MIT" ]
null
null
null
n = float(raw_input()) v = map(int, raw_input().strip().split()) pos = float(len(filter(lambda x: x > 0, v))) / n neg = float(len(filter(lambda x: x < 0, v))) /n zer = float(len(filter(lambda x: x == 0, v))) / n print "%.3f" % pos print "%.3f" % neg print "%.3f" % zer
24.636364
49
0.571956
2657fe93d76911db915b716f3764d580739be1b3
297
py
Python
api/config.py
libamen/libamen
bcf5c07ec6af25c0e5bd5703075638b46965412d
[ "Apache-2.0" ]
null
null
null
api/config.py
libamen/libamen
bcf5c07ec6af25c0e5bd5703075638b46965412d
[ "Apache-2.0" ]
null
null
null
api/config.py
libamen/libamen
bcf5c07ec6af25c0e5bd5703075638b46965412d
[ "Apache-2.0" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() basedir = os.path.abspath(os.path.dirname(__file__)) class Config: DEBUG = False TESTING = False UPLOAD_FOLDER = f'{basedir}/uploads' class DevConfig(Config): DEBUG = True class TestConfig(Config): TESTING = True
13.5
52
0.703704
2658babc747f1ce1026574efd7275014f53e2fd0
2,219
py
Python
sustainableCityManagement/main_project/Bus_API/process_bus_delays.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
null
null
null
sustainableCityManagement/main_project/Bus_API/process_bus_delays.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
null
null
null
sustainableCityManagement/main_project/Bus_API/process_bus_delays.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
1
2021-05-13T16:33:18.000Z
2021-05-13T16:33:18.000Z
import requests import json from ..Config.config_handler import read_config class ProcessBusDelays: def __init__(self): self.config_vals = read_config("Bus_API") # Get the live data of Buses(Arrival Time, Departure Time, Delay) from API and returns. def get_data_from_bus_api(self): ur...
42.673077
133
0.54484
26599d13bfb32c3212e18f860f5d6d06e7a58aef
3,576
py
Python
generate/julia/ffi.py
Luthaf/Chemharp-bindgen
7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8
[ "MIT" ]
null
null
null
generate/julia/ffi.py
Luthaf/Chemharp-bindgen
7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8
[ "MIT" ]
2
2018-02-25T21:46:45.000Z
2018-11-19T22:39:54.000Z
generate/julia/ffi.py
chemfiles/bindgen
7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8
[ "MIT" ]
null
null
null
# -* coding: utf-8 -* """ This module generate the Julia interface declaration for the functions it finds in a C header. It only handle edge cases for the chemfiles.h header. """ from generate.julia.constants import BEGINING from generate.julia.convert import type_to_julia from generate import CHFL_TYPES TYPE_TEMPLA...
26.10219
148
0.631991
265aad51cd825c5cd3fa7bde6bb29b6e88376717
648
py
Python
op_interface/xgemm.py
LukasSlouka/TF_XNN
152698a5da5ed6fff9ec4337e8dca4a1a396b458
[ "MIT" ]
3
2018-05-19T19:41:28.000Z
2019-03-04T12:40:32.000Z
op_interface/xgemm.py
LukasSlouka/TF_XNN
152698a5da5ed6fff9ec4337e8dca4a1a396b458
[ "MIT" ]
null
null
null
op_interface/xgemm.py
LukasSlouka/TF_XNN
152698a5da5ed6fff9ec4337e8dca4a1a396b458
[ "MIT" ]
null
null
null
from tensorflow.python.framework import ops from tensorflow.python.ops import math_ops from .utils import get_xmodule xmodule = get_xmodule() xgemm = xmodule.xgemm @ops.RegisterGradient("XGEMM") def _xgemm_grad(op, grad): """ Gradient computation for the XGEMM :param op: XGEMM operation that is differen...
28.173913
70
0.723765
265ab7b03cf9ea1a66d9ea39dcb79842ad35aa0c
1,004
py
Python
Chapter05/nlp40.py
gushwell/PythonNLP100
c67148232fc942b1f8a72e69a2a5e7a3b76e99bd
[ "MIT" ]
2
2020-01-09T14:48:41.000Z
2021-11-20T20:33:46.000Z
Chapter05/nlp40.py
CLRafaelR/PythonNLP100
c67148232fc942b1f8a72e69a2a5e7a3b76e99bd
[ "MIT" ]
null
null
null
Chapter05/nlp40.py
CLRafaelR/PythonNLP100
c67148232fc942b1f8a72e69a2a5e7a3b76e99bd
[ "MIT" ]
2
2020-01-09T14:48:40.000Z
2021-11-20T20:33:59.000Z
# 第5章: 係り受け解析 import re class Morph: def __init__(self, surface, base, pos, pos1): self.surface = surface self.base = base self.pos = pos self.pos1 = pos1 def print(self): print([self.surface, self.base, self.pos, self.pos1]) def analyze(): article = [] sentenc...
23.904762
63
0.456175
265bf6359ab14ac666621994354747be0e20755e
1,096
py
Python
test/TestUtils.py
priscillaboyd/SPaT_Prediction
4309819e1f8d8e49f2e7fc132750102322e1504a
[ "Apache-2.0" ]
7
2017-07-10T09:18:19.000Z
2022-03-22T02:47:12.000Z
test/TestUtils.py
priscillaboyd/SPaT_Prediction
4309819e1f8d8e49f2e7fc132750102322e1504a
[ "Apache-2.0" ]
36
2017-06-27T15:04:27.000Z
2017-10-21T12:39:12.000Z
test/TestUtils.py
priscillaboyd/SPaT_Prediction
4309819e1f8d8e49f2e7fc132750102322e1504a
[ "Apache-2.0" ]
2
2017-11-01T03:26:55.000Z
2019-06-01T20:20:31.000Z
import os import shutil import unittest from tools.Utils import root_path, output_fields, create_folder_if_not_exists, results_folder class TestUtils(unittest.TestCase): def test_output_fields(self): output_fields_needed = ['Date', 'Time', 'Result', 'Phase'] self.assertEqual(output_fields_needed...
28.842105
93
0.70073
265f8fd62d80164aa1cff86121914b68ce2ea3c8
650
py
Python
pwned/searchpass.py
nverhaaren/code-samples
2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673
[ "MIT" ]
null
null
null
pwned/searchpass.py
nverhaaren/code-samples
2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673
[ "MIT" ]
2
2017-08-10T02:40:57.000Z
2017-08-12T00:56:48.000Z
pwned/searchpass.py
nverhaaren/code-samples
2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673
[ "MIT" ]
null
null
null
#! /usr/bin/python import hashlib, getpass import sys if len(sys.argv) > 1 and sys.argv[1] == '-s': sha = True else: sha = False while True: try: passhash = hashlib.sha1(getpass.getpass()).hexdigest().upper() if sha: print passhash except EOFError: print br...
19.69697
70
0.481538
2661899145bc08ac1035d9320ae8710c8aceeb71
14,728
py
Python
electricpy/conversions.py
engineerjoe440/electricpy
03155a34ea024b61a9a6c41241cd664d0df0fb6b
[ "MIT" ]
null
null
null
electricpy/conversions.py
engineerjoe440/electricpy
03155a34ea024b61a9a6c41241cd664d0df0fb6b
[ "MIT" ]
null
null
null
electricpy/conversions.py
engineerjoe440/electricpy
03155a34ea024b61a9a6c41241cd664d0df0fb6b
[ "MIT" ]
null
null
null
################################################################################ """ `electricpy` Package - `conversions` Module. >>> from electricpy import conversions Filled with simple conversion functions to help manage unit conversions and the like, this module is very helpful to electrical engineers. Built to ...
23.266983
81
0.577404
2661e35125a9440b7263e4c2e760872c0ae79dad
1,713
py
Python
app/pages.py
mvasilkov/terrible-mistake
4f40a9719786ad3df0aea521dfeda234e3329714
[ "MIT" ]
null
null
null
app/pages.py
mvasilkov/terrible-mistake
4f40a9719786ad3df0aea521dfeda234e3329714
[ "MIT" ]
null
null
null
app/pages.py
mvasilkov/terrible-mistake
4f40a9719786ad3df0aea521dfeda234e3329714
[ "MIT" ]
null
null
null
import html from .models import Post, Session TEMPLATE_BASE = '''<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>noname</title> <link rel="stylesheet" href="/static/app.css"> </head> <body> %s </body> </html> ''' TEMPLATE_FORM = ''' <form action="...
23.465753
68
0.54174
266247aa06f4461cb7db5adf2fdddc88aebe5a2f
761
py
Python
seqauto/management/commands/reload_illumina_flowcell_qc.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
seqauto/management/commands/reload_illumina_flowcell_qc.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
seqauto/management/commands/reload_illumina_flowcell_qc.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
""" https://github.com/SACGF/variantgrid/issues/1601 Need to trigger reloads of bad metrics, so we die properly """ import logging from django.core.management.base import BaseCommand from seqauto.models import IlluminaFlowcellQC from snpdb.models import DataState class Command(BaseCommand): def hand...
24.548387
75
0.687254
26649d1e4db6d0705a327b9183a318d36350f178
446
py
Python
ssig_site/auth/migrations/0003_user_interest_events.py
LeoMcA/103P_2018_team51
cca9e022456b1e2653f0b69420ea914661c39b27
[ "MIT" ]
null
null
null
ssig_site/auth/migrations/0003_user_interest_events.py
LeoMcA/103P_2018_team51
cca9e022456b1e2653f0b69420ea914661c39b27
[ "MIT" ]
61
2018-02-22T11:10:48.000Z
2022-03-11T23:20:25.000Z
ssig_site/auth/migrations/0003_user_interest_events.py
LeoMcA/103P_2018_team51
cca9e022456b1e2653f0b69420ea914661c39b27
[ "MIT" ]
2
2018-02-10T11:26:52.000Z
2018-02-21T12:14:36.000Z
# Generated by Django 2.0.2 on 2018-03-08 12:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0004_event_group'), ('ssig_site_auth', '0002_user_interest_groups'), ] operations = [ migrations.AddField( model...
22.3
58
0.605381