hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
56033897138ef853bc12056f10459e1efe446441
4,581
py
Python
phenotrex/ml/prediction.py
univieCUBE/PICA2
59b72fa1ff00692af2fd4ca59d1514599238e2e5
[ "MIT" ]
2
2019-10-18T16:05:25.000Z
2019-10-31T08:49:10.000Z
phenotrex/ml/prediction.py
univieCUBE/PICA2
59b72fa1ff00692af2fd4ca59d1514599238e2e5
[ "MIT" ]
11
2019-08-27T14:26:38.000Z
2019-10-29T21:23:41.000Z
phenotrex/ml/prediction.py
univieCUBE/PICA2
59b72fa1ff00692af2fd4ca59d1514599238e2e5
[ "MIT" ]
1
2019-10-15T07:27:03.000Z
2019-10-15T07:27:03.000Z
import os import pandas as pd from phenotrex.io.flat import load_genotype_file, DEFAULT_TRAIT_SIGN_MAPPING from phenotrex.io.serialization import load_classifier from phenotrex.ml.shap_handler import ShapHandler try: from phenotrex.transforms import fastas_to_grs except ModuleNotFoundError: from phenotrex.uti...
44.911765
101
0.701594
import os import pandas as pd from phenotrex.io.flat import load_genotype_file, DEFAULT_TRAIT_SIGN_MAPPING from phenotrex.io.serialization import load_classifier from phenotrex.ml.shap_handler import ShapHandler try: from phenotrex.transforms import fastas_to_grs except ModuleNotFoundError: from phenotrex.uti...
0
0
0
0dce7bab6304a1350a831dcdc3ebc8503e68c68a
627
py
Python
yandex/yandex_SHBR/E/E.py
andrey19972004/algorithms_structures
77060790211182cf9d9f9c50682a771ffaee9e96
[ "MIT" ]
null
null
null
yandex/yandex_SHBR/E/E.py
andrey19972004/algorithms_structures
77060790211182cf9d9f9c50682a771ffaee9e96
[ "MIT" ]
null
null
null
yandex/yandex_SHBR/E/E.py
andrey19972004/algorithms_structures
77060790211182cf9d9f9c50682a771ffaee9e96
[ "MIT" ]
null
null
null
import sqlite3 if __name__ == '__main__': main()
23.222222
59
0.488038
import sqlite3 def main(): name = input() sql_cond_1 = input() sql_cond_2 = input() sql_sort_column = input() conn = sqlite3.connect(name) cursor = conn.cursor() sql_command = "SELECT condition " \ "FROM Talks " \ "WHERE {} AND {} " \ ...
548
0
23
d04acef46dd29dff34caa965190df7a3b1b2e151
2,535
py
Python
solver.py
BTrDung/Solving-Peg-Solitaire-by-using-back-tracking
e86c40561769b4838a76d98455174bda9d9c2d5d
[ "MIT" ]
4
2021-04-22T14:02:24.000Z
2021-04-22T14:11:05.000Z
solver.py
BTrDung/Solving-Peg-Solitaire-by-using-back-tracking
e86c40561769b4838a76d98455174bda9d9c2d5d
[ "MIT" ]
null
null
null
solver.py
BTrDung/Solving-Peg-Solitaire-by-using-back-tracking
e86c40561769b4838a76d98455174bda9d9c2d5d
[ "MIT" ]
1
2021-07-21T06:56:59.000Z
2021-07-21T06:56:59.000Z
import collections import heapq import numpy as np ans = solveWithBackTracking(7, 7)
32.922078
102
0.426036
import collections import heapq import numpy as np def updateState(state, x, y, x1, y1, x2, y2): newState = [[j for j in i] for i in state] newState[x][y] = 0 newState[x + x1][y + y1] = 0 newState[x + x2][y + y2] = 1 return newState def updateAnswer(ans, x, y, type): newAns = [i for i i...
2,353
0
94
649e1e58fb88ce6a713f6ace82938bd4fcb82038
4,514
py
Python
src/fedoidcmsg/utils.py
sklemer1/fedoidcmsg
b5e48de7a2e55c93915df1b274770134e77888c8
[ "Apache-2.0" ]
1
2018-05-09T20:47:06.000Z
2018-05-09T20:47:06.000Z
src/fedoidcmsg/utils.py
sklemer1/fedoidcmsg
b5e48de7a2e55c93915df1b274770134e77888c8
[ "Apache-2.0" ]
null
null
null
src/fedoidcmsg/utils.py
sklemer1/fedoidcmsg
b5e48de7a2e55c93915df1b274770134e77888c8
[ "Apache-2.0" ]
1
2018-10-04T13:55:58.000Z
2018-10-04T13:55:58.000Z
import json from cryptojwt.utils import as_unicode from cryptojwt.jws.utils import alg2keytype from cryptojwt.jws.jws import JWS from cryptojwt.jws.jws import factory from fedoidcmsg import MetadataStatement from fedoidcmsg.bundle import jwks_to_keyjar from oidcmsg.oidc import JsonWebToken from cryptojwt.jwt import ...
27.52439
78
0.649756
import json from cryptojwt.utils import as_unicode from cryptojwt.jws.utils import alg2keytype from cryptojwt.jws.jws import JWS from cryptojwt.jws.jws import factory from fedoidcmsg import MetadataStatement from fedoidcmsg.bundle import jwks_to_keyjar from oidcmsg.oidc import JsonWebToken from cryptojwt.jwt import ...
742
0
69
259684e4ece5cc14ba1e24b15c235714cf709fa6
2,110
py
Python
pyforms/gui/Controls/ControlEventsGraph/Track.py
sunj1/my_pyforms
d92c37cbddb3ff34fe1ace3874e0116c09e7c0cf
[ "MIT" ]
null
null
null
pyforms/gui/Controls/ControlEventsGraph/Track.py
sunj1/my_pyforms
d92c37cbddb3ff34fe1ace3874e0116c09e7c0cf
[ "MIT" ]
null
null
null
pyforms/gui/Controls/ControlEventsGraph/Track.py
sunj1/my_pyforms
d92c37cbddb3ff34fe1ace3874e0116c09e7c0cf
[ "MIT" ]
null
null
null
from PyQt4 import QtGui import bisect
28.513514
86
0.599052
from PyQt4 import QtGui import bisect class Track(object): DEFAULT_COLOR = QtGui.QColor(100, 100, 255) def __init__(self, parent): self._title = '' self._color = self.DEFAULT_COLOR self._parent = parent self._periods = [] # Functions needed for the bisect insertion #####...
1,157
891
23
bb407f307d87822f34cefdfea6fb39b5cf550aec
909
py
Python
2017/python/day8.py
astonshane/AdventOfCode
25c7380e73eede3f79287de6a9dedc8314ab7965
[ "MIT" ]
null
null
null
2017/python/day8.py
astonshane/AdventOfCode
25c7380e73eede3f79287de6a9dedc8314ab7965
[ "MIT" ]
null
null
null
2017/python/day8.py
astonshane/AdventOfCode
25c7380e73eede3f79287de6a9dedc8314ab7965
[ "MIT" ]
null
null
null
import re registers = {} MAX_VAL = 0 instruction_re = re.compile("([a-z]+) (inc|dec) (-*\d+) if ([a-z]+) (.+ -*\d+)") with open("inputs/day8.txt") as f: for line in f: line = line.strip() (register, command, value, condition_register, condition) = instruction_re.match(line).groups() expre...
28.40625
103
0.627063
import re registers = {} MAX_VAL = 0 def get_register(name): return registers.get(name, 0) def update_register(register, value, command): new_val = None if command == "inc": new_val = get_register(register) + int(value) else: new_val = get_register(register) - int(value) glob...
322
0
46
a073a59f0a69c5833133b2e69d1f568e2233d96f
511
py
Python
zenml/tests/preprocessing/test_dates.py
bobbywlindsey/data-science
8c67abd75a1f70ce37a04aff074cc3416260a296
[ "MIT" ]
1
2018-07-17T08:23:29.000Z
2018-07-17T08:23:29.000Z
zenml/tests/preprocessing/test_dates.py
bobbywlindsey/zenml
8c67abd75a1f70ce37a04aff074cc3416260a296
[ "MIT" ]
null
null
null
zenml/tests/preprocessing/test_dates.py
bobbywlindsey/zenml
8c67abd75a1f70ce37a04aff074cc3416260a296
[ "MIT" ]
null
null
null
import unittest import pandas as pd from pandas.testing import assert_frame_equal from zenml.preprocessing import parse_date from zenml.utils import array_to_series if __name__ == '__main__': unittest.main()
31.9375
82
0.727984
import unittest import pandas as pd from pandas.testing import assert_frame_equal from zenml.preprocessing import parse_date from zenml.utils import array_to_series class TestDates(unittest.TestCase): def test_parse_date(self): date_series = array_to_series(['2018-05-10', '1990-04-10']) result = p...
234
14
49
264d9f6e1fde805f979209c779de76b3e19fefa7
1,261
py
Python
data/process_data/tafeng.py
easonwhite928/DSNTSP
fb3ad1b20cd6d3adf22f8ecc10a9c79becc08a3d
[ "MIT" ]
4
2020-09-01T09:09:35.000Z
2021-08-24T02:16:52.000Z
data/process_data/tafeng.py
easonwhite928/DSNTSP
fb3ad1b20cd6d3adf22f8ecc10a9c79becc08a3d
[ "MIT" ]
null
null
null
data/process_data/tafeng.py
easonwhite928/DSNTSP
fb3ad1b20cd6d3adf22f8ecc10a9c79becc08a3d
[ "MIT" ]
1
2020-11-23T15:09:04.000Z
2020-11-23T15:09:04.000Z
import pandas as pd from data.process_data.process_data import process_data TA_FENG_PATH = 'data/tafeng/tafeng.csv' TA_FENG_OUTPUT = 'tafeng' TA_FENG_USER_COL = 'CUSTOMER_ID' TA_FENG_TIME_COL = 'TRANSACTION_DT' TA_FENG_ITEM_COL = 'PRODUCT_ID' TA_FENG_ITEM_TYPE_COL = 'PRODUCT_SUBCLASS' TA_FENG_TIME_FORMAT = '%m/%d/%Y' ...
36.028571
98
0.707375
import pandas as pd from data.process_data.process_data import process_data TA_FENG_PATH = 'data/tafeng/tafeng.csv' TA_FENG_OUTPUT = 'tafeng' TA_FENG_USER_COL = 'CUSTOMER_ID' TA_FENG_TIME_COL = 'TRANSACTION_DT' TA_FENG_ITEM_COL = 'PRODUCT_ID' TA_FENG_ITEM_TYPE_COL = 'PRODUCT_SUBCLASS' TA_FENG_TIME_FORMAT = '%m/%d/%Y' ...
729
0
23
6ab405a6a234b2eb2ec0493292524e997e580a37
15,209
py
Python
silx/gui/plot/ScatterView.py
linupi/silx
51bc5cbc696880e7cf13feb3ff2476a5c32422d4
[ "CC0-1.0", "MIT" ]
1
2019-11-29T20:45:36.000Z
2019-11-29T20:45:36.000Z
silx/gui/plot/ScatterView.py
linupi/silx
51bc5cbc696880e7cf13feb3ff2476a5c32422d4
[ "CC0-1.0", "MIT" ]
null
null
null
silx/gui/plot/ScatterView.py
linupi/silx
51bc5cbc696880e7cf13feb3ff2476a5c32422d4
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2018-2020 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
37.833333
99
0.628772
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2018-2020 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
3,895
0
235
30b2fcda38e3f910b4f7c7212fb480217de14864
301
py
Python
pytest/mod.py
free31jafar/Zeref
9cfe9f2e753e6d30d974ced6177080575635e17c
[ "MIT" ]
null
null
null
pytest/mod.py
free31jafar/Zeref
9cfe9f2e753e6d30d974ced6177080575635e17c
[ "MIT" ]
null
null
null
pytest/mod.py
free31jafar/Zeref
9cfe9f2e753e6d30d974ced6177080575635e17c
[ "MIT" ]
null
null
null
import pytest from redbot.core import modlog __all__ = ["mod"] @pytest.fixture
18.8125
69
0.671096
import pytest from redbot.core import modlog __all__ = ["mod"] @pytest.fixture def mod(config, monkeypatch): from redbot.core import Config with monkeypatch.context() as m: m.setattr(Config, "get_conf", lambda *args, **kwargs: config) modlog._init() return modlog
197
0
22
7658b4c9c8e35be0cab4449e29fedd73cb181d83
377
py
Python
imgur.py
TejasReddy9/FractalBot
5c203c83540a28d7e2120f0d6d06cd0d47d1b1b1
[ "MIT" ]
null
null
null
imgur.py
TejasReddy9/FractalBot
5c203c83540a28d7e2120f0d6d06cd0d47d1b1b1
[ "MIT" ]
null
null
null
imgur.py
TejasReddy9/FractalBot
5c203c83540a28d7e2120f0d6d06cd0d47d1b1b1
[ "MIT" ]
null
null
null
from datetime import date import pyimgur
23.5625
78
0.647215
from datetime import date import pyimgur class Imgur: def __init__(self): # Get imgur params f = open("./conf/imgur.conf", "r") client_id = f.readline().split("=")[1].rstrip("\n") client_secret = f.readline().split("=")[1].rstrip("\n") f.close() # Start the imgur api self.api = pyimgur...
297
-9
48
14b16296ae251a94ef5607a4eadc5a5fe4f59ff2
645
py
Python
tests/test_distributions/test_continuous/test_lomax.py
vahndi/probability
6ddf88e6f3d947c96b879e426030f60eb5cb2d59
[ "MIT" ]
2
2020-02-21T00:47:03.000Z
2020-09-22T19:00:48.000Z
tests/test_distributions/test_continuous/test_lomax.py
vahndi/probability
6ddf88e6f3d947c96b879e426030f60eb5cb2d59
[ "MIT" ]
52
2020-01-16T16:05:08.000Z
2022-02-24T15:10:10.000Z
tests/test_distributions/test_continuous/test_lomax.py
vahndi/probability
6ddf88e6f3d947c96b879e426030f60eb5cb2d59
[ "MIT" ]
null
null
null
from unittest.case import TestCase from probability.distributions import Lomax
26.875
64
0.545736
from unittest.case import TestCase from probability.distributions import Lomax class TestLomax(TestCase): def setUp(self) -> None: pass def test_fit(self): for lambda_, alpha in zip( (1, 2, 4, 6), (2, 2, 1, 1) ): lomax_orig = Lomax(lambd...
482
5
77
91084c0b35623a5cb2cfa5df167df5c11454f34d
5,008
py
Python
Source/main.py
albert-espin/random-forest
43634f54da2f682225f4f60406bb61b98ae2cacd
[ "MIT" ]
null
null
null
Source/main.py
albert-espin/random-forest
43634f54da2f682225f4f60406bb61b98ae2cacd
[ "MIT" ]
null
null
null
Source/main.py
albert-espin/random-forest
43634f54da2f682225f4f60406bb61b98ae2cacd
[ "MIT" ]
null
null
null
import math import os import numpy as np from pathlib import Path from data_functions import * from random_forest import * # printing modifiers PRINT_BOLD_COLOR = "\033[1m" PRINT_DISABLE_COLOR = "\033[0m" def clear_file(file_name): """Clear the contents of a file""" # clear any previous content in the f...
38.821705
257
0.689297
import math import os import numpy as np from pathlib import Path from data_functions import * from random_forest import * # printing modifiers PRINT_BOLD_COLOR = "\033[1m" PRINT_DISABLE_COLOR = "\033[0m" def clear_file(file_name): """Clear the contents of a file""" # clear any previous content in the f...
0
0
0
0af90b19eed8c3b9a0d0ff0972427fa2fd9f877e
4,091
py
Python
ops/config.py
sebohe/Meson-plugin
14a2fec09b8609df59737a510794ad8bc1bd0a93
[ "Apache-2.0" ]
null
null
null
ops/config.py
sebohe/Meson-plugin
14a2fec09b8609df59737a510794ad8bc1bd0a93
[ "Apache-2.0" ]
null
null
null
ops/config.py
sebohe/Meson-plugin
14a2fec09b8609df59737a510794ad8bc1bd0a93
[ "Apache-2.0" ]
null
null
null
from os import getenv from typing import List, Tuple from subprocess import check_output CONFIG = { "REPOS": { "AUTH": { "CONTAINER": "hashcloak/authority", "REPOSITORY": "https://github.com/katzenpost/authority", "BRANCH": "master", "GITHASH": "", ...
33.532787
92
0.573454
from os import getenv from typing import List, Tuple from subprocess import check_output CONFIG = { "REPOS": { "AUTH": { "CONTAINER": "hashcloak/authority", "REPOSITORY": "https://github.com/katzenpost/authority", "BRANCH": "master", "GITHASH": "", ...
921
0
23
a2f2241cf9a62a1ff8cf23af407648a04d5e66e4
243
py
Python
models/user.py
yasheymateen/AirBnB_clone
865cbef47738371f66b9264635a04b983d7accfd
[ "Unlicense" ]
null
null
null
models/user.py
yasheymateen/AirBnB_clone
865cbef47738371f66b9264635a04b983d7accfd
[ "Unlicense" ]
null
null
null
models/user.py
yasheymateen/AirBnB_clone
865cbef47738371f66b9264635a04b983d7accfd
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 """ User class module """ from models.base_model import BaseModel class User(BaseModel): """ class User which inherits from class BaseModel """ email = "" password = "" first_name = "" last_name = ""
17.357143
58
0.62963
#!/usr/bin/python3 """ User class module """ from models.base_model import BaseModel class User(BaseModel): """ class User which inherits from class BaseModel """ email = "" password = "" first_name = "" last_name = ""
0
0
0
125297875b3ed984b47bfb4704904bff1614d212
715
py
Python
filewriter.py
PranavPusarla/watersmrt
3c8e8fd25f185b2b746feca8d109c7d208703d04
[ "MIT" ]
1
2019-11-28T04:38:56.000Z
2019-11-28T04:38:56.000Z
filewriter.py
PranavPusarla/watersmrt
3c8e8fd25f185b2b746feca8d109c7d208703d04
[ "MIT" ]
null
null
null
filewriter.py
PranavPusarla/watersmrt
3c8e8fd25f185b2b746feca8d109c7d208703d04
[ "MIT" ]
2
2019-11-26T19:41:08.000Z
2019-11-28T04:36:57.000Z
############## ## Script listens to serial port and writes contents into a file import serial # sudo pip install pyserial should work from datetime import datetime serial_port = '/dev/cu.usbmodem1411'; baud_rate = 9600; #In arduino, Serial.begin(baud_rate) write_to_file_path = "week.txt"; output_file = open(write_...
29.791667
81
0.674126
############## ## Script listens to serial port and writes contents into a file import serial # sudo pip install pyserial should work from datetime import datetime serial_port = '/dev/cu.usbmodem1411'; baud_rate = 9600; #In arduino, Serial.begin(baud_rate) write_to_file_path = "week.txt"; output_file = open(write_...
0
0
0
a22afff50e75c227c23d29ed5b6a86fd81907759
12,268
py
Python
iMeshDashboard/__init__.py
mkinney/Meshtastic-rpi-dashboard
ed3f0228a023f3345a1adc2b2a4b7ce618f9803c
[ "Apache-2.0" ]
4
2021-02-17T12:47:06.000Z
2021-03-25T22:32:32.000Z
iMeshDashboard/__init__.py
mkinney/Meshtastic-rpi-dashboard
ed3f0228a023f3345a1adc2b2a4b7ce618f9803c
[ "Apache-2.0" ]
9
2021-03-05T10:03:57.000Z
2021-03-09T11:53:24.000Z
iMeshDashboard/__init__.py
mkinney/Meshtastic-rpi-dashboard
ed3f0228a023f3345a1adc2b2a4b7ce618f9803c
[ "Apache-2.0" ]
5
2021-02-24T16:55:45.000Z
2021-12-31T15:40:33.000Z
#!/usr/bin/env python3 from flask import Flask, render_template, request, send_from_directory, url_for, redirect from flask_basicauth import BasicAuth from flask_apscheduler import APScheduler import requests import json import copy import atexit import time import timeago from datetime import datetime import paho.mqtt...
36.620896
177
0.612406
#!/usr/bin/env python3 from flask import Flask, render_template, request, send_from_directory, url_for, redirect from flask_basicauth import BasicAuth from flask_apscheduler import APScheduler import requests import json import copy import atexit import time import timeago from datetime import datetime import paho.mqtt...
9,747
0
561
1a1f29141b06e03215d8540d24190c0e7b079866
1,077
py
Python
railrl/samplers/data_collector/contextual_path_collector.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
railrl/samplers/data_collector/contextual_path_collector.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
railrl/samplers/data_collector/contextual_path_collector.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
import numpy as np from railrl.envs.contextual import ContextualEnv from railrl.policies.base import Policy from railrl.samplers.data_collector import MdpPathCollector
31.676471
74
0.64624
import numpy as np from railrl.envs.contextual import ContextualEnv from railrl.policies.base import Policy from railrl.samplers.data_collector import MdpPathCollector class ContextualPathCollector(MdpPathCollector): def __init__( self, env: ContextualEnv, policy: Policy, ...
805
27
76
dc9ad58a09264c7c9489d4405cc31df9a65bec2d
6,059
py
Python
kickstarter/processing/tabletop_games.py
codestrange/kickstarter
31c26530070d03d8491dbb15001628a77e2a439b
[ "MIT" ]
3
2020-12-05T21:59:30.000Z
2020-12-05T23:17:43.000Z
kickstarter/processing/tabletop_games.py
codestrange/kickstarter
31c26530070d03d8491dbb15001628a77e2a439b
[ "MIT" ]
81
2020-12-10T07:21:31.000Z
2022-03-31T10:17:32.000Z
kickstarter/processing/tabletop_games.py
codestrange/kickstarter
31c26530070d03d8491dbb15001628a77e2a439b
[ "MIT" ]
null
null
null
from collections import defaultdict from datetime import datetime from typing import Dict, List, Optional, Tuple from ..models import CategoryModel, ProjectModel from . import subscribe @subscribe
38.106918
88
0.60439
from collections import defaultdict from datetime import datetime from typing import Dict, List, Optional, Tuple from ..models import CategoryModel, ProjectModel from . import subscribe class TabletopGamesModel: def __init__( self, category_id: int = 34, start_year: int = 2009, en...
5,441
372
45
40f1c260bc51ca5813d613d04c7f14380bda6650
12,191
py
Python
autonormalize/normalize.py
j-grover/autonormalize
764a652fadf1a7ec544c3447120d11aa29a11435
[ "BSD-3-Clause" ]
68
2019-08-14T22:01:23.000Z
2021-03-10T21:33:36.000Z
autonormalize/normalize.py
j-grover/autonormalize
764a652fadf1a7ec544c3447120d11aa29a11435
[ "BSD-3-Clause" ]
26
2019-08-15T15:49:19.000Z
2021-03-08T15:27:22.000Z
autonormalize/normalize.py
j-grover/autonormalize
764a652fadf1a7ec544c3447120d11aa29a11435
[ "BSD-3-Clause" ]
9
2019-10-18T00:49:23.000Z
2021-04-14T05:42:50.000Z
import pandas as pd from .classes import Dependencies def normalize(dependencies, df): """ Normalizes the dependency relationships in dependencies into new groups by breaking up all partial and transitive dependencies. Arguments: dependencies (Dependencies) : the dependencies to be split up ...
31.501292
113
0.623575
import pandas as pd from .classes import Dependencies def normalize(dependencies, df): """ Normalizes the dependency relationships in dependencies into new groups by breaking up all partial and transitive dependencies. Arguments: dependencies (Dependencies) : the dependencies to be split up ...
0
0
0
9bdcfb584c73081ba01f92217f1d20fd0a3ef857
1,174
py
Python
rdict/utils.py
davidmorosini/recursive_dict
b3164d478949d605c1a31fded6cec480e04576ec
[ "MIT" ]
5
2021-04-17T20:33:37.000Z
2021-07-22T16:22:18.000Z
rdict/utils.py
davidmorosini/rdict
b3164d478949d605c1a31fded6cec480e04576ec
[ "MIT" ]
4
2021-04-21T03:01:11.000Z
2021-04-24T19:56:33.000Z
rdict/utils.py
davidmorosini/rdict
b3164d478949d605c1a31fded6cec480e04576ec
[ "MIT" ]
null
null
null
from typing import Any, Union, List from rdict.macros import INDEX_SPECIAL_CHARACTER
29.35
81
0.686542
from typing import Any, Union, List from rdict.macros import INDEX_SPECIAL_CHARACTER def key_to_path(key: Union[int, str]) -> str: if isinstance(key, str) and key.isnumeric(): return f"{INDEX_SPECIAL_CHARACTER}{key}{INDEX_SPECIAL_CHARACTER}" return str(key) def path_to_key(path: str) -> Union[int, ...
968
0
115
a7d3e6789c82ae27b0afc4ea8c38a7771e6a1749
19,173
py
Python
temporal/stds_import.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
temporal/stds_import.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
temporal/stds_import.py
karttur/geoimagine02-grass
09c207707ddd0dae04a871e006e184409aa87d99
[ "BSD-3-Clause" ]
null
null
null
""" Space time dataset import functions Usage: .. code-block:: python import grass.temporal as tgis input="/tmp/temp_1950_2012.tar.gz" output="temp_1950_2012" directory="/tmp" title="My new dataset" descr="May new shiny dataset" location=None link=True exp=True overr=False ...
38.117296
91
0.53132
""" Space time dataset import functions Usage: .. code-block:: python import grass.temporal as tgis input="/tmp/temp_1950_2012.tar.gz" output="temp_1950_2012" directory="/tmp" title="My new dataset" descr="May new shiny dataset" location=None link=True exp=True overr=False ...
4,025
0
92
25dccc73c6ef3bd511e9ec9a8385af6f54c50a9d
185
py
Python
main/app.py
ultimateshark/Vessel
88af8bdbbd7a781491ac750be7a06ee8d83ffd8b
[ "MIT" ]
1
2021-01-17T13:51:55.000Z
2021-01-17T13:51:55.000Z
main/app.py
ultimateshark/Vessel
88af8bdbbd7a781491ac750be7a06ee8d83ffd8b
[ "MIT" ]
null
null
null
main/app.py
ultimateshark/Vessel
88af8bdbbd7a781491ac750be7a06ee8d83ffd8b
[ "MIT" ]
null
null
null
from flask import Flask import os app = Flask(__name__)
15.416667
34
0.637838
from flask import Flask import os class Runner: def __init__(): self.app = Flask(__name__) self.DEBUG = False app = Flask(__name__) def appRunner(): app.run()
65
-8
72
71d0e3ccf924bb848ebbf45332e43e7e38cb1aa9
2,532
py
Python
zdy.py
awesome-archive/squid_proxy_pool
8f50858ed25bdb7d41fb0d8e25260d7bdea4f420
[ "MIT" ]
2
2019-09-13T13:43:04.000Z
2019-11-28T06:44:15.000Z
zdy.py
AaronJny/squid_proxy_pool
8f50858ed25bdb7d41fb0d8e25260d7bdea4f420
[ "MIT" ]
null
null
null
zdy.py
AaronJny/squid_proxy_pool
8f50858ed25bdb7d41fb0d8e25260d7bdea4f420
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # zdy.py ''' Squid+站大爷搭建代理IP池 Author: Nathan Blog: www.xnathan.com Github: github.com/xNathan ''' from gevent import monkey monkey.patch_all() import os import time import logging import requests from gevent.pool import Pool logger = logging.getLogger(__name__) logger.setLevel(lo...
23.886792
123
0.60782
#!/usr/bin/env python # coding: utf-8 # zdy.py ''' Squid+站大爷搭建代理IP池 Author: Nathan Blog: www.xnathan.com Github: github.com/xNathan ''' from gevent import monkey monkey.patch_all() import os import time import logging import requests from gevent.pool import Pool logger = logging.getLogger(__name__) logger.setLevel(lo...
1,185
0
69
7192e79ea3c7e1ce71f4662aa4b22465a1a200f9
7,416
py
Python
sview/window.py
IvanGavrilin/pyview
0a39c4b8be7571a7f82f836d92b92c14b3496368
[ "MIT" ]
null
null
null
sview/window.py
IvanGavrilin/pyview
0a39c4b8be7571a7f82f836d92b92c14b3496368
[ "MIT" ]
null
null
null
sview/window.py
IvanGavrilin/pyview
0a39c4b8be7571a7f82f836d92b92c14b3496368
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2016 Ivan Gavrilin # # 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 restriction, including without limitation the rights # to use, copy, mod...
34.333333
132
0.619337
# The MIT License (MIT) # # Copyright (c) 2016 Ivan Gavrilin # # 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 restriction, including without limitation the rights # to use, copy, mod...
5,220
5
499
acf2eeb3e69920dae1fae097481aa66f41b37ce2
14,100
py
Python
TEST/BETAsite/pulse_generator/pulse_generator/gate_operation.py
takehuge/PYQUM
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
[ "MIT" ]
null
null
null
TEST/BETAsite/pulse_generator/pulse_generator/gate_operation.py
takehuge/PYQUM
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
[ "MIT" ]
null
null
null
TEST/BETAsite/pulse_generator/pulse_generator/gate_operation.py
takehuge/PYQUM
bfc9d9b1c2f4246c7aac3a371baaf587c99f8069
[ "MIT" ]
null
null
null
# Numpy # from numpy import linspace, arange # Numpy array from numpy import array, append, zeros, ones, where # Numpy common math function from numpy import exp, sqrt, arctan2, cos, sin, angle, radians, sign, log, ceil # Numpy constant from numpy import pi from pandas import infer_freq # def set_QubitRegister()...
33.894231
144
0.553901
# Numpy # from numpy import linspace, arange # Numpy array from numpy import array, append, zeros, ones, where # Numpy common math function from numpy import exp, sqrt, arctan2, cos, sin, angle, radians, sign, log, ceil # Numpy constant from numpy import pi from pandas import infer_freq def gaussianFunc (t, p): ...
11,352
12
478
445323a6f3c84e075595d2741968b4db038fe0dd
1,013
py
Python
test/test_cli.py
Fklearn/stagesepx
e3be63678df15403dca3227c1e7bcc9a54ea2b98
[ "MIT" ]
369
2019-07-22T22:38:45.000Z
2022-03-18T14:06:32.000Z
test/test_cli.py
Fklearn/stagesepx
e3be63678df15403dca3227c1e7bcc9a54ea2b98
[ "MIT" ]
172
2019-07-18T10:35:58.000Z
2022-03-30T03:44:46.000Z
test/test_cli.py
Fklearn/stagesepx
e3be63678df15403dca3227c1e7bcc9a54ea2b98
[ "MIT" ]
104
2019-07-23T01:38:55.000Z
2022-03-15T03:00:10.000Z
from loguru import logger import subprocess import os PROJECT_PATH = os.path.dirname(os.path.dirname(__file__)) VIDEO_PATH = os.path.join(PROJECT_PATH, "demo.mp4") from test_cutter import test_default as cutter_default from test_cutter import RESULT_DIR as CUTTER_RESULT_DIR # prepare cutter_default()
24.707317
82
0.714709
from loguru import logger import subprocess import os PROJECT_PATH = os.path.dirname(os.path.dirname(__file__)) VIDEO_PATH = os.path.join(PROJECT_PATH, "demo.mp4") from test_cutter import test_default as cutter_default from test_cutter import RESULT_DIR as CUTTER_RESULT_DIR # prepare cutter_default() def test_cli(...
588
0
115
54107bdfd69da88314fa0f533cb463c280777ade
163
py
Python
crowdsource/handlers/user.py
timkpaine/crowdsource
fa6acd9572812876421229ce3543db0606ceb445
[ "Apache-2.0" ]
null
null
null
crowdsource/handlers/user.py
timkpaine/crowdsource
fa6acd9572812876421229ce3543db0606ceb445
[ "Apache-2.0" ]
46
2017-09-30T04:01:00.000Z
2021-12-12T20:26:10.000Z
crowdsource/handlers/user.py
timkpaine/crowdsource
fa6acd9572812876421229ce3543db0606ceb445
[ "Apache-2.0" ]
1
2019-11-12T00:53:31.000Z
2019-11-12T00:53:31.000Z
from .base import AuthenticatedHandler
20.375
46
0.742331
from .base import AuthenticatedHandler class UserHandler(AuthenticatedHandler): pass # put in perspective # self._all_users.update([user.to_dict()])
0
100
23
7e8bf82afd31cdff3e5db5074cd93a3e611f576b
262
py
Python
phanterpwa/tests/__init__.py
PhanterJR/phanterpwa
6daff40845b3a853cd08d319c4ce148f8deebed7
[ "MIT" ]
2
2019-06-06T10:37:01.000Z
2021-10-16T03:36:28.000Z
phanterpwa/tests/test_configer_path/project_without_ini/__init__.py
PhanterJR/phanterpwa
6daff40845b3a853cd08d319c4ce148f8deebed7
[ "MIT" ]
null
null
null
phanterpwa/tests/test_configer_path/project_without_ini/__init__.py
PhanterJR/phanterpwa
6daff40845b3a853cd08d319c4ce148f8deebed7
[ "MIT" ]
null
null
null
import os import glob current_path = os.path.dirname(__file__) __all__ = [os.path.basename(x) for x in glob.glob(os.path.join(current_path, "*")) if os.path.isdir(x) and not os.path.basename(x).startswith("_")] if __name__ == '__main__': print(__all__)
29.111111
82
0.706107
import os import glob current_path = os.path.dirname(__file__) __all__ = [os.path.basename(x) for x in glob.glob(os.path.join(current_path, "*")) if os.path.isdir(x) and not os.path.basename(x).startswith("_")] if __name__ == '__main__': print(__all__)
0
0
0
9e2d0d93715f19666ddfe60f880b13ff75999556
1,114
py
Python
scificrew/tests/scificrew/test_clustering_users.py
ychebaro/project_insight
0076bd9cf88b0e47f9339fb9635b743a8ea9016b
[ "MIT" ]
null
null
null
scificrew/tests/scificrew/test_clustering_users.py
ychebaro/project_insight
0076bd9cf88b0e47f9339fb9635b743a8ea9016b
[ "MIT" ]
null
null
null
scificrew/tests/scificrew/test_clustering_users.py
ychebaro/project_insight
0076bd9cf88b0e47f9339fb9635b743a8ea9016b
[ "MIT" ]
null
null
null
""" Clustering users with k-means algorithm :Author: Yassmine Chebaro <yassmnine.chebaro@mssm.edu> :Date: 2019-09-25 :License: MIT """ # Import Libraries import pandas as pd import matplotlib.pyplot as plt import numpy as np from scipy.sparse import csr_matrix from sklearn.cluster import KMeans from sklearn.metrics i...
27.170732
99
0.781867
""" Clustering users with k-means algorithm :Author: Yassmine Chebaro <yassmnine.chebaro@mssm.edu> :Date: 2019-09-25 :License: MIT """ # Import Libraries import pandas as pd import matplotlib.pyplot as plt import numpy as np from scipy.sparse import csr_matrix from sklearn.cluster import KMeans from sklearn.metrics i...
528
26
47
b14b21f2faf40291e12a01fc25cc59eee64aca24
1,819
py
Python
iasset/migrations/0002_auto_20170321_2259.py
gzy403999903/itam
9ced83fecf10a70686d0a2a5159effdea03eca6c
[ "Artistic-1.0-cl8" ]
79
2018-05-28T09:13:31.000Z
2022-03-22T08:55:21.000Z
iasset/migrations/0002_auto_20170321_2259.py
tracyzk/itam
9ced83fecf10a70686d0a2a5159effdea03eca6c
[ "Artistic-1.0-cl8" ]
1
2018-11-16T07:40:12.000Z
2018-11-16T08:40:11.000Z
iasset/migrations/0002_auto_20170321_2259.py
tracyzk/itam
9ced83fecf10a70686d0a2a5159effdea03eca6c
[ "Artistic-1.0-cl8" ]
34
2018-05-28T09:13:34.000Z
2021-10-18T06:52:55.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
35.666667
138
0.590984
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('iservice', '0001_initial'), ('iasset', '0001_initial'), ] operations = [ migrations.AddField( model_name...
0
1,689
23
b48b1b8e57b1dea4565d3288dbcb2d7f98878817
155
py
Python
idem/idem/req/onchanges.py
brejoc/idem
12a901f60e77d6fc8a4c8a7496ac0b54b588cf7a
[ "Apache-2.0" ]
16
2019-10-10T22:23:48.000Z
2022-03-23T18:12:37.000Z
idem/idem/req/onchanges.py
brejoc/idem
12a901f60e77d6fc8a4c8a7496ac0b54b588cf7a
[ "Apache-2.0" ]
14
2019-11-01T15:15:26.000Z
2020-02-10T15:42:55.000Z
idem/idem/req/onchanges.py
brejoc/idem
12a901f60e77d6fc8a4c8a7496ac0b54b588cf7a
[ "Apache-2.0" ]
5
2019-10-15T11:54:11.000Z
2019-11-27T07:50:30.000Z
def define(hub): ''' Define how the onchanges requisite should run ''' return { 'result': True, 'changes': True, }
17.222222
49
0.503226
def define(hub): ''' Define how the onchanges requisite should run ''' return { 'result': True, 'changes': True, }
0
0
0
9a663470b779e1db507ee988b4182322926ab85c
186
py
Python
bitwise operations/binary digits count.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
bitwise operations/binary digits count.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
bitwise operations/binary digits count.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
number = int(input()) n_to_count = int(input()) counter = 0 while number > 0: result = number % 2 number //= 2 if result == n_to_count: counter += 1 print(counter)
15.5
28
0.591398
number = int(input()) n_to_count = int(input()) counter = 0 while number > 0: result = number % 2 number //= 2 if result == n_to_count: counter += 1 print(counter)
0
0
0
b1a0be2a59ab87cdcb86347ec965d6418a8f9cc7
4,221
py
Python
TicTacToeGui.py
SJCaldwell/alpha-toe
3e7637136022898c1ca2cf0d51286051f9ac137f
[ "MIT" ]
null
null
null
TicTacToeGui.py
SJCaldwell/alpha-toe
3e7637136022898c1ca2cf0d51286051f9ac137f
[ "MIT" ]
null
null
null
TicTacToeGui.py
SJCaldwell/alpha-toe
3e7637136022898c1ca2cf0d51286051f9ac137f
[ "MIT" ]
null
null
null
# coding=UTF8 # Python TicTacToe game with Tk GUI and minimax AI # Author: Maurits van der Schee <maurits@vdschee.nl> # Repo: https://github.com/mevdschee/python-tictactoe """ Run this file to play manually with any agent. """ from Tkinter import Tk, Button, PhotoImage from PIL import ImageTk, Image from tkFont impo...
32.221374
93
0.634447
# coding=UTF8 # Python TicTacToe game with Tk GUI and minimax AI # Author: Maurits van der Schee <maurits@vdschee.nl> # Repo: https://github.com/mevdschee/python-tictactoe """ Run this file to play manually with any agent. """ from Tkinter import Tk, Button, PhotoImage from PIL import ImageTk, Image from tkFont impo...
3,201
-11
148
95eccfee9e284d900d45c40aa27a0eb613366363
39
py
Python
everyvoter_common/utils/__init__.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
5
2019-07-01T17:50:44.000Z
2022-02-20T02:44:42.000Z
everyvoter_common/utils/__init__.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
3
2020-06-05T21:44:33.000Z
2021-06-10T21:39:26.000Z
everyvoter_common/utils/__init__.py
everyvoter/everyvoter
65d9b8bdf9b5c64057135c279f6e03b6c207e0fa
[ "MIT" ]
1
2021-12-09T06:32:40.000Z
2021-12-09T06:32:40.000Z
"""Utilities for EveryVoter project"""
19.5
38
0.74359
"""Utilities for EveryVoter project"""
0
0
0
f4f922a4fd9691d74861f0dbcd0859dab3ef1eb7
7,898
py
Python
ibeatles/interfaces/ui_binningWindow.py
indudhiman/bragg-edge
56af0a448534ef9cb5428879ba900e194dc05db2
[ "MIT" ]
null
null
null
ibeatles/interfaces/ui_binningWindow.py
indudhiman/bragg-edge
56af0a448534ef9cb5428879ba900e194dc05db2
[ "MIT" ]
null
null
null
ibeatles/interfaces/ui_binningWindow.py
indudhiman/bragg-edge
56af0a448534ef9cb5428879ba900e194dc05db2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer/ui_binningWindow.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
58.940299
114
0.738035
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer/ui_binningWindow.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
7,560
7
76
f646adcf7907cbd717f6c0b6630834f649a54625
1,597
py
Python
video2img.py
DaheeHan333/C3D
1bc2f236dca87130fee4741fdad3bca53f58da7a
[ "MIT" ]
14
2019-08-23T01:37:44.000Z
2022-03-31T20:03:59.000Z
video2img.py
DaheeHan333/C3D
1bc2f236dca87130fee4741fdad3bca53f58da7a
[ "MIT" ]
2
2019-10-11T07:31:35.000Z
2021-06-20T07:32:09.000Z
video2img.py
DaheeHan333/C3D
1bc2f236dca87130fee4741fdad3bca53f58da7a
[ "MIT" ]
4
2020-12-16T12:26:06.000Z
2022-02-20T13:53:33.000Z
import cv2 import os from PIL import Image from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True video_path = '/home/shixi/C3D-keras/datasets/ucf101/' save_path = '/home/shixi/C3D-keras/datasets/ucfimgs/' action_list = os.listdir(video_path) for action in action_list: if not os.path.exists(save_path+a...
36.295455
83
0.564183
import cv2 import os from PIL import Image from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True video_path = '/home/shixi/C3D-keras/datasets/ucf101/' save_path = '/home/shixi/C3D-keras/datasets/ucfimgs/' action_list = os.listdir(video_path) for action in action_list: if not os.path.exists(save_path+a...
0
0
0
915da8bb1cbf5c82b119f797171542b53b3c8fa8
4,117
py
Python
python/cuml/dask/decomposition/base.py
Salonijain27/cuml
887575445ee0b162f4ac02feae86c0d7de14f793
[ "Apache-2.0" ]
null
null
null
python/cuml/dask/decomposition/base.py
Salonijain27/cuml
887575445ee0b162f4ac02feae86c0d7de14f793
[ "Apache-2.0" ]
1
2020-08-04T18:44:53.000Z
2020-08-04T18:44:53.000Z
python/cuml/dask/decomposition/base.py
Salonijain27/cuml
887575445ee0b162f4ac02feae86c0d7de14f793
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. # # 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 applicable law or agreed to...
33.201613
76
0.632256
# Copyright (c) 2019, NVIDIA CORPORATION. # # 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 applicable law or agreed to...
246
2,847
46
408adf9c7defe3920097625718117a7e71b999f2
2,470
py
Python
project/app/api/population.py
labs26-citrics/Labs26-Citrics-DS-TeamB
980ff695f49be7bcb3ffdda38dba56049ef1e988
[ "MIT" ]
1
2021-01-04T19:32:50.000Z
2021-01-04T19:32:50.000Z
project/app/api/population.py
labs26-citrics/Labs26-Citrics-DS-TeamB
980ff695f49be7bcb3ffdda38dba56049ef1e988
[ "MIT" ]
3
2020-09-08T22:27:35.000Z
2020-10-01T22:19:13.000Z
project/app/api/population.py
labs26-citrics/Labs26-Citrics-DS-TeamB
980ff695f49be7bcb3ffdda38dba56049ef1e988
[ "MIT" ]
4
2020-10-13T21:56:42.000Z
2021-03-03T01:59:37.000Z
from fastapi import APIRouter, HTTPException import pandas as pd import plotly.express as px import os router = APIRouter() DATA_FILEPATH1 = os.path.join(os.path.dirname(__file__), "..", "..","data", "current_pop_data_final.csv") DATA_FILEPATH2 = os.path.join(os.path.dirname(__file__), "..", "..","data", "his...
36.323529
109
0.641296
from fastapi import APIRouter, HTTPException import pandas as pd import plotly.express as px import os router = APIRouter() DATA_FILEPATH1 = os.path.join(os.path.dirname(__file__), "..", "..","data", "current_pop_data_final.csv") DATA_FILEPATH2 = os.path.join(os.path.dirname(__file__), "..", "..","data", "his...
0
0
0
c819420b9b2f71fde062c39c40d5304f49c54972
1,671
py
Python
python/problem30.py
chjdev/euler
48db9e035583c2c3fcce8eed0c911a0e67cff2c6
[ "BSD-2-Clause" ]
null
null
null
python/problem30.py
chjdev/euler
48db9e035583c2c3fcce8eed0c911a0e67cff2c6
[ "BSD-2-Clause" ]
null
null
null
python/problem30.py
chjdev/euler
48db9e035583c2c3fcce8eed0c911a0e67cff2c6
[ "BSD-2-Clause" ]
null
null
null
# Digit fifth powers # # Problem 30 # # Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits: # # 1634 = 14 + 64 + 34 + 44 # 8208 = 84 + 24 + 04 + 84 # 9474 = 94 + 44 + 74 + 44 # As 1 = 14 is not a sum it is not included. # # The sum of these numbers is 1634 + 8208 +...
34.102041
118
0.616996
# Digit fifth powers # # Problem 30 # # Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits: # # 1634 = 14 + 64 + 34 + 44 # 8208 = 84 + 24 + 04 + 84 # 9474 = 94 + 44 + 74 + 44 # As 1 = 14 is not a sum it is not included. # # The sum of these numbers is 1634 + 8208 +...
751
0
45
220b1f09e8fc099c7708125223d2e25a4115b511
3,325
py
Python
delfin/task_manager/metrics_rpcapi.py
guankc/delfin
85c2ac90dba7042a9159f1d4e927020ea166f139
[ "Apache-2.0" ]
19
2020-07-28T00:13:43.000Z
2022-02-15T16:44:21.000Z
delfin/task_manager/metrics_rpcapi.py
guankc/delfin
85c2ac90dba7042a9159f1d4e927020ea166f139
[ "Apache-2.0" ]
581
2020-06-22T15:20:58.000Z
2022-03-31T04:06:14.000Z
delfin/task_manager/metrics_rpcapi.py
guankc/delfin
85c2ac90dba7042a9159f1d4e927020ea166f139
[ "Apache-2.0" ]
153
2021-03-10T09:32:08.000Z
2022-02-22T01:32:32.000Z
# Copyright 2021 The SODA Authors. # # 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 applicable law or agreed to in wri...
39.583333
78
0.615338
# Copyright 2021 The SODA Authors. # # 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 applicable law or agreed to in wri...
2,224
0
189
6402f8c0364cd5789bddc3744d7d90002b8bed85
3,029
py
Python
Server/emotions.py
AgoraIO-Community/SentimentAnalysis
8d52cadb4377283bc0e00e55bf459a4a28573e25
[ "MIT" ]
5
2019-03-02T10:12:05.000Z
2020-08-03T17:10:05.000Z
Server/emotions.py
itsmepiyush2/SentimentAnalysis
8d52cadb4377283bc0e00e55bf459a4a28573e25
[ "MIT" ]
5
2020-01-28T23:03:33.000Z
2022-02-10T00:34:23.000Z
Server/emotions.py
GarrettYoung510/Agora-web-app
ae4e1aaffdd053f09f0348095da66b8e782bd35f
[ "MIT" ]
3
2019-07-01T03:42:53.000Z
2021-07-13T09:42:03.000Z
import cv2 import numpy as np from keras.models import load_model from statistics import mode from utils.datasets import get_labels from utils.inference import detect_faces from utils.inference import draw_text from utils.inference import draw_bounding_box from utils.inference import apply_offsets from utils.inference ...
33.655556
86
0.700231
import cv2 import numpy as np from keras.models import load_model from statistics import mode from utils.datasets import get_labels from utils.inference import detect_faces from utils.inference import draw_text from utils.inference import draw_bounding_box from utils.inference import apply_offsets from utils.inference ...
2,014
0
22
fae7ab2a6ae52af817a8934b44b1f7c9dbb98058
3,074
py
Python
maxmatrix/matrix.py
mdonath/micropython-maxmatrix
f675058e55a9ea9ce51d47c156ee28f36b4e356b
[ "MIT" ]
1
2019-02-09T05:19:10.000Z
2019-02-09T05:19:10.000Z
maxmatrix/matrix.py
mdonath/micropython-maxmatrix
f675058e55a9ea9ce51d47c156ee28f36b4e356b
[ "MIT" ]
null
null
null
maxmatrix/matrix.py
mdonath/micropython-maxmatrix
f675058e55a9ea9ce51d47c156ee28f36b4e356b
[ "MIT" ]
null
null
null
_NOOP=const(0) _DIGIT0=const(1) _DIGIT1=const(2) _DIGIT2=const(3) _DIGIT3=const(4) _DIGIT4=const(5) _DIGIT5=const(6) _DIGIT6=const(7) _DIGIT7=const(8) _DECODEMODE=const(9) _INTENSITY=const(10) _SCANLIMIT=const(11) _SHUTDOWN=const(12) _DISPLAYTEST=const(15)
18.975309
52
0.633377
_NOOP=const(0) _DIGIT0=const(1) _DIGIT1=const(2) _DIGIT2=const(3) _DIGIT3=const(4) _DIGIT4=const(5) _DIGIT5=const(6) _DIGIT6=const(7) _DIGIT7=const(8) _DECODEMODE=const(9) _INTENSITY=const(10) _SCANLIMIT=const(11) _SHUTDOWN=const(12) _DISPLAYTEST=const(15) class Matrix8x8: def __init__(self,spi,cs,num): self.spi=sp...
2,366
-5
455
8aa45dee640108af637f42752e15e2aba73c95b2
8,293
py
Python
flask-docker-master/apps/__init__.py
hyamynl619/city-data-comparison-ds
cd424d1b9baab34597ef030f5a9ce79bc1709203
[ "MIT" ]
2
2020-09-08T22:07:21.000Z
2022-01-05T23:51:15.000Z
flask-docker-master/apps/__init__.py
hyamynl619/city-data-comparison-ds
cd424d1b9baab34597ef030f5a9ce79bc1709203
[ "MIT" ]
null
null
null
flask-docker-master/apps/__init__.py
hyamynl619/city-data-comparison-ds
cd424d1b9baab34597ef030f5a9ce79bc1709203
[ "MIT" ]
2
2020-05-05T21:16:22.000Z
2021-01-20T22:18:21.000Z
from flask import Flask, request, render_template, redirect, url_for from decouple import config from flask_pymongo import PyMongo from flask_cors import CORS from apps.city_spelling_matcher import * from apps.charts import * from apps.pred_models import * from apps.data_rangle import * from flask import json from flas...
36.53304
103
0.605933
from flask import Flask, request, render_template, redirect, url_for from decouple import config from flask_pymongo import PyMongo from flask_cors import CORS from apps.city_spelling_matcher import * from apps.charts import * from apps.pred_models import * from apps.data_rangle import * from flask import json from flas...
7,840
0
23
4ac2a0483a397db0a29a8cb752ddfb2c825f2d9a
5,257
py
Python
tests/test_text_qrnn.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
59
2020-08-18T03:41:35.000Z
2022-03-23T03:51:55.000Z
tests/test_text_qrnn.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
17
2020-08-25T14:15:32.000Z
2022-03-27T02:12:19.000Z
tests/test_text_qrnn.py
JiahuaWU/fastai
13a2df812d875abf0558004283392ab40d9bdea1
[ "Apache-2.0" ]
89
2020-08-17T23:45:42.000Z
2022-03-27T20:53:43.000Z
import pytest,torch from fastai.basics import have_min_pkg_version from fastai.gen_doc.doctest import this_tests from fastai.text.models.qrnn import ForgetMultGPU, BwdForgetMultGPU, forget_mult_CPU, QRNN, QRNNLayer @pytest.mark.cuda @pytest.mark.cpp @pytest.mark.cuda @pytest.mark.cpp # bug in pytorch=1.0.1, fixed in...
45.318966
104
0.657409
import pytest,torch from fastai.basics import have_min_pkg_version from fastai.gen_doc.doctest import this_tests from fastai.text.models.qrnn import ForgetMultGPU, BwdForgetMultGPU, forget_mult_CPU, QRNN, QRNNLayer @pytest.mark.cuda @pytest.mark.cpp def test_forget_mult_forward_gpu(): this_tests(ForgetMultGPU) ...
4,605
0
181
fa8f88d1b3ddb9b40224b9000669d03fc92c17b8
1,803
py
Python
zona/zonaclassifier.py
briandleahy/embryovision
83a271ff71dcdc699e1d83b977a0e366e0870ef4
[ "BSD-4-Clause-UC" ]
null
null
null
zona/zonaclassifier.py
briandleahy/embryovision
83a271ff71dcdc699e1d83b977a0e366e0870ef4
[ "BSD-4-Clause-UC" ]
null
null
null
zona/zonaclassifier.py
briandleahy/embryovision
83a271ff71dcdc699e1d83b977a0e366e0870ef4
[ "BSD-4-Clause-UC" ]
null
null
null
import sys import torch import torchvision from embryovision.torchnn import Classifier
32.196429
78
0.626179
import sys import torch import torchvision from embryovision.torchnn import Classifier class Resnet101TransferLearned(Classifier): def __init__(self, input_size=(125, 125), num_classes=4, pretrained=True): """ Explain why input_size is here to be helpful. """ self.pretrained = pr...
1,140
549
23
9502a79c51ee44dd851ff487323b6e8822979128
374
py
Python
one_off/PrintN.py
EichlerLab/chm1_scripts
55d1783139f4ccc6e41c79812920785b1eaea65e
[ "MIT" ]
5
2016-04-21T20:00:01.000Z
2020-03-12T16:35:55.000Z
one_off/PrintN.py
EichlerLab/chm1_scripts
55d1783139f4ccc6e41c79812920785b1eaea65e
[ "MIT" ]
null
null
null
one_off/PrintN.py
EichlerLab/chm1_scripts
55d1783139f4ccc6e41c79812920785b1eaea65e
[ "MIT" ]
8
2015-09-15T07:08:06.000Z
2021-07-13T02:25:12.000Z
#!/usr/bin/env python from Bio import SeqIO from Bio import Seq import sys inFile = open(sys.argv[1]) for rec in SeqIO.parse(inFile, "fasta"): i = 0 l = len(rec.seq) while (i < l): j=i while (j < l and rec.seq[j] == 'N'): j += 1 if (j - i > 100000): print r...
19.684211
56
0.47861
#!/usr/bin/env python from Bio import SeqIO from Bio import Seq import sys inFile = open(sys.argv[1]) for rec in SeqIO.parse(inFile, "fasta"): i = 0 l = len(rec.seq) while (i < l): j=i while (j < l and rec.seq[j] == 'N'): j += 1 if (j - i > 100000): print r...
0
0
0
023fa0d4a47b037454b12650fe29d8632094d5ec
1,700
py
Python
appimagebuilder/modules/generate/desktop_entry_parser.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
3
2019-11-01T09:23:59.000Z
2019-11-09T12:03:12.000Z
appimagebuilder/modules/generate/desktop_entry_parser.py
AppImageCrafters/AppImageCraft
a08ae8d300d9632d78865003c974175dcb90ce21
[ "MIT" ]
2
2019-11-01T09:22:01.000Z
2019-11-11T23:25:48.000Z
appimagebuilder/modules/generate/desktop_entry_parser.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
null
null
null
# Copyright 2020 Alexis Lopez Zubieta # # 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 restriction, including without limitation the # rights to use, copy, modify, merge, publi...
33.333333
80
0.672353
# Copyright 2020 Alexis Lopez Zubieta # # 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 restriction, including without limitation the # rights to use, copy, modify, merge, publi...
924
4
49
7fff003dd1008db15361818e0982081c00833b64
2,897
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLX/SGIX/pbuffer.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLX/SGIX/pbuffer.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLX/SGIX/pbuffer.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLX import _types as _cs # End users want this... from OpenGL.raw.GLX._types import * from OpenGL.raw.GLX import _errors from OpenGL.constant import Constant as _C imp...
53.648148
126
0.84087
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLX import _types as _cs # End users want this... from OpenGL.raw.GLX._types import * from OpenGL.raw.GLX import _errors from OpenGL.constant import Constant as _C imp...
272
0
138
f4934137649adf2efbe3798179ec73cdc885b0fe
5,785
py
Python
Max Heap/Max Heap.py
AMshoka/Data-Structures
244171f34b1560befd879adb9d4bc9df7e45b677
[ "MIT" ]
null
null
null
Max Heap/Max Heap.py
AMshoka/Data-Structures
244171f34b1560befd879adb9d4bc9df7e45b677
[ "MIT" ]
null
null
null
Max Heap/Max Heap.py
AMshoka/Data-Structures
244171f34b1560befd879adb9d4bc9df7e45b677
[ "MIT" ]
null
null
null
if __name__ == '__main__': p = HEAP() q = [1, 2, 3] e = [] while True: a = str(input()) q = [] qq = [] senten = "" kk = 0 k = 1 if a[0] == ";": break if a[0] == "+": p.insert(int(a[1:len(a)])) if a[0] == ...
26.782407
77
0.35592
class HEAP(): def __init__(self): self.heap = [0] self.length = 0 def newsort(self, arr): n = len(arr) for i in range(n, -1, -1): self.newcahnge(arr, n, i) self.heap = self.heap + arr def newcahnge(self, arr, n, i): largest = i ...
4,356
-8
398
791ea9e96c297f68ce396e6f9a55d76ca7bc923e
6,944
py
Python
tests/integration/actions/collections/base.py
saito-hideki/ansible-navigator
0a15b83c2a9a548315765360bd19d6fd270862d4
[ "Apache-2.0" ]
null
null
null
tests/integration/actions/collections/base.py
saito-hideki/ansible-navigator
0a15b83c2a9a548315765360bd19d6fd270862d4
[ "Apache-2.0" ]
null
null
null
tests/integration/actions/collections/base.py
saito-hideki/ansible-navigator
0a15b83c2a9a548315765360bd19d6fd270862d4
[ "Apache-2.0" ]
null
null
null
"""Base class for collections interactive tests. """ import difflib import os from typing import Generator import pytest from ....defaults import FIXTURES_COLLECTION_DIR from ..._common import copytree from ..._common import retrieve_fixture_for_step from ..._common import update_fixtures from ..._interactions impor...
37.73913
99
0.650778
"""Base class for collections interactive tests. """ import difflib import os from typing import Generator import pytest from ....defaults import FIXTURES_COLLECTION_DIR from ..._common import copytree from ..._common import retrieve_fixture_for_step from ..._common import update_fixtures from ..._interactions impor...
0
0
0
ed79448d97d004d7d588050e04195e36e732bc3c
18,512
py
Python
heat/engine/scheduler.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/engine/scheduler.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/engine/scheduler.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
# # 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 applicable law or agreed to in writing, software # ...
33.71949
79
0.589077
# # 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 applicable law or agreed to in writing, software # ...
2,476
143
400
42550e85895afdac1435575c647657e02530d5c8
145
py
Python
python/p_lesson_2/task5.py
korwil/lessons
cbeb375cea38e143498979b63e133fdf71bf83bf
[ "Apache-2.0" ]
null
null
null
python/p_lesson_2/task5.py
korwil/lessons
cbeb375cea38e143498979b63e133fdf71bf83bf
[ "Apache-2.0" ]
null
null
null
python/p_lesson_2/task5.py
korwil/lessons
cbeb375cea38e143498979b63e133fdf71bf83bf
[ "Apache-2.0" ]
null
null
null
my_list = [7, 5, 3, 3, 2] i = int(input('Ввидите новый элемент рейтинга: ')) my_list.append(i) my_list.sort() my_list.reverse() print(my_list)
16.111111
50
0.682759
my_list = [7, 5, 3, 3, 2] i = int(input('Ввидите новый элемент рейтинга: ')) my_list.append(i) my_list.sort() my_list.reverse() print(my_list)
0
0
0
c1677580a03f25dfa5be8ea38ddd0f2d37789aca
266
py
Python
mps/__init__.py
kirthevasank/mps
2ba818c361e467841f6bbe0ef47a1e833ef315d3
[ "MIT" ]
3
2019-08-11T22:50:51.000Z
2021-08-03T06:39:04.000Z
mps/__init__.py
kirthevasank/mps
2ba818c361e467841f6bbe0ef47a1e833ef315d3
[ "MIT" ]
null
null
null
mps/__init__.py
kirthevasank/mps
2ba818c361e467841f6bbe0ef47a1e833ef315d3
[ "MIT" ]
3
2019-08-11T22:53:00.000Z
2021-04-15T13:16:43.000Z
""" Library for Adaptive Design of Experiments. -- kandasamy@cs.cmu.edu """ from .exd.goal_oriented_exd import GoalOrientedExperimentDesigner from .exd.worker_manager import get_default_worker_manager from .policies.policy_utils import load_options_for_policy
26.6
65
0.827068
""" Library for Adaptive Design of Experiments. -- kandasamy@cs.cmu.edu """ from .exd.goal_oriented_exd import GoalOrientedExperimentDesigner from .exd.worker_manager import get_default_worker_manager from .policies.policy_utils import load_options_for_policy
0
0
0
fc856399354b9c73dfb9dfa892eb171a4435a463
1,730
py
Python
code/plot_isd_series.py
DonaldWhyte/high-performance-data-processing-in-python
5f0d4155c951155bc6885a4f283eb4044879d0ad
[ "MIT" ]
16
2018-07-26T16:37:19.000Z
2021-08-18T18:34:22.000Z
code/plot_isd_series.py
DonaldWhyte/high-performance-data-processing-in-python-v2
f7f8076ff67d53be09e1d2f9988976e31b92f8e9
[ "MIT" ]
1
2019-12-13T01:18:00.000Z
2019-12-14T16:34:26.000Z
code/plot_isd_series.py
DonaldWhyte/high-performance-data-processing-in-python-v2
f7f8076ff67d53be09e1d2f9988976e31b92f8e9
[ "MIT" ]
5
2019-02-14T14:04:49.000Z
2021-04-20T17:00:37.000Z
import argparse import datetime import h5py import matplotlib.dates as mdates import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': _main()
27.460317
80
0.641618
import argparse import datetime import h5py import matplotlib.dates as mdates import matplotlib.pyplot as plt import numpy as np def _main(): args = _parse_args() input_file = h5py.File(args.input, mode='r') station_indices = np.where(input_file['station_usaf'][:] == args.station)[0] start_dt = arg...
1,511
0
46
049acebb8c48d3aecde2608d0771a2418071fdb1
272
py
Python
wunderground_pws/exceptions.py
pensionado/WUndergroundPWS-API
b92ab56f7efa9396518016325a54b5dd739692c7
[ "MIT" ]
2
2021-01-21T06:43:18.000Z
2021-01-24T22:16:46.000Z
wunderground_pws/exceptions.py
pensionado/WUndergroundPWS-API
b92ab56f7efa9396518016325a54b5dd739692c7
[ "MIT" ]
2
2020-11-10T06:31:38.000Z
2021-05-12T11:13:27.000Z
wunderground_pws/exceptions.py
pensionado/WUndergroundPWS-API
b92ab56f7efa9396518016325a54b5dd739692c7
[ "MIT" ]
1
2020-11-27T06:01:54.000Z
2020-11-27T06:01:54.000Z
# This file is a part of WUnderground PWS Python API # Copyright (c) 2019 Marco Aceti <mail@marcoaceti.it> # See LICENSE file for more details about licensing and copying.
22.666667
64
0.768382
# This file is a part of WUnderground PWS Python API # Copyright (c) 2019 Marco Aceti <mail@marcoaceti.it> # See LICENSE file for more details about licensing and copying. class BadRequestError(Exception): pass class StationIDNotSuppliedError(Exception): pass
0
52
46
94b38ea0159edaa80455392ab3d408ee4fc9866b
1,700
py
Python
analyzer/fast_downward_output_reader.py
FlxB2/Constraint-Based-Automated-Updating-of-Application-Deployment-Models
6b26d46cbbbf01e1a976fa8cc7640f51bb72bdc6
[ "Apache-2.0" ]
2
2019-11-07T15:38:38.000Z
2020-01-29T13:39:51.000Z
analyzer/fast_downward_output_reader.py
FlxB2/Constraint-Based-Automated-Updating-of-Application-Deployment-Models
6b26d46cbbbf01e1a976fa8cc7640f51bb72bdc6
[ "Apache-2.0" ]
null
null
null
analyzer/fast_downward_output_reader.py
FlxB2/Constraint-Based-Automated-Updating-of-Application-Deployment-Models
6b26d46cbbbf01e1a976fa8cc7640f51bb72bdc6
[ "Apache-2.0" ]
1
2021-02-22T12:41:30.000Z
2021-02-22T12:41:30.000Z
from output_reader import Output_Reader from parslet import Parslet from report import Report from report import Plan import re
32.692308
86
0.689412
from output_reader import Output_Reader from parslet import Parslet from report import Report from report import Plan import re class Fast_Downward_Output_Reader(Output_Reader): planner_name = "fast_downward" def __init__(self): self.report = Report("fast_downward", self.planner_name) self.parslets = [Parslet(...
978
572
23
d9c9b6e0f0d017cdace8c697e66763d0f4276fc2
481
py
Python
flags/migrations/0013_add_required_field.py
mdunc/django-flags
7fdb7a67da25df197f53df4bfa06c8e5175944a3
[ "CC0-1.0" ]
142
2018-07-27T15:38:13.000Z
2022-03-19T19:09:44.000Z
flags/migrations/0013_add_required_field.py
mdunc/django-flags
7fdb7a67da25df197f53df4bfa06c8e5175944a3
[ "CC0-1.0" ]
64
2018-06-25T14:21:35.000Z
2022-03-14T17:42:18.000Z
flags/migrations/0013_add_required_field.py
mdunc/django-flags
7fdb7a67da25df197f53df4bfa06c8e5175944a3
[ "CC0-1.0" ]
24
2018-10-09T20:05:36.000Z
2022-03-29T16:34:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-01-29 21:10 from __future__ import unicode_literals from django.db import migrations, models
22.904762
70
0.640333
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-01-29 21:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flags', '0012_replace_migrations_for_wagtail_independence'), ] operations = [ ...
0
301
23
f96d22561095020eb3fd09e08a1f5c0194d75b25
3,365
py
Python
annotate_links_from_mp.py
JosuaCarl/Script_Assisted_Modeling
dbfffe423919461ae6c6f327ef58c121416fda66
[ "Unlicense" ]
null
null
null
annotate_links_from_mp.py
JosuaCarl/Script_Assisted_Modeling
dbfffe423919461ae6c6f327ef58c121416fda66
[ "Unlicense" ]
null
null
null
annotate_links_from_mp.py
JosuaCarl/Script_Assisted_Modeling
dbfffe423919461ae6c6f327ef58c121416fda66
[ "Unlicense" ]
null
null
null
import sys import os import libsbml from tqdm import tqdm ''' Usage: annotate_links_from_mp.py <path_model-polisher_sbml-file> <path_input_sbml-file> <path_output_sbml-file> Extracts annotations form ModelPolisher file and adds it to previous file. ''' if __name__ == '__main__': main(sys.argv)
35.421053
119
0.6211
import sys import os import libsbml from tqdm import tqdm ''' Usage: annotate_links_from_mp.py <path_model-polisher_sbml-file> <path_input_sbml-file> <path_output_sbml-file> Extracts annotations form ModelPolisher file and adds it to previous file. ''' def main(args): # console access if len(args) != 6: ...
3,039
0
23
786c4680122f485f25bc02862c05eea4f34b439a
1,816
py
Python
populating_next_right_pointers_in_each_node.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
5
2015-12-10T14:19:02.000Z
2021-07-02T01:23:34.000Z
populating_next_right_pointers_in_each_node.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
null
null
null
populating_next_right_pointers_in_each_node.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
1
2015-10-01T01:43:14.000Z
2015-10-01T01:43:14.000Z
#! /usr/bin/env python3 """ http://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/ Since Apr-10-2014 18:33 """ # Definition for a binary tree node # @param root, a tree node # @return nothing if __name__ == '__main__': s = Solution() n1 = TreeNode(1) n2 = TreeNode(2) ...
26.705882
76
0.520925
#! /usr/bin/env python3 """ http://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/ Since Apr-10-2014 18:33 """ # Definition for a binary tree node class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None self.next = None clas...
1,035
-12
97
3ecfb0be4068066f7e531124ca2573a89798a3e0
791
py
Python
others/python/download-music/Main.py
HuaZhuangNan/study-note
342210b7718af2182769a2e1c0408139ed45ea45
[ "MIT" ]
null
null
null
others/python/download-music/Main.py
HuaZhuangNan/study-note
342210b7718af2182769a2e1c0408139ed45ea45
[ "MIT" ]
5
2020-05-16T08:15:49.000Z
2020-05-16T08:15:57.000Z
others/python/download-music/Main.py
HuaZhuangNan/study-note
342210b7718af2182769a2e1c0408139ed45ea45
[ "MIT" ]
null
null
null
# 主函数 import os # 自写 import Tools # 设置需要爬取的页面 BASE_URL = 'http://www.9ku.com' CHILD_URLS = ['/douyin/bang.htm','/douyin/new.htm','/douyin/zhongwen.htm','/douyin/bgm.htm', '/laoge/500shou.htm','/laoge/80.htm','/laoge/70.htm', '/wangluo/zuixin.htm','/wangluo/haoting.htm'] SAVE_PATH = os.pat...
30.423077
92
0.633375
# 主函数 import os # 自写 import Tools # 设置需要爬取的页面 BASE_URL = 'http://www.9ku.com' CHILD_URLS = ['/douyin/bang.htm','/douyin/new.htm','/douyin/zhongwen.htm','/douyin/bgm.htm', '/laoge/500shou.htm','/laoge/80.htm','/laoge/70.htm', '/wangluo/zuixin.htm','/wangluo/haoting.htm'] SAVE_PATH = os.pat...
0
0
0
f8dfd2b065c6ea80a4523e86440243d52c924aa2
414
py
Python
profiles/migrations/New folder/0042_profile_last_login.py
Rxavio/link
a0aa34b89a769cfaa20a92a04980e142e42eaa10
[ "MIT" ]
null
null
null
profiles/migrations/New folder/0042_profile_last_login.py
Rxavio/link
a0aa34b89a769cfaa20a92a04980e142e42eaa10
[ "MIT" ]
null
null
null
profiles/migrations/New folder/0042_profile_last_login.py
Rxavio/link
a0aa34b89a769cfaa20a92a04980e142e42eaa10
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-11-03 07:48 from django.db import migrations, models
21.789474
81
0.611111
# Generated by Django 3.0.3 on 2020-11-03 07:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0041_delete_user'), ] operations = [ migrations.AddField( model_name='profile', name='last_login', ...
0
300
23
bc5ac4759e8d4cc7afce05aa2795261d2b4d89a1
6,538
py
Python
src/main/python/metrics.py
SzatmariA/CharmFL-dev
542faf0ddeccfd714fac44c27c949343807e3e84
[ "Apache-2.0" ]
null
null
null
src/main/python/metrics.py
SzatmariA/CharmFL-dev
542faf0ddeccfd714fac44c27c949343807e3e84
[ "Apache-2.0" ]
5
2021-12-06T13:49:42.000Z
2021-12-09T17:12:58.000Z
src/main/python/metrics.py
SzatmariA/CharmFL-dev
542faf0ddeccfd714fac44c27c949343807e3e84
[ "Apache-2.0" ]
null
null
null
import json import math import collections import sys scores = [] elements = [] end_res = {"files": []}
39.865854
169
0.51346
import json import math import collections import sys scores = [] elements = [] end_res = {"files": []} def make_score_json(basic_statistics, method_cov="", class_cov=""): print(basic_statistics) idx = 0 for element in basic_statistics: element_parts = str(element).split(":") filename = e...
6,337
0
92
74b4729b313564d5aee966b517601a9406da940e
2,374
py
Python
check_yt_models.py
itmagistr/check_yt_videos
494055d8de35d0b92ea1ce8ad6f28cec3e931bf0
[ "MIT" ]
null
null
null
check_yt_models.py
itmagistr/check_yt_videos
494055d8de35d0b92ea1ce8ad6f28cec3e931bf0
[ "MIT" ]
null
null
null
check_yt_models.py
itmagistr/check_yt_videos
494055d8de35d0b92ea1ce8ad6f28cec3e931bf0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pony import orm import pony.orm.dbproviders.sqlite import datetime #orm.set_sql_debug(True) db = orm.Database() @db.on_connect(provider='sqlite') db.bind(provider='sqlite', filename='checkytdb.sqlite', create_db=True) db.generate_mapping(create_tables=True)
28.261905
72
0.70893
# -*- coding: utf-8 -*- from pony import orm import pony.orm.dbproviders.sqlite import datetime #orm.set_sql_debug(True) db = orm.Database() @db.on_connect(provider='sqlite') def sqlite_case_sensitivity(db, connection): cursor = connection.cursor() cursor.execute('PRAGMA case_sensitive_like = OFF...
113
1,828
172
54ab102b093600f6e7485976e744c570afdd69fc
4,395
py
Python
flaskerize/generate_test.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
1
2020-11-29T13:00:48.000Z
2020-11-29T13:00:48.000Z
flaskerize/generate_test.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
null
null
null
flaskerize/generate_test.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import patch, MagicMock from dataclasses import dataclass @patch("flaskerize.generate._generate") @patch("flaskerize.generate._generate") @patch("flaskerize.generate._generate") @patch("flaskerize.generate._generate") @patch("flaskerize.generate._generate") @patch("flaskerize.generate._g...
26.160714
85
0.686689
from unittest.mock import patch, MagicMock from dataclasses import dataclass @patch("flaskerize.generate._generate") def test_hello_world(_generate: MagicMock): from flaskerize.generate import hello_world @dataclass class Args: dry_run: bool = True output_name: str = "output_name" ...
3,837
0
224
10bdb9bf956904116b4dfbed6f6582955e14d480
1,095
py
Python
scripts/sanity_check.py
tailintalent/PDE-Control
7031909188e7ce217da2b1628236011d1dff161a
[ "MIT" ]
22
2020-04-27T12:48:32.000Z
2022-03-23T10:41:48.000Z
scripts/sanity_check.py
tailintalent/PDE-Control
7031909188e7ce217da2b1628236011d1dff161a
[ "MIT" ]
5
2020-12-18T14:19:23.000Z
2022-01-22T18:29:27.000Z
scripts/sanity_check.py
tailintalent/PDE-Control
7031909188e7ce217da2b1628236011d1dff161a
[ "MIT" ]
3
2021-05-29T23:30:53.000Z
2022-02-14T06:30:32.000Z
import numpy as np from phi.flow import Scene from control.control_training import ControlTraining from control.pde.value import IncrementPDE # Data generation from control.sequences import StaggeredSequence if len(Scene.list('~/phi/data/value')) == 0: scene = Scene.create('~/phi/data/value') for frame in ...
34.21875
153
0.603653
import numpy as np from phi.flow import Scene from control.control_training import ControlTraining from control.pde.value import IncrementPDE # Data generation from control.sequences import StaggeredSequence if len(Scene.list('~/phi/data/value')) == 0: scene = Scene.create('~/phi/data/value') for frame in ...
0
0
0
002015c413482da7bc83b9a1f981f857cad976bb
1,338
py
Python
SimpleCrawler/main.py
swalter2/SimpleWebCrawler
809d65f3796ef813e609defbb29de13a5abc78b9
[ "MIT" ]
1
2019-11-23T20:46:33.000Z
2019-11-23T20:46:33.000Z
SimpleCrawler/main.py
swalter2/SimpleWebCrawler
809d65f3796ef813e609defbb29de13a5abc78b9
[ "MIT" ]
null
null
null
SimpleCrawler/main.py
swalter2/SimpleWebCrawler
809d65f3796ef813e609defbb29de13a5abc78b9
[ "MIT" ]
null
null
null
import threading from queue import Queue from spider import Spider from domain import * from general import * PROJECT_NAME = 'sebastianwalter' HOMEPAGE = 'http://sebastianwalter.org' DOMAIN_NAME = get_domain_name(HOMEPAGE) QUEUE_FILE = PROJECT_NAME + '/queue.txt' CRAWLED_FILE = PROJECT_NAME + '/crawled.txt' NUMBER_OF_...
25.730769
98
0.707025
import threading from queue import Queue from spider import Spider from domain import * from general import * PROJECT_NAME = 'sebastianwalter' HOMEPAGE = 'http://sebastianwalter.org' DOMAIN_NAME = get_domain_name(HOMEPAGE) QUEUE_FILE = PROJECT_NAME + '/queue.txt' CRAWLED_FILE = PROJECT_NAME + '/crawled.txt' NUMBER_OF_...
512
0
88
117b244b1bb860223f57a6548aaf96d0c3c9bacb
279
py
Python
conferences/music-generation-with-magenta/code/constants.py
dubreuia/alexandredubreuil.com
58e6001a59a8f89b7c47a1db136db5d2deecff8f
[ "MIT" ]
5
2018-10-21T14:46:41.000Z
2021-06-09T07:44:57.000Z
conferences/music-generation-with-magenta/code/constants.py
dubreuia/alexandredubreuil.com
58e6001a59a8f89b7c47a1db136db5d2deecff8f
[ "MIT" ]
25
2018-12-23T14:39:53.000Z
2019-01-09T18:18:06.000Z
conferences/music-generation-with-magenta/code/constants.py
dubreuia/alexandredubreuil.com
58e6001a59a8f89b7c47a1db136db5d2deecff8f
[ "MIT" ]
4
2019-11-18T15:14:42.000Z
2021-05-30T15:34:36.000Z
# MIDI input and output ports, on windows you'll have to # start them manually using LoopMIDI or another software MIDI_INPUT_PORT: str = "magenta_in" MIDI_OUTPUT_PORT: str = "magenta_out" # The server GUI for the app WS_SERVER_HOST: str = "127.0.0.1" WS_SERVER_PORT: int = 5000
31
56
0.763441
# MIDI input and output ports, on windows you'll have to # start them manually using LoopMIDI or another software MIDI_INPUT_PORT: str = "magenta_in" MIDI_OUTPUT_PORT: str = "magenta_out" # The server GUI for the app WS_SERVER_HOST: str = "127.0.0.1" WS_SERVER_PORT: int = 5000
0
0
0
e686935425f18c2e82734e79e80bde699dd8d70b
47,167
py
Python
toontown/catalog/CatalogGenerator.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/catalog/CatalogGenerator.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/catalog/CatalogGenerator.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from direct.directnotify import DirectNotifyGlobal from . import CatalogItem from . import CatalogItemList from .CatalogFurnitureItem import CatalogFurnitureItem, nextAvailableCloset, getAllClosets, get50ItemCloset, getMaxClosets, get50ItemTrunk from .CatalogAnimatedFurnitureItem import CatalogAnimatedFurnitureItem fro...
26.409295
1,142
0.675769
from direct.directnotify import DirectNotifyGlobal from . import CatalogItem from . import CatalogItemList from .CatalogFurnitureItem import CatalogFurnitureItem, nextAvailableCloset, getAllClosets, get50ItemCloset, getMaxClosets, get50ItemTrunk from .CatalogAnimatedFurnitureItem import CatalogAnimatedFurnitureItem fro...
11,414
501
96
d7e685e25847c70888dc9247ac164cc4f73998bb
1,908
py
Python
app.py
CERTOS/OLD_CAR_PRICE_PRIDICTOR
825fe70498758ab8fb8dc63aaad48ae3e7267063
[ "MIT" ]
null
null
null
app.py
CERTOS/OLD_CAR_PRICE_PRIDICTOR
825fe70498758ab8fb8dc63aaad48ae3e7267063
[ "MIT" ]
null
null
null
app.py
CERTOS/OLD_CAR_PRICE_PRIDICTOR
825fe70498758ab8fb8dc63aaad48ae3e7267063
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import traceback from flask import Flask, request, jsonify, render_template import pickle app = Flask(__name__) model = pickle.load(open("model.pkl", "rb")) modelcol = pickle.load(open("modelcol.pkl", "rb")) @app.route('/') @app.route('/predict', methods = ["POST"]) if __name__ ...
41.478261
163
0.654612
import numpy as np import pandas as pd import traceback from flask import Flask, request, jsonify, render_template import pickle app = Flask(__name__) model = pickle.load(open("model.pkl", "rb")) modelcol = pickle.load(open("modelcol.pkl", "rb")) @app.route('/') def home(): return render_template('home.html') @app....
1,507
0
44
f5aed6199b492b830aa837be3309a538dcf238ac
277
py
Python
pyp/model/package_search.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
pyp/model/package_search.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
pyp/model/package_search.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'liying'
18.466667
37
0.606498
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'liying' class SearchPackage(object): def __init__(self): self.package = None self.version = None self.is_installed = False self.installed_version = None self.summary = None
154
7
49
0d4b1fb3b25bb7d5c41da086fba874a625421aba
983
py
Python
backend/cabrenter/use_cases/driver_workspace.py
Sruinard/clean_architecture
1e1af499c9503c525237c21a035ad62d9b286703
[ "MIT" ]
null
null
null
backend/cabrenter/use_cases/driver_workspace.py
Sruinard/clean_architecture
1e1af499c9503c525237c21a035ad62d9b286703
[ "MIT" ]
null
null
null
backend/cabrenter/use_cases/driver_workspace.py
Sruinard/clean_architecture
1e1af499c9503c525237c21a035ad62d9b286703
[ "MIT" ]
null
null
null
# File containing the driver workspace usecase. from typing import List from cabrenter.entities.cab import Cab from cabrenter.use_cases.driver_workspace_repo_interface import \ DriverWorkspaceRepoInterface
26.567568
93
0.603255
# File containing the driver workspace usecase. from typing import List from cabrenter.entities.cab import Cab from cabrenter.use_cases.driver_workspace_repo_interface import \ DriverWorkspaceRepoInterface class DriverWorkspace: def __init__(self, repo: DriverWorkspaceRepoInterface): self.repo = repo...
639
1
130
7325c9b36bfb425bfecf7e4b629a5231603b949b
16,113
py
Python
tests/depthai_feature_tracker_test.py
jonathandao0/depthai-frc
9f1b4fc9e049f252e5f8fc53da02b9ed43d80b5a
[ "MIT" ]
3
2021-11-23T17:00:55.000Z
2022-02-17T20:23:50.000Z
tests/depthai_feature_tracker_test.py
jonathandao0/depthai-frc
9f1b4fc9e049f252e5f8fc53da02b9ed43d80b5a
[ "MIT" ]
null
null
null
tests/depthai_feature_tracker_test.py
jonathandao0/depthai-frc
9f1b4fc9e049f252e5f8fc53da02b9ed43d80b5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import uuid from pathlib import Path import cv2 import depthai as dai from collections import deque import numpy as np from common.camera_info import H_CR from common.config import NNConfig # Create pipeline pipeline = dai.Pipeline() # Define sources and outputs monoLeft = pipeline.create(...
45.516949
179
0.695587
#!/usr/bin/env python3 import uuid from pathlib import Path import cv2 import depthai as dai from collections import deque import numpy as np from common.camera_info import H_CR from common.config import NNConfig class FeatureTrackerDrawer: lineColor = (200, 0, 200) pointColor = (0, 0, 255) circleRadi...
2,732
371
49
ee21d886c34500569b538bc7b95c98867b24da14
698
py
Python
database_api/trans.py
shenhao-stu/2021_computer_design
8729c1962a0aeaa12888092dda5d00723f62aad2
[ "MIT" ]
3
2021-03-29T08:25:29.000Z
2021-09-17T22:45:18.000Z
database_api/trans.py
shenhao-stu/2021_computer_design
8729c1962a0aeaa12888092dda5d00723f62aad2
[ "MIT" ]
null
null
null
database_api/trans.py
shenhao-stu/2021_computer_design
8729c1962a0aeaa12888092dda5d00723f62aad2
[ "MIT" ]
1
2022-02-22T02:15:51.000Z
2022-02-22T02:15:51.000Z
# -*- coding: utf-8 -*- import os from zhconv import convert_for_mw POETRY_DIRECTORY = './add_poetry/' if __name__ == "__main__": main()
22.516129
58
0.643266
# -*- coding: utf-8 -*- import os from zhconv import convert_for_mw POETRY_DIRECTORY = './add_poetry/' def trans(name): file_path = os.path.join(POETRY_DIRECTORY, name) raw = open(file_path, 'r', encoding='utf-8').read() content = convert_for_mw(raw, 'zh-cn') output_path = os.path.join('./simplify...
506
0
46
b0026b2e12d68083a5ae7f36061f36b93208b27e
766
py
Python
day02/python/haro87/solution.py
clssn/aoc-2019
a978e5235855be937e60a1e7f88d1ef9b541be15
[ "MIT" ]
22
2019-11-27T08:28:46.000Z
2021-04-27T05:37:08.000Z
day02/python/haro87/solution.py
sancho1241/aoc-2019
e0f63824c8250e0f84a42805e1a7ff7d9232002c
[ "MIT" ]
77
2019-11-16T17:22:42.000Z
2021-05-10T20:36:36.000Z
day02/python/haro87/solution.py
sancho1241/aoc-2019
e0f63824c8250e0f84a42805e1a7ff7d9232002c
[ "MIT" ]
43
2019-11-27T06:36:51.000Z
2021-11-03T20:56:48.000Z
import random from enterprise import MontgomeryScott as Scotty scotty = Scotty() part_one() part_two()
26.413793
65
0.573107
import random from enterprise import MontgomeryScott as Scotty scotty = Scotty() def part_one(): with open('input.txt', "r") as commands: trans = scotty.translate(commands.read()) res = scotty.execute(trans) print('Part one, Scotty says: {0}'.format(res[0])) def part_two(): with open...
610
0
46
c99f7d28fc926a310b7c4b20fdf1a95a6f1ea5a6
3,189
py
Python
challenge/tests/test_models.py
AlonViz/IML.HUJI
107f7c20b8bd64d41452e4a5b66abe843af7eb18
[ "MIT" ]
null
null
null
challenge/tests/test_models.py
AlonViz/IML.HUJI
107f7c20b8bd64d41452e4a5b66abe843af7eb18
[ "MIT" ]
null
null
null
challenge/tests/test_models.py
AlonViz/IML.HUJI
107f7c20b8bd64d41452e4a5b66abe843af7eb18
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.ensemble import BaggingClassifier, AdaBoostClassifier from sklearn.metrics import f1_score from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from IMLearn.metalearners import AdaBoost from IMLearn.learners.classifiers ...
43.684932
119
0.698024
import numpy as np import pandas as pd from sklearn.ensemble import BaggingClassifier, AdaBoostClassifier from sklearn.metrics import f1_score from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from IMLearn.metalearners import AdaBoost from IMLearn.learners.classifiers ...
2,602
0
92
b64c5b639d8371e5632dc38caecdddb678b0b98c
348
py
Python
schedules/views.py
zippy1981/student-course-management-system
f5b32695c4b67eb0b7697236e0d916712b5fe5e8
[ "MIT" ]
null
null
null
schedules/views.py
zippy1981/student-course-management-system
f5b32695c4b67eb0b7697236e0d916712b5fe5e8
[ "MIT" ]
5
2019-03-04T12:23:58.000Z
2021-06-10T21:15:42.000Z
schedules/views.py
zippy1981/student-course-management-system
f5b32695c4b67eb0b7697236e0d916712b5fe5e8
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from scms import models # Create your views here.
26.769231
64
0.775862
from django.shortcuts import render from django.http import HttpResponse from scms import models # Create your views here. def index(request): return HttpResponse("Welcome to the scheduler") def get_schedule(request, schedule_id): schedule = models.StudentCourseEnrollment.objects.filter('') return HttpR...
178
0
46
7ceb2f302eaee2850e7a46e0c53fed87c1eb1e44
3,134
py
Python
scripts/convert-requirements-to-conda-yml.py
testacc-art/invest
8f34712f89b8245ed7a4593b833d7d7a7d5e0c6e
[ "BSD-3-Clause" ]
6
2020-02-26T16:31:42.000Z
2022-02-28T21:10:25.000Z
scripts/convert-requirements-to-conda-yml.py
testacc-art/invest
8f34712f89b8245ed7a4593b833d7d7a7d5e0c6e
[ "BSD-3-Clause" ]
28
2020-04-09T23:39:38.000Z
2020-04-17T00:30:47.000Z
scripts/convert-requirements-to-conda-yml.py
testacc-art/invest
8f34712f89b8245ed7a4593b833d7d7a7d5e0c6e
[ "BSD-3-Clause" ]
7
2020-02-26T16:31:47.000Z
2022-03-14T12:06:21.000Z
# encoding=UTF-8 """convert-requirements-to-conda-yml.py""" import sys import argparse import pkg_resources import requests FEEDSTOCK_URL = 'https://github.com/conda-forge/{package}-feedstock' YML_TEMPLATE = """channels: - conda-forge - defaults dependencies: {conda_dependencies} {pip_dependencies} """ SCM_MAP = {...
31.656566
79
0.600191
# encoding=UTF-8 """convert-requirements-to-conda-yml.py""" import sys import argparse import pkg_resources import requests FEEDSTOCK_URL = 'https://github.com/conda-forge/{package}-feedstock' YML_TEMPLATE = """channels: - conda-forge - defaults dependencies: {conda_dependencies} {pip_dependencies} """ SCM_MAP = {...
0
0
0
d7c39d2813ea1f522ec712f74c8ea15ae5e10069
2,827
py
Python
Authlib-0.14.3/authlib/integrations/sqla_oauth1/mixins.py
yishan1331/heroku-yishan-paas
bd46bc8c067999b1dfb83b863b5ba64e76933d0a
[ "MIT" ]
null
null
null
Authlib-0.14.3/authlib/integrations/sqla_oauth1/mixins.py
yishan1331/heroku-yishan-paas
bd46bc8c067999b1dfb83b863b5ba64e76933d0a
[ "MIT" ]
null
null
null
Authlib-0.14.3/authlib/integrations/sqla_oauth1/mixins.py
yishan1331/heroku-yishan-paas
bd46bc8c067999b1dfb83b863b5ba64e76933d0a
[ "MIT" ]
null
null
null
from sqlalchemy import Column, UniqueConstraint from sqlalchemy import String, Integer, Text from authlib.oauth1 import ( ClientMixin, TemporaryCredentialMixin, TokenCredentialMixin, )
28.846939
71
0.673152
from sqlalchemy import Column, UniqueConstraint from sqlalchemy import String, Integer, Text from authlib.oauth1 import ( ClientMixin, TemporaryCredentialMixin, TokenCredentialMixin, ) class OAuth1ClientMixin(ClientMixin): client_id = Column(String(48), index=True) client_secret = Column(String(12...
749
1,785
92
1d189dbf5ee2d703ac3352a53f49729be3406d64
7,224
py
Python
compiler.py
CoderDuino/PyVM
b230b0157b0c74350f982101c6a9f7677985e460
[ "MIT" ]
null
null
null
compiler.py
CoderDuino/PyVM
b230b0157b0c74350f982101c6a9f7677985e460
[ "MIT" ]
null
null
null
compiler.py
CoderDuino/PyVM
b230b0157b0c74350f982101c6a9f7677985e460
[ "MIT" ]
null
null
null
# Higher Class Language compiler for PYVM # transpiles a tiny language to ppvm for assembler # # By: Ari Stehney # import sys import os import time import crayons at_compiler_tags = dict() at_stack = dict() at_functions = dict() at_includes = dict() filename1 = sys.argv[1] filename2 = sys.argv[2] print(crayons.cya...
44.592593
179
0.447536
# Higher Class Language compiler for PYVM # transpiles a tiny language to ppvm for assembler # # By: Ari Stehney # import sys import os import time import crayons at_compiler_tags = dict() at_stack = dict() at_functions = dict() at_includes = dict() def CompileCode(inputcode): if not inputcode.count(';')>=(input...
6,484
0
23
28a233230863b74a3a75556f507392efc0e36273
2,136
py
Python
multiselect/multiselect_example.py
DovaX/multiselect
eff3e6c8959ade59760ebaf25fb2e09efcb896da
[ "MIT" ]
null
null
null
multiselect/multiselect_example.py
DovaX/multiselect
eff3e6c8959ade59760ebaf25fb2e09efcb896da
[ "MIT" ]
null
null
null
multiselect/multiselect_example.py
DovaX/multiselect
eff3e6c8959ade59760ebaf25fb2e09efcb896da
[ "MIT" ]
null
null
null
from multiselect_core import Multiselect fruits=["Apple","Pear","Apricot","Banana","Orange","Raspberry","Blueberry","Kiwi","Pineapple"] fruit_multiselect=[{"key":"Apple","value":False},{"key":"Pear","value":False},{"key":"Apricot","value":True},{"key":"Banana","value":False}, {"key":"Orange","value...
44.5
301
0.669476
from multiselect_core import Multiselect fruits=["Apple","Pear","Apricot","Banana","Orange","Raspberry","Blueberry","Kiwi","Pineapple"] fruit_multiselect=[{"key":"Apple","value":False},{"key":"Pear","value":False},{"key":"Apricot","value":True},{"key":"Banana","value":False}, {"key":"Orange","value...
0
0
0
0a94c0ab70cc9ecc06f54960ea05b5ab41ec04e6
100,345
py
Python
game/content/ghplots/dd_roadedge_propp.py
fmunoz-geo/gearhead-caramel
315835481d543420826439245be01460fe6dd81b
[ "Apache-2.0" ]
74
2015-03-09T00:33:09.000Z
2022-02-25T20:28:27.000Z
game/content/ghplots/dd_roadedge_propp.py
fmunoz-geo/gearhead-caramel
315835481d543420826439245be01460fe6dd81b
[ "Apache-2.0" ]
108
2017-12-30T20:26:12.000Z
2021-01-16T12:37:00.000Z
game/content/ghplots/dd_roadedge_propp.py
CartoonFan/gearhead-caramel
61995f382923695176ab7a65253f42e849e0c4d7
[ "Apache-2.0" ]
61
2018-03-03T09:55:31.000Z
2022-03-18T17:28:33.000Z
import collections import random import game.content import gears import pbge from game.content import gharchitecture from game.content.ghplots import missionbuilder from game.ghdialogue import context from pbge.dialogue import Offer, ContextTag from pbge.plots import Plot from . import dd_customobjectives from game ...
58.340116
357
0.697534
import collections import random import game.content import gears import pbge from game.content import gharchitecture from game.content.ghplots import missionbuilder from game.ghdialogue import context from pbge.dialogue import Offer, ContextTag from pbge.plots import Plot from . import dd_customobjectives from game ...
30,598
65,585
1,228
adf0cf1b25d9083e348f10c214c70425e32a7a4e
5,997
py
Python
nflsim/core.py
dmparker0/nflsim
0f553772c06574ab9fa5f6ed42fdf3cbab0b2ada
[ "MIT" ]
9
2020-09-09T01:58:15.000Z
2022-01-30T22:03:21.000Z
nflsim/core.py
dmparker0/nflsim
0f553772c06574ab9fa5f6ed42fdf3cbab0b2ada
[ "MIT" ]
2
2020-11-25T22:51:57.000Z
2021-05-30T21:40:58.000Z
nflsim/core.py
dmparker0/nflsim
0f553772c06574ab9fa5f6ed42fdf3cbab0b2ada
[ "MIT" ]
1
2021-05-31T20:10:00.000Z
2021-05-31T20:10:00.000Z
from .gamedata import getTeams, getScores, adjustScores from .pwr import PWRsystems from .regression import Regression from .simulate import simulateBracket, simulateGame, simulateGamelog from .teams import Team, Teams from .tiebreak import getPlayoffSeeding from .util import playoff_game_ids from joblib import ...
49.561983
138
0.628981
from .gamedata import getTeams, getScores, adjustScores from .pwr import PWRsystems from .regression import Regression from .simulate import simulateBracket, simulateGame, simulateGamelog from .teams import Team, Teams from .tiebreak import getPlayoffSeeding from .util import playoff_game_ids from joblib import ...
5,132
11
435
55b7f0e163ddec5695f80f3757b1a0fc5f29815a
1,367
py
Python
Day1/Tower of Hanoi.py
manvi0308/IIEC-Rise
d2eb68ef60d95b2c1f5e6eb12d623a1fc20c1c99
[ "MIT" ]
34
2020-09-06T11:04:29.000Z
2021-11-26T18:25:21.000Z
Day1/Tower of Hanoi.py
mehul523/100DaysOfAlgo
d0cbab7ac513010dcf9bf6045304b559669e713f
[ "MIT" ]
null
null
null
Day1/Tower of Hanoi.py
mehul523/100DaysOfAlgo
d0cbab7ac513010dcf9bf6045304b559669e713f
[ "MIT" ]
10
2020-09-08T05:26:42.000Z
2022-03-06T08:33:39.000Z
''' Problem Tower of Hanoi: About: Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules: 1) Only one disk can be moved at a time. 2) Each move consists of taking the upper disk from one of...
54.68
192
0.733723
''' Problem Tower of Hanoi: About: Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules: 1) Only one disk can be moved at a time. 2) Each move consists of taking the upper disk from one of...
333
0
22
6814b5634f8d6bbbbd39edc3e1952b13d7077200
2,825
py
Python
Scripts/simulation/whims/whim_modifiers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/whims/whim_modifiers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/whims/whim_modifiers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\whims\whim_modifiers.py # Compiled at: 2020-10-08 02:43:22 # Size of source mod 2**32: 3151 bytes fr...
49.561404
224
0.720708
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\whims\whim_modifiers.py # Compiled at: 2020-10-08 02:43:22 # Size of source mod 2**32: 3151 bytes fr...
924
1,096
46
f43483984e6004e8a3d58af1c634394171917a55
9,326
py
Python
pl_examples/domain_templates/imagenet.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
2
2021-06-24T11:46:53.000Z
2021-06-24T13:29:50.000Z
pl_examples/domain_templates/imagenet.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
null
null
null
pl_examples/domain_templates/imagenet.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
1
2022-03-21T18:37:54.000Z
2022-03-21T18:37:54.000Z
""" This example is largely adapted from https://github.com/pytorch/examples/blob/master/imagenet/main.py Before you can run this example, you will need to download the ImageNet dataset manually from the `official website <http://image-net.org/download>`_ and place it into a folder `path/to/imagenet`. Train on ImageN...
34.540741
105
0.592644
""" This example is largely adapted from https://github.com/pytorch/examples/blob/master/imagenet/main.py Before you can run this example, you will need to download the ImageNet dataset manually from the `official website <http://image-net.org/download>`_ and place it into a folder `path/to/imagenet`. Train on ImageN...
6,985
1,206
69
c01fa5121c03125800f80723022eac843d3bcdf4
5,732
py
Python
depiction/interpreters/backprop/backpropeter.py
IBM/dl-interpretability-compbio
3b13394f2dd9614736b4183b407a938a2c5924ac
[ "Apache-2.0" ]
23
2019-07-10T08:35:11.000Z
2019-11-20T13:53:01.000Z
depiction/interpreters/backprop/backpropeter.py
IBM/dl-interpretability-compbio
3b13394f2dd9614736b4183b407a938a2c5924ac
[ "Apache-2.0" ]
31
2019-07-03T17:08:31.000Z
2019-11-21T12:45:56.000Z
depiction/interpreters/backprop/backpropeter.py
IBM/dl-interpretability-compbio
3b13394f2dd9614736b4183b407a938a2c5924ac
[ "Apache-2.0" ]
13
2019-07-12T18:45:19.000Z
2019-11-20T16:25:20.000Z
"""Backpropagation-like methods for interpretability Wrapper around: - (pytorch) Captum [1] - (keras) DeepExplain [2] References: [1] https://captum.ai/ [2] https://arxiv.org/abs/1711.06104 """ from captum.attr import IntegratedGradients, Saliency, DeepLift,\ DeepLiftShap, GradientShap...
41.839416
138
0.643405
"""Backpropagation-like methods for interpretability Wrapper around: - (pytorch) Captum [1] - (keras) DeepExplain [2] References: [1] https://captum.ai/ [2] https://arxiv.org/abs/1711.06104 """ from captum.attr import IntegratedGradients, Saliency, DeepLift,\ DeepLiftShap, GradientShap...
362
0
49
22256049dcfca1c7af345fd800b4907f4a380a80
4,385
py
Python
honeywell_home/models/thermostat_settings_special_mode.py
dbarentine/udi-honeywellhome-poly
e89a3ff0e9a379d399813d42bf85e7c1215f6bc3
[ "MIT" ]
1
2019-12-19T18:57:17.000Z
2019-12-19T18:57:17.000Z
honeywell_home/models/thermostat_settings_special_mode.py
dbarentine/udi-honeywellhome-poly
e89a3ff0e9a379d399813d42bf85e7c1215f6bc3
[ "MIT" ]
9
2020-03-01T19:51:06.000Z
2021-09-27T21:16:36.000Z
honeywell_home/models/thermostat_settings_special_mode.py
dbarentine/udi-honeywellhome-poly
e89a3ff0e9a379d399813d42bf85e7c1215f6bc3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Honeywell Home No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six ...
31.546763
124
0.635576
# coding: utf-8 """ Honeywell Home No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six ...
0
0
0
444bba6b1ee4efb066d7ddc6272d1b7241bfc0d0
2,094
py
Python
fn_digital_shadows_search/fn_digital_shadows_search/util/selftest.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_digital_shadows_search/fn_digital_shadows_search/util/selftest.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_digital_shadows_search/fn_digital_shadows_search/util/selftest.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. # -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use, line-too-long """Function implementation test with: resilient-circuits selftest -l fn_digital_shadows_search """ import logging import json import requests from requests.auth imp...
30.347826
138
0.650907
# (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. # -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use, line-too-long """Function implementation test with: resilient-circuits selftest -l fn_digital_shadows_search """ import logging import json import requests from requests.auth imp...
0
0
0
88cbd3acd9ed6a668495057db08343cd131fe3ca
666
py
Python
src/rezide/get_tree.py
abstractlyZach/magic-tiler
42ff84bc9d2cde19d7818512033cd472e738950e
[ "MIT" ]
8
2021-07-30T05:49:07.000Z
2022-01-26T22:03:40.000Z
src/rezide/get_tree.py
abstractlyZach/magic-tiler
42ff84bc9d2cde19d7818512033cd472e738950e
[ "MIT" ]
37
2021-05-16T20:31:50.000Z
2021-07-14T01:28:57.000Z
src/rezide/get_tree.py
abstractlyZach/magic-tiler
42ff84bc9d2cde19d7818512033cd472e738950e
[ "MIT" ]
2
2021-07-30T02:44:30.000Z
2021-09-10T20:46:16.000Z
import click from rezide.utils import interfaces from rezide.utils import sway @click.command()
30.272727
77
0.651652
import click from rezide.utils import interfaces from rezide.utils import sway def print_tree(window_manager: interfaces.TilingWindowManager) -> None: for node in window_manager.get_tree(): click.echo(click.style(node.name, fg="green", bold=True)) click.echo(f"x, y: ({node.rect.x}, {node.rect.y})...
521
0
45
ee8d6bdbc61700c123e8b8a143764159c53a10af
1,038
py
Python
tests/test_cli.py
gomjellie/gksdud
d157a6400c95abd2f9abb89c5fa5b8d617b5a99d
[ "MIT" ]
null
null
null
tests/test_cli.py
gomjellie/gksdud
d157a6400c95abd2f9abb89c5fa5b8d617b5a99d
[ "MIT" ]
2
2019-12-31T13:49:51.000Z
2019-12-31T13:49:51.000Z
tests/test_cli.py
gomjellie/gksdud
d157a6400c95abd2f9abb89c5fa5b8d617b5a99d
[ "MIT" ]
null
null
null
import unittest from click.testing import CliRunner import gksdud if __name__ == '__main__': unittest.main()
23.590909
83
0.594412
import unittest from click.testing import CliRunner import gksdud class CliTest(unittest.TestCase): def setUp(self): self.runner = CliRunner() @classmethod def output2str(cls, output): return output.replace('\n', '') @unittest.skip("kor2eng 가 먼저 구현되어야 가능함") def test_cli_kor2eng(...
76
882
23
537daa5e0bc09f4e93fc18a37ea5c8da376052d8
2,600
py
Python
sandbox/graph-partition-separate.py
maarten1983/khmer
417aaa57f0659685c01887a6910de1c08d0a73e5
[ "BSD-3-Clause" ]
1
2019-11-02T15:12:44.000Z
2019-11-02T15:12:44.000Z
sandbox/graph-partition-separate.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
sandbox/graph-partition-separate.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python2 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # import sys MAX_SIZE = 50000 if __name__ == '__main__': ...
27.956989
77
0.58
#! /usr/bin/env python2 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # import sys MAX_SIZE = 50000 def read_partition_file(fp)...
569
0
23
b8da6bf98c68b5a2c55e89d035b8d0aac755d228
7,556
py
Python
qLib/statistics.py
Patrolin/qLib
a3f4ea44eaec879d5f05c38e883351daab8ec1d2
[ "Unlicense" ]
null
null
null
qLib/statistics.py
Patrolin/qLib
a3f4ea44eaec879d5f05c38e883351daab8ec1d2
[ "Unlicense" ]
9
2021-08-18T11:26:56.000Z
2021-10-31T23:55:56.000Z
qLib/statistics.py
Patrolin/qLib
a3f4ea44eaec879d5f05c38e883351daab8ec1d2
[ "Unlicense" ]
null
null
null
from collections import UserList from typing import * from .iterables import * from .math import * # (sample mean, sample standard deviation) @overload @overload def mean(X: list[int | float], weights: Optional[list[int | float]] = None): '''return the population mean = sample mean of X in O(n)''' if weights == ...
29.865613
136
0.541689
from collections import UserList from typing import * from .iterables import * from .math import * # (sample mean, sample standard deviation) @overload def mean(X: list[int | float]) -> float: ... @overload def mean(X: list[int | float], weights: list[int | float]) -> float: ... def mean(X: list[int | float], we...
1,111
1,569
368
8c6a92c14a6d1bdc3e7e8bd7a9571a056c234662
159
py
Python
backend/posts/admin.py
Soumithri/website
de813cfd20f3b9e28b92c089524f998956ced3d9
[ "MIT" ]
2
2019-08-07T03:28:51.000Z
2019-08-07T07:32:25.000Z
backend/posts/admin.py
Soumithri/website
de813cfd20f3b9e28b92c089524f998956ced3d9
[ "MIT" ]
7
2019-12-04T23:54:04.000Z
2022-02-10T10:57:58.000Z
backend/posts/admin.py
Soumithri/website
de813cfd20f3b9e28b92c089524f998956ced3d9
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post, Project, Author admin.site.register(Post) admin.site.register(Project) admin.site.register(Author)
22.714286
41
0.811321
from django.contrib import admin from .models import Post, Project, Author admin.site.register(Post) admin.site.register(Project) admin.site.register(Author)
0
0
0
6f36ba35f6ca8eafd9b9e3ea95ee5b99795aaf9a
16,125
py
Python
reinforcement_learning/rl_cartpole_ray_w_customDocker/common/sagemaker_rl/ray_launcher.py
yunzhe-tao/amazon-sagemaker-examples
a06d0d7f8aafa3e413770a98b542036c970bec99
[ "Apache-2.0" ]
null
null
null
reinforcement_learning/rl_cartpole_ray_w_customDocker/common/sagemaker_rl/ray_launcher.py
yunzhe-tao/amazon-sagemaker-examples
a06d0d7f8aafa3e413770a98b542036c970bec99
[ "Apache-2.0" ]
1
2021-03-25T23:37:20.000Z
2021-03-25T23:37:20.000Z
reinforcement_learning/rl_cartpole_ray_w_customDocker/common/sagemaker_rl/ray_launcher.py
yunzhe-tao/amazon-sagemaker-examples
a06d0d7f8aafa3e413770a98b542036c970bec99
[ "Apache-2.0" ]
null
null
null
import json import os import subprocess import sys import time from shutil import copyfile from enum import Enum import boto3 import ray from ray.tune import run_experiments from .tf_serving_utils import export_tf_serving, natural_keys, change_permissions_recursive from .configuration_list import ConfigurationList fr...
45.041899
117
0.631318
import json import os import subprocess import sys import time from shutil import copyfile from enum import Enum import boto3 import ray from ray.tune import run_experiments from .tf_serving_utils import export_tf_serving, natural_keys, change_permissions_recursive from .configuration_list import ConfigurationList fr...
10,278
0
355
7bb16459838f5f13c869407dcd03d8e30cf32c6c
481
py
Python
lino_book/projects/lydia/tests/dumps/18.12.0/cal_dailyplannerrow.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
3
2016-08-25T05:58:09.000Z
2019-12-05T11:13:45.000Z
lino_book/projects/lydia/tests/dumps/18.12.0/cal_dailyplannerrow.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
18
2016-11-12T21:38:58.000Z
2019-12-03T17:54:38.000Z
lino_book/projects/lydia/tests/dumps/18.12.0/cal_dailyplannerrow.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
9
2016-10-15T11:12:33.000Z
2021-09-22T04:37:37.000Z
# -*- coding: UTF-8 -*- logger.info("Loading 3 objects to table cal_dailyplannerrow...") # fields: id, seqno, designation, start_time, end_time loader.save(create_cal_dailyplannerrow(1,1,['AM', 'Vormittags', 'Avant-midi'],None,time(12,0,0))) loader.save(create_cal_dailyplannerrow(2,2,['PM', 'Nachmittags', 'Apr\xe8s-mid...
53.444444
103
0.735967
# -*- coding: UTF-8 -*- logger.info("Loading 3 objects to table cal_dailyplannerrow...") # fields: id, seqno, designation, start_time, end_time loader.save(create_cal_dailyplannerrow(1,1,['AM', 'Vormittags', 'Avant-midi'],None,time(12,0,0))) loader.save(create_cal_dailyplannerrow(2,2,['PM', 'Nachmittags', 'Apr\xe8s-mid...
0
0
0
0faea056bf807dfa599bd58d15cc2e0acc6096d8
7,349
py
Python
operations/facilities/views.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/facilities/views.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/facilities/views.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
import os from django.shortcuts import render from django.shortcuts import render, redirect, get_object_or_404, render_to_response from django.template import RequestContext from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib impo...
37.494898
154
0.679548
import os from django.shortcuts import render from django.shortcuts import render, redirect, get_object_or_404, render_to_response from django.template import RequestContext from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib impo...
6,136
0
154
e6d6a11efbfbf67bfca0735082e1fb05f28dffd7
4,730
py
Python
recipes/sync_recipes.py
solvebio/solvebio-python
d21a70d77eb58502d76ca8f402967a3c15dd7ce1
[ "MIT" ]
14
2015-01-07T15:31:00.000Z
2021-11-02T10:03:28.000Z
recipes/sync_recipes.py
solvebio/solvebio-python
d21a70d77eb58502d76ca8f402967a3c15dd7ce1
[ "MIT" ]
200
2015-01-26T17:12:21.000Z
2022-01-14T08:59:30.000Z
recipes/sync_recipes.py
solvebio/solvebio-python
d21a70d77eb58502d76ca8f402967a3c15dd7ce1
[ "MIT" ]
9
2015-02-18T22:49:28.000Z
2020-09-01T17:48:35.000Z
import click import recipes.sync_recipe_utils as sr import solvebio as sb __version__ = '1.0.0' @click.group() @click.option('--access-token', help='Manually provide a SolveBio Access Token') @click.option('--api-host', help='Override the default SolveBio API host') @click.option('--api-key', help='Manually provide ...
38.145161
97
0.64926
import click import recipes.sync_recipe_utils as sr import solvebio as sb __version__ = '1.0.0' @click.group() @click.option('--access-token', help='Manually provide a SolveBio Access Token') @click.option('--api-host', help='Override the default SolveBio API host') @click.option('--api-key', help='Manually provide ...
3,412
0
134
8eb175734f521b6d49aacc1759a34433ce19c43e
2,544
py
Python
floodsystem/station.py
DhruvTrehan03/140IA-Flood-Warning-System
bf5440053546da120c3c7609ae713abae383ec0e
[ "MIT" ]
null
null
null
floodsystem/station.py
DhruvTrehan03/140IA-Flood-Warning-System
bf5440053546da120c3c7609ae713abae383ec0e
[ "MIT" ]
null
null
null
floodsystem/station.py
DhruvTrehan03/140IA-Flood-Warning-System
bf5440053546da120c3c7609ae713abae383ec0e
[ "MIT" ]
1
2022-01-28T22:20:46.000Z
2022-01-28T22:20:46.000Z
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module provides a model for a monitoring station, and tools for manipulating/modifying station data """ class MonitoringStation: """This class represents a river level monitoring station""" # Task 1F def typical_range_consisten...
35.830986
114
0.627752
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module provides a model for a monitoring station, and tools for manipulating/modifying station data """ class MonitoringStation: """This class represents a river level monitoring station""" def __init__(self, station_id, measure_id...
949
0
54
cb1692199e755696ef91ada0140f7f20cc559873
832
py
Python
test/PatternBuilderTest.py
bookdude13/domeshow-cherry
981e32ade5cb789f45c0d9eec3bc7ceec39f280a
[ "MIT" ]
null
null
null
test/PatternBuilderTest.py
bookdude13/domeshow-cherry
981e32ade5cb789f45c0d9eec3bc7ceec39f280a
[ "MIT" ]
1
2017-11-20T20:02:45.000Z
2017-11-20T20:02:45.000Z
test/PatternBuilderTest.py
bookdude13/domeshow-cherry
981e32ade5cb789f45c0d9eec3bc7ceec39f280a
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) import src.pattern.PatternBuilder as PB test_build3()
43.789474
224
0.561298
import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) import src.pattern.PatternBuilder as PB def test_build3(): colorsA = [0, 0, 0, 10, 10, 10, 1, 1, 1, 11, 11, 11, 2, 2, 2, 12, 12, 12, 3, 3, 3, 13, 13, 13, 4, 4, 4, 14, 14, 14, 5, 5, 5, 15, 15, 15, 6, 6, 6, 16, 16, 16...
653
0
23