hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
131dd41376eac41f09c396cfda9b8df21680c1b7
9,761
py
Python
create_model/extra_functions.py
yokoyang/img-class
2b1e12ee88dbbc5c3a52732a527721e92e30f89e
[ "MIT" ]
1
2018-03-30T10:43:42.000Z
2018-03-30T10:43:42.000Z
create_model/extra_functions.py
yokoyang/img-class
2b1e12ee88dbbc5c3a52732a527721e92e30f89e
[ "MIT" ]
null
null
null
create_model/extra_functions.py
yokoyang/img-class
2b1e12ee88dbbc5c3a52732a527721e92e30f89e
[ "MIT" ]
null
null
null
from __future__ import division from shapely.wkt import loads as wkt_loads import os import shapely import shapely.geometry import shapely.affinity import h5py import pandas as pd import tifffile as tiff from numba import jit, njit from tqdm import tqdm from collections import defaultdict import csv import sys impor...
32.003279
124
0.660281
from __future__ import division from shapely.wkt import loads as wkt_loads import os import shapely import shapely.geometry import shapely.affinity import h5py import pandas as pd import tifffile as tiff from numba import jit, njit from tqdm import tqdm from collections import defaultdict import csv import sys impor...
6,387
0
207
5594d119164310c7b2a4f58c10117ec8d9a336c8
15,147
py
Python
othello_gui.py
Mamin78/Othello
5b72d5a3cf9959cf0c0faf82bd561558fa9c7195
[ "MIT" ]
2
2021-02-27T04:15:07.000Z
2021-06-12T12:54:15.000Z
othello_gui.py
Mamin78/Othello
5b72d5a3cf9959cf0c0faf82bd561558fa9c7195
[ "MIT" ]
null
null
null
othello_gui.py
Mamin78/Othello
5b72d5a3cf9959cf0c0faf82bd561558fa9c7195
[ "MIT" ]
null
null
null
import tkinter import time import othello as oth LIGHT_FONT = ("Nexa light", 12) BOLD_FONT = ("Nexa Bold", 11) CELL_LENGTH = 60 COL_ROW_NAME_LENGTH = 40 DELAY = 1.5 CRED2 = '\33[91m' CYELLOW2 = '\33[93m' CURRENT_NUMB_CALL = 0 if __name__ == '__main__': game_logic_instance = oth.GameLogic() game_logic_inst...
44.16035
122
0.542484
import tkinter import time import othello as oth LIGHT_FONT = ("Nexa light", 12) BOLD_FONT = ("Nexa Bold", 11) CELL_LENGTH = 60 COL_ROW_NAME_LENGTH = 40 DELAY = 1.5 CRED2 = '\33[91m' CYELLOW2 = '\33[93m' CURRENT_NUMB_CALL = 0 class OthelloBoard: def __init__(self): # creat an instance from tkinter libra...
14,280
-2
504
86d20777b2ed3207b88d46e6a3e0dbf651c40267
2,962
py
Python
aws_lambda_builders/workflows/java_maven/workflow.py
zhuhaow/aws-lambda-builders
ca658b37ed5242bfec82e01e33046b22484585cd
[ "Apache-2.0" ]
null
null
null
aws_lambda_builders/workflows/java_maven/workflow.py
zhuhaow/aws-lambda-builders
ca658b37ed5242bfec82e01e33046b22484585cd
[ "Apache-2.0" ]
null
null
null
aws_lambda_builders/workflows/java_maven/workflow.py
zhuhaow/aws-lambda-builders
ca658b37ed5242bfec82e01e33046b22484585cd
[ "Apache-2.0" ]
null
null
null
""" Java Maven Workflow """ from aws_lambda_builders.workflow import BaseWorkflow, Capability from aws_lambda_builders.actions import CopySourceAction, CleanUpAction from aws_lambda_builders.workflows.java.actions import JavaCopyDependenciesAction, JavaMoveDependenciesAction from aws_lambda_builders.workflows.java.util...
41.71831
116
0.749156
""" Java Maven Workflow """ from aws_lambda_builders.workflow import BaseWorkflow, Capability from aws_lambda_builders.actions import CopySourceAction, CleanUpAction from aws_lambda_builders.workflows.java.actions import JavaCopyDependenciesAction, JavaMoveDependenciesAction from aws_lambda_builders.workflows.java.util...
1,901
0
81
822e0b2171de91130444d64d989588c4d313302f
6,152
py
Python
monthly_github_stats/monthly_github_stats.py
amashinchi-rc/useful-stats-scripts
fba66f32aa76c9d2a72a12b4837395cad675b916
[ "MIT" ]
null
null
null
monthly_github_stats/monthly_github_stats.py
amashinchi-rc/useful-stats-scripts
fba66f32aa76c9d2a72a12b4837395cad675b916
[ "MIT" ]
null
null
null
monthly_github_stats/monthly_github_stats.py
amashinchi-rc/useful-stats-scripts
fba66f32aa76c9d2a72a12b4837395cad675b916
[ "MIT" ]
null
null
null
import argparse import csv import os from collections import OrderedDict from datetime import datetime from github import Github if __name__ == "__main__": print("Running...\n") # Variable to let us know how long this takes... begin_time = datetime.now() # Setup arguments parser = argparse.Argu...
32.041667
76
0.592165
import argparse import csv import os from collections import OrderedDict from datetime import datetime from github import Github def write_to_csv_file(target_file, row_data, write_type='a'): with open(target_file, write_type, encoding='utf-8') as f: writer = csv.writer(f, delimiter=',') writer.wri...
199
0
23
79351b76f3c2c94f18584a4c999397dcf10ca5a6
2,055
py
Python
helpsessions/helpclient.py
philip-w-howard/smallprojects
36f11a83eecf0e807aeb43d4a6b6e5d308a8491c
[ "MIT" ]
null
null
null
helpsessions/helpclient.py
philip-w-howard/smallprojects
36f11a83eecf0e807aeb43d4a6b6e5d308a8491c
[ "MIT" ]
null
null
null
helpsessions/helpclient.py
philip-w-howard/smallprojects
36f11a83eecf0e807aeb43d4a6b6e5d308a8491c
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket import json import os import pwd UDP_IP = "127.0.0.1" UDP_PORT = 5006 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Internet UDP user = pwd.getpwuid( os.getuid() ).pw_name print "Running as", user session_list = [] while (True) : display_menu() cmd = raw_input("a...
24.759036
85
0.571776
#!/usr/bin/python import socket import json import os import pwd UDP_IP = "127.0.0.1" UDP_PORT = 5006 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Internet UDP user = pwd.getpwuid( os.getuid() ).pw_name print "Running as", user session_list = [] def display_menu() : global session_list print "...
1,027
0
69
624976a4ec765c206fec24a3590b440ea79fa4c2
3,206
py
Python
sql_queries.py
tomgtqq/DEND-P1-Data-Modeling-With-Postgres
98ed83b216c4907e91fbd3a2aa8dfdf1716bcc96
[ "MIT" ]
null
null
null
sql_queries.py
tomgtqq/DEND-P1-Data-Modeling-With-Postgres
98ed83b216c4907e91fbd3a2aa8dfdf1716bcc96
[ "MIT" ]
null
null
null
sql_queries.py
tomgtqq/DEND-P1-Data-Modeling-With-Postgres
98ed83b216c4907e91fbd3a2aa8dfdf1716bcc96
[ "MIT" ]
null
null
null
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplays;" user_table_drop = "DROP TABLE IF EXISTS users;" song_table_drop = "DROP TABLE IF EXISTS songs;" artist_table_drop = "DROP TABLE IF EXISTS artists;" time_table_drop = "DROP TABLE IF EXISTS time;" # CREATE TABLES songplay_table_create = (""" CR...
26.941176
124
0.66282
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplays;" user_table_drop = "DROP TABLE IF EXISTS users;" song_table_drop = "DROP TABLE IF EXISTS songs;" artist_table_drop = "DROP TABLE IF EXISTS artists;" time_table_drop = "DROP TABLE IF EXISTS time;" # CREATE TABLES songplay_table_create = (""" CR...
0
0
0
7eed9eb57ee802bdc652bc04319682d22ca98996
1,134
py
Python
tests/test_tcfl_tc_run_zephyr_testcase_yaml.py
sriiora/tcf
e607ce04f97dbb4910d94428c0600a6a7145a825
[ "Apache-2.0" ]
24
2018-08-21T18:04:48.000Z
2022-02-07T22:50:06.000Z
tests/test_tcfl_tc_run_zephyr_testcase_yaml.py
sriiora/tcf
e607ce04f97dbb4910d94428c0600a6a7145a825
[ "Apache-2.0" ]
16
2018-08-21T18:03:52.000Z
2022-03-01T17:15:42.000Z
tests/test_tcfl_tc_run_zephyr_testcase_yaml.py
sriiora/tcf
e607ce04f97dbb4910d94428c0600a6a7145a825
[ "Apache-2.0" ]
29
2018-08-22T19:40:59.000Z
2021-12-21T11:13:23.000Z
#! /usr/bin/python3 # # Copyright (c) 2017 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # # pylint: disable = missing-docstring import os import commonl.testing import tcfl.tc import tcfl.tc_zephyr_sanity import tcfl.tl srcdir = os.path.dirname(__file__) ttbd = commonl.testing.test_ttbd(config_files = ...
27
66
0.714286
#! /usr/bin/python3 # # Copyright (c) 2017 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # # pylint: disable = missing-docstring import os import commonl.testing import tcfl.tc import tcfl.tc_zephyr_sanity import tcfl.tl srcdir = os.path.dirname(__file__) ttbd = commonl.testing.test_ttbd(config_files = ...
50
0
26
473903c138a01c75f3bc885ba25bec415a77c323
3,007
py
Python
tests/pollinotify_test.py
jdstmporter/python-polled-inotify
4fd76f825584618a4eec13a9a069b2058909113b
[ "Python-2.0" ]
null
null
null
tests/pollinotify_test.py
jdstmporter/python-polled-inotify
4fd76f825584618a4eec13a9a069b2058909113b
[ "Python-2.0" ]
null
null
null
tests/pollinotify_test.py
jdstmporter/python-polled-inotify
4fd76f825584618a4eec13a9a069b2058909113b
[ "Python-2.0" ]
null
null
null
''' Created on 30 Jun 2014 @author: julianporter ''' import random import unittest import multiprocessing import collections import tempfile import time import os import sys from .actions import EventGenerator, EventObserver if __name__=='__main__': unittest.main(exit=False)
28.913462
135
0.625208
''' Created on 30 Jun 2014 @author: julianporter ''' import random import unittest import multiprocessing import collections import tempfile import time import os import sys from .actions import EventGenerator, EventObserver class TestInotify(unittest.TestCase): def __init__(self,methodName='r...
2,243
16
433
de2a4613735abb7a7a8083705fe34705699a472f
4,103
py
Python
peripheral/supc_44082/config/supc.py
Unitek-KL/csp
2ac7ba59465f23959e51d2f16a5712b57b79ef5f
[ "0BSD" ]
null
null
null
peripheral/supc_44082/config/supc.py
Unitek-KL/csp
2ac7ba59465f23959e51d2f16a5712b57b79ef5f
[ "0BSD" ]
null
null
null
peripheral/supc_44082/config/supc.py
Unitek-KL/csp
2ac7ba59465f23959e51d2f16a5712b57b79ef5f
[ "0BSD" ]
null
null
null
# coding: utf-8 """***************************************************************************** * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is your * re...
50.654321
102
0.690958
# coding: utf-8 """***************************************************************************** * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is your * re...
2,555
0
22
3b8efa2740392641d60d35c0620c0ad781553a63
5,480
py
Python
src/attrbench/lib/nd_array_tree.py
zoeparman/benchmark
96331b7fa0db84f5f422b52cae2211b41bbd15ce
[ "MIT" ]
null
null
null
src/attrbench/lib/nd_array_tree.py
zoeparman/benchmark
96331b7fa0db84f5f422b52cae2211b41bbd15ce
[ "MIT" ]
7
2020-03-02T13:03:50.000Z
2022-03-12T00:16:20.000Z
src/attrbench/lib/nd_array_tree.py
zoeparman/benchmark
96331b7fa0db84f5f422b52cae2211b41bbd15ce
[ "MIT" ]
null
null
null
import numpy as np import h5py from typing import List, Tuple, Dict, Callable
46.837607
114
0.547993
import numpy as np import h5py from typing import List, Tuple, Dict, Callable class NDArrayTree: def __init__(self, levels: List[Tuple[str, List[str]]]): self.levels = levels def _initialize_data(data=None, depth=0): if data is None: data = {} _, keys = lev...
5,204
175
23
9fe02b5c7ab9649151577119dacbc9b792016db1
843
py
Python
users/models.py
adit-negi/cowin-alerts-app
af34f717ba52677bd78852a0dd37b40ebe244760
[ "MIT" ]
3
2021-05-10T09:07:03.000Z
2021-05-10T13:50:18.000Z
users/models.py
adit-negi/cowin_app
af34f717ba52677bd78852a0dd37b40ebe244760
[ "MIT" ]
null
null
null
users/models.py
adit-negi/cowin_app
af34f717ba52677bd78852a0dd37b40ebe244760
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser, BaseUserManager, PermissionsMixin # Create your models here.
35.125
86
0.715302
from django.db import models from django.contrib.auth.models import AbstractUser, BaseUserManager, PermissionsMixin class User(AbstractUser): EMAIL_VERIFIED = 0 OTP_VERIFIED = 1 NOT_VERIFIED = 2 AUTH_VERIFICATION_STATUS = ( (EMAIL_VERIFIED, 'Email is verified'), (OTP_VERIFIED, 'Phone n...
0
678
22
27fb7f234750464bc3509d6bd436946474e4622b
1,378
py
Python
exo_messages/models.py
exolever/lib-exo-messages
da0736fc3b945acf1b9479fb387b36c09ab9ccb2
[ "MIT" ]
null
null
null
exo_messages/models.py
exolever/lib-exo-messages
da0736fc3b945acf1b9479fb387b36c09ab9ccb2
[ "MIT" ]
null
null
null
exo_messages/models.py
exolever/lib-exo-messages
da0736fc3b945acf1b9479fb387b36c09ab9ccb2
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import JSONField from django.utils import timezone from model_utils.models import TimeStampedModel from .conf import settings from .manager import MessageManager, MessageAllManager
26.5
65
0.694485
from django.db import models from django.contrib.postgres.fields import JSONField from django.utils import timezone from model_utils.models import TimeStampedModel from .conf import settings from .manager import MessageManager, MessageAllManager class Message(TimeStampedModel): user = models.ForeignKey( ...
293
813
23
2c466c708c541ca4822f44073f7aa49737cec171
1,221
py
Python
data/external/repositories_2to3/166417/Restaurant-Revenue-Prediction-master/Ari/testing_grounds/feat_drop.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/166417/Restaurant-Revenue-Prediction-master/Ari/testing_grounds/feat_drop.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/166417/Restaurant-Revenue-Prediction-master/Ari/testing_grounds/feat_drop.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import numpy as np import pandas as pd ############################################################################### # Load data df_train = pd.read_csv("train_numerical_head.csv") df_train.head() feats = df_train.drop(str(42), axis=1) X_train = feats.values #features y_train = df_train[str(42)].values #tar...
26.543478
80
0.504505
import numpy as np import pandas as pd ############################################################################### # Load data df_train = pd.read_csv("train_numerical_head.csv") df_train.head() feats = df_train.drop(str(42), axis=1) X_train = feats.values #features y_train = df_train[str(42)].values #tar...
0
0
0
2f4fc34568ccb368c4a16b56bbfc71da72a5b445
5,219
py
Python
http2_adapter/adapter.py
tokers/HTTP2Adapter
647b89b121bdb81526e5403b870f7c6b743273ce
[ "Apache-2.0" ]
1
2018-03-11T07:40:56.000Z
2018-03-11T07:40:56.000Z
http2_adapter/adapter.py
tokers/requests-http2-adapter
647b89b121bdb81526e5403b870f7c6b743273ce
[ "Apache-2.0" ]
null
null
null
http2_adapter/adapter.py
tokers/requests-http2-adapter
647b89b121bdb81526e5403b870f7c6b743273ce
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ http/2 adapter implements ~~~~~~~~~~~~~ This module contains the transport adapters that Requests uses to define and maintain connections. """ import requests from requests.exceptions import InvalidSchema as _SchemaError from urllib3.poolmanager import PoolManager, proxy_from_url from ...
34.793333
88
0.674075
# -*- coding: utf-8 -*- """ http/2 adapter implements ~~~~~~~~~~~~~ This module contains the transport adapters that Requests uses to define and maintain connections. """ import requests from requests.exceptions import InvalidSchema as _SchemaError from urllib3.poolmanager import PoolManager, proxy_from_url from ...
997
0
108
a300cdbf5cee9d5d8e188c81f0b01ca66643a577
1,797
py
Python
entifyfishing_client/models/time.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
entifyfishing_client/models/time.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
entifyfishing_client/models/time.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="Time") @attr.s(auto_attribs=True) class Time: """ """ time: str calendarmodel: Union[Unset, str] = UNSET timezone: Union[Unset, int] = UNSET before: Union[Unset, int] = UNSET...
24.616438
63
0.556483
from typing import Any, Dict, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="Time") @attr.s(auto_attribs=True) class Time: """ """ time: str calendarmodel: Union[Unset, str] = UNSET timezone: Union[Unset, int] = UNSET before: Union[Unset, int] = UNSET...
1,327
0
53
9f7b0e91ebce4cb8675698ab3b1b610b51b83f9a
5,958
py
Python
system_tests/local/azure_tests.py
diaperrash/cloudify-azure-plugin
dc495c294931168b012b60427e36e5a0738f2292
[ "Apache-2.0" ]
null
null
null
system_tests/local/azure_tests.py
diaperrash/cloudify-azure-plugin
dc495c294931168b012b60427e36e5a0738f2292
[ "Apache-2.0" ]
null
null
null
system_tests/local/azure_tests.py
diaperrash/cloudify-azure-plugin
dc495c294931168b012b60427e36e5a0738f2292
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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...
35.254438
79
0.608761
######## # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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...
4,650
365
23
59bff530cc8176721921e73716d3a3b26e9618b1
269
py
Python
_solutions/advanced/oop/oop_relations_d.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/advanced/oop/oop_relations_d.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/advanced/oop/oop_relations_d.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
result = [] for astronaut in DATA: for i, mission in enumerate(astronaut.pop('missions'), start=1): for field,value in mission.items(): column_name = f'mission{i}_{field}' astronaut[column_name] = value result.append(astronaut)
29.888889
68
0.635688
result = [] for astronaut in DATA: for i, mission in enumerate(astronaut.pop('missions'), start=1): for field,value in mission.items(): column_name = f'mission{i}_{field}' astronaut[column_name] = value result.append(astronaut)
0
0
0
529f282819a2131b75db1eea0ad03813c7a9c2d6
6,339
py
Python
Classes/import_all.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Classes/import_all.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Classes/import_all.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pyleecan.Classes.Arc import Arc from pyleecan.Classes.Arc1 import Arc1 from pyleecan.Classes.Arc2 import Arc2 from pyleecan.Classes.Arc3 import Arc3 from pyleecan.Classes.Circle import Circle from pyleecan.Classes.CondType11 import CondType11 from pyleecan.Classes.CondType12 import CondTyp...
47.661654
66
0.874586
# -*- coding: utf-8 -*- from pyleecan.Classes.Arc import Arc from pyleecan.Classes.Arc1 import Arc1 from pyleecan.Classes.Arc2 import Arc2 from pyleecan.Classes.Arc3 import Arc3 from pyleecan.Classes.Circle import Circle from pyleecan.Classes.CondType11 import CondType11 from pyleecan.Classes.CondType12 import CondTyp...
0
0
0
548cfea669e8fb927564f7dc739bc04dbf8d3554
1,258
py
Python
pyday_social_network/urls.py
6desislava6/PyDay
e43d05ac83297a16c12fef6b55c00df2571e3e81
[ "MIT" ]
2
2016-07-09T08:23:51.000Z
2016-07-14T14:50:42.000Z
pyday_social_network/urls.py
6desislava6/PyDay
e43d05ac83297a16c12fef6b55c00df2571e3e81
[ "MIT" ]
null
null
null
pyday_social_network/urls.py
6desislava6/PyDay
e43d05ac83297a16c12fef6b55c00df2571e3e81
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf.urls import patterns from pyday_social_network import views app_name = 'pyday_social_network' urlpatterns = [ url(r'^upload_picture/$', views.UploadPictureView.as_view(), name='upload_picture'), url(r'^upload_song/$', views.UploadSongView.as_view(), name='uplo...
44.928571
88
0.662162
from django.conf.urls import url from django.conf.urls import patterns from pyday_social_network import views app_name = 'pyday_social_network' urlpatterns = [ url(r'^upload_picture/$', views.UploadPictureView.as_view(), name='upload_picture'), url(r'^upload_song/$', views.UploadSongView.as_view(), name='uplo...
0
0
0
067b145be1a0e143a9c3b14d5929c0d2f2d812ed
1,234
py
Python
tests/testing/test_pandas.py
MarcoJHB/ploomber
4849ef6915572f7934392443b4faf138172b9596
[ "Apache-2.0" ]
2,141
2020-02-14T02:34:34.000Z
2022-03-31T22:43:20.000Z
tests/testing/test_pandas.py
MarcoJHB/ploomber
4849ef6915572f7934392443b4faf138172b9596
[ "Apache-2.0" ]
660
2020-02-06T16:15:57.000Z
2022-03-31T22:55:01.000Z
tests/testing/test_pandas.py
MarcoJHB/ploomber
4849ef6915572f7934392443b4faf138172b9596
[ "Apache-2.0" ]
122
2020-02-14T18:53:05.000Z
2022-03-27T22:33:24.000Z
import numpy as np import pandas as pd from ploomber.testing import pandas as pd_t
28.697674
75
0.659643
import numpy as np import pandas as pd from ploomber.testing import pandas as pd_t def test_nulls_in_columns(tmp_directory): df = pd.DataFrame({'x': np.random.rand(10), 'y': np.random.rand(10)}) df.to_csv('data.csv', index=False) assert not pd_t.nulls_in_columns(['x', 'y'], 'data.csv') df = pd.DataF...
1,055
0
92
2cdcebb865842c4c9dcec577ad0373da678fed69
1,920
py
Python
data/scripts/radials/elevator.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/radials/elevator.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/radials/elevator.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
import swgpy from swgpy.object import * from swgpy.sui import RadialMenu, RadialOptions, RadialOptionsList, RadialIdentifier from swgpy.static import ElevatorData, ElevatorDataList from swgpy.utility import vector3, quat
45.714286
97
0.792188
import swgpy from swgpy.object import * from swgpy.sui import RadialMenu, RadialOptions, RadialOptionsList, RadialIdentifier from swgpy.static import ElevatorData, ElevatorDataList from swgpy.utility import vector3, quat class PyRadialMenu(RadialMenu): def buildRadial(self, owner, target, radials): radial_list =...
1,592
10
98
5895a904ec4b8da5fce8dfd9fd8fe6e872d7fac6
24,701
py
Python
examples/xray_scratch_calculations/refraction_map.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
13
2018-04-17T06:35:20.000Z
2021-09-22T08:49:47.000Z
examples/xray_scratch_calculations/refraction_map.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
14
2018-04-18T01:05:57.000Z
2020-11-05T21:57:09.000Z
examples/xray_scratch_calculations/refraction_map.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
9
2017-05-26T14:47:38.000Z
2021-03-24T02:44:59.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Imports ######################################## import sys, os SciAnalysis_PATH='/home/kyager/current/code/SciAnalysis/main/' SciAnalysis_PATH in sys.path or sys.path.append(SciAnalysis_PATH) import glob from SciAnalysis import tools from SciAnalysis.Data import * #from ...
35.902616
215
0.573135
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Imports ######################################## import sys, os SciAnalysis_PATH='/home/kyager/current/code/SciAnalysis/main/' SciAnalysis_PATH in sys.path or sys.path.append(SciAnalysis_PATH) import glob from SciAnalysis import tools from SciAnalysis.Data import * #from ...
8,236
14
272
10acd9132720328571c3908ad6b06c43f32bd7a8
963
py
Python
notebook/numpy_image_mask.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/numpy_image_mask.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/numpy_image_mask.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import numpy as np from PIL import Image src = np.array(Image.open('data/src/lena.jpg')) mask = np.array(Image.open('data/src/horse_r.png').resize(src.shape[1::-1], Image.BILINEAR)) print(mask.dtype, mask.min(), mask.max()) # uint8 0 255 mask = mask / 255 print(mask.dtype, mask.min(), mask.max()) # float64 0.0 1.0 ...
22.395349
105
0.686397
import numpy as np from PIL import Image src = np.array(Image.open('data/src/lena.jpg')) mask = np.array(Image.open('data/src/horse_r.png').resize(src.shape[1::-1], Image.BILINEAR)) print(mask.dtype, mask.min(), mask.max()) # uint8 0 255 mask = mask / 255 print(mask.dtype, mask.min(), mask.max()) # float64 0.0 1.0 ...
0
0
0
956ea26d7123131485243c9992b3b8c107a48e43
1,031
py
Python
Python/Py_R_consistency_check.py
am5113/covid19model
27f121d246e7a5b0c06077ea2abd3807539d0ac8
[ "MIT" ]
null
null
null
Python/Py_R_consistency_check.py
am5113/covid19model
27f121d246e7a5b0c06077ea2abd3807539d0ac8
[ "MIT" ]
null
null
null
Python/Py_R_consistency_check.py
am5113/covid19model
27f121d246e7a5b0c06077ea2abd3807539d0ac8
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import dill as pickle import rpy2.robjects as robjects readRDS = robjects.r['readRDS'] r_stan_data = readRDS('r_stan_data.rds') with open('python_stan_data.pkl', 'rb') as file: py_stan_data = pickle.load(file) py_stan_data.keys() for key...
22.911111
67
0.646945
import numpy as np import pandas as pd import matplotlib.pyplot as plt import dill as pickle import rpy2.robjects as robjects readRDS = robjects.r['readRDS'] r_stan_data = readRDS('r_stan_data.rds') with open('python_stan_data.pkl', 'rb') as file: py_stan_data = pickle.load(file) py_stan_data.keys() def mych...
478
0
23
07a75698e3e7e51d7959fd79517d9197b3673170
7,124
py
Python
nlcpy/testing/condition.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
11
2020-07-31T02:21:55.000Z
2022-03-10T03:12:11.000Z
nlcpy/testing/condition.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
nlcpy/testing/condition.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
# # * The source code in this file is based on the soure code of CuPy. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
40.477273
88
0.641353
# # * The source code in this file is based on the soure code of CuPy. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
2,257
9
77
5adbc66bc378264f38cf5bb27869daee46704ee5
730
py
Python
nc_programs/training/ens_trainer.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
8
2018-10-30T16:48:44.000Z
2021-03-08T01:44:41.000Z
nc_programs/training/ens_trainer.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
null
null
null
nc_programs/training/ens_trainer.py
plin1112/ANI-Tools
76280c918fc79fee8c266b8bc9ab57f86104ec99
[ "MIT" ]
5
2018-04-05T15:51:12.000Z
2019-05-23T21:38:31.000Z
import anialtools as alt nwdir = '/home/jsmith48/scratch/ccsd_extrapolation/ccsd_train/tl_train_dhl_7/' h5dir = '/home/jsmith48/scratch/ccsd_extrapolation/h5files/train/cmb/' Nnets = 8 # networks in ensemble Nblock = 16 # Number of blocks in split Nbvald = 2 # number of valid blocks Nbtest = 1 # number of test blocks...
33.181818
84
0.710959
import anialtools as alt nwdir = '/home/jsmith48/scratch/ccsd_extrapolation/ccsd_train/tl_train_dhl_7/' h5dir = '/home/jsmith48/scratch/ccsd_extrapolation/h5files/train/cmb/' Nnets = 8 # networks in ensemble Nblock = 16 # Number of blocks in split Nbvald = 2 # number of valid blocks Nbtest = 1 # number of test blocks...
0
0
0
b2b2feabe5d611666638e0832f0331af26f3942e
1,442
py
Python
libcst/codemod/__init__.py
hoduchieu01/LibCST
23af2cb45e1f7647f1604404df5f6e5e87b2e42b
[ "Apache-2.0" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
libcst/codemod/__init__.py
hoduchieu01/LibCST
23af2cb45e1f7647f1604404df5f6e5e87b2e42b
[ "Apache-2.0" ]
1
2021-08-20T19:03:09.000Z
2021-08-20T19:03:09.000Z
libcst/codemod/__init__.py
hoduchieu01/LibCST
23af2cb45e1f7647f1604404df5f6e5e87b2e42b
[ "Apache-2.0" ]
1
2020-09-18T06:37:51.000Z
2020-09-18T06:37:51.000Z
# 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. # from libcst.codemod._cli import ( ParallelTransformResult, diff_code, exec_transform_with_prettyprint, gather_files, para...
25.298246
80
0.742718
# 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. # from libcst.codemod._cli import ( ParallelTransformResult, diff_code, exec_transform_with_prettyprint, gather_files, para...
0
0
0
0b5491a670a673eeee3886154c592f4304bf6978
396
py
Python
2018/day_15/classes.py
sunjerry019/adventOfCode18
6970ece25e54b9f90c4aadd1a5d8569bd32f403b
[ "MIT" ]
null
null
null
2018/day_15/classes.py
sunjerry019/adventOfCode18
6970ece25e54b9f90c4aadd1a5d8569bd32f403b
[ "MIT" ]
null
null
null
2018/day_15/classes.py
sunjerry019/adventOfCode18
6970ece25e54b9f90c4aadd1a5d8569bd32f403b
[ "MIT" ]
null
null
null
#!/bin/python3
28.285714
92
0.593434
#!/bin/python3 class myPath(): def __init__(self, startCoord, endCoord, distance, path): # path is an array of coordinates to move to self.start = startCoord self.end = endCoord self.distance = distance self.path = path pass def __repr__(self): return "<...
312
-6
75
4f08ffd6a51e8d59f2eef0f1e52829d2ee55cc69
1,014
py
Python
filter_errors.py
slowwavesleep/NeuralMorphemeSegmenter
b32f47ecc380262755bf436cf793f35901919f0f
[ "MIT" ]
null
null
null
filter_errors.py
slowwavesleep/NeuralMorphemeSegmenter
b32f47ecc380262755bf436cf793f35901919f0f
[ "MIT" ]
null
null
null
filter_errors.py
slowwavesleep/NeuralMorphemeSegmenter
b32f47ecc380262755bf436cf793f35901919f0f
[ "MIT" ]
null
null
null
import json from pathlib import Path import tarfile PREDICTIONS_DIR = "./data/predictions" folder = Path(PREDICTIONS_DIR) pred_paths = folder.glob("**/*.jsonl") compiled_errors_path = "error_analysis/errors.jsonl" zipped_path = "error_analysis/errors.tar.gz" with open(compiled_errors_path, "w") as file: pass f...
32.709677
120
0.667653
import json from pathlib import Path import tarfile PREDICTIONS_DIR = "./data/predictions" folder = Path(PREDICTIONS_DIR) pred_paths = folder.glob("**/*.jsonl") compiled_errors_path = "error_analysis/errors.jsonl" zipped_path = "error_analysis/errors.tar.gz" with open(compiled_errors_path, "w") as file: pass f...
0
0
0
7ed78e3e48c99b19da39240f102183f7c1ddcf77
12,987
py
Python
minato_namikaze/cogs/reaction_roles.py
EitoZX/yondaime-hokage
c86285b385a60e3e47b9a7205ae36e7249b47eee
[ "Apache-2.0" ]
null
null
null
minato_namikaze/cogs/reaction_roles.py
EitoZX/yondaime-hokage
c86285b385a60e3e47b9a7205ae36e7249b47eee
[ "Apache-2.0" ]
null
null
null
minato_namikaze/cogs/reaction_roles.py
EitoZX/yondaime-hokage
c86285b385a60e3e47b9a7205ae36e7249b47eee
[ "Apache-2.0" ]
null
null
null
import asyncio import json import uuid from json.decoder import JSONDecodeError import discord from discord.ext import commands, tasks from lib import (ReactionPersistentView, Database, has_permissions, ) from DiscordUtils import Embed
44.937716
205
0.548087
import asyncio import json import uuid from json.decoder import JSONDecodeError import discord from discord.ext import commands, tasks from lib import (ReactionPersistentView, Database, has_permissions, ) from DiscordUtils import Embed class ReactionRoles(commands.Cog, name="Reactio...
1,791
10,877
46
d0015db79a366c602b4986e19d78fcb3e9386ca6
2,075
py
Python
huey_legacy/importer.py
yipstar/surf_python
60bb52c89de8d00afe9a1e51cc69639344c4c807
[ "Apache-2.0" ]
null
null
null
huey_legacy/importer.py
yipstar/surf_python
60bb52c89de8d00afe9a1e51cc69639344c4c807
[ "Apache-2.0" ]
3
2021-05-20T18:59:03.000Z
2022-02-26T08:44:03.000Z
huey_legacy/importer.py
yipstar/surf_python
60bb52c89de8d00afe9a1e51cc69639344c4c807
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import os import datetime import requests from huey.models import Buoy, BuoyRealtimeWaveDetail, BuoyRawSpectralWaveData id ).order_by(BuoyRealtimeWaveDetail.ts.desc()).first() realtime_url = f"https://www.ndbc.noaa.gov/data/realtime2/{station_id}.spec" df = pd.read_csv(r...
35.169492
161
0.686265
import numpy as np import pandas as pd import os import datetime import requests from huey.models import Buoy, BuoyRealtimeWaveDetail, BuoyRawSpectralWaveData def import_buoy_realtime_wave_detail(db_session): station_id = "46025" buoy = db_session.query(Buoy).filter(Buoy.station_id == station_id).first() ...
1,166
0
46
33e05356ed0cd880f8649de33c74f42fbb5dc5fa
7,680
py
Python
NLTK/fns.py
etholpalmer/Deep-Learning-homework
c6c341e5b716f24c47d9a8b5179c0d767cabb153
[ "ADSL" ]
null
null
null
NLTK/fns.py
etholpalmer/Deep-Learning-homework
c6c341e5b716f24c47d9a8b5179c0d767cabb153
[ "ADSL" ]
null
null
null
NLTK/fns.py
etholpalmer/Deep-Learning-homework
c6c341e5b716f24c47d9a8b5179c0d767cabb153
[ "ADSL" ]
null
null
null
# Initial imports from calendar import day_abbr import nltk import pandas as pd from pathlib import Path from nltk.sentiment.vader import SentimentIntensityAnalyzer from nltk.tokenize import word_tokenize, sent_tokenize nltk.download('stopwords') nltk.download('punkt') nltk.download('wordnet') from nltk.corpus import...
34.751131
124
0.661719
# Initial imports from calendar import day_abbr import nltk import pandas as pd from pathlib import Path from nltk.sentiment.vader import SentimentIntensityAnalyzer from nltk.tokenize import word_tokenize, sent_tokenize nltk.download('stopwords') nltk.download('punkt') nltk.download('wordnet') from nltk.corpus import...
553
0
66
7169c5f3fc657450ddc70de2b2c1345f07cc29c7
4,798
py
Python
examples/scripts/04_benchmarking.py
wilsonify/sktime
68395d44bd3f46b0801c506e23e889dd54999d29
[ "BSD-3-Clause" ]
null
null
null
examples/scripts/04_benchmarking.py
wilsonify/sktime
68395d44bd3f46b0801c506e23e889dd54999d29
[ "BSD-3-Clause" ]
null
null
null
examples/scripts/04_benchmarking.py
wilsonify/sktime
68395d44bd3f46b0801c506e23e889dd54999d29
[ "BSD-3-Clause" ]
null
null
null
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Benchmarking with sktime # # The benchmarking modu...
36.075188
376
0.758024
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.1 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # Benchmarking with sktime # # The benchmarking modu...
0
0
0
3633436e60503902f2c90eb313bc015a9f19f634
4,588
py
Python
neural_network_visualize.py
ahijevyc/NSC_objects
322728a71ec011b681b0038e9dcd86df1f73b2fd
[ "MIT" ]
null
null
null
neural_network_visualize.py
ahijevyc/NSC_objects
322728a71ec011b681b0038e9dcd86df1f73b2fd
[ "MIT" ]
null
null
null
neural_network_visualize.py
ahijevyc/NSC_objects
322728a71ec011b681b0038e9dcd86df1f73b2fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.colors import LogNorm, ListedColormap,BoundaryNorm import numpy as np import datetime as dt import sys, os, pickle from scipy.ndimage.filters import gaussian_filter import pandas as pd from mpl_toolkits.basema...
42.481481
278
0.68374
#!/usr/bin/env python import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.colors import LogNorm, ListedColormap,BoundaryNorm import numpy as np import datetime as dt import sys, os, pickle from scipy.ndimage.filters import gaussian_filter import pandas as pd from mpl_toolkits.basema...
2,065
0
138
31bfee0e9c16ba0b37c3110115a0c5a9907e3c87
3,145
py
Python
tests/acceptance/test_kickstarter.py
argaen/kickscraper
cbb40f47cd22d70af1452ff160bb3d0112df9414
[ "MIT" ]
5
2016-02-22T22:59:42.000Z
2017-08-26T17:00:17.000Z
tests/acceptance/test_kickstarter.py
argaen/kickscraper
cbb40f47cd22d70af1452ff160bb3d0112df9414
[ "MIT" ]
1
2017-12-15T18:14:53.000Z
2020-06-29T17:12:56.000Z
tests/acceptance/test_kickstarter.py
argaen/kickscraper
cbb40f47cd22d70af1452ff160bb3d0112df9414
[ "MIT" ]
7
2016-07-10T13:50:59.000Z
2019-12-07T05:48:01.000Z
import pytest from kickscraper import KickStarterClient from kickscraper import Project @pytest.fixture @pytest.fixture
33.105263
93
0.638156
import pytest from kickscraper import KickStarterClient from kickscraper import Project @pytest.fixture def client(): return KickStarterClient() @pytest.fixture def project(): return Project(name="Mamma Coal-Reimagining Willie Nelson's Outlaw Concept Album") class TestClient: def test_get_stats(self...
2,314
317
387
6a3c3aacea318ea067ca6fe637ae56e6e52ee5ac
1,041
py
Python
setup.py
indiasnetwork/Fortimanager_API_py
371a1714e6d1c46c6ed3d7b179b8554f0e22eb91
[ "MIT" ]
1
2020-08-17T17:29:51.000Z
2020-08-17T17:29:51.000Z
setup.py
indiasnetwork/Fortimanager_API_py
371a1714e6d1c46c6ed3d7b179b8554f0e22eb91
[ "MIT" ]
null
null
null
setup.py
indiasnetwork/Fortimanager_API_py
371a1714e6d1c46c6ed3d7b179b8554f0e22eb91
[ "MIT" ]
1
2020-08-27T23:51:12.000Z
2020-08-27T23:51:12.000Z
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='pyFortiManagerAPI', description='A Python wrapper for the FortiManager REST API', version='0.1.6', py_modules=["pyFortiManagerAPI"], package_dir={'': 'src'}, keywords=['Fortimanager', ...
35.896552
102
0.646494
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='pyFortiManagerAPI', description='A Python wrapper for the FortiManager REST API', version='0.1.6', py_modules=["pyFortiManagerAPI"], package_dir={'': 'src'}, keywords=['Fortimanager', ...
0
0
0
1e538c0435f863cc98fe4837d5f70861dee01ff5
5,293
py
Python
tests/test_flight_parsing.py
FergM/flight_tables
8d446f9714aa41a5cfd6e720a4696df677522659
[ "MIT" ]
1
2020-02-02T00:50:33.000Z
2020-02-02T00:50:33.000Z
tests/test_flight_parsing.py
FergM/FlightTimes
8d446f9714aa41a5cfd6e720a4696df677522659
[ "MIT" ]
3
2020-07-06T17:15:31.000Z
2020-12-29T12:08:07.000Z
tests/test_flight_parsing.py
FergM/FlightTimes
8d446f9714aa41a5cfd6e720a4696df677522659
[ "MIT" ]
1
2020-07-08T14:27:53.000Z
2020-07-08T14:27:53.000Z
from datetime import datetime import unittest from flight_tables.flight_parsing import Flight, ParsedFlights class TestFlight(unittest.TestCase): """Test the class called Flight""" if __name__ == '__main__': unittest.main()
45.62931
124
0.597393
from datetime import datetime import unittest from flight_tables.flight_parsing import Flight, ParsedFlights class SampleData(object): def __init__(self): self.test_flight_departed_1 = {'actual_datetime': datetime(2020, 1, 30, 15, 15), 'code_share_type': 'mai...
4,733
26
300
25ec21d8f21b42c5e9af9a855d9d5223b791ff35
410
py
Python
resources/migrations/0003_auto_20201022_2010.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
11
2020-10-06T13:50:46.000Z
2021-02-27T20:19:17.000Z
resources/migrations/0003_auto_20201022_2010.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
174
2020-10-13T18:25:34.000Z
2022-01-17T09:49:18.000Z
resources/migrations/0003_auto_20201022_2010.py
auxfuse/ci-hackathon-app
87d5ad7aae33c15f535ceed28e1657a014159516
[ "MIT" ]
46
2020-10-14T11:27:20.000Z
2022-01-31T17:48:12.000Z
# Generated by Django 3.1.1 on 2020-10-22 20:10 from django.db import migrations, models
21.578947
63
0.609756
# Generated by Django 3.1.1 on 2020-10-22 20:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('resources', '0002_resource_description'), ] operations = [ migrations.AlterField( model_name='resource', name='descr...
0
296
23
e760ccc95f3d2af10148d10396bfac95795a98b1
1,413
py
Python
library/python/pysandesh/util.py
atsgen/contrail-sandesh
857c483697b88da94cd11ecfe2df3247c902bbb3
[ "Apache-2.0" ]
8
2015-01-08T17:36:08.000Z
2019-09-18T01:49:18.000Z
library/python/pysandesh/util.py
atsgen/contrail-sandesh
857c483697b88da94cd11ecfe2df3247c902bbb3
[ "Apache-2.0" ]
4
2015-01-12T21:26:04.000Z
2020-12-22T15:48:55.000Z
library/python/pysandesh/util.py
atsgen/contrail-sandesh
857c483697b88da94cd11ecfe2df3247c902bbb3
[ "Apache-2.0" ]
35
2015-02-26T18:19:18.000Z
2020-02-05T09:49:47.000Z
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # # util # import datetime import sys import traceback import collections # end UTCTimestampUsec # end UTCTimestampUsecToString # end enum def import_class(import_str): """Returns a class from a string including module and class.""" mod_...
25.232143
72
0.657466
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # # util # import datetime import sys import traceback import collections def UTCTimestampUsec(): epoch = datetime.datetime.utcfromtimestamp(0) now = datetime.datetime.utcnow() delta = now-epoch return (delta.microseconds + ...
568
76
92
fa176fcdd078f451a56a5679dd274bde5c3bc421
780
py
Python
SW-Academy/leetcode_twosum.py
Luann9711/NDD_study
3ba3a8bf31e1da07531b526e873ec5865d91fda0
[ "Unlicense" ]
null
null
null
SW-Academy/leetcode_twosum.py
Luann9711/NDD_study
3ba3a8bf31e1da07531b526e873ec5865d91fda0
[ "Unlicense" ]
6
2022-01-17T01:58:51.000Z
2022-02-17T06:20:35.000Z
SW-Academy/leetcode_twosum.py
Luann9711/NDD_study
3ba3a8bf31e1da07531b526e873ec5865d91fda0
[ "Unlicense" ]
5
2022-01-16T04:15:14.000Z
2022-01-16T05:22:29.000Z
# -*- coding: utf-8 -*- """leetcode_twosum.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1RPnZuejWl1-nL1k0Q0m7BXYbwQduQJaJ """ # 문제: https://leetcode.com/problems/two-sum/
25.16129
77
0.535897
# -*- coding: utf-8 -*- """leetcode_twosum.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1RPnZuejWl1-nL1k0Q0m7BXYbwQduQJaJ """ # 문제: https://leetcode.com/problems/two-sum/ class Solution(object): from copy import deepcopy def twoS...
0
510
23
9971daa67837f7ff83a8d8c8e494c3a63fe710d2
97
py
Python
studentsApi/apps.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
studentsApi/apps.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
studentsApi/apps.py
glen-s-abraham/Elearning-platform
3122cfcef9dd920fffb474da2a63c475fe08c27b
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16.166667
35
0.773196
from django.apps import AppConfig class StudentsapiConfig(AppConfig): name = 'studentsApi'
0
39
23
f620b14338e61be682d35b0543506d9c7f9a1c6d
905
py
Python
manim/utils/unit.py
PhotonSpheres/manim
7399c24b33095e29633fd75460d13eae5703cba9
[ "MIT" ]
9,497
2020-05-19T04:05:51.000Z
2022-03-31T19:00:02.000Z
manim/utils/unit.py
PhotonSpheres/manim
7399c24b33095e29633fd75460d13eae5703cba9
[ "MIT" ]
2,052
2020-05-19T03:35:26.000Z
2022-03-31T16:18:06.000Z
manim/utils/unit.py
PhotonSpheres/manim
7399c24b33095e29633fd75460d13eae5703cba9
[ "MIT" ]
1,016
2020-05-20T01:16:11.000Z
2022-03-30T16:47:14.000Z
"""Implement the Unit class.""" import numpy as np from .. import config, constants __all__ = ["Pixels", "Degrees", "Munits", "Percent"] Pixels = _PixelUnits() Degrees = constants.PI / 180 Munits = 1
24.459459
70
0.653039
"""Implement the Unit class.""" import numpy as np from .. import config, constants __all__ = ["Pixels", "Degrees", "Munits", "Percent"] class _PixelUnits: def __mul__(self, val): return val * config.frame_width / config.pixel_width def __rmul__(self, val): return val * config.frame_width ...
529
-10
179
bfbb083ccfc3212dd159cce801faf0983417efc0
606
py
Python
main_functional_msci_ric.py
ginkgodango/lgs
ffdd86e87b7859a76f5f0a355161ab63c4cd4f2e
[ "MIT" ]
1
2022-02-15T23:52:19.000Z
2022-02-15T23:52:19.000Z
main_functional_msci_ric.py
ginkgodango/lgs
ffdd86e87b7859a76f5f0a355161ab63c4cd4f2e
[ "MIT" ]
1
2021-02-18T08:44:01.000Z
2021-02-18T08:44:56.000Z
main_functional_msci_ric.py
ginkgodango/lgs
ffdd86e87b7859a76f5f0a355161ab63c4cd4f2e
[ "MIT" ]
null
null
null
import os import pandas as pd ric_folders_endswith = ( 'core_dm_daily_c_d_rif', 'core_em_daily_d_rif', 'scap_dm_daily_c_d_rif', 'scap_em_daily_d_rif' ) ric_files_endswith = ( 'CORE_DM_ALL_SECURITY_CODE_DAILY_D_RIF', 'CORE_EM_ALL_SECURITY_CODE_DAILY_D_RIF', 'SCAP_DM_ALL_SECURITY_CODE_DAILY...
25.25
99
0.759076
import os import pandas as pd ric_folders_endswith = ( 'core_dm_daily_c_d_rif', 'core_em_daily_d_rif', 'scap_dm_daily_c_d_rif', 'scap_em_daily_d_rif' ) ric_files_endswith = ( 'CORE_DM_ALL_SECURITY_CODE_DAILY_D_RIF', 'CORE_EM_ALL_SECURITY_CODE_DAILY_D_RIF', 'SCAP_DM_ALL_SECURITY_CODE_DAILY...
0
0
0
a0980ed51b20ccf2249a4e328db2599201fe3137
7,753
py
Python
pyha/common/complex.py
gasparka/pyha
60d9bbfd6075e7548d670d05317d64bc2a1a19ee
[ "Apache-2.0" ]
6
2017-05-18T18:57:07.000Z
2020-08-06T11:23:34.000Z
pyha/common/complex.py
gasparka/pyha
60d9bbfd6075e7548d670d05317d64bc2a1a19ee
[ "Apache-2.0" ]
607
2017-05-10T12:51:54.000Z
2022-03-31T18:08:15.000Z
pyha/common/complex.py
gasparka/pyha
60d9bbfd6075e7548d670d05317d64bc2a1a19ee
[ "Apache-2.0" ]
1
2019-03-20T13:57:46.000Z
2019-03-20T13:57:46.000Z
import logging import math from pyha.common.context_managers import SimPath from pyha.common.fixed_point import Sfix logging.basicConfig(level=logging.INFO) logger = logging.getLogger('complex') class Complex: """ Complex number with ``.real`` and ``.imag`` elements. Default type is ``Complex(left=0, right=-...
31.51626
125
0.572811
import logging import math from pyha.common.context_managers import SimPath from pyha.common.fixed_point import Sfix logging.basicConfig(level=logging.INFO) logger = logging.getLogger('complex') class Complex: """ Complex number with ``.real`` and ``.imag`` elements. Default type is ``Complex(left=0, right=-...
5,054
0
699
c29d1112817a37cd69959c804766605c0bcebaec
5,783
py
Python
castleio.py
gmareske/saveit
0cc578fe79903525d647c95ead8242dff3b09f88
[ "MIT" ]
null
null
null
castleio.py
gmareske/saveit
0cc578fe79903525d647c95ead8242dff3b09f88
[ "MIT" ]
null
null
null
castleio.py
gmareske/saveit
0cc578fe79903525d647c95ead8242dff3b09f88
[ "MIT" ]
null
null
null
import urllib from textblob import TextBlob, Word from word2number import w2n from user import User from goal import Goal from responses import get_response
33.818713
240
0.61041
import urllib from textblob import TextBlob, Word from word2number import w2n from user import User from goal import Goal from responses import get_response def clean_text(text): text = text.replace("$", "").replace(",", "").replace("!", "").replace("@", " ").replace("#", "").replace("%", " ").replace("^", " ")....
5,279
0
345
214e4427d3f84f8525fb64a098839c41a2954226
562
py
Python
proxypool/crawlers/public/cool-proxy.py
youttiao/ProxyPool
d2a22535dd46978a2514ab816d22186217cb2535
[ "MIT" ]
null
null
null
proxypool/crawlers/public/cool-proxy.py
youttiao/ProxyPool
d2a22535dd46978a2514ab816d22186217cb2535
[ "MIT" ]
null
null
null
proxypool/crawlers/public/cool-proxy.py
youttiao/ProxyPool
d2a22535dd46978a2514ab816d22186217cb2535
[ "MIT" ]
null
null
null
from proxypool.schemas.proxy import Proxy from proxypool.crawlers.base import BaseCrawler import json BASE_URL = 'https://cool-proxy.net/proxies.json' class CoolproxyCrawler(BaseCrawler): """ https://cool-proxy.net/ """ urls = [BASE_URL] if __name__ == '__main__': crawler = CoolproxyCrawler() ...
21.615385
48
0.615658
from proxypool.schemas.proxy import Proxy from proxypool.crawlers.base import BaseCrawler import json BASE_URL = 'https://cool-proxy.net/proxies.json' class CoolproxyCrawler(BaseCrawler): """ https://cool-proxy.net/ """ urls = [BASE_URL] def parse(self, html): r = json.loads(html) ...
161
0
27
5a6c8127960e7016b9af34e4e308250258f93520
1,148
py
Python
tests/tests/asynchronous/scenes/storages/memory/test_save_scenes.py
Abstract-X/tgbotscenario
bd79ff5548b9fa33c198cfda36c6533e35127dfc
[ "MIT" ]
4
2021-07-12T17:40:41.000Z
2022-02-20T17:55:45.000Z
tests/tests/asynchronous/scenes/storages/memory/test_save_scenes.py
Abstract-X/tgbotscenario
bd79ff5548b9fa33c198cfda36c6533e35127dfc
[ "MIT" ]
1
2021-07-30T18:08:36.000Z
2021-07-30T18:08:36.000Z
tests/tests/asynchronous/scenes/storages/memory/test_save_scenes.py
Abstract-X/tgbotscenario
bd79ff5548b9fa33c198cfda36c6533e35127dfc
[ "MIT" ]
1
2021-07-25T15:59:34.000Z
2021-07-25T15:59:34.000Z
import pytest from tgbotscenario.asynchronous import MemorySceneStorage from tests.generators import generate_chat_id @pytest.mark.parametrize( ("chat_id", "user_id"), ( (generate_chat_id(), generate_chat_id()), # different (generate_chat_id(),) * 2 # same ) ) @pytest.mark.asyncio @py...
26.697674
90
0.695993
import pytest from tgbotscenario.asynchronous import MemorySceneStorage from tests.generators import generate_chat_id @pytest.mark.parametrize( ("chat_id", "user_id"), ( (generate_chat_id(), generate_chat_id()), # different (generate_chat_id(),) * 2 # same ) ) @pytest.mark.asyncio async...
593
0
44
7be62f43114fb71d4448232010d53f24107f0946
4,255
py
Python
src/svphase/vis/test_pred_accuracy.py
l337x911/inphadel
7d5ad58d90d745ed82226a8b0b983875cbe1d26e
[ "CC-BY-3.0" ]
3
2015-11-20T02:27:23.000Z
2020-04-26T07:19:18.000Z
src/svphase/vis/test_pred_accuracy.py
l337x911/inphadel
7d5ad58d90d745ed82226a8b0b983875cbe1d26e
[ "CC-BY-3.0" ]
null
null
null
src/svphase/vis/test_pred_accuracy.py
l337x911/inphadel
7d5ad58d90d745ed82226a8b0b983875cbe1d26e
[ "CC-BY-3.0" ]
null
null
null
import os import numpy as np import pandas as pd import matplotlib as mpl from matplotlib import pyplot as plt from svphase.utils.config import FONT, COLORS from svphase.learn.evaluation import ClassLabel #def _get_model_and_version(model_stat): # fname = os.path.basename(model_stat).split('.') # return fname[0], '.'....
37.654867
170
0.699177
import os import numpy as np import pandas as pd import matplotlib as mpl from matplotlib import pyplot as plt from svphase.utils.config import FONT, COLORS from svphase.learn.evaluation import ClassLabel #def _get_model_and_version(model_stat): # fname = os.path.basename(model_stat).split('.') # return fname[0], '.'....
3,372
0
23
d5bbb33a164b7fd520c2680f749966dd727ec608
1,174
py
Python
Chapter08/Ch08_Code/UnitTestsEnglish.py
mr4dsd43/Python-GUI-Programming-Cookbook-Second-Edition
18e4632106169991e9b75680bdd7250c9d77c3be
[ "MIT" ]
2
2021-01-12T03:13:29.000Z
2021-01-12T03:13:31.000Z
Chapter08/Ch08_Code/UnitTestsEnglish.py
mr4dsd43/Python-GUI-Programming-Cookbook-Second-Edition
18e4632106169991e9b75680bdd7250c9d77c3be
[ "MIT" ]
null
null
null
Chapter08/Ch08_Code/UnitTestsEnglish.py
mr4dsd43/Python-GUI-Programming-Cookbook-Second-Edition
18e4632106169991e9b75680bdd7250c9d77c3be
[ "MIT" ]
1
2022-02-22T02:06:32.000Z
2022-02-22T02:06:32.000Z
''' May 2017 @author: Burkhard ''' import unittest from Ch08_Code.LanguageResources import I18N from Ch08_Code.GUI_Refactored import OOP as GUI #========================== if __name__ == '__main__': unittest.main()
26.681818
66
0.532368
''' May 2017 @author: Burkhard ''' import unittest from Ch08_Code.LanguageResources import I18N from Ch08_Code.GUI_Refactored import OOP as GUI class GuiUnitTests(unittest.TestCase): def test_TitleIsEnglish(self): i18n = I18N('en') self.assertEqual(i18n.title, "Pytho...
659
41
216
7a33cf1e730e26773f1c2394554a237d49671490
7,388
py
Python
tools/get_probabilites_of_stroke_counts.py
MartinThoma/write-math
ece645f70341431ac7ca14740ce26ad8153a3900
[ "MIT" ]
42
2015-04-27T18:53:08.000Z
2020-09-29T22:53:21.000Z
tools/get_probabilites_of_stroke_counts.py
MartinThoma/write-math
ece645f70341431ac7ca14740ce26ad8153a3900
[ "MIT" ]
22
2015-04-12T13:13:25.000Z
2016-08-05T09:55:25.000Z
tools/get_probabilites_of_stroke_counts.py
MartinThoma/write-math
ece645f70341431ac7ca14740ce26ad8153a3900
[ "MIT" ]
4
2017-03-08T22:29:41.000Z
2018-12-04T02:19:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Given a symbol s, what is the probability P(n|s) of a stroke count of n? Download data for each symbol. """ import logging import sys logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO, strea...
33.429864
79
0.527883
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Given a symbol s, what is the probability P(n|s) of a stroke count of n? Download data for each symbol. """ import logging import sys logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO, strea...
429
0
23
62694fcb091d89565d14c87ebe87c15cb649af81
36,008
py
Python
classification/metrics/compute_vessel_metrics.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
7
2018-10-14T14:55:10.000Z
2021-01-04T13:42:09.000Z
classification/metrics/compute_vessel_metrics.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
classification/metrics/compute_vessel_metrics.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
""" Example: python compute_metrics.py --inference-path classification_results.json.gz \ --label-path classification/data/net_training_20161115.csv \ --dest-path fltest.html --fishing-ranges classification/data/combined_fishing_ranges.csv \ ...
33.248384
121
0.593035
""" Example: python compute_metrics.py --inference-path classification_results.json.gz \ --label-path classification/data/net_training_20161115.csv \ --dest-path fltest.html --fishing-ranges classification/data/combined_fishing_ranges.csv \ ...
14,821
172
712
d989d18aaa3c816b9eb10aaf8a00c00c70d5a5f3
1,397
py
Python
lightcurve/addDate.py
yerkesobservatory/variousnsundry
c757a628b1c66be08c4ac15fb0dda26af61aebd8
[ "MIT" ]
null
null
null
lightcurve/addDate.py
yerkesobservatory/variousnsundry
c757a628b1c66be08c4ac15fb0dda26af61aebd8
[ "MIT" ]
null
null
null
lightcurve/addDate.py
yerkesobservatory/variousnsundry
c757a628b1c66be08c4ac15fb0dda26af61aebd8
[ "MIT" ]
null
null
null
import os import glob import math import subprocess import re from decimal import Decimal from astropy.io import fits from astropy import wcs #MODIFY THESE FIELDS AS NEEDED! #input path *with* ending forward slash input_path='./' #output path *with* ending forward slash #output_path='./renamed/' output_path='./' #doe...
25.4
77
0.692198
import os import glob import math import subprocess import re from decimal import Decimal from astropy.io import fits from astropy import wcs #MODIFY THESE FIELDS AS NEEDED! #input path *with* ending forward slash input_path='./' #output path *with* ending forward slash #output_path='./renamed/' output_path='./' #doe...
0
0
0
33ca5098c118ac54a2bdc2c45c313c25ad43ddb9
1,747
py
Python
lab6/marketing/evaluation.py
bolecodex/amazon-sagemaker-immersion-day
2894145bb0abd4961cb0e0b7c6d1e89264b76716
[ "MIT-0" ]
null
null
null
lab6/marketing/evaluation.py
bolecodex/amazon-sagemaker-immersion-day
2894145bb0abd4961cb0e0b7c6d1e89264b76716
[ "MIT-0" ]
null
null
null
lab6/marketing/evaluation.py
bolecodex/amazon-sagemaker-immersion-day
2894145bb0abd4961cb0e0b7c6d1e89264b76716
[ "MIT-0" ]
null
null
null
import os import json import pathlib import pickle import tarfile import pandas as pd import xgboost import joblib import numpy as np import pandas as pd import xgboost from sklearn.metrics import accuracy_score, classification_report, roc_auc_score if __name__ == "__main__": model_path = f"/opt/ml/processing/m...
29.610169
96
0.665713
import os import json import pathlib import pickle import tarfile import pandas as pd import xgboost import joblib import numpy as np import pandas as pd import xgboost from sklearn.metrics import accuracy_score, classification_report, roc_auc_score if __name__ == "__main__": model_path = f"/opt/ml/processing/m...
0
0
0
f9609eebd9ab7d22ba35b722d2ae65f396d89922
7,508
py
Python
bnp_tumorseg/evidence.py
ryanneph/bnp-tumorseg
c5b071405ec7cc4f0aa33a0e3b83b0075ca45276
[ "Apache-2.0" ]
8
2018-09-24T15:37:33.000Z
2021-01-20T06:28:07.000Z
bnp_tumorseg/evidence.py
ryanneph/bnp-tumorseg
c5b071405ec7cc4f0aa33a0e3b83b0075ca45276
[ "Apache-2.0" ]
null
null
null
bnp_tumorseg/evidence.py
ryanneph/bnp-tumorseg
c5b071405ec7cc4f0aa33a0e3b83b0075ca45276
[ "Apache-2.0" ]
5
2018-09-24T16:55:25.000Z
2021-03-30T06:19:44.000Z
from math import pi, sqrt import numpy as np import numpy.ma as ma from numpy.linalg import cholesky, solve from copy import copy, deepcopy import choldate import logging from . import loggers from .wrappers import exp, log, gammaln logger = logging.getLogger(__name__) def choleskyQuadForm(L, b): """Compute quadr...
32.502165
133
0.570591
from math import pi, sqrt import numpy as np import numpy.ma as ma from numpy.linalg import cholesky, solve from copy import copy, deepcopy import choldate import logging from . import loggers from .wrappers import exp, log, gammaln logger = logging.getLogger(__name__) def choleskyQuadForm(L, b): """Compute quadr...
2,491
0
477
67efb9509d11d390d942bd02809a166839bc84e4
2,156
py
Python
marsworks/origin/tools.py
anand2312/Marsworks
1a9d837c2da3a03fdf25280c6aaa43deeda40451
[ "MIT" ]
2
2021-07-16T18:07:50.000Z
2021-08-11T09:24:14.000Z
marsworks/origin/tools.py
anand2312/Marsworks
1a9d837c2da3a03fdf25280c6aaa43deeda40451
[ "MIT" ]
7
2021-07-07T09:08:07.000Z
2021-08-07T04:51:29.000Z
marsworks/origin/tools.py
anand2312/Marsworks
1a9d837c2da3a03fdf25280c6aaa43deeda40451
[ "MIT" ]
2
2022-01-23T14:31:57.000Z
2022-02-19T16:45:41.000Z
""" MIT License Copyright (c) 2021 mooncell07 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
30.366197
78
0.67115
""" MIT License Copyright (c) 2021 mooncell07 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
0
0
0
6eb729a873c5f0279e5ee022a6e3c3618e3e3968
2,225
py
Python
bfg/cli.py
fomars/bfg
e007704e02a9bd4f71651b78dba8122e21091951
[ "MIT" ]
14
2018-04-15T06:59:16.000Z
2022-02-05T11:38:25.000Z
bfg/cli.py
fomars/bfg
e007704e02a9bd4f71651b78dba8122e21091951
[ "MIT" ]
null
null
null
bfg/cli.py
fomars/bfg
e007704e02a9bd4f71651b78dba8122e21091951
[ "MIT" ]
4
2017-11-24T12:25:55.000Z
2021-01-14T09:24:14.000Z
''' Entry point. Init logging, initialize component factory, start asyncio event loop, manage components lifecycle ''' import logging import yaml import pytoml import json import sys from .loadtest import LoadTest LOG = logging.getLogger(__name__) def init_logging(debug=False, filename='bfg.log'): ''' Configur...
28.896104
75
0.654831
''' Entry point. Init logging, initialize component factory, start asyncio event loop, manage components lifecycle ''' import logging import yaml import pytoml import json import sys from .loadtest import LoadTest LOG = logging.getLogger(__name__) def init_logging(debug=False, filename='bfg.log'): ''' Configur...
0
0
0
bd225b8ee0b0afe5e5b469c26da938d9887a6b5a
1,841
py
Python
slides/06_expressivity_optimization_generalization/images/make_mini_mlp_loss_figures.py
JLWoodcock/MKL
2d2cdded15aeb8144e08fdbc2b9ae2abfa88216d
[ "MIT" ]
1
2017-11-30T17:25:08.000Z
2017-11-30T17:25:08.000Z
slides/06_expressivity_optimization_generalization/images/make_mini_mlp_loss_figures.py
SebastienBoisard/m2dsupsdlclass-lectures-labs
fdd8ec4f01a28a8bf4e11f297bba889be4fde993
[ "MIT" ]
null
null
null
slides/06_expressivity_optimization_generalization/images/make_mini_mlp_loss_figures.py
SebastienBoisard/m2dsupsdlclass-lectures-labs
fdd8ec4f01a28a8bf4e11f297bba889be4fde993
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os import shutil # Generate the figures in the same folder os.chdir(os.path.dirname(__file__)) rng = np.random.RandomState(42) # 2D parameter space: n_steps = 200 w1 = np.linspace(-2.5, 2.5, n_steps) w2 = np.linspace(-2.5, 2.5, n_steps) w1, w2 = np.meshgrid(w...
25.219178
68
0.632265
import numpy as np import matplotlib.pyplot as plt import os import shutil # Generate the figures in the same folder os.chdir(os.path.dirname(__file__)) rng = np.random.RandomState(42) # 2D parameter space: n_steps = 200 w1 = np.linspace(-2.5, 2.5, n_steps) w2 = np.linspace(-2.5, 2.5, n_steps) w1, w2 = np.meshgrid(w...
51
0
46
3554041e1d8c5d12612f7250db1a6c29e22c805f
638
py
Python
Library/PackageCache/com.unity.scripting.python@2.0.1-preview.2/Python/site-packages/unity_python/server/settings.py
TranThiThanhHoa/pythonForUnity
cfbc6b1c4d14593a8e9ceb36072b6946efe223e3
[ "MIT" ]
null
null
null
Library/PackageCache/com.unity.scripting.python@2.0.1-preview.2/Python/site-packages/unity_python/server/settings.py
TranThiThanhHoa/pythonForUnity
cfbc6b1c4d14593a8e9ceb36072b6946efe223e3
[ "MIT" ]
null
null
null
Library/PackageCache/com.unity.scripting.python@2.0.1-preview.2/Python/site-packages/unity_python/server/settings.py
TranThiThanhHoa/pythonForUnity
cfbc6b1c4d14593a8e9ceb36072b6946efe223e3
[ "MIT" ]
null
null
null
from __future__ import division, print_function # This file has a bunch of settings that can be set via the Unity project settings. # It also has some hacks for compatibility between versions of Python and Windows. import getpass import os import tempfile # Unix socket support. whoami = getpass.getuser() tempdir = te...
31.9
83
0.777429
from __future__ import division, print_function # This file has a bunch of settings that can be set via the Unity project settings. # It also has some hacks for compatibility between versions of Python and Windows. import getpass import os import tempfile # Unix socket support. whoami = getpass.getuser() tempdir = te...
0
0
0
b483d466467238ad4f4ed508ae43de183ecedaad
3,898
py
Python
kolibri/core/views.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
kolibri/core/views.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
kolibri/core/views.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
from django import http from django.conf import settings from django.contrib.auth import logout from django.core.urlresolvers import translate_url from django.http import Http404 from django.http import HttpResponseRedirect from django.utils.http import is_safe_url from django.utils.translation import check_for_languag...
41.468085
111
0.686762
from django import http from django.conf import settings from django.contrib.auth import logout from django.core.urlresolvers import translate_url from django.http import Http404 from django.http import HttpResponseRedirect from django.utils.http import is_safe_url from django.utils.translation import check_for_languag...
274
1,288
92
05bfaf565b5084c98cfd0831dd4d1195d7f48e95
93
py
Python
__init__.py
sampanes/cv_pubsubs
746a9cfab0be742f3b47e8bffe67f46abf4df410
[ "MIT" ]
null
null
null
__init__.py
sampanes/cv_pubsubs
746a9cfab0be742f3b47e8bffe67f46abf4df410
[ "MIT" ]
null
null
null
__init__.py
sampanes/cv_pubsubs
746a9cfab0be742f3b47e8bffe67f46abf4df410
[ "MIT" ]
null
null
null
# redirection, so we can use subtree like pip from .cv_pubsubs import webcam_pub, window_sub
31
46
0.806452
# redirection, so we can use subtree like pip from .cv_pubsubs import webcam_pub, window_sub
0
0
0
cbad59862fd2ef7c3eb6f064e839a2bfe20913d1
176
py
Python
pokemontcgsdkasync/legality.py
Pole458/pokemon-tcg-sdk-python-async
d4ab39049093f93e45329c59c3ce0c506dc1379c
[ "MIT" ]
null
null
null
pokemontcgsdkasync/legality.py
Pole458/pokemon-tcg-sdk-python-async
d4ab39049093f93e45329c59c3ce0c506dc1379c
[ "MIT" ]
null
null
null
pokemontcgsdkasync/legality.py
Pole458/pokemon-tcg-sdk-python-async
d4ab39049093f93e45329c59c3ce0c506dc1379c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Optional @dataclass
17.6
33
0.761364
from dataclasses import dataclass from typing import Optional @dataclass class Legality: unlimited: Optional[str] expanded: Optional[str] standard: Optional[str]
0
79
22
66425ffb0fa5a2059aae4f8ac48b5cb23bbff19d
13,582
py
Python
symbian/PythonForS60_1.9.6/module-repo/dev-modules/e32calendar/e32calendar.py
pymo/pymo
703ba457fba90635ab61fe4c8ec054e002613283
[ "MIT" ]
69
2015-01-16T13:12:55.000Z
2022-02-14T12:55:27.000Z
symbian/PythonForS60_1.9.6/module-repo/dev-modules/e32calendar/e32calendar.py
pymo/pymo
703ba457fba90635ab61fe4c8ec054e002613283
[ "MIT" ]
3
2019-07-19T18:02:02.000Z
2021-04-25T06:35:42.000Z
symbian/PythonForS60/module-repo/dev-modules/e32calendar/e32calendar.py
pymo/pymo
703ba457fba90635ab61fe4c8ec054e002613283
[ "MIT" ]
17
2015-04-17T13:50:09.000Z
2021-05-13T02:47:56.000Z
# # e32calendar.py # # Copyright (c) 2006-2009 Nokia Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
42.049536
153
0.631718
# # e32calendar.py # # Copyright (c) 2006-2009 Nokia Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
8,843
3,478
67
8ef3cf727b139eeb72f0311be47936a2a57269be
317
py
Python
Codeforces 1293A.py
Jvillegasd/Codeforces
ffdd2d5db1dabc7ff76f8f92270c79233a77b933
[ "MIT" ]
null
null
null
Codeforces 1293A.py
Jvillegasd/Codeforces
ffdd2d5db1dabc7ff76f8f92270c79233a77b933
[ "MIT" ]
null
null
null
Codeforces 1293A.py
Jvillegasd/Codeforces
ffdd2d5db1dabc7ff76f8f92270c79233a77b933
[ "MIT" ]
null
null
null
from sys import stdin, stdout t = int(stdin.readline()) for i in range(t): n, s, k = map(int, stdin.readline().split()) a = [int(ai) for ai in stdin.readline().split()] for j in range(n + 1): if s + j not in a and s + j <= n or s - j not in a and s - j > 0: stdout.write('{}\n'.format(j)) break
31.7
69
0.567823
from sys import stdin, stdout t = int(stdin.readline()) for i in range(t): n, s, k = map(int, stdin.readline().split()) a = [int(ai) for ai in stdin.readline().split()] for j in range(n + 1): if s + j not in a and s + j <= n or s - j not in a and s - j > 0: stdout.write('{}\n'.format(j)) break
0
0
0
ac456b279a72b8daf1cc3c112a38955fa3ae37c9
1,170
py
Python
tests/test_vnet_bitmap.py
atrens/sonic-swss
ec43b1d647e4329ac5fcdd34afd97648d41600e5
[ "Apache-2.0" ]
null
null
null
tests/test_vnet_bitmap.py
atrens/sonic-swss
ec43b1d647e4329ac5fcdd34afd97648d41600e5
[ "Apache-2.0" ]
null
null
null
tests/test_vnet_bitmap.py
atrens/sonic-swss
ec43b1d647e4329ac5fcdd34afd97648d41600e5
[ "Apache-2.0" ]
null
null
null
import time import pytest import test_vnet as vnet from swsscommon import swsscommon from flaky import flaky # Define fake platform for "DVS" fixture, so it will set "platform" environment variable for "orchagent". # It is needed in order to enable platform specific "orchagent" code for testing "bitmap" VNET implem...
39
129
0.775214
import time import pytest import test_vnet as vnet from swsscommon import swsscommon from flaky import flaky # Define fake platform for "DVS" fixture, so it will set "platform" environment variable for "orchagent". # It is needed in order to enable platform specific "orchagent" code for testing "bitmap" VNET implem...
46
0
26
0ca3495429ea5809c5bab404862a4da8ea556b6e
30,947
py
Python
merge_machine/gridding.py
entrepreneur-interet-general/the-magical-csv-merge-machine
5941c2ed3db64548ece74311c5055ee298e31ab8
[ "MIT" ]
7
2017-12-14T17:49:01.000Z
2021-06-27T13:08:47.000Z
merge_machine/gridding.py
entrepreneur-interet-general/the-magical-csv-merge-machine
5941c2ed3db64548ece74311c5055ee298e31ab8
[ "MIT" ]
65
2017-11-29T17:01:52.000Z
2018-08-31T15:59:19.000Z
merge_machine/gridding.py
entrepreneur-interet-general/the-magical-csv-merge-machine
5941c2ed3db64548ece74311c5055ee298e31ab8
[ "MIT" ]
3
2017-12-21T10:57:23.000Z
2020-05-25T06:58:39.000Z
import csv, difflib, functools, logging, re, os, sys, pickle import unicodedata, unidecode from collections import defaultdict, Counter from fuzzywuzzy import fuzz from postal.parser import parse_address import enchant DICTS = [ enchant.Dict("en_US") ] SOURCE = 1 REFERENCE = 2 MIN_STRING_SCORE = 20 REQUIRES_SHARED_PR...
47.319572
4,153
0.68753
import csv, difflib, functools, logging, re, os, sys, pickle import unicodedata, unidecode from collections import defaultdict, Counter from fuzzywuzzy import fuzz from postal.parser import parse_address import enchant DICTS = [ enchant.Dict("en_US") ] SOURCE = 1 REFERENCE = 2 MIN_STRING_SCORE = 20 REQUIRES_SHARED_PR...
19,548
0
897
56d59dd991f87fa36df81769fd26197b26a8e07d
1,502
py
Python
polling_stations/apps/data_importers/management/commands/import_midlothian.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
29
2015-03-10T08:41:34.000Z
2022-01-12T08:51:38.000Z
polling_stations/apps/data_importers/management/commands/import_midlothian.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
4,112
2015-04-01T21:27:38.000Z
2022-03-31T19:22:11.000Z
polling_stations/apps/data_importers/management/commands/import_midlothian.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
31
2015-03-18T14:52:50.000Z
2022-02-24T10:31:07.000Z
from data_importers.ems_importers import BaseHalaroseCsvImporter
28.339623
86
0.552597
from data_importers.ems_importers import BaseHalaroseCsvImporter class Command(BaseHalaroseCsvImporter): council_id = "MLN" addresses_name = ( "2021-03-22T10:03:09.388418/lothian ERO polling_station_export-2021-03-21.csv" ) stations_name = ( "2021-03-22T10:03:09.388418/lothian ERO poll...
998
415
23
8ad0fd86deb21fb958da59cb8088dda8909084e1
5,182
py
Python
mkultra/git_utils.py
jsenellart/mkultra
c43d909e6bd9b9c71c8bec8c656e2d3ea7d695d6
[ "BSD-3-Clause" ]
null
null
null
mkultra/git_utils.py
jsenellart/mkultra
c43d909e6bd9b9c71c8bec8c656e2d3ea7d695d6
[ "BSD-3-Clause" ]
null
null
null
mkultra/git_utils.py
jsenellart/mkultra
c43d909e6bd9b9c71c8bec8c656e2d3ea7d695d6
[ "BSD-3-Clause" ]
1
2021-01-01T12:13:07.000Z
2021-01-01T12:13:07.000Z
# This file is based on the ghp-import package released under # the Tumbolia Public License. # Tumbolia Public License # Copyright 2013, Paul Davis <paul.joseph.davis@gmail.com> # Copying and distribution of this file, with or without modification, are # permitted in any medium without roy...
31.987654
78
0.606137
# This file is based on the ghp-import package released under # the Tumbolia Public License. # Tumbolia Public License # Copyright 2013, Paul Davis <paul.joseph.davis@gmail.com> # Copying and distribution of this file, with or without modification, are # permitted in any medium without roy...
4,116
2
417
629068babafc3dd2307502aa36fd6da3725bb6a2
1,469
py
Python
pyS/Srun.py
nirvguy/pyS
23bfaf9dfbecf7649acef67c5df540239dbdbd5b
[ "MIT" ]
null
null
null
pyS/Srun.py
nirvguy/pyS
23bfaf9dfbecf7649acef67c5df540239dbdbd5b
[ "MIT" ]
null
null
null
pyS/Srun.py
nirvguy/pyS
23bfaf9dfbecf7649acef67c5df540239dbdbd5b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import io import getopt from .S.language import SProgram from .S.interp import StopProgram, SInterp
26.232143
117
0.536419
#!/usr/bin/env python3 import sys import io import getopt from .S.language import SProgram from .S.interp import StopProgram, SInterp def usage(): print("./Sdump [-h | -v] FILE") print() print(" -h, --help Displays this message") print(" -v, --version Displays the version of pyS") ...
1,288
0
46
4061b0765bba3e1da5d079b1e5c6e3ac9a314eb8
249
py
Python
examples/movies-data-api/app/api/__init__.py
sunyunxian/flask-examples
7ad53ce1d34354c22b7f1728218ab6a64058ccb4
[ "Apache-2.0" ]
null
null
null
examples/movies-data-api/app/api/__init__.py
sunyunxian/flask-examples
7ad53ce1d34354c22b7f1728218ab6a64058ccb4
[ "Apache-2.0" ]
null
null
null
examples/movies-data-api/app/api/__init__.py
sunyunxian/flask-examples
7ad53ce1d34354c22b7f1728218ab6a64058ccb4
[ "Apache-2.0" ]
null
null
null
from sys import prefix from flask import Blueprint from app.api.v1 import v1_bp from app.api.v2 import v2_bp api_bp = Blueprint('api', __name__) api_bp.register_blueprint(v1_bp, url_prefix='/v1') api_bp.register_blueprint(v2_bp, url_prefix='/v2')
24.9
50
0.791165
from sys import prefix from flask import Blueprint from app.api.v1 import v1_bp from app.api.v2 import v2_bp api_bp = Blueprint('api', __name__) api_bp.register_blueprint(v1_bp, url_prefix='/v1') api_bp.register_blueprint(v2_bp, url_prefix='/v2')
0
0
0
5cdb8280e8fa6fbcb220bf60f5fbf47a6ef14512
5,891
py
Python
models/module_zoo/ops/tadaconv.py
hardik01shah/TAdaConv
a1174c1c39ee91c6f6fc7a99471160f17d05297e
[ "Apache-2.0" ]
30
2022-01-29T12:39:31.000Z
2022-03-23T05:58:52.000Z
models/module_zoo/ops/tadaconv.py
hardik01shah/TAdaConv
a1174c1c39ee91c6f6fc7a99471160f17d05297e
[ "Apache-2.0" ]
5
2022-02-07T02:09:27.000Z
2022-03-29T10:40:22.000Z
models/module_zoo/ops/tadaconv.py
hardik01shah/TAdaConv
a1174c1c39ee91c6f6fc7a99471160f17d05297e
[ "Apache-2.0" ]
6
2022-01-30T03:22:22.000Z
2022-03-31T07:28:32.000Z
#!/usr/bin/env python3 # Copyright (C) Alibaba Group Holding Limited. """ TAdaConv. """ import math import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.modules.utils import _triple class RouteFuncMLP(nn.Module): """ The routing function for generating the calibration weights. ...
37.522293
118
0.568834
#!/usr/bin/env python3 # Copyright (C) Alibaba Group Holding Limited. """ TAdaConv. """ import math import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.modules.utils import _triple class RouteFuncMLP(nn.Module): """ The routing function for generating the calibration weights. ...
2,327
0
97
4db4dbe2d32fb6c3619d533caf10ccca3a968638
3,980
py
Python
src/BiGruSelfattentionWithCheating.py
keigotak/COVID19Tweet
fa11c1be88dda91b70b68a8819715b5d6c1afb33
[ "Unlicense" ]
null
null
null
src/BiGruSelfattentionWithCheating.py
keigotak/COVID19Tweet
fa11c1be88dda91b70b68a8819715b5d6c1afb33
[ "Unlicense" ]
null
null
null
src/BiGruSelfattentionWithCheating.py
keigotak/COVID19Tweet
fa11c1be88dda91b70b68a8819715b5d6c1afb33
[ "Unlicense" ]
null
null
null
from pathlib import Path import torch import torch.nn as nn from AbstractModel import AbstractModel from Attention import Attention from Tokenizer import Tokenizer from StopWords import StopWords ''' '''
39.019608
128
0.65603
from pathlib import Path import torch import torch.nn as nn from AbstractModel import AbstractModel from Attention import Attention from Tokenizer import Tokenizer from StopWords import StopWords class BiGruSelfattentionWithCheating(AbstractModel): def __init__(self, device='cpu', hyper_params=None): s...
3,635
31
103
f6f6b530940bd1afd98152d22f07c0e5ec8d8175
794
py
Python
migrations/versions/707bac2b6bd1_add_notes_field_for_tasks.py
toastwaffle/LiME
7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad
[ "MIT" ]
null
null
null
migrations/versions/707bac2b6bd1_add_notes_field_for_tasks.py
toastwaffle/LiME
7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad
[ "MIT" ]
69
2018-02-04T15:08:07.000Z
2020-03-19T22:04:16.000Z
migrations/versions/707bac2b6bd1_add_notes_field_for_tasks.py
toastwaffle/LiME
7d529d9eaeb9de7a9aebe6aa373e1b3611bfd2ad
[ "MIT" ]
null
null
null
"""Add notes field for tasks Revision ID: 707bac2b6bd1 Revises: 58ea8596e2db Create Date: 2017-09-10 11:31:03.741908 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '707bac2b6bd1' down_revision = '58ea8596e2db' branch_labels = None depends_on = None
25.612903
78
0.683879
"""Add notes field for tasks Revision ID: 707bac2b6bd1 Revises: 58ea8596e2db Create Date: 2017-09-10 11:31:03.741908 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '707bac2b6bd1' down_revision = '58ea8596e2db' branch_labels = None depends_on = None def upgra...
437
0
46
dbc199c2cf14db1d4ed1a7f3f9bf0a48e11006c7
1,113
py
Python
setup.py
shinybrar/Comet
4229092fca74c130a7d4ecd4dbd22ae85f7e6308
[ "BSD-2-Clause" ]
null
null
null
setup.py
shinybrar/Comet
4229092fca74c130a7d4ecd4dbd22ae85f7e6308
[ "BSD-2-Clause" ]
null
null
null
setup.py
shinybrar/Comet
4229092fca74c130a7d4ecd4dbd22ae85f7e6308
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup import sys import comet with open('requirements.txt') as f: required = f.read().splitlines() setup( name="Comet", description=comet.__description__, author=comet.__author__, author_email=comet.__contact__, version=comet.__version__, url=comet.__url__, p...
24.195652
46
0.567835
from distutils.core import setup import sys import comet with open('requirements.txt') as f: required = f.read().splitlines() setup( name="Comet", description=comet.__description__, author=comet.__author__, author_email=comet.__contact__, version=comet.__version__, url=comet.__url__, p...
0
0
0
dad0e815ca2895c50bd83da39cc9d8936d340fda
338
py
Python
sortsearch/factorymachines.py
ashutoshdumiyan/CSES-Solutions
48ff04f0003c2a1f808412497a22c7c7841bb3db
[ "MIT" ]
null
null
null
sortsearch/factorymachines.py
ashutoshdumiyan/CSES-Solutions
48ff04f0003c2a1f808412497a22c7c7841bb3db
[ "MIT" ]
null
null
null
sortsearch/factorymachines.py
ashutoshdumiyan/CSES-Solutions
48ff04f0003c2a1f808412497a22c7c7841bb3db
[ "MIT" ]
null
null
null
from sys import stdin n, t = map(int, stdin.readline().split()) li = [int(c) for c in stdin.readline().split()] lb = 1 rb = 10 ** 18 while lb < rb: mb = (lb + rb) // 2 s = 0 for i in range(n): s += min(mb // li[i], 10 ** 9) if s >= t: rb = mb else: lb = mb ...
16.9
48
0.440828
from sys import stdin n, t = map(int, stdin.readline().split()) li = [int(c) for c in stdin.readline().split()] lb = 1 rb = 10 ** 18 while lb < rb: mb = (lb + rb) // 2 s = 0 for i in range(n): s += min(mb // li[i], 10 ** 9) if s >= t: rb = mb else: lb = mb ...
0
0
0
ca53461f738ce82a270a0e050a1a743933600908
694
py
Python
TimeWrapper_JE/venv/Lib/site-packages/pygments/lexers/functional.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TimeWrapper_JE/venv/Lib/site-packages/pygments/lexers/functional.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TimeWrapper_JE/venv/Lib/site-packages/pygments/lexers/functional.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
""" pygments.lexers.functional ~~~~~~~~~~~~~~~~~~~~~~~~~~ Just export lexer classes previously contained in this module. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexers.lisp import SchemeLexer, CommonLis...
33.047619
78
0.723343
""" pygments.lexers.functional ~~~~~~~~~~~~~~~~~~~~~~~~~~ Just export lexer classes previously contained in this module. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexers.lisp import SchemeLexer, CommonLis...
0
0
0
3948b2140aa495bf7faa5ab4388e410cdcef7be2
2,961
py
Python
openstack/object_store/v1/info.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
openstack/object_store/v1/info.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
5
2018-05-25T16:54:23.000Z
2021-11-21T02:27:16.000Z
openstack/object_store/v1/info.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
38.960526
77
0.657548
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...
0
2,311
23
23f2f97ea56f2a7c548bdccb95142732aa0cafae
13,524
py
Python
setup.py
eriknstr/borg
808379921c4a679bb597db42b4412840d66f4fb1
[ "BSD-3-Clause" ]
null
null
null
setup.py
eriknstr/borg
808379921c4a679bb597db42b4412840d66f4fb1
[ "BSD-3-Clause" ]
null
null
null
setup.py
eriknstr/borg
808379921c4a679bb597db42b4412840d66f4fb1
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 *-* import os import re import sys from glob import glob from distutils.command.build import build from distutils.core import Command import textwrap min_python = (3, 4) my_python = sys.version_info if my_python < min_python: print("Borg requires Python %d.%d or later" % min_python) sy...
37.153846
124
0.612541
# -*- encoding: utf-8 *-* import os import re import sys from glob import glob from distutils.command.build import build from distutils.core import Command import textwrap min_python = (3, 4) my_python = sys.version_info if my_python < min_python: print("Borg requires Python %d.%d or later" % min_python) sy...
5,733
530
236
027d6a6e5672a25892afb0d34d0231f5ff59fd3e
4,028
py
Python
build/lib.macosx-10.9-x86_64-3.9/gators/imputers/_base_imputer.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
4
2021-10-29T18:20:52.000Z
2022-03-31T22:53:03.000Z
build/lib.macosx-10.9-x86_64-3.9/gators/imputers/_base_imputer.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
1
2022-02-21T20:02:16.000Z
2022-02-21T20:02:16.000Z
build/lib.macosx-10.9-x86_64-3.9/gators/imputers/_base_imputer.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
5
2021-11-17T20:16:54.000Z
2022-02-21T18:21:02.000Z
# License: Apache-2.0 from ..transformers.transformer import Transformer from typing import List, Dict, Union import numpy as np import pandas as pd import databricks.koalas as ks class _BaseImputer(Transformer): """Base imputer transformer class. Parameters ---------- strategy : str Imputati...
34.135593
77
0.572493
# License: Apache-2.0 from ..transformers.transformer import Transformer from typing import List, Dict, Union import numpy as np import pandas as pd import databricks.koalas as ks class _BaseImputer(Transformer): """Base imputer transformer class. Parameters ---------- strategy : str Imputati...
956
0
27
ffc07d39b2cd320460dde0a0672d8c569fd89f84
841
py
Python
django_db_views/tests/migrations/test_basic_view_creation/0001_initial.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
django_db_views/tests/migrations/test_basic_view_creation/0001_initial.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
django_db_views/tests/migrations/test_basic_view_creation/0001_initial.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-11 19:54 from django.db import migrations import django_db_views.migration_functions import django_db_views.operations
49.470588
385
0.655172
# Generated by Django 3.1.5 on 2021-01-11 19:54 from django.db import migrations import django_db_views.migration_functions import django_db_views.operations class Migration(migrations.Migration): operations = [ django_db_views.operations.ViewRunPython( code=django_db_views.migration_functio...
0
658
23
bfdd4314a4d27b2832bb5f65f33364bfd98130d8
26,039
py
Python
pero/drawing/layout.py
xxao/pero
a7f0c84fae0b21fe120204e798bd61cdab3a125d
[ "MIT" ]
13
2019-07-15T17:51:21.000Z
2022-03-15T06:13:43.000Z
pero/drawing/layout.py
xxao/pero
a7f0c84fae0b21fe120204e798bd61cdab3a125d
[ "MIT" ]
1
2021-12-29T00:46:44.000Z
2022-01-21T16:18:48.000Z
pero/drawing/layout.py
xxao/pero
a7f0c84fae0b21fe120204e798bd61cdab3a125d
[ "MIT" ]
3
2020-09-27T14:31:45.000Z
2022-01-22T14:28:15.000Z
# Created byMartin.cz # Copyright (c) Martin Strohalm. All rights reserved. from .. enums import * from .. properties import * from . graphics import Graphics from . frame import Frame, FrameProperty from . path import Path class Layout(Graphics): """ Layout represents an experimental simple table-like lay...
32.146914
88
0.539191
# Created byMartin.cz # Copyright (c) Martin Strohalm. All rights reserved. from .. enums import * from .. properties import * from . graphics import Graphics from . frame import Frame, FrameProperty from . path import Path class Layout(Graphics): """ Layout represents an experimental simple table-like lay...
0
0
0
59f171ae690bcdc77b5bcbe155da0e51615ac689
308
py
Python
cdk/lambdacode/dynamodb.py
phanssens1/automating-slack-signups
067b4e917fa43123042d01ebbeb7f5d4670886a3
[ "MIT" ]
null
null
null
cdk/lambdacode/dynamodb.py
phanssens1/automating-slack-signups
067b4e917fa43123042d01ebbeb7f5d4670886a3
[ "MIT" ]
null
null
null
cdk/lambdacode/dynamodb.py
phanssens1/automating-slack-signups
067b4e917fa43123042d01ebbeb7f5d4670886a3
[ "MIT" ]
null
null
null
import os import boto3 import json dynamodb = boto3.resource('dynamodb') table = dynamodb.Table('dev-dataeng-meetup-table') print(table.creation_date_time)
17.111111
50
0.662338
import os import boto3 import json dynamodb = boto3.resource('dynamodb') table = dynamodb.Table('dev-dataeng-meetup-table') print(table.creation_date_time) def main(event, context): print(event) data = json.load(event) print(data) # print(i) # table.put_item( # Item=i # )
128
0
22
b2caad8be511b2adc1288e86264c955cb6d05b66
1,374
py
Python
forsat_gui/main/models.py
altostratous/forsat
9057e8897ebbff63b34a1144597923ad0d80c2bb
[ "MIT" ]
null
null
null
forsat_gui/main/models.py
altostratous/forsat
9057e8897ebbff63b34a1144597923ad0d80c2bb
[ "MIT" ]
null
null
null
forsat_gui/main/models.py
altostratous/forsat
9057e8897ebbff63b34a1144597923ad0d80c2bb
[ "MIT" ]
null
null
null
from django.db import models, connection, Error import hashlib from django.contrib.auth.models import AbstractBaseUser
31.953488
121
0.637555
from django.db import models, connection, Error import hashlib from django.contrib.auth.models import AbstractBaseUser class User(models.Model): class Meta: db_table = 'User' email = models.EmailField(primary_key=True) password = models.CharField(max_length=8192) nickname = models.CharField(ma...
668
561
23
e2983c94a04750401fd0d6ef968b1c6b8d6d289f
2,051
py
Python
ch6 slam&navigation/turtlebot/kobuki/kobuki_testsuite/src/kobuki_testsuite/angular_accelerate.py
MINAMISAMA/Castle-X
f6aedc4e67f772b2aed269617ee8a9cac95c7f63
[ "Apache-2.0" ]
3
2021-01-10T10:52:14.000Z
2021-12-31T10:19:25.000Z
ch6 slam&navigation/turtlebot/kobuki/kobuki_testsuite/src/kobuki_testsuite/angular_accelerate.py
MINAMISAMA/Castle-X
f6aedc4e67f772b2aed269617ee8a9cac95c7f63
[ "Apache-2.0" ]
1
2019-01-15T12:37:59.000Z
2019-01-15T12:37:59.000Z
ch6 slam&navigation/turtlebot/kobuki/kobuki_testsuite/src/kobuki_testsuite/angular_accelerate.py
MINAMISAMA/Castle-X
f6aedc4e67f772b2aed269617ee8a9cac95c7f63
[ "Apache-2.0" ]
2
2019-01-14T07:48:42.000Z
2019-01-15T06:32:27.000Z
#!/usr/bin/env python # # License: BSD # https://raw.github.com/yujinrobot/kobuki/hydro-devel/kobuki_testsuite/LICENSE # ############################################################################## # Imports ############################################################################## import threading impo...
28.887324
93
0.504144
#!/usr/bin/env python # # License: BSD # https://raw.github.com/yujinrobot/kobuki/hydro-devel/kobuki_testsuite/LICENSE # ############################################################################## # Imports ############################################################################## import threading impo...
1,275
25
130
444c91b2a9d8b14519b3136a8e99c65b1cd9cede
2,083
py
Python
cvtest.py
helloparthshah/HackMIT
44413c2982ebff837a2cbb55ecdeacee8dad8390
[ "MIT" ]
1
2020-09-20T12:31:48.000Z
2020-09-20T12:31:48.000Z
cvtest.py
helloparthshah/HackMIT
44413c2982ebff837a2cbb55ecdeacee8dad8390
[ "MIT" ]
null
null
null
cvtest.py
helloparthshah/HackMIT
44413c2982ebff837a2cbb55ecdeacee8dad8390
[ "MIT" ]
null
null
null
import cv2 import numpy as np import tensorflow as tf from keras.models import load_model import os from PIL import Image, ImageOps f = open("./converted_keras/l.txt", "r") labels = f.read().splitlines() f.close() # shape = (224, 224) gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: ...
27.051948
77
0.6265
import cv2 import numpy as np import tensorflow as tf from keras.models import load_model import os from PIL import Image, ImageOps f = open("./converted_keras/l.txt", "r") labels = f.read().splitlines() f.close() # shape = (224, 224) gpus = tf.config.experimental.list_physical_devices('GPU') if gpus: try: ...
0
0
0
eedfbfe7c3b7e28b9819e702eb057716d479d18f
9,173
py
Python
kubernetes/client/models/io_cert_manager_acme_v1_challenge_spec_solver_http01_ingress_pod_template_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/io_cert_manager_acme_v1_challenge_spec_solver_http01_ingress_pod_template_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/io_cert_manager_acme_v1_challenge_spec_solver_http01_ingress_pod_template_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
39.369099
259
0.693775
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
0
0
0
d3913a4a48e7cc2024ede77fb00fe65162d515b6
2,513
py
Python
mastermind_api/game/models.py
manuelmamut/mastermind
898b510de19e2affaac5480fbc38e5ba7c6d38ed
[ "MIT" ]
null
null
null
mastermind_api/game/models.py
manuelmamut/mastermind
898b510de19e2affaac5480fbc38e5ba7c6d38ed
[ "MIT" ]
1
2020-06-05T18:29:07.000Z
2020-06-05T18:29:07.000Z
mastermind_api/game/models.py
manuelmamut/mastermind
898b510de19e2affaac5480fbc38e5ba7c6d38ed
[ "MIT" ]
null
null
null
from django.db import models from datetime import datetime # Create your models here.
42.59322
127
0.535217
from django.db import models from datetime import datetime # Create your models here. class Game(models.Model): EASY = 12 MEDIUM = 10 HARD = 8 PRO = 6 DIFICULTY = ( (EASY, 'Easy'), (MEDIUM, 'Medium'), (HARD, 'Hard'), (PRO, 'Pro'), ) RED = 'R' GREEN = '...
0
2,402
23
9f509b0c3416a20a4416c23aca9f2e3dc96c4189
4,894
py
Python
examples/external_dependencies/vis_contextual_promp_distribution_screws.py
dfki-ric/movement_primitives
ca7be45f13ea8ed4dd796be7e076778b1527cf29
[ "BSD-3-Clause" ]
17
2021-11-17T15:36:16.000Z
2022-03-26T08:49:25.000Z
examples/external_dependencies/vis_contextual_promp_distribution_screws.py
DavidYaonanZhu/movement_primitives
ce355837f06cb5fada24be7259cb0305e8ea5d91
[ "BSD-3-Clause" ]
9
2021-12-01T10:33:04.000Z
2022-03-23T12:41:39.000Z
examples/external_dependencies/vis_contextual_promp_distribution_screws.py
DavidYaonanZhu/movement_primitives
ce355837f06cb5fada24be7259cb0305e8ea5d91
[ "BSD-3-Clause" ]
8
2021-11-25T03:53:40.000Z
2022-03-31T03:19:25.000Z
import numpy as np import pytransform3d.visualizer as pv import pytransform3d.trajectories as ptr from pytransform3d.urdf import UrdfTransformManager from mocap.cleaning import smooth_exponential_coordinates, median_filter from mocap.dataset_loader import load_kuka_dataset, transpose_dataset from movement_primitives.v...
40.446281
126
0.713731
import numpy as np import pytransform3d.visualizer as pv import pytransform3d.trajectories as ptr from pytransform3d.urdf import UrdfTransformManager from mocap.cleaning import smooth_exponential_coordinates, median_filter from mocap.dataset_loader import load_kuka_dataset, transpose_dataset from movement_primitives.v...
1,140
0
23
e0af8eee3c2dd88395474a5d8eb93de2e410ac84
22,461
py
Python
iop_mailer.py
ssteinke/Seaglider_mailer
412fa1d13b76ce980830f830886e87d1ef0dba28
[ "MIT" ]
null
null
null
iop_mailer.py
ssteinke/Seaglider_mailer
412fa1d13b76ce980830f830886e87d1ef0dba28
[ "MIT" ]
null
null
null
iop_mailer.py
ssteinke/Seaglider_mailer
412fa1d13b76ce980830f830886e87d1ef0dba28
[ "MIT" ]
null
null
null
#! /usr/bin/env python """IOP mail extension for Seaglider Basestation Author: Sebastian Steinke, 21.03.2017 """ import sys import os from scipy.io import netcdf import BaseNetCDF import numpy as np import time import BaseOpts from BaseLog import * import FileMgr from CalibConst import getSGCalibrationConstants impo...
43.783626
204
0.542852
#! /usr/bin/env python """IOP mail extension for Seaglider Basestation Author: Sebastian Steinke, 21.03.2017 """ import sys import os from scipy.io import netcdf import BaseNetCDF import numpy as np import time import BaseOpts from BaseLog import * import FileMgr from CalibConst import getSGCalibrationConstants impo...
7,221
0
107
f875ddb3415d927e8db2727a742f4a1b3f508cd8
33,713
py
Python
LIpipe/makemelucky.py
fedhere/getlucky
1dec967fc6f771060435842b01580bd05fcfcd08
[ "MIT" ]
null
null
null
LIpipe/makemelucky.py
fedhere/getlucky
1dec967fc6f771060435842b01580bd05fcfcd08
[ "MIT" ]
null
null
null
LIpipe/makemelucky.py
fedhere/getlucky
1dec967fc6f771060435842b01580bd05fcfcd08
[ "MIT" ]
null
null
null
################################################################# ###############written by fbb, dkudrow, shillberry######################## #Reads all of the images in a directory, sorts them by Strehl #Ratio or consecutive order, and stacks the specified top percent #either aligned to a guide star, correlating in fou...
34.436159
236
0.529677
################################################################# ###############written by fbb, dkudrow, shillberry######################## #Reads all of the images in a directory, sorts them by Strehl #Ratio or consecutive order, and stacks the specified top percent #either aligned to a guide star, correlating in fou...
26,064
14
284
43758600f0805e4b72ab6618d90986a56a45c8cf
108
py
Python
make_queue/views/api/__init__.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
make_queue/views/api/__init__.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
make_queue/views/api/__init__.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
__all__ = ["reservation", "user_info"] for _import in __all__: __import__(__package__ + "." + _import)
21.6
43
0.685185
__all__ = ["reservation", "user_info"] for _import in __all__: __import__(__package__ + "." + _import)
0
0
0
f9778d3fad1c03c5f766e60531c6817fd74b03eb
2,825
py
Python
cwb/tests/comparison/cuturi_solver.py
lingxiaoli94/CWB
96bce8c82a7ec39fe730ef6ac372e52c6fadf70f
[ "MIT" ]
8
2020-11-12T06:17:47.000Z
2021-07-05T21:34:16.000Z
cwb/tests/comparison/cuturi_solver.py
lingxiaoli94/CWB
96bce8c82a7ec39fe730ef6ac372e52c6fadf70f
[ "MIT" ]
null
null
null
cwb/tests/comparison/cuturi_solver.py
lingxiaoli94/CWB
96bce8c82a7ec39fe730ef6ac372e52c6fadf70f
[ "MIT" ]
null
null
null
from .common import load_source_list import tensorflow as tf import numpy as np import ot import os import pickle import argparse g_centering_trick = False # doesn't change results much g_sinkhorn_reg = 0.1
32.848837
146
0.657345
from .common import load_source_list import tensorflow as tf import numpy as np import ot import os import pickle import argparse g_centering_trick = False # doesn't change results much g_sinkhorn_reg = 0.1 def free_support_barycenter(measures_locations, measures_weights, X_init, b=None, weights=None, numItermax=100...
2,568
0
46
4ab8b4cb175d7b08154c39754dcc83a32f5daa8f
1,272
py
Python
Manual/procdocs.py
monkey0506/ags
2f96ddf47e944efea2534386a4004849eb71372b
[ "Artistic-2.0" ]
11
2015-01-25T09:59:17.000Z
2019-07-08T15:06:06.000Z
Manual/procdocs.py
monkey0506/ags
2f96ddf47e944efea2534386a4004849eb71372b
[ "Artistic-2.0" ]
3
2019-05-09T01:24:14.000Z
2019-06-12T12:16:33.000Z
Manual/procdocs.py
monkey0506/ags
2f96ddf47e944efea2534386a4004849eb71372b
[ "Artistic-2.0" ]
1
2019-08-01T20:32:35.000Z
2019-08-01T20:32:35.000Z
#!/usr/bin/env python import glob import re import sys # Format generated .htm to have correct syntax and additional styling. STYLE = """\ <style type=\"text/css\"><!-- body { font-family: Verdana; font-size: 10pt; } td { font-family: Verdana; font-size: 10pt; } a { font-weight: bold ...
21.2
76
0.586478
#!/usr/bin/env python import glob import re import sys # Format generated .htm to have correct syntax and additional styling. STYLE = """\ <style type=\"text/css\"><!-- body { font-family: Verdana; font-size: 10pt; } td { font-family: Verdana; font-size: 10pt; } a { font-weight: bold ...
772
0
46
a4ba527acb39a9d80fc5c236351945eea8bfa4dd
474
py
Python
04_meter.py
whaleygeek/mb_solar
479a714484ce67d4116ae065da1a9acd83f0bf61
[ "MIT" ]
null
null
null
04_meter.py
whaleygeek/mb_solar
479a714484ce67d4116ae065da1a9acd83f0bf61
[ "MIT" ]
null
null
null
04_meter.py
whaleygeek/mb_solar
479a714484ce67d4116ae065da1a9acd83f0bf61
[ "MIT" ]
1
2021-06-23T08:51:36.000Z
2021-06-23T08:51:36.000Z
from microbit import * P0_MAX = 812 # main program while True: reading = pin0.read_analog() display.clear() barchart(4, reading, P0_MAX) if button_a.was_pressed(): pin2.write_digital(0) # off if button_b.was_pressed(): pin2.write_digital(1) # on sleep(10...
20.608696
36
0.580169
from microbit import * P0_MAX = 812 def barchart(y, v, vmax): v = min(v, vmax) leds = int(v * 5 / vmax) for x in range(leds): display.set_pixel(x, y, 9) # main program while True: reading = pin0.read_analog() display.clear() barchart(4, reading, P0_MAX) if button_a.wa...
115
0
23
b99bc987d5e131f5d27c3e36eff7e9ec578eeb66
3,423
py
Python
pipe/funnel.py
DeepLearning-Tools/TensorPipe
404c5b4aa641d9d96285be04106204d2d66d9a79
[ "Apache-2.0" ]
1
2020-10-14T14:05:59.000Z
2020-10-14T14:05:59.000Z
pipe/funnel.py
DeepLearning-Tools/TensorPipe
404c5b4aa641d9d96285be04106204d2d66d9a79
[ "Apache-2.0" ]
null
null
null
pipe/funnel.py
DeepLearning-Tools/TensorPipe
404c5b4aa641d9d96285be04106204d2d66d9a79
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Kartik Sharma Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
38.897727
92
0.593631
""" Copyright 2020 Kartik Sharma Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
0
0
0
d337fa2d2f7d107da1a4f147e374dbec1dc63d4f
62
py
Python
dashapp/__init__.py
anas-rabhi/quick-dash
32e175cf125062732db68613a8996f3884948026
[ "MIT" ]
null
null
null
dashapp/__init__.py
anas-rabhi/quick-dash
32e175cf125062732db68613a8996f3884948026
[ "MIT" ]
null
null
null
dashapp/__init__.py
anas-rabhi/quick-dash
32e175cf125062732db68613a8996f3884948026
[ "MIT" ]
null
null
null
from dashapp.functions import * from dashapp.layouts import *
20.666667
31
0.806452
from dashapp.functions import * from dashapp.layouts import *
0
0
0
6f069b6c7a05f165a92423c8c187f04ac18bcef9
1,245
py
Python
rootfs/scheduler/tests/__init__.py
inglemr/controller
1c2d057db0c32a01f8620aa2597cb9ea034dbc14
[ "MIT" ]
null
null
null
rootfs/scheduler/tests/__init__.py
inglemr/controller
1c2d057db0c32a01f8620aa2597cb9ea034dbc14
[ "MIT" ]
null
null
null
rootfs/scheduler/tests/__init__.py
inglemr/controller
1c2d057db0c32a01f8620aa2597cb9ea034dbc14
[ "MIT" ]
null
null
null
from django.core.cache import cache from django.test import TestCase as DjangoTestCase from django.conf import settings from scheduler import mock from scheduler.utils import generate_random_name
31.923077
87
0.625703
from django.core.cache import cache from django.test import TestCase as DjangoTestCase from django.conf import settings from scheduler import mock from scheduler.utils import generate_random_name class TestCase(DjangoTestCase): def setUp(self): self.scheduler = mock.MockSchedulerClient(settings.SCHEDULER...
934
10
103
b75cf0d05deda7d29424eae416a6670d052ea06a
11,042
py
Python
tests/test_epics_motor.py
jyotiphy/pcdsdevices
d2bd7ed52311e1fa2d9f97b433059197b3e86387
[ "BSD-3-Clause-LBNL" ]
1
2021-06-15T14:09:42.000Z
2021-06-15T14:09:42.000Z
tests/test_epics_motor.py
jyotiphy/pcdsdevices
d2bd7ed52311e1fa2d9f97b433059197b3e86387
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_epics_motor.py
jyotiphy/pcdsdevices
d2bd7ed52311e1fa2d9f97b433059197b3e86387
[ "BSD-3-Clause-LBNL" ]
2
2020-10-30T22:10:46.000Z
2021-01-21T18:51:50.000Z
import logging import pytest from bluesky import RunEngine from bluesky.plan_stubs import close_run, open_run, stage, unstage from ophyd.sim import make_fake_device from ophyd.status import wait as status_wait from pcdsdevices.epics_motor import (IMS, PMC100, BeckhoffAxis, EpicsMotor, ...
30.502762
79
0.665187
import logging import pytest from bluesky import RunEngine from bluesky.plan_stubs import close_run, open_run, stage, unstage from ophyd.sim import make_fake_device from ophyd.status import wait as status_wait from pcdsdevices.epics_motor import (IMS, PMC100, BeckhoffAxis, EpicsMotor, ...
7,869
0
364
339020908322b563ac2e0d2448a5293fc5ce7f51
4,796
py
Python
lib/prophetview.py
stepanzh/chatty_sacred_deer
f827517ba295983c7d72639155b402f744300f91
[ "MIT" ]
3
2020-05-27T20:17:13.000Z
2020-07-10T09:47:10.000Z
lib/prophetview.py
stepanzh/chatty_sacred_deer
f827517ba295983c7d72639155b402f744300f91
[ "MIT" ]
null
null
null
lib/prophetview.py
stepanzh/chatty_sacred_deer
f827517ba295983c7d72639155b402f744300f91
[ "MIT" ]
1
2020-06-09T17:51:23.000Z
2020-06-09T17:51:23.000Z
# import sys, time # class TextIntonationDecoder: # color_start = '\u001b' # ansi code start # color_end = 'm' # ansi code end # pause_code = '!pause' # @classmethod # def get_pause_code(cls): # return cls.pause_code # @classmethod # def parse_color(cls, s:str): # ...
32.187919
100
0.485613
# import sys, time # class TextIntonationDecoder: # color_start = '\u001b' # ansi code start # color_end = 'm' # ansi code end # pause_code = '!pause' # @classmethod # def get_pause_code(cls): # return cls.pause_code # @classmethod # def parse_color(cls, s:str): # ...
0
0
0
332d2200ce65f2dedbab6cf4d817d8d4bc45cf5d
9,355
py
Python
custom_components/meross_lan/devices/mts100.py
patrick-blom/meross_lan
dfab3133c6ed00b513cc1500b510e57c8eee58e2
[ "MIT" ]
null
null
null
custom_components/meross_lan/devices/mts100.py
patrick-blom/meross_lan
dfab3133c6ed00b513cc1500b510e57c8eee58e2
[ "MIT" ]
null
null
null
custom_components/meross_lan/devices/mts100.py
patrick-blom/meross_lan
dfab3133c6ed00b513cc1500b510e57c8eee58e2
[ "MIT" ]
null
null
null
from __future__ import annotations from homeassistant.components.climate import ( DOMAIN as PLATFORM_CLIMATE, ClimateEntity, ) from homeassistant.components.climate.const import ( PRESET_AWAY, PRESET_COMFORT, PRESET_SLEEP, SUPPORT_PRESET_MODE, SUPPORT_TARGET_TEMPERATURE, CURRENT_HVAC_HEAT, CURRENT_HVAC...
29.511041
109
0.656761
from __future__ import annotations from homeassistant.components.climate import ( DOMAIN as PLATFORM_CLIMATE, ClimateEntity, ) from homeassistant.components.climate.const import ( PRESET_AWAY, PRESET_COMFORT, PRESET_SLEEP, SUPPORT_PRESET_MODE, SUPPORT_TARGET_TEMPERATURE, CURRENT_HVAC_HEAT, CURRENT_HVAC...
5,294
1,617
46
d2d2692388424382d7772cf2657b8d5b5b97d4c5
19,041
py
Python
models/learning_sparsegp.py
sebtsh/PBO
e40adbb488fbf848de2ac8fa01de77cf2ca71e7d
[ "MIT" ]
3
2021-01-26T05:19:31.000Z
2022-01-06T19:36:24.000Z
models/learning_sparsegp.py
sebtsh/PBO
e40adbb488fbf848de2ac8fa01de77cf2ca71e7d
[ "MIT" ]
1
2021-01-26T05:27:56.000Z
2021-01-28T05:24:14.000Z
models/learning_sparsegp.py
sebtsh/PBO
e40adbb488fbf848de2ac8fa01de77cf2ca71e7d
[ "MIT" ]
1
2021-12-15T07:30:47.000Z
2021-12-15T07:30:47.000Z
import time import numpy as np import tensorflow as tf import tensorflow_probability as tfp import gpflow from gpflow.utilities import set_trainable def elbo_fullcov(q_mu, q_sqrt_latent, inducing_inputs, D_idxs, max_idxs, kernel, ...
39.66875
156
0.65422
import time import numpy as np import tensorflow as tf import tensorflow_probability as tfp import gpflow from gpflow.utilities import set_trainable def elbo_fullcov(q_mu, q_sqrt_latent, inducing_inputs, D_idxs, max_idxs, kernel, ...
1,660
0
27