hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f76742ffcd8b16007b24db15d7586e465935710d
4,159
py
Python
examples/ConvolutionalPoseMachines/load-cpm.py
myelintek/tensorpack
fcbf5869d78cf7f3b59c46318b6c883a7ea12056
[ "Apache-2.0" ]
3
2017-12-02T16:49:42.000Z
2018-11-04T16:53:44.000Z
examples/ConvolutionalPoseMachines/load-cpm.py
dongzhuoyao/tensorpack
78bcf6053172075a761eac90ab22f0b631b272a0
[ "Apache-2.0" ]
6
2020-01-28T23:03:24.000Z
2022-02-10T01:21:18.000Z
examples/ConvolutionalPoseMachines/load-cpm.py
wdings/Mask-RCNN
8d5ae5cc2cfcf2e4e53b4d1064ac9e727f736d09
[ "Apache-2.0" ]
5
2017-11-15T14:46:27.000Z
2018-11-04T16:54:06.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # File: load-cpm.py # Author: Yuxin Wu <ppwwyyxxc@gmail.com> import cv2 import tensorflow as tf import numpy as np import argparse from tensorpack import * from tensorpack.utils import viz from tensorpack.utils.argtools import memoized """ 15 channels: 0-1 head, neck 2-4...
33.813008
77
0.557105
import cv2 import tensorflow as tf import numpy as np import argparse from tensorpack import * from tensorpack.utils import viz from tensorpack.utils.argtools import memoized def colorize(img, heatmap): heatmap = viz.intensity_to_rgb(heatmap, cmap='jet')[:, :, ::-1] return img * 0.5 + heatmap * 0.5 @memo...
true
true
f7674319ffb8c4f7873074de12a946711399ce17
4,589
py
Python
plugin/lighthouse/util/log.py
x9090/lighthouse
b7378ee5948ba81900ef80538870f2e2b47610f4
[ "MIT" ]
null
null
null
plugin/lighthouse/util/log.py
x9090/lighthouse
b7378ee5948ba81900ef80538870f2e2b47610f4
[ "MIT" ]
null
null
null
plugin/lighthouse/util/log.py
x9090/lighthouse
b7378ee5948ba81900ef80538870f2e2b47610f4
[ "MIT" ]
null
null
null
import os import sys import logging from .misc import makedirs from .disassembler import disassembler #------------------------------------------------------------------------------ # Log / Print helpers #------------------------------------------------------------------------------ def lmsg(message): """ Pr...
29.416667
81
0.562432
import os import sys import logging from .misc import makedirs from .disassembler import disassembler def lmsg(message): prefix_message = "[Lighthouse] %s" % message if disassembler.is_msg_inited(): disassembler.message(prefix_message) else: logger.info(message) def get_log_dir...
true
true
f76744444246b36e4cba9e5a6b51d8f341cfee9b
548
py
Python
booking/auth_backends.py
Ach1916/booking-app
05d9051819b042546760427376f7d4a6a9d8e527
[ "MIT" ]
4
2019-02-05T21:49:40.000Z
2020-03-07T16:02:28.000Z
booking/auth_backends.py
Ach1916/booking-app
05d9051819b042546760427376f7d4a6a9d8e527
[ "MIT" ]
13
2021-03-19T09:25:18.000Z
2022-02-10T12:15:24.000Z
booking/auth_backends.py
Ach1916/booking-app
05d9051819b042546760427376f7d4a6a9d8e527
[ "MIT" ]
3
2019-06-23T03:00:19.000Z
2022-03-13T00:36:38.000Z
"""Custom authentication backends for the booking app.""" from django.contrib.auth.backends import ModelBackend from .models import Booking class BookingIDBackend(ModelBackend): """ Custom authentication backend that allows login via email and booking ID. """ def authenticate(self, username=None, pa...
28.842105
77
0.682482
from django.contrib.auth.backends import ModelBackend from .models import Booking class BookingIDBackend(ModelBackend): def authenticate(self, username=None, password=None, **kwargs): try: booking = Booking.objects.get( booking_id=password, user__email=username) except...
true
true
f76744cf550f34d90656dc84ef974c9ba0ae934f
752
py
Python
evaluate.py
draxtic/2048-api
70f42a232fd8617b471cfce802d9135dc1ec2bb3
[ "Apache-2.0" ]
null
null
null
evaluate.py
draxtic/2048-api
70f42a232fd8617b471cfce802d9135dc1ec2bb3
[ "Apache-2.0" ]
null
null
null
evaluate.py
draxtic/2048-api
70f42a232fd8617b471cfce802d9135dc1ec2bb3
[ "Apache-2.0" ]
null
null
null
from game2048.game import Game from game2048.displays import Display def single_run(size, score_to_win, AgentClass, **kwargs): game = Game(size, score_to_win) agent = AgentClass(game, display=Display(), **kwargs) agent.play(verbose=True) return game.score if __name__ == '__main__': GAME_SIZE = 4...
25.931034
75
0.603723
from game2048.game import Game from game2048.displays import Display def single_run(size, score_to_win, AgentClass, **kwargs): game = Game(size, score_to_win) agent = AgentClass(game, display=Display(), **kwargs) agent.play(verbose=True) return game.score if __name__ == '__main__': GAME_SIZE = 4...
true
true
f76745ce8f995760cf62341d2dfac58658ca1304
4,118
py
Python
app/fabric_transformer/transaction_transformer.py
vladimirivkovic/hyperETL
bb2aa9f6cdb4d0d447d1765f02326bb8aa88430c
[ "MIT" ]
null
null
null
app/fabric_transformer/transaction_transformer.py
vladimirivkovic/hyperETL
bb2aa9f6cdb4d0d447d1765f02326bb8aa88430c
[ "MIT" ]
null
null
null
app/fabric_transformer/transaction_transformer.py
vladimirivkovic/hyperETL
bb2aa9f6cdb4d0d447d1765f02326bb8aa88430c
[ "MIT" ]
null
null
null
from unicodedata import name import jmespath from util.logger import get_logger from util.decoder import decode class TransactionTransformer: def __init__(self) -> None: self.logger = get_logger(__name__) @staticmethod def transform(raw_transactions): payloads = jmespath.search('[*].payl...
35.808696
102
0.595192
from unicodedata import name import jmespath from util.logger import get_logger from util.decoder import decode class TransactionTransformer: def __init__(self) -> None: self.logger = get_logger(__name__) @staticmethod def transform(raw_transactions): payloads = jmespath.search('[*].payl...
true
true
f76745ebc49369bf8570091cae25f42bb80e6d6c
38,722
py
Python
nova/utils.py
orbitfp7/nova
90f843cdc47b494cd568507820d45868765697b1
[ "Apache-2.0" ]
5
2017-06-23T07:37:39.000Z
2020-10-21T07:07:50.000Z
nova/utils.py
orbitfp7/nova
90f843cdc47b494cd568507820d45868765697b1
[ "Apache-2.0" ]
null
null
null
nova/utils.py
orbitfp7/nova
90f843cdc47b494cd568507820d45868765697b1
[ "Apache-2.0" ]
4
2017-06-23T07:37:43.000Z
2020-12-28T09:57:22.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
32.621735
79
0.615567
import contextlib import datetime import functools import hashlib import hmac import inspect import os import pyclbr import random import re import shutil import socket import struct import sys import tempfile from xml.sax import saxutils import eventlet import netaddr from oslo_concurrency import lockutils from osl...
true
true
f76746b142402abc43cb718d5ed00827f98465df
3,184
py
Python
tests/test_grpc.py
da1910/pymapdl
305b70b30e61a78011e974ff4cb409ee21f89e13
[ "MIT" ]
1
2021-07-28T00:42:53.000Z
2021-07-28T00:42:53.000Z
tests/test_grpc.py
da1910/pymapdl
305b70b30e61a78011e974ff4cb409ee21f89e13
[ "MIT" ]
null
null
null
tests/test_grpc.py
da1910/pymapdl
305b70b30e61a78011e974ff4cb409ee21f89e13
[ "MIT" ]
null
null
null
"""gRPC service specific tests""" import os import pytest from ansys.mapdl.core import examples PATH = os.path.dirname(os.path.abspath(__file__)) # skip entire module unless HAS_GRPC pytestmark = pytest.mark.skip_grpc def test_clear_nostart(mapdl): resp = mapdl._send_command('FINISH') resp = mapdl._send_c...
27.448276
78
0.698178
import os import pytest from ansys.mapdl.core import examples PATH = os.path.dirname(os.path.abspath(__file__)) pytestmark = pytest.mark.skip_grpc def test_clear_nostart(mapdl): resp = mapdl._send_command('FINISH') resp = mapdl._send_command('/CLEAR, NOSTART') assert 'CLEAR ANSYS DATABASE AND RESTART'...
true
true
f767471aea0217f39113eeeac7831319ad0cfb44
2,292
py
Python
functions/all_functions.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
functions/all_functions.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
functions/all_functions.py
kefir/snakee
a17734d4b2d7dfd3e6c7b195baa128fbc84d197b
[ "MIT" ]
null
null
null
try: # Assume we're a sub-module in a package. from functions.basic_functions import ( partial, const, defined, is_none, not_none, nonzero, equal, not_equal, at_least, more_than, safe_more_than, less_than, between, not_between, is_ordered, apply_dict, ) from functions.cast_functions...
48.765957
105
0.717714
try: from functions.basic_functions import ( partial, const, defined, is_none, not_none, nonzero, equal, not_equal, at_least, more_than, safe_more_than, less_than, between, not_between, is_ordered, apply_dict, ) from functions.cast_functions import DICT_CAST_TYPES, cast, date, numbe...
true
true
f7674744863d1ead3bea0669d5ecfec492cdccbd
326
py
Python
simple_server.py
AlanPrado/movie_trailer
9fc451bd5b27a8761175f78e09db857e2b6895f9
[ "MIT" ]
null
null
null
simple_server.py
AlanPrado/movie_trailer
9fc451bd5b27a8761175f78e09db857e2b6895f9
[ "MIT" ]
null
null
null
simple_server.py
AlanPrado/movie_trailer
9fc451bd5b27a8761175f78e09db857e2b6895f9
[ "MIT" ]
null
null
null
import SimpleHTTPServer import SocketServer import webbrowser PORT = 8000 def start(): HttpHandler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), HttpHandler) print("Starting server at port 8000") webbrowser.open('http://localhost:8000') # open in a new tab httpd.serve_for...
27.166667
61
0.782209
import SimpleHTTPServer import SocketServer import webbrowser PORT = 8000 def start(): HttpHandler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), HttpHandler) print("Starting server at port 8000") webbrowser.open('http://localhost:8000') httpd.serve_forever()
true
true
f767475eddaaef01048704ef591dbc606cfdd398
12,381
py
Python
codes/alt2train.py
sushmit0109/ASSC
8beda6f3d055a35fff9ae2ff417b38a38e2a7fa5
[ "MIT" ]
null
null
null
codes/alt2train.py
sushmit0109/ASSC
8beda6f3d055a35fff9ae2ff417b38a38e2a7fa5
[ "MIT" ]
null
null
null
codes/alt2train.py
sushmit0109/ASSC
8beda6f3d055a35fff9ae2ff417b38a38e2a7fa5
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import, division import tensorflow as tf # from keras.backend.tensorflow_backend import set_session # config = tf.ConfigProto() # config.gpu_options.per_process_gpu_memory_fraction = 0.9 # set_session(tf.Session(config=config)) import numpy as np from collections import C...
40.861386
226
0.583394
from __future__ import print_function, absolute_import, division import tensorflow as tf import numpy as np from collections import Counter np.random.seed(1) from tensorflow import set_random_seed set_random_seed(1) from datetime import datetime import argparse import os import tables from keras.utils import to_catego...
true
true
f767488651fec62505dbd87b6ea9687ff91868de
494
py
Python
python/rpiswitch.py
dmayrand/DivAE-client-beta
f97b2655ec3ee2de7b8afe92324eb965c13d06f2
[ "MIT" ]
null
null
null
python/rpiswitch.py
dmayrand/DivAE-client-beta
f97b2655ec3ee2de7b8afe92324eb965c13d06f2
[ "MIT" ]
null
null
null
python/rpiswitch.py
dmayrand/DivAE-client-beta
f97b2655ec3ee2de7b8afe92324eb965c13d06f2
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP) firstinput = False; def write_status(status): if(status == False): print("False"); else: print("True"); input_state = GPIO.input(4); firstinput = input_state; write_status(firstinput...
16.466667
48
0.665992
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP) firstinput = False; def write_status(status): if(status == False): print("False"); else: print("True"); input_state = GPIO.input(4); firstinput = input_state; write_status(firstinput...
true
true
f76749ca41e32472de476007a9a6867256931804
5,013
py
Python
test/test_inventory_skew_calculator.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
37
2020-07-08T03:44:26.000Z
2022-01-16T12:35:26.000Z
test/test_inventory_skew_calculator.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
13
2021-02-16T01:57:23.000Z
2021-02-16T03:50:03.000Z
test/test_inventory_skew_calculator.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
17
2021-04-07T21:29:46.000Z
2022-02-03T02:01:04.000Z
#!/usr/bin/env python from os.path import ( join, realpath, ) import sys; sys.path.insert(0, realpath(join(__file__, "../../"))) import unittest from hummingbot.strategy.pure_market_making.data_types import InventorySkewBidAskRatios from hummingbot.strategy.pure_market_making.inventory_skew_calculator import ...
43.591304
99
0.72292
from os.path import ( join, realpath, ) import sys; sys.path.insert(0, realpath(join(__file__, "../../"))) import unittest from hummingbot.strategy.pure_market_making.data_types import InventorySkewBidAskRatios from hummingbot.strategy.pure_market_making.inventory_skew_calculator import \ calculate_bid_as...
true
true
f7674a0914f8c5282f3537ed2c0dd3f913d06497
337
py
Python
Curso/ModuloTkinter/Aula028MySQLBase.py
DavidBitner/Aprendizado-Python
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
[ "MIT" ]
null
null
null
Curso/ModuloTkinter/Aula028MySQLBase.py
DavidBitner/Aprendizado-Python
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
[ "MIT" ]
null
null
null
Curso/ModuloTkinter/Aula028MySQLBase.py
DavidBitner/Aprendizado-Python
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
[ "MIT" ]
null
null
null
from tkinter import * import mysql.connector root = Tk() root.title("Doidera") root.geometry("400x400+200+200") # Conectar ao banco my_db = mysql.connector.connect( host="localhost", user="root", passwd="YourPassword", database="doidera" ) # Criar um cursor e inicializa-lo my_cursor = my_db.cursor() ...
16.85
33
0.703264
from tkinter import * import mysql.connector root = Tk() root.title("Doidera") root.geometry("400x400+200+200") my_db = mysql.connector.connect( host="localhost", user="root", passwd="YourPassword", database="doidera" ) my_cursor = my_db.cursor() root.mainloop()
true
true
f7674b5ae471a8633ed272cff20d4b73ad8b36b6
23
py
Python
exoatlas/telescopes/__init__.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2020-06-24T16:38:27.000Z
2022-01-23T01:57:19.000Z
exoatlas/telescopes/__init__.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2018-09-20T23:12:30.000Z
2019-05-15T15:31:58.000Z
exoatlas/telescopes/__init__.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
null
null
null
from .buckets import *
11.5
22
0.73913
from .buckets import *
true
true
f7674cf71a7a72f7fc7aa9a39bb98dcfb1ce057d
7,889
py
Python
core/app_cocoa.py
hsoft/musicguru
c9483a6a20084e579260c4d70eeede6bd6253a8a
[ "BSD-3-Clause" ]
1
2019-12-05T02:12:21.000Z
2019-12-05T02:12:21.000Z
core/app_cocoa.py
hsoft/musicguru
c9483a6a20084e579260c4d70eeede6bd6253a8a
[ "BSD-3-Clause" ]
null
null
null
core/app_cocoa.py
hsoft/musicguru
c9483a6a20084e579260c4d70eeede6bd6253a8a
[ "BSD-3-Clause" ]
null
null
null
# Created By: Virgil Dupras # Created On: 2006/11/18 # Copyright 2010 Hardcoded Software (http://www.hardcoded.net) # # This software is licensed under the "BSD" License as described in the "LICENSE" file, # which should be included with this package. The terms are also available at # http://www.hardcoded.net/licens...
35.859091
120
0.634301
from hscommon.conflict import is_conflicted from hscommon.util import dedupe, format_size, format_time from hscommon.path import Path from hscommon import cocoa from . import app, sqlfs as sql from .fs_utils import smart_move (TAG_LOCATIONS, TAG_DETAILS, TAG_RECORDED_DISKS) = list(range(3)) (TAG_DESIGN_BOARD, TAG_I...
true
true
f7674d36c98b9d494bd6ef28177418766a8bf413
3,352
py
Python
code/integrated-strategy/baseline.py
awoo424/algotrading
0ae284e40fd3f6bd9a88a73047b13473a0abe580
[ "CC0-1.0" ]
6
2021-04-20T01:55:39.000Z
2022-01-26T19:12:38.000Z
code/integrated-strategy/baseline.py
awoo424/algotrading
0ae284e40fd3f6bd9a88a73047b13473a0abe580
[ "CC0-1.0" ]
null
null
null
code/integrated-strategy/baseline.py
awoo424/algotrading
0ae284e40fd3f6bd9a88a73047b13473a0abe580
[ "CC0-1.0" ]
5
2021-01-30T08:11:11.000Z
2022-01-27T09:19:31.000Z
import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl import pandas as pd import sys sys.path.append("..") sys.path.append("../technical-analysis_python/") mpl.use('tkagg') # issues with Big Sur # technical analysis from strategy.macd_crossover import macdCrossover from backtest import Backtest...
28.649573
145
0.759248
import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl import pandas as pd import sys sys.path.append("..") sys.path.append("../technical-analysis_python/") mpl.use('tkagg') from strategy.macd_crossover import macdCrossover from backtest import Backtest from evaluate import PortfolioReturn, Shar...
true
true
f7674dbfc57a9e9f62ea7643b7825521d396f343
10,616
py
Python
examples/ilr/robot/wam/evaluate_wam_ilr.py
pnickl/mimo
81c4bbd2594e2136445009eae752ab8a1602a1cf
[ "MIT" ]
3
2020-05-19T12:01:48.000Z
2020-10-15T11:51:37.000Z
examples/ilr/robot/wam/evaluate_wam_ilr.py
pnickl/mimo
81c4bbd2594e2136445009eae752ab8a1602a1cf
[ "MIT" ]
null
null
null
examples/ilr/robot/wam/evaluate_wam_ilr.py
pnickl/mimo
81c4bbd2594e2136445009eae752ab8a1602a1cf
[ "MIT" ]
null
null
null
import os os.environ["OMP_NUM_THREADS"] = "1" import argparse import numpy as np import numpy.random as npr import mimo from mimo.distributions import NormalWishart from mimo.distributions import GaussianWithNormalWishart from mimo.distributions import MatrixNormalWishart from mimo.distributions import LinearGauss...
40.988417
132
0.622268
import os os.environ["OMP_NUM_THREADS"] = "1" import argparse import numpy as np import numpy.random as npr import mimo from mimo.distributions import NormalWishart from mimo.distributions import GaussianWithNormalWishart from mimo.distributions import MatrixNormalWishart from mimo.distributions import LinearGauss...
true
true
f7674e739d462d4307216693b40368faf24a3cb8
804
py
Python
manage.py
kanugas/blog16types
71eaf9b0a477c92223d8c7bef19350f5c8d836e4
[ "Unlicense" ]
null
null
null
manage.py
kanugas/blog16types
71eaf9b0a477c92223d8c7bef19350f5c8d836e4
[ "Unlicense" ]
null
null
null
manage.py
kanugas/blog16types
71eaf9b0a477c92223d8c7bef19350f5c8d836e4
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "type16.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.956522
77
0.641791
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "type16.settings") try: from django.core.management import execute_from_command_line except ImportError: try: import django except ImportError: ...
true
true
f7674ef68b920779345f37858f0442302a3c02d8
5,249
py
Python
dev/tools/leveleditor/direct/distributed/DistributedCartesianGridAI.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
dev/tools/leveleditor/direct/distributed/DistributedCartesianGridAI.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
dev/tools/leveleditor/direct/distributed/DistributedCartesianGridAI.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from pandac.PandaModules import * from direct.task import Task from DistributedNodeAI import DistributedNodeAI from CartesianGridBase import CartesianGridBase class DistributedCartesianGridAI(DistributedNodeAI, CartesianGridBase): notify = directNotify.newCategory("DistributedCartesianGridAI") RuleSeparator...
36.451389
116
0.614022
from pandac.PandaModules import * from direct.task import Task from DistributedNodeAI import DistributedNodeAI from CartesianGridBase import CartesianGridBase class DistributedCartesianGridAI(DistributedNodeAI, CartesianGridBase): notify = directNotify.newCategory("DistributedCartesianGridAI") RuleSeparator...
true
true
f7674fba682ac5864722be9121f18cd15822d27c
3,692
py
Python
ee/clickhouse/queries/trends/clickhouse_trends.py
ungps/posthog
5bcb7eba368497de414842dbb471e50082ac1867
[ "MIT" ]
1
2021-02-03T19:19:30.000Z
2021-02-03T19:19:30.000Z
ee/clickhouse/queries/trends/clickhouse_trends.py
ungps/posthog
5bcb7eba368497de414842dbb471e50082ac1867
[ "MIT" ]
null
null
null
ee/clickhouse/queries/trends/clickhouse_trends.py
ungps/posthog
5bcb7eba368497de414842dbb471e50082ac1867
[ "MIT" ]
null
null
null
from typing import Any, Callable, Dict, List, Tuple from django.conf import settings from django.db.models.query import Prefetch from django.utils import timezone from sentry_sdk.api import capture_exception from ee.clickhouse.client import sync_execute from ee.clickhouse.queries.trends.breakdown import ClickhouseTre...
42.930233
110
0.700704
from typing import Any, Callable, Dict, List, Tuple from django.conf import settings from django.db.models.query import Prefetch from django.utils import timezone from sentry_sdk.api import capture_exception from ee.clickhouse.client import sync_execute from ee.clickhouse.queries.trends.breakdown import ClickhouseTre...
true
true
f7674fd3415f1e2ee7f3319de5b307d6affc5add
356
py
Python
pyladies/pyladies/core/tests.py
pyladiesvale/pyladies-site
046221a57259df5a0df44f845430a35b1b1b593a
[ "MIT" ]
1
2016-02-15T23:29:07.000Z
2016-02-15T23:29:07.000Z
pyladies/pyladies/core/tests.py
pyladiesvale/pyladies-site
046221a57259df5a0df44f845430a35b1b1b593a
[ "MIT" ]
2
2016-02-24T18:25:36.000Z
2020-06-05T17:12:01.000Z
pyladies/pyladies/core/tests.py
pyladiesvale/pyladies-site
046221a57259df5a0df44f845430a35b1b1b593a
[ "MIT" ]
1
2016-10-18T22:11:05.000Z
2016-10-18T22:11:05.000Z
from django.test import TestCase class HomeTest(TestCase): def setUp(self): self.response = self.client.get('/') def test_get(self): """ GET / must return status code 200 """ self.assertEqual(200, self.response.status_code) def test_template_get(self): """ Must use index.html """ self.assertTemplateUse...
23.733333
59
0.716292
from django.test import TestCase class HomeTest(TestCase): def setUp(self): self.response = self.client.get('/') def test_get(self): self.assertEqual(200, self.response.status_code) def test_template_get(self): self.assertTemplateUsed(self.response, 'core/index.html')
true
true
f76750124eddfc248d484b5d7b9805521deb0f0c
4,568
py
Python
homeassistant/components/template/lock.py
europrimus/core
b84e844c7679f48fe09fea68c228f2313eae2724
[ "Apache-2.0" ]
1
2019-06-30T01:42:45.000Z
2019-06-30T01:42:45.000Z
homeassistant/components/template/lock.py
europrimus/core
b84e844c7679f48fe09fea68c228f2313eae2724
[ "Apache-2.0" ]
null
null
null
homeassistant/components/template/lock.py
europrimus/core
b84e844c7679f48fe09fea68c228f2313eae2724
[ "Apache-2.0" ]
3
2019-06-11T15:41:56.000Z
2019-07-18T19:57:13.000Z
"""Support for locks which integrates with other components.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.lock import ( PLATFORM_SCHEMA, STATE_JAMMED, STATE_LOCKING, STATE_UNLOCKING, LockEntity, ) from homeassistant.const import ( CONF_NAME, ...
29.662338
80
0.682137
from __future__ import annotations import voluptuous as vol from homeassistant.components.lock import ( PLATFORM_SCHEMA, STATE_JAMMED, STATE_LOCKING, STATE_UNLOCKING, LockEntity, ) from homeassistant.const import ( CONF_NAME, CONF_OPTIMISTIC, CONF_UNIQUE_ID, CONF_VALUE_TEMPLATE, ...
true
true
f767508eaaa5a0898c925cb50414c5d748ea8e78
86,654
py
Python
esrally/driver/driver.py
glenacota/rally
f30214c54799c50581c9485af498ae9a25d15544
[ "Apache-2.0" ]
null
null
null
esrally/driver/driver.py
glenacota/rally
f30214c54799c50581c9485af498ae9a25d15544
[ "Apache-2.0" ]
null
null
null
esrally/driver/driver.py
glenacota/rally
f30214c54799c50581c9485af498ae9a25d15544
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
46.91608
139
0.640894
import asyncio import collections import concurrent.futures import datetime import itertools import logging import math import multiprocessing import queue import threading import time import thespian.actors from esrally import actor, config, exceptions, metrics, track, client, paths, PROGRAM_NAME, telemetry from es...
true
true
f767512337dfd1256aa0971d58a6d5ecef91f127
11,638
py
Python
ThunkLibs/Generators/ThunkHelpers.py
phire/FEX
a721257cdd787bd641875ca8e138809aaad17e0c
[ "MIT" ]
null
null
null
ThunkLibs/Generators/ThunkHelpers.py
phire/FEX
a721257cdd787bd641875ca8e138809aaad17e0c
[ "MIT" ]
null
null
null
ThunkLibs/Generators/ThunkHelpers.py
phire/FEX
a721257cdd787bd641875ca8e138809aaad17e0c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import re from hashlib import sha256 Libs = { } CurrentLib = None CurrentFunction = None def hash_lib_fn_asm(lib, fn): return "0x" + ", 0x".join(re.findall('..', sha256((lib + ":" + fn).encode('utf-8')).hexdigest())) def hash_lib_fn_c(lib, fn): return "\\x" + "\\x".join(re.finda...
33.930029
185
0.60629
import sys import re from hashlib import sha256 Libs = { } CurrentLib = None CurrentFunction = None def hash_lib_fn_asm(lib, fn): return "0x" + ", 0x".join(re.findall('..', sha256((lib + ":" + fn).encode('utf-8')).hexdigest())) def hash_lib_fn_c(lib, fn): return "\\x" + "\\x".join(re.findall('..', sha256((li...
true
true
f76754f527c57e3c9df5478ea2df371e255e4ead
1,788
py
Python
scripts/test-rtm.py
slaclab/lcls2-mps-rtm-tester
390c77c094495a7f92d92a212666250b0f9e2e85
[ "BSD-3-Clause-LBNL" ]
null
null
null
scripts/test-rtm.py
slaclab/lcls2-mps-rtm-tester
390c77c094495a7f92d92a212666250b0f9e2e85
[ "BSD-3-Clause-LBNL" ]
null
null
null
scripts/test-rtm.py
slaclab/lcls2-mps-rtm-tester
390c77c094495a7f92d92a212666250b0f9e2e85
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!usr/bin/env python3 import argparse from RtmTester.Rtm import Rtm from RtmTester.TimingTester import TimingTester def get_args(): """ Parse and return the inputs arguments. """ parser = argparse.ArgumentParser( description='LCLS2 MPS RTM Test Application') parser.add_argument( ...
22.632911
78
0.60179
import argparse from RtmTester.Rtm import Rtm from RtmTester.TimingTester import TimingTester def get_args(): parser = argparse.ArgumentParser( description='LCLS2 MPS RTM Test Application') parser.add_argument( '--yaml', type=str, required=True, dest='yaml_file', ...
true
true
f767554adc4e0aa000d66f74a1f963428bee9fd2
14,897
py
Python
src/db_intf.py
Hilux-Crypto/hilux-masternode-tool
7444f7b01124c59e39e3736c642057d3efd7d4b6
[ "MIT" ]
null
null
null
src/db_intf.py
Hilux-Crypto/hilux-masternode-tool
7444f7b01124c59e39e3736c642057d3efd7d4b6
[ "MIT" ]
null
null
null
src/db_intf.py
Hilux-Crypto/hilux-masternode-tool
7444f7b01124c59e39e3736c642057d3efd7d4b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Bertrand256 # Created on: 2017-10 import os import sqlite3 import logging import threading from typing import List import thread_utils log = logging.getLogger('dmt.db_intf') class DBCache(object): """Purpose: coordinating access to a database cache (sqli...
51.19244
120
0.618447
import os import sqlite3 import logging import threading from typing import List import thread_utils log = logging.getLogger('dmt.db_intf') class DBCache(object): def __init__(self): self.db_cache_file_name = '' self.db_labels_file_name = '' self.db_active = False self.lock = t...
true
true
f76756229d12f9d5e2195dad0a8976b38fb83f33
3,526
py
Python
pyslet/imscc_profilev1p1.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-09-16T11:17:43.000Z
2016-10-19T11:15:53.000Z
pyslet/imscc_profilev1p1.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2018-06-29T10:53:50.000Z
2021-04-06T07:55:54.000Z
pyslet/imscc_profilev1p1.py
UKTradeInvestment/pyslet
70f9731df4d874379649eeacb79d8a6583b3dcaa
[ "BSD-3-Clause" ]
2
2016-10-13T15:12:50.000Z
2021-01-13T11:58:18.000Z
#! /usr/bin/env python """This module implements test to check against the IMSCC Profile 1.1 specification defined by IMS GLC""" from types import StringTypes import string import pyslet.xml.namespace as xmlns import pyslet.xml.xsdatatypes as xsi import pyslet.imscpv1p2 as imscp import pyslet.imscc_profilev1p0 as v1p...
32.348624
111
0.751843
from types import StringTypes import string import pyslet.xml.namespace as xmlns import pyslet.xml.xsdatatypes as xsi import pyslet.imscpv1p2 as imscp import pyslet.imscc_profilev1p0 as v1p0 IMSCC_CP_NAMESPACE = "http://www.imsglobal.org/xsd/imsccv1p1/imscp_v1p1" IMSCC_CP_SCHEMALOCATION = "http://www.imsglobal.org/p...
true
true
f76756fdea7c8083ce1e40519a78122937966bf6
60,458
py
Python
machine_learning/gan/pgan/tf_pgan/pgan_module/trainer/discriminator.py
ryangillard/artificial_intelligence
f7c21af221f366b075d351deeeb00a1b266ac3e3
[ "Apache-2.0" ]
4
2019-07-04T05:15:59.000Z
2020-06-29T19:34:33.000Z
machine_learning/gan/pgan/tf_pgan/pgan_module/trainer/discriminator.py
ryangillard/artificial_intelligence
f7c21af221f366b075d351deeeb00a1b266ac3e3
[ "Apache-2.0" ]
null
null
null
machine_learning/gan/pgan/tf_pgan/pgan_module/trainer/discriminator.py
ryangillard/artificial_intelligence
f7c21af221f366b075d351deeeb00a1b266ac3e3
[ "Apache-2.0" ]
1
2019-05-23T16:06:51.000Z
2019-05-23T16:06:51.000Z
import tensorflow as tf from . import regularization from .print_object import print_obj class Discriminator(object): """Discriminator that takes image input and outputs logits. Fields: name: str, name of `Discriminator`. kernel_regularizer: `l1_l2_regularizer` object, regularizar for kernel...
36.442435
86
0.525406
import tensorflow as tf from . import regularization from .print_object import print_obj class Discriminator(object): def __init__(self, kernel_regularizer, bias_regularizer, params, name): self.name = name self.kernel_regularizer = kernel_regularizer self.bias_r...
true
true
f76757dd2fc09dbeee641fcaebae8bccd6cde573
6,482
py
Python
unittests.py
Cray-HPE/Redfish-Interface-Emulator
8209961a20ef9f9e7c7f64df3759197ac00a1ab9
[ "FSFAP" ]
null
null
null
unittests.py
Cray-HPE/Redfish-Interface-Emulator
8209961a20ef9f9e7c7f64df3759197ac00a1ab9
[ "FSFAP" ]
1
2022-03-08T22:20:28.000Z
2022-03-08T22:20:28.000Z
unittests.py
Cray-HPE/Redfish-Interface-Emulator
8209961a20ef9f9e7c7f64df3759197ac00a1ab9
[ "FSFAP" ]
null
null
null
#!/usr/bin/env python2 # # Copyright Notice: # Copyright 2016-2019 DMTF. All rights reserved. # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/blob/master/LICENSE.md # Python unittests for the Redfish Interface Emulator import argparse import unittest import ...
38.35503
136
0.625424
import argparse import unittest import requests import json import os import logging import webbrowser import sys class TestRedfishEmulator(unittest.TestCase): MODE=None CONFIG = 'emulator-config.json' with open(CONFIG, 'r') as f: config = json.load(f) MODE = config['MODE'] address =...
true
true
f7675a101d9dae817d4e49385cb69b4bcc38e348
976
py
Python
robopy/tests/test_common.py
rodosha98/FRPGitHomework
0905c79ccc28d33f9385c09c03e8e18d8c720787
[ "MIT" ]
214
2017-10-30T04:36:09.000Z
2022-03-27T06:05:53.000Z
robopy/tests/test_common.py
rodosha98/FRPGitHomework
0905c79ccc28d33f9385c09c03e8e18d8c720787
[ "MIT" ]
16
2017-11-28T08:07:04.000Z
2020-05-12T22:15:10.000Z
robopy/tests/test_common.py
rodosha98/FRPGitHomework
0905c79ccc28d33f9385c09c03e8e18d8c720787
[ "MIT" ]
57
2017-11-28T02:17:53.000Z
2021-02-18T14:32:51.000Z
# Created by: Aditya Dua # 25 July, 2017 """ This module contains all common helpful methods used in testing toolbox functionality """ import numpy as np import numpy.testing as npt def matrix_mismatch_string_builder(rec_mat, exp_mat): expected_mat_str = np.array2string(np.asarray(exp_mat)) received_mat_str =...
31.483871
85
0.531762
import numpy as np import numpy.testing as npt def matrix_mismatch_string_builder(rec_mat, exp_mat): expected_mat_str = np.array2string(np.asarray(exp_mat)) received_mat_str = np.array2string(np.asarray(rec_mat)) output_str = str("\n----------------------\n" + " Expected Output ...
true
true
f7675ae67faa6eb5da9cc40a7ca44559b8f7dc85
3,907
bzl
Python
maistra/vendor/build_bazel_rules_swift/swift/repositories.bzl
knm3000/proxy
f2bb57b7294aea2cb344824785be42849d7d63c9
[ "Apache-2.0" ]
3
2020-11-30T15:35:37.000Z
2022-01-06T14:17:18.000Z
maistra/vendor/build_bazel_rules_swift/swift/repositories.bzl
knm3000/proxy
f2bb57b7294aea2cb344824785be42849d7d63c9
[ "Apache-2.0" ]
54
2020-06-23T17:34:04.000Z
2022-03-31T02:04:06.000Z
maistra/vendor/build_bazel_rules_swift/swift/repositories.bzl
knm3000/proxy
f2bb57b7294aea2cb344824785be42849d7d63c9
[ "Apache-2.0" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
# Copyright 2018 The Bazel Authors. All rights reserved. # # 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 la...
38.303922
109
0.690555
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load( "@build_bazel_rules_swift//swift/internal:swift_autoconfiguration.bzl", "swift_autoconfiguration", ) def _maybe(repo_rule, name, **kwargs): if not native.existing_rule(name): repo_rule(name = name, **kwargs) def swift_rul...
true
true
f7675af306c450066bbd6a3a4cd1f035eae36574
2,103
py
Python
src/main/python/plugins/slcp/stats/Writer.py
mayadebellis/incubator-sdap-edge
c0899e508a06d614aa58ec9e991443640ba39e65
[ "Apache-2.0" ]
null
null
null
src/main/python/plugins/slcp/stats/Writer.py
mayadebellis/incubator-sdap-edge
c0899e508a06d614aa58ec9e991443640ba39e65
[ "Apache-2.0" ]
null
null
null
src/main/python/plugins/slcp/stats/Writer.py
mayadebellis/incubator-sdap-edge
c0899e508a06d614aa58ec9e991443640ba39e65
[ "Apache-2.0" ]
1
2021-01-10T21:19:05.000Z
2021-01-10T21:19:05.000Z
import logging import os import os.path import urllib from edge.writer.solrtemplateresponsewriter import SolrTemplateResponseWriter from edge.response.solrjsontemplateresponse import SolrJsonTemplateResponse class Writer(SolrTemplateResponseWriter): def __init__(self, configFilePath): super(Writer, self)....
36.258621
127
0.601522
import logging import os import os.path import urllib from edge.writer.solrtemplateresponsewriter import SolrTemplateResponseWriter from edge.response.solrjsontemplateresponse import SolrJsonTemplateResponse class Writer(SolrTemplateResponseWriter): def __init__(self, configFilePath): super(Writer, self)....
true
true
f7675c0b47fb7b0c2198dfbac11782874ad71201
2,397
py
Python
python/tk_desktop_timecard/framework_qtwidgets.py
ajoss/tk-desktop-timecard
188e3a9f09b1c69b1200fdd02f492ce2ab55378b
[ "BSD-Source-Code" ]
10
2018-10-29T04:36:52.000Z
2022-01-28T17:07:04.000Z
python/tk_desktop_timecard/framework_qtwidgets.py
demon7x/tk-desktop-timecard
6f4ddb8497f29c3fc33481667fb34154b93caa05
[ "BSD-Source-Code" ]
null
null
null
python/tk_desktop_timecard/framework_qtwidgets.py
demon7x/tk-desktop-timecard
6f4ddb8497f29c3fc33481667fb34154b93caa05
[ "BSD-Source-Code" ]
7
2018-11-06T15:33:22.000Z
2021-12-21T18:19:29.000Z
# Copyright (c) 2015 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
36.876923
77
0.807259
import sgtk search_widget = sgtk.platform.import_framework( "tk-framework-qtwidgets", "search_widget") SearchWidget = search_widget.SearchWidget elided_label = sgtk.platform.import_framework( "tk-framework-qtwidgets", "elided_label") ElidedLabel = elided_label.ElidedLabel navigation = sgtk.platform.import_...
true
true
f7675d0ba0f1577435292b8274f14ddaf4575a6a
805
py
Python
jobsapp/forms.py
dguillen12/anem-per-feina
4b21f2edfc45651a395c62d1f1be0a702d4485c6
[ "MIT" ]
2
2020-03-31T23:46:39.000Z
2021-11-04T12:20:58.000Z
jobsapp/forms.py
dguillen12/anem-per-feina
4b21f2edfc45651a395c62d1f1be0a702d4485c6
[ "MIT" ]
4
2020-10-11T14:32:09.000Z
2020-10-11T15:05:45.000Z
jobsapp/forms.py
dguillen12/anem-per-feina
4b21f2edfc45651a395c62d1f1be0a702d4485c6
[ "MIT" ]
2
2022-02-24T15:15:16.000Z
2022-02-24T16:09:03.000Z
from django import forms from jobsapp.models import Job, Applicant class CreateJobForm(forms.ModelForm): class Meta: model = Job exclude = ('user', 'created_at',) labels = { "last_date": "Last Date", "company_name": "Company Name", "company_description"...
23
59
0.576398
from django import forms from jobsapp.models import Job, Applicant class CreateJobForm(forms.ModelForm): class Meta: model = Job exclude = ('user', 'created_at',) labels = { "last_date": "Last Date", "company_name": "Company Name", "company_description"...
true
true
f7675e7c64154b8192f0197d2f15f9a814251995
3,613
py
Python
classroom_tools/student_repositories/create_student_repo.py
TestOrgJustAymeric/ClassroomTools
034add9ad855a2909d0d413e42935c21a55da715
[ "MIT" ]
null
null
null
classroom_tools/student_repositories/create_student_repo.py
TestOrgJustAymeric/ClassroomTools
034add9ad855a2909d0d413e42935c21a55da715
[ "MIT" ]
null
null
null
classroom_tools/student_repositories/create_student_repo.py
TestOrgJustAymeric/ClassroomTools
034add9ad855a2909d0d413e42935c21a55da715
[ "MIT" ]
1
2021-01-17T04:00:25.000Z
2021-01-17T04:00:25.000Z
import argparse import distutils.util import github import requests from colorama import Fore, Style from classroom_tools import github_utils from classroom_tools.verifications import repo_is_template parser = argparse.ArgumentParser('Create test repositories') parser.add_argument( '--token', required=True, ...
31.146552
113
0.658179
import argparse import distutils.util import github import requests from colorama import Fore, Style from classroom_tools import github_utils from classroom_tools.verifications import repo_is_template parser = argparse.ArgumentParser('Create test repositories') parser.add_argument( '--token', required=True, ...
true
true
f7675f1bf73973b00276fb4a47106f1bd35286a4
12,145
py
Python
tests/iperf_test.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
1
2018-04-12T01:46:24.000Z
2018-04-12T01:46:24.000Z
tests/iperf_test.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
1
2019-02-03T17:06:21.000Z
2019-02-03T17:06:21.000Z
tests/iperf_test.py
mgualco-contractor/boardfarm
6a033e5dc84c7368fdd8ec2738b08b35ca7b07e7
[ "BSD-3-Clause-Clear" ]
1
2018-12-19T13:07:01.000Z
2018-12-19T13:07:01.000Z
# Copyright (c) 2015 # # All rights reserved. # # This file is distributed under the Clear BSD license. # The full text can be found in LICENSE in the root directory. import re import rootfs_boot import ipv6_setup import lib from lib import streamboost, installers from devices import board, wan, lan, wlan, prompt # ...
32.044855
95
0.612104
import re import rootfs_boot import ipv6_setup import lib from lib import streamboost, installers from devices import board, wan, lan, wlan, prompt time = 60 conns = 5 opts = "-t %s -P %s" % (time, conns) class iPerfTest(rootfs_boot.RootFSBootTest): @lib.common.run_once def wan_setup(self): install...
true
true
f7675f53f86e2b6eec00126125a4d6d225526d00
88
py
Python
powerline_taskwarrior/__init__.py
Zebradil/powerline-taskwarrior
3fe86666a70199993e53050044d0a846e74d7dee
[ "MIT" ]
66
2016-09-07T20:48:36.000Z
2021-12-09T20:01:08.000Z
powerline_taskwarrior/__init__.py
Zebradil/powerline-taskwarrior
3fe86666a70199993e53050044d0a846e74d7dee
[ "MIT" ]
10
2016-09-07T13:05:08.000Z
2021-10-14T00:22:57.000Z
powerline_taskwarrior/__init__.py
Zebradil/powerline-taskwarrior
3fe86666a70199993e53050044d0a846e74d7dee
[ "MIT" ]
7
2016-09-07T23:41:30.000Z
2021-02-13T23:23:01.000Z
from .segments import active_task, context, next_task, pending_tasks_count, taskwarrior
44
87
0.852273
from .segments import active_task, context, next_task, pending_tasks_count, taskwarrior
true
true
f767600ec83b13f1de6aada500f41682b0906a54
4,382
py
Python
platforms/ios/internal/metadata-generator/bin/build-step-metadata-generator.py
Torgo13/CarWashApp
88171e5020a5ddbf3134265670e5aab2e9ec04a0
[ "Apache-2.0" ]
null
null
null
platforms/ios/internal/metadata-generator/bin/build-step-metadata-generator.py
Torgo13/CarWashApp
88171e5020a5ddbf3134265670e5aab2e9ec04a0
[ "Apache-2.0" ]
null
null
null
platforms/ios/internal/metadata-generator/bin/build-step-metadata-generator.py
Torgo13/CarWashApp
88171e5020a5ddbf3134265670e5aab2e9ec04a0
[ "Apache-2.0" ]
1
2020-06-03T03:14:33.000Z
2020-06-03T03:14:33.000Z
#!/usr/bin/env python import os import subprocess import shlex import sys print("Python version: " + sys.version) def env(env_name): return os.environ[env_name] def env_or_none(env_name): return os.environ.get(env_name) def env_or_empty(env_name): result = env_or_none(env_name) if result is None...
40.201835
163
0.72524
import os import subprocess import shlex import sys print("Python version: " + sys.version) def env(env_name): return os.environ[env_name] def env_or_none(env_name): return os.environ.get(env_name) def env_or_empty(env_name): result = env_or_none(env_name) if result is None: return "" ...
true
true
f767601753d069a198f5c7e4695d48f5cdfc6955
263
py
Python
ihome/ihome/apps/homes/urls.py
woobrain/ihome
fbc7230fe6d445b2a258c49c48297258ae702bb3
[ "MIT" ]
null
null
null
ihome/ihome/apps/homes/urls.py
woobrain/ihome
fbc7230fe6d445b2a258c49c48297258ae702bb3
[ "MIT" ]
6
2021-04-30T21:32:43.000Z
2022-03-12T00:50:32.000Z
ihome/ihome/apps/homes/urls.py
woobrain/ihome
fbc7230fe6d445b2a258c49c48297258ae702bb3
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib.auth import views from homes.views import areaslist,houses urlpatterns = [ url(r'^areas$',areaslist.AreasListView.as_view(),name='areas'), url(r'^houses$',houses.HousesView.as_view(),name='houses'), ]
29.222222
67
0.741445
from django.conf.urls import url from django.contrib.auth import views from homes.views import areaslist,houses urlpatterns = [ url(r'^areas$',areaslist.AreasListView.as_view(),name='areas'), url(r'^houses$',houses.HousesView.as_view(),name='houses'), ]
true
true
f7676043758e5f95a6e883c2aae744b0a6488c20
4,739
py
Python
monasca_api/api/server.py
jgrassler/monasca-api
cf85e460544f6239ff773e2d778db6ffb251ffc7
[ "Apache-2.0" ]
null
null
null
monasca_api/api/server.py
jgrassler/monasca-api
cf85e460544f6239ff773e2d778db6ffb251ffc7
[ "Apache-2.0" ]
null
null
null
monasca_api/api/server.py
jgrassler/monasca-api
cf85e460544f6239ff773e2d778db6ffb251ffc7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 IBM Corp # (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP # Copyright 2017 Fujitsu LIMITED # # 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.a...
36.175573
80
0.722726
import os import falcon from monasca_common.simport import simport from oslo_config import cfg from oslo_log import log import paste.deploy from monasca_api.api.core import request from monasca_api import config LOG = log.getLogger(__name__) CONF = config.CONF def launch(conf): config.parse_args() app = ...
true
true
f767618f746ea7b412078ce252f224099c2abe4f
3,939
py
Python
lib/svtplay_dl/tests/output.py
avtobiff/svtplay-dl
dc2dc7dc6275b623e6c6877d2f638e00daa25603
[ "MIT" ]
null
null
null
lib/svtplay_dl/tests/output.py
avtobiff/svtplay-dl
dc2dc7dc6275b623e6c6877d2f638e00daa25603
[ "MIT" ]
null
null
null
lib/svtplay_dl/tests/output.py
avtobiff/svtplay-dl
dc2dc7dc6275b623e6c6877d2f638e00daa25603
[ "MIT" ]
null
null
null
#!/usr/bin/python # ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- # The unittest framwork doesn't play nice with pylint: # pylint: disable-msg=C0103 from __future__ import absolute_import import unittest import svtplay_dl.output from mock import patch # FIXME: use mock fra...
30.534884
71
0.61183
# pylint: disable-msg=C0103 from __future__ import absolute_import import unittest import svtplay_dl.output from mock import patch # FIXME: use mock framework instead of this hack class mockfile(object): def __init__(self): self.content = [] def write(self, string): self.content.append(st...
true
true
f76761bb4d801a2b04f616bbdaac90428d3b4556
725
py
Python
tests/test_main.py
kvahuja/vaindraft
9d592a562f4045765d7382a51847237afb114098
[ "MIT" ]
null
null
null
tests/test_main.py
kvahuja/vaindraft
9d592a562f4045765d7382a51847237afb114098
[ "MIT" ]
1
2018-05-29T06:43:20.000Z
2018-05-29T06:43:20.000Z
tests/test_main.py
kvahuja/vaindraft
9d592a562f4045765d7382a51847237afb114098
[ "MIT" ]
4
2018-04-11T02:02:54.000Z
2020-01-12T22:50:51.000Z
from .test_base import BaseTestCase class MainHandlerTest(BaseTestCase): def testFormSubmit(self): data = self.queue.get() ...
51.785714
129
0.394483
from .test_base import BaseTestCase class MainHandlerTest(BaseTestCase): def testFormSubmit(self): data = self.queue.get() ...
true
true
f76761ec3aafa505ee91c07b9e3817e856339993
1,882
py
Python
Projects/1_Sudoku/PySudoku.py
ABQady/SudokoSolver
7d2244bf82921c68412be4c90df188f5d7740eff
[ "MIT" ]
null
null
null
Projects/1_Sudoku/PySudoku.py
ABQady/SudokoSolver
7d2244bf82921c68412be4c90df188f5d7740eff
[ "MIT" ]
null
null
null
Projects/1_Sudoku/PySudoku.py
ABQady/SudokoSolver
7d2244bf82921c68412be4c90df188f5d7740eff
[ "MIT" ]
null
null
null
import sys, os, random, pygame sys.path.append(os.path.join("objects")) import SudokuSquare from utils import * from GameResources import * def play(values, result, history): assignments = reconstruct(result, history) pygame.init() size = width, height = 700, 700 screen = pygame.display.set_mode(size...
31.366667
100
0.519129
import sys, os, random, pygame sys.path.append(os.path.join("objects")) import SudokuSquare from utils import * from GameResources import * def play(values, result, history): assignments = reconstruct(result, history) pygame.init() size = width, height = 700, 700 screen = pygame.display.set_mode(size...
true
true
f76762e8ceee3b2bf55a191b1418a5d7c5b36f8f
1,426
py
Python
p3json/test/test_indent.py
wenbobuaa/pykit
43e38fe40297a1e7a9329bcf3db3554c7ca48ead
[ "MIT" ]
13
2016-12-16T09:23:09.000Z
2018-03-10T08:04:00.000Z
p3json/test/test_indent.py
wenbobuaa/pykit
43e38fe40297a1e7a9329bcf3db3554c7ca48ead
[ "MIT" ]
74
2017-03-23T11:36:22.000Z
2018-04-02T06:19:09.000Z
p3json/test/test_indent.py
drmingdrmer/pykit
e25a71146e81aaf79625cf8d4f4c439ccd515b82
[ "MIT" ]
5
2016-12-27T07:30:47.000Z
2018-03-10T07:06:21.000Z
import textwrap from StringIO import StringIO from pykit.p3json.test import PyTest class TestIndent(object): def test_indent(self): h = [['blorpie'], ['whoops'], [], 'd-shtaeou', 'd-nthiouh', 'i-vhbjkhnth', {'nifty': 87}, {'field': 'yes', 'morefield': False} ] expect = textwrap.deden...
23.766667
82
0.475456
import textwrap from StringIO import StringIO from pykit.p3json.test import PyTest class TestIndent(object): def test_indent(self): h = [['blorpie'], ['whoops'], [], 'd-shtaeou', 'd-nthiouh', 'i-vhbjkhnth', {'nifty': 87}, {'field': 'yes', 'morefield': False} ] expect = textwrap.deden...
true
true
f767650f464805a565051a41f98bf0cbc2d48b92
22,977
py
Python
demo/visEFTFit.py
yc4ny/eft
3e94efd9982d4ee25ffcfed9254590631264d94c
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
demo/visEFTFit.py
yc4ny/eft
3e94efd9982d4ee25ffcfed9254590631264d94c
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
demo/visEFTFit.py
yc4ny/eft
3e94efd9982d4ee25ffcfed9254590631264d94c
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import os from os.path import join from os import listdir from cv2 import FONT_HERSHEY_COMPLEX # import json import numpy as np import cv2 import pickle import torch # from smplx import SMPL from eft.models import SMPL_19 from eft.utils.imutils import crop, crop_bbo...
44.101727
199
0.636637
import os from os.path import join from os import listdir from cv2 import FONT_HERSHEY_COMPLEX import numpy as np import cv2 import pickle import torch from eft.models import SMPL_19 from eft.utils.imutils import crop, crop_bboxInfo from eft.utils.imutils import convert_smpl_to_bbox, convert_bbox_to_oriIm, conv_bbox...
true
true
f76765236ef26d8b82891924237ea01302495d38
99,427
py
Python
desktop/core/ext-py/Django-1.2.3/tests/regressiontests/admin_views/tests.py
digideskio/hortonworks-sandbox
dd8e95c91faee3daa094707baeb94c3953b41efa
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/Django-1.2.3/tests/regressiontests/admin_views/tests.py
abayer/hue
27213bb8fe89cdf0547109081e9f29c03bcc8ca5
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/Django-1.2.3/tests/regressiontests/admin_views/tests.py
abayer/hue
27213bb8fe89cdf0547109081e9f29c03bcc8ca5
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
# coding: utf-8 import re import datetime from django.conf import settings from django.core.files import temp as tempfile from django.contrib.auth import admin # Register auth models with the admin. from django.contrib.auth.models import User, Permission, UNUSABLE_PASSWORD from django.contrib.contenttypes.models impor...
44.546147
187
0.633973
import re import datetime from django.conf import settings from django.core.files import temp as tempfile from django.contrib.auth import admin from django.contrib.auth.models import User, Permission, UNUSABLE_PASSWORD from django.contrib.contenttypes.models import ContentType from django.contrib.admin.models import L...
true
true
f767656d99cf6f6944719407443635ce02aa9a99
1,692
py
Python
python/hard/(52) text-dollar.py
tdsymonds/codeeval
9f41143526661852d3d6473590deb65803e8037c
[ "MIT" ]
null
null
null
python/hard/(52) text-dollar.py
tdsymonds/codeeval
9f41143526661852d3d6473590deb65803e8037c
[ "MIT" ]
null
null
null
python/hard/(52) text-dollar.py
tdsymonds/codeeval
9f41143526661852d3d6473590deb65803e8037c
[ "MIT" ]
null
null
null
import sys def main(filepath): with open(filepath, 'r') as f: for line in f.readlines(): if line: line = line.strip() print number_in_words(int(line)) + 'Dollars' def number_in_words(number): # set the word lists numbers = ['Zero', '...
26.4375
65
0.528369
import sys def main(filepath): with open(filepath, 'r') as f: for line in f.readlines(): if line: line = line.strip() print number_in_words(int(line)) + 'Dollars' def number_in_words(number): numbers = ['Zero', 'One', 'Two', 'Three', ...
false
true
f76766e9e52135f963b9f6de46df923ac73788a9
10,402
py
Python
dataprep/eda/missing/compute.py
Sanjana12111994/dataprep
e94aae5ee73a650f86825432a8c8be04d46012d7
[ "MIT" ]
null
null
null
dataprep/eda/missing/compute.py
Sanjana12111994/dataprep
e94aae5ee73a650f86825432a8c8be04d46012d7
[ "MIT" ]
null
null
null
dataprep/eda/missing/compute.py
Sanjana12111994/dataprep
e94aae5ee73a650f86825432a8c8be04d46012d7
[ "MIT" ]
null
null
null
""" This module implements the plot_missing(df) function's calculating intermediate part """ from typing import Optional, Tuple, Union, List import dask import dask.array as da import dask.dataframe as dd import numpy as np import pandas as pd from scipy.stats import rv_histogram from ...errors import Unreach...
30.504399
86
0.584215
from typing import Optional, Tuple, Union, List import dask import dask.array as da import dask.dataframe as dd import numpy as np import pandas as pd from scipy.stats import rv_histogram from ...errors import UnreachableError from ..utils import to_dask from ..intermediate import Intermediate, ColumnsMetadata from ....
true
true
f76768a7044621f84522f5f2394cfc3bdbd92eb3
32,243
py
Python
Lib/compiler/pyassem.py
penguin-wwy/cinder
2699849639420e1ed77269a671c0d480efe0981d
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/compiler/pyassem.py
penguin-wwy/cinder
2699849639420e1ed77269a671c0d480efe0981d
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/compiler/pyassem.py
penguin-wwy/cinder
2699849639420e1ed77269a671c0d480efe0981d
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# Portions copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) # pyre-unsafe """A flow graph representation for Python bytecode""" from __future__ import annotations import sys from contextlib import contextmanager from types import CodeType from typing import Generator, List, Optional from . i...
33.586458
111
0.584189
from __future__ import annotations import sys from contextlib import contextmanager from types import CodeType from typing import Generator, List, Optional from . import opcodes, opcode_cinder from .consts import CO_NEWLOCALS, CO_OPTIMIZED, CO_SUPPRESS_JIT from .peephole import Optimizer try: import cinder ...
true
true
f76768e1f0ba6864693f957cb613d57f55b88b9a
643
py
Python
memberportal/group/migrations/0004_auto_20210102_1536.py
kodaxx/MemberMatters
880655bb3201441985a88a2f7750ad65cc781052
[ "MIT" ]
18
2020-02-03T12:38:53.000Z
2022-02-08T00:44:35.000Z
memberportal/group/migrations/0004_auto_20210102_1536.py
kodaxx/MemberMatters
880655bb3201441985a88a2f7750ad65cc781052
[ "MIT" ]
111
2020-02-02T05:02:01.000Z
2022-03-28T04:46:27.000Z
memberportal/group/migrations/0004_auto_20210102_1536.py
kodaxx/MemberMatters
880655bb3201441985a88a2f7750ad65cc781052
[ "MIT" ]
15
2020-02-03T11:03:30.000Z
2021-12-05T00:33:02.000Z
# Generated by Django 3.1.4 on 2021-01-02 05:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("group", "0003_auto_20201210_2050"), ] operations = [ migrations.AlterField( model_name="group", name="description", ...
24.730769
85
0.572317
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("group", "0003_auto_20201210_2050"), ] operations = [ migrations.AlterField( model_name="group", name="description", field=models.CharField(max_length=10...
true
true
f76768efcd9471c6bebbbef2a7ef7b03d5da9436
4,175
py
Python
tests/contrib/hooks/test_spark_sql_hook.py
tekn0ir/incubator-airflow
7df4405aa5a0c99e51722321caa7af660d35794b
[ "Apache-2.0" ]
4
2019-01-17T06:21:45.000Z
2020-06-20T01:59:57.000Z
tests/contrib/hooks/test_spark_sql_hook.py
tekn0ir/incubator-airflow
7df4405aa5a0c99e51722321caa7af660d35794b
[ "Apache-2.0" ]
14
2018-10-24T03:15:11.000Z
2019-01-02T19:02:58.000Z
tests/contrib/hooks/test_spark_sql_hook.py
tekn0ir/incubator-airflow
7df4405aa5a0c99e51722321caa7af660d35794b
[ "Apache-2.0" ]
6
2020-06-09T02:16:58.000Z
2021-12-27T15:46:32.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
35.381356
110
0.616048
import six import unittest from itertools import dropwhile from mock import patch, call from airflow import configuration, models from airflow.utils import db from airflow.contrib.hooks.spark_sql_hook import SparkSqlHook def get_after(sentinel, iterable): truncated = dropwhile(lambda el: el != sentinel, iterab...
true
true
f7676a02f8ce4dd4e9575c2a101f613cc8f076a0
60
py
Python
resolwe_project/base/views/__init__.py
JakaKokosar/resolwe_project
6ea9f5258701da6fb3810be2a0a4edd8e8610d4d
[ "Apache-2.0" ]
null
null
null
resolwe_project/base/views/__init__.py
JakaKokosar/resolwe_project
6ea9f5258701da6fb3810be2a0a4edd8e8610d4d
[ "Apache-2.0" ]
null
null
null
resolwe_project/base/views/__init__.py
JakaKokosar/resolwe_project
6ea9f5258701da6fb3810be2a0a4edd8e8610d4d
[ "Apache-2.0" ]
null
null
null
"“”General viwes.“”" from .csrf import * from .user import *
20
20
0.666667
from .csrf import * from .user import *
true
true
f7676acc9111c9b3148fc39577bd1e2a079bbb1b
7,053
py
Python
fairseq/fairseq/criterions/nat_loss.py
skeshaw/LoReNMT
32ffd83f38258dfffd324f811695a44ad33954f5
[ "Apache-2.0" ]
null
null
null
fairseq/fairseq/criterions/nat_loss.py
skeshaw/LoReNMT
32ffd83f38258dfffd324f811695a44ad33954f5
[ "Apache-2.0" ]
null
null
null
fairseq/fairseq/criterions/nat_loss.py
skeshaw/LoReNMT
32ffd83f38258dfffd324f811695a44ad33954f5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch.nn.functional as F from fairseq import utils import torch from torch import Tensor from . import Fairse...
35.984694
89
0.533532
import math import torch.nn.functional as F from fairseq import utils import torch from torch import Tensor from . import FairseqCriterion, register_criterion @register_criterion("nat_loss") class LabelSmoothedDualImitationCriterion(FairseqCriterion): @staticmethod def add_args(parser): ...
true
true
f7676af7c73139e0c60435631a1cd5e30427fc58
547
py
Python
descriptors/raw_gray_descriptor.py
RealJohnSmith/circulant_matrix_tracker
e6a2ba7718107c0c7e9f36db8c211e222d64c34f
[ "BSD-2-Clause" ]
null
null
null
descriptors/raw_gray_descriptor.py
RealJohnSmith/circulant_matrix_tracker
e6a2ba7718107c0c7e9f36db8c211e222d64c34f
[ "BSD-2-Clause" ]
null
null
null
descriptors/raw_gray_descriptor.py
RealJohnSmith/circulant_matrix_tracker
e6a2ba7718107c0c7e9f36db8c211e222d64c34f
[ "BSD-2-Clause" ]
1
2018-07-30T08:42:41.000Z
2018-07-30T08:42:41.000Z
import pylab def rgb2gray(rgb_image): "Based on http://stackoverflow.com/questions/12201577" # [0.299, 0.587, 0.144] normalized gives [0.29, 0.57, 0.14] return pylab.dot(rgb_image[:, :, :3], [0.29, 0.57, 0.14]) def initialize(usegpu): return 1 def describe(image): return rgb2gray(image).reshap...
22.791667
71
0.639854
import pylab def rgb2gray(rgb_image): return pylab.dot(rgb_image[:, :, :3], [0.29, 0.57, 0.14]) def initialize(usegpu): return 1 def describe(image): return rgb2gray(image).reshape([1, image.shape[0], image.shape[1]]) def update_roi(old_roi, moved_by): roi = old_roi roi[0] = round(moved_b...
true
true
f7676b05a137b036088a31471e73310cdc7f2c98
23,819
py
Python
main.py
torlenor/word_embeddings
74e9b4eb3ad4c89fa0c9319b07ff6c3e10f632d8
[ "MIT" ]
null
null
null
main.py
torlenor/word_embeddings
74e9b4eb3ad4c89fa0c9319b07ff6c3e10f632d8
[ "MIT" ]
null
null
null
main.py
torlenor/word_embeddings
74e9b4eb3ad4c89fa0c9319b07ff6c3e10f632d8
[ "MIT" ]
null
null
null
import glob from itertools import cycle from os import path import numpy as np import pandas as pd import plotly.express as px import plotly.graph_objs as go import streamlit as st from gensim.models import KeyedVectors, Word2Vec from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.man...
31.25853
340
0.581762
import glob from itertools import cycle from os import path import numpy as np import pandas as pd import plotly.express as px import plotly.graph_objs as go import streamlit as st from gensim.models import KeyedVectors, Word2Vec from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.man...
true
true
f7676b47277a23356272a3f7a74cd3b2065376f3
609
py
Python
src/princeton_scraper_cos_people/__init__.py
jlumbroso/princeton-scraper-cos-people
74f9e7a6844c11770cc6c4324f562be74eb3e8b5
[ "Unlicense" ]
6
2020-08-23T23:27:16.000Z
2021-06-16T19:59:34.000Z
src/princeton_scraper_cos_people/__init__.py
jlumbroso/princeton-scraper-cos-people
74f9e7a6844c11770cc6c4324f562be74eb3e8b5
[ "Unlicense" ]
null
null
null
src/princeton_scraper_cos_people/__init__.py
jlumbroso/princeton-scraper-cos-people
74f9e7a6844c11770cc6c4324f562be74eb3e8b5
[ "Unlicense" ]
null
null
null
""" Library to fetch and parse the public Princeton SEAS Faculty directory as a Python dictionary or JSON data source. """ __version__ = '1.0.0' __author__ = "Jérémie Lumbroso <lumbroso@cs.princeton.edu>" __all__ = [ "CosPersonType", "CosPersonInformation", "fetch_cos_people_directory", ] from princet...
24.36
82
0.788177
__version__ = '1.0.0' __author__ = "Jérémie Lumbroso <lumbroso@cs.princeton.edu>" __all__ = [ "CosPersonType", "CosPersonInformation", "fetch_cos_people_directory", ] from princeton_scraper_cos_people.parsing import CosPersonType from princeton_scraper_cos_people.parsing import CosPersonInformation fr...
true
true
f7676c3cc3e3bc5a86900870e06d3cc68de5d08d
281
py
Python
setup.py
rogalski/python-compat-libs-study
53ae17480004b38105cb0af17343c69c517f3421
[ "MIT" ]
null
null
null
setup.py
rogalski/python-compat-libs-study
53ae17480004b38105cb0af17343c69c517f3421
[ "MIT" ]
null
null
null
setup.py
rogalski/python-compat-libs-study
53ae17480004b38105cb0af17343c69c517f3421
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup setup(name='compatstudy', url='http://github.com/rogalski/python-compat-libs-study', author='Łukasz Rogalski', author_email='rogalski.91@gmail.com', license='MIT', packages=['compatstudy'] )
25.545455
64
0.637011
from setuptools import setup setup(name='compatstudy', url='http://github.com/rogalski/python-compat-libs-study', author='Łukasz Rogalski', author_email='rogalski.91@gmail.com', license='MIT', packages=['compatstudy'] )
true
true
f7676c813d14baf2a896a06d38dfbab84ea6b8c2
632
py
Python
configs/local_variables.py
Prabhakaran-Gokul/EagerMOT
f582f915495ef7b878c35a7afd15f2c340e0b2da
[ "MIT" ]
null
null
null
configs/local_variables.py
Prabhakaran-Gokul/EagerMOT
f582f915495ef7b878c35a7afd15f2c340e0b2da
[ "MIT" ]
null
null
null
configs/local_variables.py
Prabhakaran-Gokul/EagerMOT
f582f915495ef7b878c35a7afd15f2c340e0b2da
[ "MIT" ]
null
null
null
MOUNT_PATH = "" # in case you are mounting data storage externally SPLIT = 'mini_val' KITTI_WORK_DIR = MOUNT_PATH + "" KITTI_DATA_DIR = MOUNT_PATH + "" #NUSCENES_WORK_DIR = MOUNT_PATH + "/storage/slurm/kimal/eagermot_workspace/nuscenes" #NUSCENES_DATA_DIR = MOUNT_PATH + "/storage/slurm/kimal/datasets_original/nuscen...
39.5
94
0.764241
MOUNT_PATH = "" SPLIT = 'mini_val' KITTI_WORK_DIR = MOUNT_PATH + "" KITTI_DATA_DIR = MOUNT_PATH + "" NUSCENES_WORK_DIR = MOUNT_PATH + "C:\\Users\\prabh\\Documents\\Y4Sem1\\FYP\\EagerMOT\\mini_ws" NUSCENES_DATA_DIR = MOUNT_PATH + "C:\\Users\\prabh\\Documents\\Y4Sem1\\FYP\\mini"
true
true
f7676dd7922c89a89799bc8ec3d65853581a7336
7,831
py
Python
tests/nodeos_startup_catchup.py
SuperBladeMaster/EOS
11d35f0f934402321853119d36caeb7022813743
[ "Apache-2.0", "MIT" ]
13,162
2017-05-29T22:08:27.000Z
2022-03-29T19:25:05.000Z
tests/nodeos_startup_catchup.py
SuperBladeMaster/EOS
11d35f0f934402321853119d36caeb7022813743
[ "Apache-2.0", "MIT" ]
6,450
2017-05-30T14:41:50.000Z
2022-03-30T11:30:04.000Z
tests/nodeos_startup_catchup.py
SuperBladeMaster/EOS
11d35f0f934402321853119d36caeb7022813743
[ "Apache-2.0", "MIT" ]
4,491
2017-05-29T22:08:32.000Z
2022-03-29T07:09:52.000Z
#!/usr/bin/env python3 from testUtils import Utils import testUtils import time from Cluster import Cluster from WalletMgr import WalletMgr from Node import BlockType from Node import Node import signal from TestHelper import AppArgs from TestHelper import TestHelper import decimal import math import re ############...
39.954082
204
0.72992
from testUtils import Utils import testUtils import time from Cluster import Cluster from WalletMgr import WalletMgr from Node import BlockType from Node import Node import signal from TestHelper import AppArgs from TestHelper import TestHelper import decimal import math import re Print=Utils.Print errorExit=Utils....
true
true
f7676e38d45586d9803be221149965ca86e9de50
2,137
py
Python
wagtailaltgenerator/tests/test_signals.py
zerolab/wagtail-alt-generator
febad4a3d31ed94627d5f17e61ad9b65bcaf1732
[ "MIT" ]
82
2016-11-21T09:52:42.000Z
2022-03-28T01:58:59.000Z
wagtailaltgenerator/tests/test_signals.py
zerolab/wagtail-alt-generator
febad4a3d31ed94627d5f17e61ad9b65bcaf1732
[ "MIT" ]
50
2016-12-01T09:23:05.000Z
2021-07-16T04:22:34.000Z
wagtailaltgenerator/tests/test_signals.py
mikiec84/wagtail-alt-generator
6196553b1a0059580b5c8704cf49a2e0504ead52
[ "MIT" ]
13
2016-12-04T11:51:12.000Z
2020-11-25T20:42:13.000Z
from unittest import mock from django.test import TestCase, override_settings from wagtail.images import get_image_model from wagtail.images.tests.utils import get_test_image_file from wagtail_factories import ImageFactory from wagtailaltgenerator.providers import DescriptionResult from wagtailaltgenerator.providers....
35.032787
86
0.640618
from unittest import mock from django.test import TestCase, override_settings from wagtail.images import get_image_model from wagtail.images.tests.utils import get_test_image_file from wagtail_factories import ImageFactory from wagtailaltgenerator.providers import DescriptionResult from wagtailaltgenerator.providers....
true
true
f7676e84d00e52a823414cebcd2dd4b0bf770755
2,782
py
Python
coherence/upnp/core/msearch.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
21
2015-05-23T09:34:40.000Z
2021-08-09T04:42:44.000Z
coherence/upnp/core/msearch.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
7
2015-05-24T12:19:49.000Z
2020-05-21T09:27:43.000Z
coherence/upnp/core/msearch.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
4
2015-05-23T09:34:29.000Z
2019-08-02T09:21:12.000Z
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # # Copyright (C) 2006 Fluendo, S.A. (www.fluendo.com). # Copyright 2006, Frank Scholz <coherence@beebits.net> import socket import time from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor from tw...
36.605263
110
0.569734
import socket import time from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor from twisted.internet import task from coherence.upnp.core import utils import coherence.extern.louie as louie SSDP_PORT = 1900 SSDP_ADDR = '239.255.255.250' from coherence import log class MSea...
false
true
f7676f93a5d4a419b861f0d6ddbeb2244ddbda94
76,232
py
Python
saleor/graphql/meta/tests/test_meta_queries.py
Manfred-Madelaine-pro/saleor
540c621a5d784af99ce79c603c62ebe8cd516850
[ "CC-BY-4.0" ]
4
2021-01-19T09:53:41.000Z
2021-01-19T20:39:27.000Z
saleor/graphql/meta/tests/test_meta_queries.py
Manfred-Madelaine-pro/saleor
540c621a5d784af99ce79c603c62ebe8cd516850
[ "CC-BY-4.0" ]
9
2021-03-31T19:53:28.000Z
2021-12-13T20:42:32.000Z
saleor/graphql/meta/tests/test_meta_queries.py
Manfred-Madelaine-pro/saleor
540c621a5d784af99ce79c603c62ebe8cd516850
[ "CC-BY-4.0" ]
1
2021-08-03T14:45:50.000Z
2021-08-03T14:45:50.000Z
import graphene from ...tests.utils import assert_no_permission, get_graphql_content PRIVATE_KEY = "private_key" PRIVATE_VALUE = "private_vale" PUBLIC_KEY = "key" PUBLIC_VALUE = "value" QUERY_SELF_PUBLIC_META = """ { me{ metadata{ key value } ...
29.547287
88
0.703169
import graphene from ...tests.utils import assert_no_permission, get_graphql_content PRIVATE_KEY = "private_key" PRIVATE_VALUE = "private_vale" PUBLIC_KEY = "key" PUBLIC_VALUE = "value" QUERY_SELF_PUBLIC_META = """ { me{ metadata{ key value } ...
true
true
f76770c4ff69ad98a9f866baf24458d12691e245
1,491
py
Python
utils/scripts/OOOlevelGen/src/daily_levels/The_Bridge_To_Far.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/daily_levels/The_Bridge_To_Far.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/daily_levels/The_Bridge_To_Far.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
import LevelBuilder from sprites import * def render(name,bg): lb = LevelBuilder.LevelBuilder(name+".plist",background=bg) lb.addObject(Beam.BeamSprite(x=240, y=166,width=60,height=10,angle='0',restitution=0.2,static='false',friction=0.5,density=10 ).setName('Beam4')) lb.addObject(Beam.BeamSprite(x=445, y=222,width=...
1,491
1,491
0.732394
import LevelBuilder from sprites import * def render(name,bg): lb = LevelBuilder.LevelBuilder(name+".plist",background=bg) lb.addObject(Beam.BeamSprite(x=240, y=166,width=60,height=10,angle='0',restitution=0.2,static='false',friction=0.5,density=10 ).setName('Beam4')) lb.addObject(Beam.BeamSprite(x=445, y=222,width=...
true
true
f76771598ec7cb7804d9eccbb2d7b80471b7427a
588
py
Python
models/player.py
CheezItMan/flask-tic-tac-toe-api
2862b7030c78d7475ce818bb7915805d10837431
[ "MIT" ]
null
null
null
models/player.py
CheezItMan/flask-tic-tac-toe-api
2862b7030c78d7475ce818bb7915805d10837431
[ "MIT" ]
null
null
null
models/player.py
CheezItMan/flask-tic-tac-toe-api
2862b7030c78d7475ce818bb7915805d10837431
[ "MIT" ]
null
null
null
from app import db class Player(db.Model): __tablename__ = "players" id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(128)) # TODO maybe make uid and provider TOGETHER be unique # UniqueConstraint('col2', 'col3', name='uix_1') uid = db.Column(d...
24.5
68
0.605442
from app import db class Player(db.Model): __tablename__ = "players" id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(128)) uid = db.Column(db.String(256), unique=True) def to_dict(self): return { "id": self.id, ...
true
true
f767721ae12b54d548839e3b65268f0bb6d2e349
2,330
py
Python
numba/tests/test_fbcorr.py
aseyboldt/numba
0c0a8aa7a7cad8b5f0a5383101f5cca5a4a89df3
[ "BSD-2-Clause" ]
1
2019-04-17T10:03:53.000Z
2019-04-17T10:03:53.000Z
numba/tests/test_fbcorr.py
glycerine/numba
4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635
[ "BSD-2-Clause" ]
null
null
null
numba/tests/test_fbcorr.py
glycerine/numba
4cb9e4f0b3cabd9e6a144fa4f3f7e5d6bee45635
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python # ______________________________________________________________________ '''test_fbcorr Test the fbcorr() example .... ''' # ______________________________________________________________________ import numpy as np import numba from numba.decorators import jit nd4type = numba.double[:,:,:,:] ...
33.768116
76
0.633047
'''test_fbcorr Test the fbcorr() example .... ''' import numpy as np import numba from numba.decorators import jit nd4type = numba.double[:,:,:,:] import sys import unittest def fbcorr(imgs, filters, output): n_imgs, n_rows, n_cols, n_channels = imgs.shape n_filters, height, width, n_ch2 = filters.shape ...
false
true
f7677237d5dd71850820b798379ef1e16c6d00b8
4,671
py
Python
tools/pot/openvino/tools/pot/app/run.py
shaun95/openvino
a3d5b6501d851e604a0cd363a100f42ec4369469
[ "Apache-2.0" ]
1
2022-03-09T08:11:10.000Z
2022-03-09T08:11:10.000Z
tools/pot/openvino/tools/pot/app/run.py
wgzintel/openvino
334e9e994e1e64d060edc989c77fab35919e378d
[ "Apache-2.0" ]
1
2022-02-13T09:56:15.000Z
2022-02-13T09:56:15.000Z
tools/pot/openvino/tools/pot/app/run.py
AlexRogalskiy/openvino
ac2e639ff8f9a607c3c682a4c4e165c238eb817f
[ "Apache-2.0" ]
1
2020-12-13T22:16:54.000Z
2020-12-13T22:16:54.000Z
# Copyright (C) 2020-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import sys from datetime import datetime import os from pathlib import Path from openvino.tools.pot.app.argparser import get_common_argument_parser, check_dependencies from openvino.tools.pot.configs.config import Config from openvino....
34.6
107
0.720831
import sys from datetime import datetime import os from pathlib import Path from openvino.tools.pot.app.argparser import get_common_argument_parser, check_dependencies from openvino.tools.pot.configs.config import Config from openvino.tools.pot.data_loaders.creator import create_data_loader from openvino.tools.pot.e...
true
true
f76772a3ad9d52be76b0300718c7fee406502015
10,006
py
Python
catalyst/tools/settings.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
null
null
null
catalyst/tools/settings.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
null
null
null
catalyst/tools/settings.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # @TODO: code formatting issue for 20.07 release from typing import Any, Dict, List, Optional, Tuple import configparser import logging import os from catalyst.tools.frozen_class import FrozenClass logger = logging.getLogger(__name__) class Settings(FrozenClass): def __init__( self, ...
34.743056
77
0.634419
from typing import Any, Dict, List, Optional, Tuple import configparser import logging import os from catalyst.tools.frozen_class import FrozenClass logger = logging.getLogger(__name__) class Settings(FrozenClass): def __init__( self, contrib_required: bool = False, cv_required: bool = F...
true
true
f767749d9c51f266691fc631141202687d0b484d
228
py
Python
setup.py
deletunde/inflammation
d1829bbd08f0f0e10692855052989fdf17494b43
[ "MIT" ]
null
null
null
setup.py
deletunde/inflammation
d1829bbd08f0f0e10692855052989fdf17494b43
[ "MIT" ]
null
null
null
setup.py
deletunde/inflammation
d1829bbd08f0f0e10692855052989fdf17494b43
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='software carpentry inflammation project', author='Emmanuel Akano', license='MIT', )
20.727273
58
0.688596
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='software carpentry inflammation project', author='Emmanuel Akano', license='MIT', )
true
true
f7677a7c026d1ed889126a9a77482e03310f093c
6,751
py
Python
sdk/python/pulumi_azure_native/datashare/v20200901/get_adls_gen1_folder_data_set.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/v20200901/get_adls_gen1_folder_data_set.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/v20200901/get_adls_gen1_folder_data_set.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
35.34555
185
0.636943
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs __all__ = [ 'GetADLSGen1FolderDataSetResult', 'AwaitableGetADLSGen1FolderDataSetResult', 'get_adls_gen1_folder_data_set', ] @pulumi.out...
true
true
f7677c8b98edd041ddd33eb31fb24c248cd9598d
1,037
py
Python
tests/pprzlink01.py
pnarvor/nephelae_paparazzi
1c000444c39b342e90f39f432737ef06be762f56
[ "BSD-3-Clause" ]
null
null
null
tests/pprzlink01.py
pnarvor/nephelae_paparazzi
1c000444c39b342e90f39f432737ef06be762f56
[ "BSD-3-Clause" ]
null
null
null
tests/pprzlink01.py
pnarvor/nephelae_paparazzi
1c000444c39b342e90f39f432737ef06be762f56
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python3 import os import sys import argparse import time import signal from ivy.std_api import * import logging PPRZ_HOME = os.getenv("PAPARAZZI_HOME", os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../'))) sys.path.append(PPRZ_HOME + "/var/lib/python") from pprzlink.iv...
24.116279
128
0.737705
import os import sys import argparse import time import signal from ivy.std_api import * import logging PPRZ_HOME = os.getenv("PAPARAZZI_HOME", os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../'))) sys.path.append(PPRZ_HOME + "/var/lib/python") from pprzlink.ivy import IvyMessages...
true
true
f7677d9cc56a5d9ac35c1f56f90b26254f11c31a
258
py
Python
server/apps/streamnote/templatetags/note_tags.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/streamnote/templatetags/note_tags.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/streamnote/templatetags/note_tags.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
import logging from django import template from apps.streamnote.models import StreamNote register = template.Library() logger = logging.getLogger(__name__) @register.filter def notes(obj): qs = StreamNote.objects.object_notes_qs(obj) return qs
16.125
48
0.775194
import logging from django import template from apps.streamnote.models import StreamNote register = template.Library() logger = logging.getLogger(__name__) @register.filter def notes(obj): qs = StreamNote.objects.object_notes_qs(obj) return qs
true
true
f7677e138b6c8cecc61131fb816264150b72a273
10,292
py
Python
tutorial/3.1_LMBFF.py
creativeautomaton/OpenPrompt
8772795a0850a733c5544f32e62ec0d5075ed1ee
[ "Apache-2.0" ]
1
2022-01-18T09:10:00.000Z
2022-01-18T09:10:00.000Z
tutorial/3.1_LMBFF.py
Spritebai/OpenPrompt
bd9ea544ab144d94af32d245101ba35c9d5a5a65
[ "Apache-2.0" ]
null
null
null
tutorial/3.1_LMBFF.py
Spritebai/OpenPrompt
bd9ea544ab144d94af32d245101ba35c9d5a5a65
[ "Apache-2.0" ]
null
null
null
# %% [markdown] # ## Text Classification with LM-BFF. # In this tutorial, we do sentiment analysis with automatic template and verbalizer generation. We use SST-2 as an example. # %% [markdown] # ### 1. load dataset # %% # import argparse # parser = argparse.ArgumentParser("") # parser.add_argument("--lr", type=float...
42.528926
300
0.722211
from openprompt.data_utils.text_classification_dataset import SST2Processor dataset = {} dataset['train'] = SST2Processor().get_train_examples("./datasets/TextClassification/SST-2/16-shot/16-13") dataset['validation'] = SST2Processor().get_dev_examples("./datasets/TextClassification/SST-2/16-shot/16-13") dataset['tes...
true
true
f767808d90d622807b43865f3021fc7b22096bef
2,561
py
Python
supersqlite/third_party/_apsw/tools/checksums.py
plasticity-admin/supersqlite
d74da749c6fa5df021df3968b854b9a59f829e17
[ "MIT" ]
1,520
2018-03-01T13:37:49.000Z
2022-03-25T11:40:20.000Z
supersqlite/third_party/_apsw/tools/checksums.py
plasticity-admin/supersqlite
d74da749c6fa5df021df3968b854b9a59f829e17
[ "MIT" ]
87
2018-03-03T15:12:50.000Z
2022-02-21T15:24:12.000Z
supersqlite/third_party/_apsw/tools/checksums.py
plasticity-admin/supersqlite
d74da749c6fa5df021df3968b854b9a59f829e17
[ "MIT" ]
121
2018-03-03T08:40:53.000Z
2022-03-16T05:19:38.000Z
#!/usr/bin/env python # # See the accompanying LICENSE file. # import urllib2 import hashlib import re sqlitevers=( '3250200', '3250100', '3250000', '3240000', '3230100', '3230000', '3220000', '3210000', '3200100', '3200000', '3190300', '3190200', '3190100', '319...
23.495413
90
0.517766
import urllib2 import hashlib import re sqlitevers=( '3250200', '3250100', '3250000', '3240000', '3230100', '3230000', '3220000', '3210000', '3200100', '3200000', '3190300', '3190200', '3190100', '3190000', '3180000', '3170000', '3160200', '316010...
false
true
f76780ce7f3708f827116057eb241f6f6d9bdd01
4,116
py
Python
src/integration-tests/lp/problem_infeasible.py
alexbahnisch/mosi
9a32d10b34b7fa77d8c87a6ebfc130e9739f5585
[ "MIT" ]
1
2017-07-12T13:09:39.000Z
2017-07-12T13:09:39.000Z
src/integration-tests/lp/problem_infeasible.py
alexbahnisch/mosi.py
9a32d10b34b7fa77d8c87a6ebfc130e9739f5585
[ "MIT" ]
null
null
null
src/integration-tests/lp/problem_infeasible.py
alexbahnisch/mosi.py
9a32d10b34b7fa77d8c87a6ebfc130e9739f5585
[ "MIT" ]
null
null
null
#!/usr/bin/env python from shutil import rmtree from mosi.common import ModelStatus, NoValue from mosi.lp import Model, FloatVariable # noinspection PyPackageRequirements,PyUnresolvedReferences from init import ( CBC_LP_SOLVER, CBC_MPS_SOLVER, CPLEX_LP_SOLVER, CPLEX_MPS_SOLVER, GLPK_LP_SOLVER, GLPK_MPS_SOLVER...
29.4
103
0.718173
from shutil import rmtree from mosi.common import ModelStatus, NoValue from mosi.lp import Model, FloatVariable from init import ( CBC_LP_SOLVER, CBC_MPS_SOLVER, CPLEX_LP_SOLVER, CPLEX_MPS_SOLVER, GLPK_LP_SOLVER, GLPK_MPS_SOLVER, LP_SOLVER_LP_SOLVER, LP_SOLVER_MPS_SOLVER, Problem ) DELETE = True DIRECTORY =...
true
true
f7678123ea5340826c6562c5fba3502068a8ddd4
3,676
py
Python
tests/test_dataset/test_ocr_seg_dataset.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
2,261
2021-04-08T03:45:41.000Z
2022-03-31T23:37:46.000Z
tests/test_dataset/test_ocr_seg_dataset.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
789
2021-04-08T05:40:13.000Z
2022-03-31T09:42:39.000Z
tests/test_dataset/test_ocr_seg_dataset.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
432
2021-04-08T03:56:16.000Z
2022-03-30T18:44:43.000Z
# Copyright (c) OpenMMLab. All rights reserved. import json import math import os.path as osp import tempfile import pytest from mmocr.datasets.ocr_seg_dataset import OCRSegDataset def _create_dummy_ann_file(ann_file): ann_info1 = { 'file_name': 'sample1.png', 'annotations': [{ ...
28.496124
78
0.547062
import json import math import os.path as osp import tempfile import pytest from mmocr.datasets.ocr_seg_dataset import OCRSegDataset def _create_dummy_ann_file(ann_file): ann_info1 = { 'file_name': 'sample1.png', 'annotations': [{ 'char_text': 'F', 'ch...
true
true
f767812fc8c294d95a11df956ab00bcda715033a
48,812
py
Python
h2o-bindings/bin/gen_R.py
Judahh/h2o-3
e3d1770b2c9b7a66af6fe1eee0c472879771a9a9
[ "Apache-2.0" ]
null
null
null
h2o-bindings/bin/gen_R.py
Judahh/h2o-3
e3d1770b2c9b7a66af6fe1eee0c472879771a9a9
[ "Apache-2.0" ]
null
null
null
h2o-bindings/bin/gen_R.py
Judahh/h2o-3
e3d1770b2c9b7a66af6fe1eee0c472879771a9a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import unicode_literals import bindings as bi import sys PY3 = sys.version_info[0] == 3 str_type = str if PY3 else (str, unicode) # ---------------------------------------------------------------------------------------------------------------------- # ...
52.429646
291
0.572503
from __future__ import unicode_literals import bindings as bi import sys PY3 = sys.version_info[0] == 3 str_type = str if PY3 else (str, unicode) def gen_module(schema, algo, module): help_preamble = help_preamble_for(algo) help_details = help_details_for(algo) help_return = help_return_for(algo) help...
true
true
f76781418ef1e423ed98b97890791ef7aca02b31
8,015
py
Python
wienerschnitzelgemeinschaft/src/shai/fastai/other_ensemble_scripts/enstw41.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/shai/fastai/other_ensemble_scripts/enstw41.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/shai/fastai/other_ensemble_scripts/enstw41.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
# individual nan corrected # Final nan matches highest probable label (optional) import pandas as pd import numpy as np from tqdm import tqdm import matplotlib.pyplot as plt SAMPLE = '../input/sample_submission.csv' label_names = { 0: "Nucleoplasm", 1: "Nuclear membrane", 2: "Nucleoli", ...
41.102564
120
0.483968
import pandas as pd import numpy as np from tqdm import tqdm import matplotlib.pyplot as plt SAMPLE = '../input/sample_submission.csv' label_names = { 0: "Nucleoplasm", 1: "Nuclear membrane", 2: "Nucleoli", 3: "Nucleoli fibrillar center", 4: "Nuclear speckles", 5:...
true
true
f76782c8b3795abcb74e2b98011b5e3262d7785f
48,423
py
Python
Lib/site-packages/sklearn/metrics/tests/test_pairwise.py
MustafaAbbas110/FinalProject
30d371f06a8a1875285cfd4a8940ca3610ec1274
[ "BSD-3-Clause" ]
4
2020-01-22T20:07:06.000Z
2021-01-23T23:34:28.000Z
Lib/site-packages/sklearn/metrics/tests/test_pairwise.py
MustafaAbbas110/FinalProject
30d371f06a8a1875285cfd4a8940ca3610ec1274
[ "BSD-3-Clause" ]
4
2021-03-11T05:09:40.000Z
2021-09-02T15:56:43.000Z
Lib/site-packages/sklearn/metrics/tests/test_pairwise.py
MustafaAbbas110/FinalProject
30d371f06a8a1875285cfd4a8940ca3610ec1274
[ "BSD-3-Clause" ]
2
2022-03-11T16:11:48.000Z
2022-03-16T04:58:41.000Z
from types import GeneratorType import numpy as np from numpy import linalg from scipy.sparse import dok_matrix, csr_matrix, issparse from scipy.spatial.distance import cosine, cityblock, minkowski, wminkowski from scipy.spatial.distance import cdist, pdist, squareform import pytest from sklearn import config_conte...
37.94906
79
0.660864
from types import GeneratorType import numpy as np from numpy import linalg from scipy.sparse import dok_matrix, csr_matrix, issparse from scipy.spatial.distance import cosine, cityblock, minkowski, wminkowski from scipy.spatial.distance import cdist, pdist, squareform import pytest from sklearn import config_conte...
true
true
f767830b30002a19af22d0024bd4264b13af0fcf
3,069
py
Python
modoboa/core/commands/__init__.py
vietbm-hcm/modoboa
ceeec1bf0a63cf1b3ef7b4087c06e2a1eb35598d
[ "ISC" ]
null
null
null
modoboa/core/commands/__init__.py
vietbm-hcm/modoboa
ceeec1bf0a63cf1b3ef7b4087c06e2a1eb35598d
[ "ISC" ]
null
null
null
modoboa/core/commands/__init__.py
vietbm-hcm/modoboa
ceeec1bf0a63cf1b3ef7b4087c06e2a1eb35598d
[ "ISC" ]
null
null
null
# coding: utf-8 import argparse import os import sys from django.conf import settings from django.template import Context, Template class Command(object): """Base command class. A valid administrative command must inherit from this class. """ help = "No help available." def __init__(self, com...
30.386139
78
0.59042
import argparse import os import sys from django.conf import settings from django.template import Context, Template class Command(object): help = "No help available." def __init__(self, commands, verbose=False): self._commands = commands self._parser = argparse.ArgumentParser() sel...
true
true
f7678318a0313d443e44beaf236ee3a89c7699c4
4,098
py
Python
tests/python/test_array.py
karpierz/jtypes.jep
0e2347c3144022313802183c75fc8944ac6ddef5
[ "Zlib" ]
1
2021-05-18T03:38:21.000Z
2021-05-18T03:38:21.000Z
tests/python/test_array.py
karpierz/jtypes.jep
0e2347c3144022313802183c75fc8944ac6ddef5
[ "Zlib" ]
null
null
null
tests/python/test_array.py
karpierz/jtypes.jep
0e2347c3144022313802183c75fc8944ac6ddef5
[ "Zlib" ]
null
null
null
from __future__ import absolute_import import os import unittest from jep import jarray, JINT_ID, JBYTE_ID class TestArray(unittest.TestCase): def test_initialization(self): ar = jarray(1, JINT_ID, 7) self.assertEqual(ar[0], 7) def test_setitem(self): ar = jarray(1, JINT_ID, 0) ...
29.271429
61
0.572718
from __future__ import absolute_import import os import unittest from jep import jarray, JINT_ID, JBYTE_ID class TestArray(unittest.TestCase): def test_initialization(self): ar = jarray(1, JINT_ID, 7) self.assertEqual(ar[0], 7) def test_setitem(self): ar = jarray(1, JINT_ID, 0) ...
true
true
f76783a13bcd3f8d7a711d845cf07cb97ac2c890
25,879
py
Python
storage/old_malpaca/mal-detection.py
mrjojo11/malpaca-pub
26fd3a7045288bed66d624e0f5593067ff05952d
[ "MIT" ]
null
null
null
storage/old_malpaca/mal-detection.py
mrjojo11/malpaca-pub
26fd3a7045288bed66d624e0f5593067ff05952d
[ "MIT" ]
null
null
null
storage/old_malpaca/mal-detection.py
mrjojo11/malpaca-pub
26fd3a7045288bed66d624e0f5593067ff05952d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys, dpkt, datetime, glob, os, operator, subprocess, csv import socket import matplotlib from collections import deque import copy from itertools import permutations from dtw import dtw from fastdtw import fastdtw from math import log from sklearn.preprocessing import OneHotEncoder from sklea...
31.368485
250
0.529928
import sys, dpkt, datetime, glob, os, operator, subprocess, csv import socket import matplotlib from collections import deque import copy from itertools import permutations from dtw import dtw from fastdtw import fastdtw from math import log from sklearn.preprocessing import OneHotEncoder from sklearn.cluster import K...
true
true
f76783fd220da6f5449c9fba54bf0bc3be9d5d1f
438
py
Python
maskrcnn_benchmark/data/datasets/__init__.py
jainxy/maskrcnn-benchmark
973fb82e0c3779d0b54ed0360f321dad9e64c62a
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/__init__.py
jainxy/maskrcnn-benchmark
973fb82e0c3779d0b54ed0360f321dad9e64c62a
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/__init__.py
jainxy/maskrcnn-benchmark
973fb82e0c3779d0b54ed0360f321dad9e64c62a
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .coco import COCODataset from .voc import PascalVOCDataset from .concat_dataset import ConcatDataset from .abstract import AbstractDataset from .cityscapes import CityScapesDataset from .msize import MSIZEDataset __all__ = [ "COCODataset...
24.333333
71
0.760274
from .coco import COCODataset from .voc import PascalVOCDataset from .concat_dataset import ConcatDataset from .abstract import AbstractDataset from .cityscapes import CityScapesDataset from .msize import MSIZEDataset __all__ = [ "COCODataset", "ConcatDataset", "PascalVOCDataset", "AbstractDataset", ...
true
true
f7678547c47be1b552d89cab3d1aad0d20f86d7e
3,701
py
Python
src/ethereum/__init__.py
decentralised-dataexchange/ebsi-wallet
d4c68e381283fc6ec265b445ed62a8d6558828a4
[ "Apache-2.0" ]
null
null
null
src/ethereum/__init__.py
decentralised-dataexchange/ebsi-wallet
d4c68e381283fc6ec265b445ed62a8d6558828a4
[ "Apache-2.0" ]
null
null
null
src/ethereum/__init__.py
decentralised-dataexchange/ebsi-wallet
d4c68e381283fc6ec265b445ed62a8d6558828a4
[ "Apache-2.0" ]
null
null
null
import secrets import typing import json from sha3 import keccak_256 from coincurve import PublicKey, PrivateKey from jwcrypto import jwk class Ethereum: def __init__(self): # Ethereum private keys are 32 bytes long. self._private_key = keccak_256(secrets.token_bytes(32)).digest() # Et...
26.248227
95
0.592813
import secrets import typing import json from sha3 import keccak_256 from coincurve import PublicKey, PrivateKey from jwcrypto import jwk class Ethereum: def __init__(self): self._private_key = keccak_256(secrets.token_bytes(32)).digest() self._public_ke...
true
true
f76785524fb89535e74faefdd6b3a021788af39e
3,236
py
Python
docker/app/app/backend/apps/accounts/migrations/0001_initial.py
JTarball/tetherbox
cae7a4bb6e29da0f34670f8c8d228faf5f909f3a
[ "0BSD" ]
null
null
null
docker/app/app/backend/apps/accounts/migrations/0001_initial.py
JTarball/tetherbox
cae7a4bb6e29da0f34670f8c8d228faf5f909f3a
[ "0BSD" ]
null
null
null
docker/app/app/backend/apps/accounts/migrations/0001_initial.py
JTarball/tetherbox
cae7a4bb6e29da0f34670f8c8d228faf5f909f3a
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone import django.core.validators import django.contrib.auth.models class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] ...
70.347826
432
0.6644
from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone import django.core.validators import django.contrib.auth.models class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ ...
true
true
f767863918792744b60614e04ddda3618b354102
4,198
py
Python
tools/data/activitynet/download.py
jin-s13/mmaction2
ffa678c675744fea99246446c63177d947faea83
[ "Apache-2.0" ]
47
2021-09-02T10:42:29.000Z
2022-03-31T01:37:49.000Z
tools/data/activitynet/download.py
xumingze0308/mmaction2
777546f27f8f5a3c83e10d966e2149be2fc9fa31
[ "Apache-2.0" ]
2
2021-12-05T02:28:42.000Z
2022-01-05T06:46:10.000Z
tools/data/activitynet/download.py
xumingze0308/mmaction2
777546f27f8f5a3c83e10d966e2149be2fc9fa31
[ "Apache-2.0" ]
6
2021-09-19T16:31:32.000Z
2022-03-03T06:57:34.000Z
# This scripts is copied from # https://github.com/activitynet/ActivityNet/blob/master/Crawler/Kinetics/download.py # noqa: E501 # The code is licensed under the MIT licence. import os import ssl import subprocess import mmcv from joblib import Parallel, delayed ssl._create_default_https_context = ssl._create_unveri...
33.854839
99
0.649119
import os import ssl import subprocess import mmcv from joblib import Parallel, delayed ssl._create_default_https_context = ssl._create_unverified_context data_file = '../../../data/ActivityNet' video_list = f'{data_file}/video_info_new.csv' anno_file = f'{data_file}/anet_anno_action.json' output_dir = f'{data_file}/...
true
true
f767869d3a36226bb4da9592628e4d0d39ba1091
3,169
py
Python
ingenico/connect/sdk/domain/services/definitions/payment_context.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
12
2016-09-26T21:46:31.000Z
2020-12-23T18:44:54.000Z
ingenico/connect/sdk/domain/services/definitions/payment_context.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
3
2020-05-02T16:53:02.000Z
2020-06-02T12:49:51.000Z
ingenico/connect/sdk/domain/services/definitions/payment_context.py
festicket/connect-sdk-python3
c399c6443789dd978f319c89e1ebd387c812a77b
[ "MIT" ]
11
2017-07-16T00:55:28.000Z
2021-09-24T17:00:49.000Z
# -*- coding: utf-8 -*- # # This class was auto-generated from the API references found at # https://epayments-api.developer-ingenico.com/s2sapi/v1/ # from ingenico.connect.sdk.data_object import DataObject from ingenico.connect.sdk.domain.definitions.amount_of_money import AmountOfMoney class PaymentContext(DataObje...
32.336735
201
0.652887
from ingenico.connect.sdk.data_object import DataObject from ingenico.connect.sdk.domain.definitions.amount_of_money import AmountOfMoney class PaymentContext(DataObject): __amount_of_money = None __country_code = None __is_installments = None __is_recurring = None @property def amount_of_mo...
true
true
f76787575664eb5a7cd92959c84d5e2272f01f65
1,982
py
Python
tests/test_o16e.py
arfon/sntools
ad783dbb81e50ca786dfcc22a7359e74ecd58010
[ "BSD-3-Clause" ]
null
null
null
tests/test_o16e.py
arfon/sntools
ad783dbb81e50ca786dfcc22a7359e74ecd58010
[ "BSD-3-Clause" ]
null
null
null
tests/test_o16e.py
arfon/sntools
ad783dbb81e50ca786dfcc22a7359e74ecd58010
[ "BSD-3-Clause" ]
null
null
null
import unittest from sntools.interaction_channels import o16e from ._crosssectiontest import CrossSectionTest class O16ETest(CrossSectionTest): c = o16e # ensure we can access interaction channel module as self.c # iterable with tuples (eNu, eE, dSigma_dE(eNu, eE)) test_dSigma_dE_values = ( (25...
30.96875
102
0.609485
import unittest from sntools.interaction_channels import o16e from ._crosssectiontest import CrossSectionTest class O16ETest(CrossSectionTest): c = o16e test_dSigma_dE_values = ( (25, 9.79, 3.851148525797014e-19), (25, 9.7909, 3.851148525797014e-19), (50, 34.79, 2.08198899702891...
true
true
f767878d05f5625d24675fd1e6f540c41ff1743f
2,215
bzl
Python
test/unit/repository_utils/repository_utils_test.bzl
tiziano88/rules_rust
c2f5701dad159c3ce2b5997e6599445b1d21a123
[ "Apache-2.0" ]
null
null
null
test/unit/repository_utils/repository_utils_test.bzl
tiziano88/rules_rust
c2f5701dad159c3ce2b5997e6599445b1d21a123
[ "Apache-2.0" ]
null
null
null
test/unit/repository_utils/repository_utils_test.bzl
tiziano88/rules_rust
c2f5701dad159c3ce2b5997e6599445b1d21a123
[ "Apache-2.0" ]
null
null
null
"""Unit tests for repository_utils.bzl.""" load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") # buildifier: disable=bzl-visibility load("//rust/private:repository_utils.bzl", "produce_tool_path", "produce_tool_suburl") def _produce_tool_suburl_test_impl(ctx): env = unittest.begin(ctx) asserts.equ...
27.345679
87
0.579233
load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") load("//rust/private:repository_utils.bzl", "produce_tool_path", "produce_tool_suburl") def _produce_tool_suburl_test_impl(ctx): env = unittest.begin(ctx) asserts.equals( env, "2020-05-22/rust-std-nightly-x86_64-unknown-linux-gnu"...
true
true
f7678932af0d1e73a0fe6d5fa511dd0c74b6a48b
18,528
py
Python
model/Modules/cleaning59.py
vinclab/loan-customer-scoring
896bccd6ac25eb4c5bcb45e5429272a1e9257430
[ "Apache-2.0" ]
null
null
null
model/Modules/cleaning59.py
vinclab/loan-customer-scoring
896bccd6ac25eb4c5bcb45e5429272a1e9257430
[ "Apache-2.0" ]
null
null
null
model/Modules/cleaning59.py
vinclab/loan-customer-scoring
896bccd6ac25eb4c5bcb45e5429272a1e9257430
[ "Apache-2.0" ]
null
null
null
#BANQUE DE FONCTIONS DE NETTOYAGE DE DATAFRAME - Vincent Salas # import des librairies dont nous aurons besoin import pandas as pd import numpy as np #------------------------------------------------------------------------------------------------------------------------- #NaN DATAFRAME #-----------------------------...
45.300733
132
0.628886
import pandas as pd import numpy as np def na_rows_list(dataframe,value): na_row_list = [] for i in dataframe.index: if dataframe.loc[i].value_counts().sum() == value: # Attention valeur de condition à changer na_row_list.append(i) return na_row_list # Définition d"une fo...
true
true
f7678969298778d4c3b3d93ffa506b495b9263ed
1,517
py
Python
config/script_util/exprutils.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
7
2021-03-26T21:33:09.000Z
2022-03-01T17:06:55.000Z
config/script_util/exprutils.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
config/script_util/exprutils.py
rrdrake/vvtest
875aaa81d2fac5986554b7b4fbeb2aebb3b57ac6
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. def platform_expr( expr ): ''' Evaluates the given word expression against the curre...
35.27907
75
0.711931
def platform_expr( expr ): import vvtest_util as vvt from libvvtest.wordexpr import WordExpression wx = WordExpression( expr ) return wx.evaluate( vvt.PLATFORM ) def parameter_expr( expr ): import vvtest_util as vvt from libvvtest.paramexpr import ParameterExpression pf = ParameterExpres...
true
true
f76789f28e22b08d392202556e4c441203868c13
18,482
py
Python
dtest.py
kgreav/cassandra-dtest-1
a06c0e700f335cbdfcd683cadc358766d959aca0
[ "Apache-2.0" ]
null
null
null
dtest.py
kgreav/cassandra-dtest-1
a06c0e700f335cbdfcd683cadc358766d959aca0
[ "Apache-2.0" ]
null
null
null
dtest.py
kgreav/cassandra-dtest-1
a06c0e700f335cbdfcd683cadc358766d959aca0
[ "Apache-2.0" ]
null
null
null
import configparser import copy import logging import os import re import subprocess import sys import threading import time import traceback import pytest import cassandra from subprocess import CalledProcessError from flaky import flaky from cassandra import ConsistencyLevel, OperationTimedOut from cassandra.auth ...
40.178261
140
0.666486
import configparser import copy import logging import os import re import subprocess import sys import threading import time import traceback import pytest import cassandra from subprocess import CalledProcessError from flaky import flaky from cassandra import ConsistencyLevel, OperationTimedOut from cassandra.auth ...
true
true
f7678b83a4a3aeebbdff29f06d02a96310617c35
371
py
Python
book-code/numpy-ml/numpy_ml/__init__.py
yangninghua/code_library
b769abecb4e0cbdbbb5762949c91847a0f0b3c5a
[ "MIT" ]
null
null
null
book-code/numpy-ml/numpy_ml/__init__.py
yangninghua/code_library
b769abecb4e0cbdbbb5762949c91847a0f0b3c5a
[ "MIT" ]
null
null
null
book-code/numpy-ml/numpy_ml/__init__.py
yangninghua/code_library
b769abecb4e0cbdbbb5762949c91847a0f0b3c5a
[ "MIT" ]
null
null
null
# noqa """Common ML and ML-adjacent algorithms implemented in NumPy""" from . import utils from . import preprocessing from . import gmm from . import hmm from . import lda from . import linear_models from . import neural_nets from . import ngram from . import nonparametric from . import rl_models from . import trees...
20.611111
63
0.770889
from . import utils from . import preprocessing from . import gmm from . import hmm from . import lda from . import linear_models from . import neural_nets from . import ngram from . import nonparametric from . import rl_models from . import trees from . import bandits from . import factorization
true
true
f7678cf85ccda49599e02822cd94d24b5b79672a
1,769
py
Python
Tweets_and_Users/v2/get_tweets.py
Keerthiswaran15/labs-sample-code
f1be6f788f3aa67b75c0c33adc21509d8bcca6c2
[ "Apache-2.0" ]
26
2019-06-24T12:14:24.000Z
2022-02-07T03:04:34.000Z
Tweets_and_Users/v2/get_tweets.py
Keerthiswaran15/labs-sample-code
f1be6f788f3aa67b75c0c33adc21509d8bcca6c2
[ "Apache-2.0" ]
11
2019-06-20T20:21:26.000Z
2020-03-30T19:54:01.000Z
Tweets_and_Users/v2/get_tweets.py
Keerthiswaran15/labs-sample-code
f1be6f788f3aa67b75c0c33adc21509d8bcca6c2
[ "Apache-2.0" ]
16
2019-06-20T20:17:45.000Z
2021-09-24T01:34:10.000Z
import os from requests_oauthlib import OAuth1Session consumer_key = '' # Add your API key here consumer_secret = '' # Add your API secret key here params = {"ids": "1138505981460193280", "tweet.fields": "created_at"} # Get request token request_token_url = "https://api.twitter.com/oauth/request_token" oauth = OAu...
41.139535
78
0.737705
import os from requests_oauthlib import OAuth1Session consumer_key = '' consumer_secret = '' params = {"ids": "1138505981460193280", "tweet.fields": "created_at"} request_token_url = "https://api.twitter.com/oauth/request_token" oauth = OAuth1Session(consumer_key, client_secret=consumer_secret) fetch_response = oa...
true
true
f7678d9d9323d52fc0bd0a125636ac9892817ed8
1,751
py
Python
app/api_docs/v1/order.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
null
null
null
app/api_docs/v1/order.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
1
2019-07-08T12:32:29.000Z
2019-07-08T12:32:29.000Z
app/api_docs/v1/order.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/12/4. """ __author__ = 'Allen7D' ''' "type": "array" 时 - 可以使用 items "type": 'object'时 -可以使用 properties ''' place_order = { "parameters": [ { "name": "body", "in": "body", "description": "订单中商品信息列表(商品ID&数量)", "require": "true", "schema": { ...
15.774775
60
0.473444
__author__ = 'Allen7D' place_order = { "parameters": [ { "name": "body", "in": "body", "description": "订单中商品信息列表(商品ID&数量)", "require": "true", "schema": { "id": "Order", "required": ["products"], "properties": { "products": { "type": "array", "description": "商品列表", ...
true
true
f7678f135bd26286434ef1b1160363807e10bc12
503
py
Python
utils/exporters/blender/modules/msgpack/exceptions.py
wenluzhizhi/threeEx
82b1795f9f73bb47fd3c49befc6606944f79d639
[ "MIT" ]
1,346
2015-01-01T14:52:24.000Z
2022-03-28T12:50:48.000Z
utils/exporters/blender/modules/msgpack/exceptions.py
superguigui/three.js
c18be1eca38a1f3c779e8dcb168edf06ee9441ad
[ "MIT" ]
1,054
2015-09-11T06:51:27.000Z
2022-03-30T09:46:54.000Z
utils/exporters/blender/modules/msgpack/exceptions.py
superguigui/three.js
c18be1eca38a1f3c779e8dcb168edf06ee9441ad
[ "MIT" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
class UnpackException(Exception): pass class BufferFull(UnpackException): pass class OutOfData(UnpackException): pass class UnpackValueError(UnpackException, ValueError): pass class ExtraData(ValueError): def __init__(self, unpacked, extra): self.unpacked = unpacked self.extr...
16.766667
52
0.709742
class UnpackException(Exception): pass class BufferFull(UnpackException): pass class OutOfData(UnpackException): pass class UnpackValueError(UnpackException, ValueError): pass class ExtraData(ValueError): def __init__(self, unpacked, extra): self.unpacked = unpacked self.extr...
true
true
f7678fa4f18fd91dc027ef5ef44ef2740fd136e9
7,668
py
Python
apps/raw_to_dsp.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
13
2019-05-01T01:37:30.000Z
2022-03-18T08:52:19.000Z
apps/raw_to_dsp.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
111
2019-03-25T00:50:48.000Z
2022-03-30T17:13:43.000Z
apps/raw_to_dsp.py
sweigart/pygama
3c5fe4c69230814933b2de879b9a305ff0d4ad5e
[ "Apache-2.0" ]
52
2019-01-24T21:05:04.000Z
2022-03-07T23:37:55.000Z
#! /usr/bin/env python3 import os import sys import json import h5py import time import numpy as np from collections import OrderedDict from pprint import pprint import argparse from pygama import __version__ as pygama_version from pygama.dsp.ProcessingChain import ProcessingChain from pygama.dsp.units import * from ...
45.105882
233
0.669405
import os import sys import json import h5py import time import numpy as np from collections import OrderedDict from pprint import pprint import argparse from pygama import __version__ as pygama_version from pygama.dsp.ProcessingChain import ProcessingChain from pygama.dsp.units import * from pygama import lh5 from p...
true
true
f7678fdc15a9f3d3464982fe34eb7e6d3c8a0948
585
py
Python
pyday_social_network/migrations/0007_auto_20160705_1950.py
6desislava6/PyDay
e43d05ac83297a16c12fef6b55c00df2571e3e81
[ "MIT" ]
2
2016-07-09T08:23:51.000Z
2016-07-14T14:50:42.000Z
pyday_social_network/migrations/0007_auto_20160705_1950.py
6desislava6/PyDay
e43d05ac83297a16c12fef6b55c00df2571e3e81
[ "MIT" ]
null
null
null
pyday_social_network/migrations/0007_auto_20160705_1950.py
6desislava6/PyDay
e43d05ac83297a16c12fef6b55c00df2571e3e81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-07-05 16:50 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('pyday_social_network', '0006_auto_20160...
25.434783
110
0.659829
from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('pyday_social_network', '0006_auto_20160705_1948'), ] operations = [ migrations.AlterField( ...
true
true
f76790ebf1920f88fe3b965daf73dc77f5f45b29
95,913
py
Python
youtube_dl/extractor/generic.py
Ergastolator1/ytdl-for-jmusic
c3c733d9a78cef3ae708b6a1ea558c41d1e07c66
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/generic.py
Ergastolator1/ytdl-for-jmusic
c3c733d9a78cef3ae708b6a1ea558c41d1e07c66
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/generic.py
Ergastolator1/ytdl-for-jmusic
c3c733d9a78cef3ae708b6a1ea558c41d1e07c66
[ "Unlicense" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import os import re import sys from .common import InfoExtractor from ..compat import ( compat_etree_fromstring, compat_str, compat_urllib_parse_unquote, compat_urlparse, compat_xml_parse_error, ) from ..utils import ( determine_ext, ...
40.762006
347
0.490142
from __future__ import unicode_literals import os import re import sys from .common import InfoExtractor from ..compat import ( compat_etree_fromstring, compat_str, compat_urllib_parse_unquote, compat_urlparse, compat_xml_parse_error, ) from ..utils import ( determine_ext, ExtractorError,...
true
true
f767929312f55b0b0308b80b41101be30061ef9f
7,846
py
Python
robustbench/model_zoo/cifar100.py
flymin/robustbench
c51d44e5c9f9425d0a2146dbfd5c54d86ea11609
[ "Apache-2.0" ]
null
null
null
robustbench/model_zoo/cifar100.py
flymin/robustbench
c51d44e5c9f9425d0a2146dbfd5c54d86ea11609
[ "Apache-2.0" ]
null
null
null
robustbench/model_zoo/cifar100.py
flymin/robustbench
c51d44e5c9f9425d0a2146dbfd5c54d86ea11609
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import torch from robustbench.model_zoo.architectures.dm_wide_resnet import CIFAR100_MEAN, CIFAR100_STD, \ DMWideResNet, Swish from robustbench.model_zoo.architectures.resnet import PreActBlock, PreActResNet from robustbench.model_zoo.architectures.resnext import CifarResNeXt, ...
36.324074
134
0.545373
from collections import OrderedDict import torch from robustbench.model_zoo.architectures.dm_wide_resnet import CIFAR100_MEAN, CIFAR100_STD, \ DMWideResNet, Swish from robustbench.model_zoo.architectures.resnet import PreActBlock, PreActResNet from robustbench.model_zoo.architectures.resnext import CifarResNeXt, ...
true
true
f76792f34879b16ddd3ff6519c3755e6be54dd80
20,984
py
Python
nativedroid/nativedroid/analyses/nativedroid_analysis_test.py
CherishAZ/Argus-SAF
06596c6bb03fe2560030b52bf2b47d17d1bd3068
[ "Apache-2.0" ]
152
2016-06-10T19:10:03.000Z
2022-02-26T12:43:00.000Z
nativedroid/nativedroid/analyses/nativedroid_analysis_test.py
CherishAZ/Argus-SAF
06596c6bb03fe2560030b52bf2b47d17d1bd3068
[ "Apache-2.0" ]
83
2016-07-08T16:49:37.000Z
2022-01-16T10:48:27.000Z
nativedroid/nativedroid/analyses/nativedroid_analysis_test.py
CherishAZ/Argus-SAF
06596c6bb03fe2560030b52bf2b47d17d1bd3068
[ "Apache-2.0" ]
47
2016-06-22T01:28:21.000Z
2022-03-06T14:18:08.000Z
import unittest import pkg_resources from nativedroid.analyses.nativedroid_analysis import * native_ss_file = pkg_resources.resource_filename('nativedroid.data', 'sourceAndSinks/NativeSourcesAndSinks.txt') java_ss_file = pkg_resources.resource_filename('nativedroid.data', 'sourceAndSinks/TaintSourcesAndSinks.txt') c...
74.14841
120
0.561952
import unittest import pkg_resources from nativedroid.analyses.nativedroid_analysis import * native_ss_file = pkg_resources.resource_filename('nativedroid.data', 'sourceAndSinks/NativeSourcesAndSinks.txt') java_ss_file = pkg_resources.resource_filename('nativedroid.data', 'sourceAndSinks/TaintSourcesAndSinks.txt') c...
true
true