hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f753c3049f472b256af6b64cd49934d7a42405d8
341
py
Python
maro/cli/grass/lib/scripts/node/stop_node_api_server_service.py
yangboz/maro
0973783e55ca07bf8e177910c9d47854117a4ea8
[ "MIT" ]
598
2020-09-23T00:50:22.000Z
2022-03-31T08:12:54.000Z
maro/cli/grass/lib/scripts/node/stop_node_api_server_service.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
235
2020-09-22T10:20:48.000Z
2022-03-31T02:10:03.000Z
maro/cli/grass/lib/scripts/node/stop_node_api_server_service.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
116
2020-09-22T09:19:04.000Z
2022-02-12T05:04:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """Stop the maro-node-api-server service. """ from ..utils.subprocess import Subprocess STOP_SERVICE_COMMAND = "systemctl --user stop maro-node-api-server.service" if __name__ == "__main__": # Stop service _ = Subprocess.run(command=S...
22.733333
75
0.741935
from ..utils.subprocess import Subprocess STOP_SERVICE_COMMAND = "systemctl --user stop maro-node-api-server.service" if __name__ == "__main__": _ = Subprocess.run(command=STOP_SERVICE_COMMAND)
true
true
f753c4c0535e55300f50681c63aa36955fc31d5c
2,210
py
Python
env/env/lib/python3.6/site-packages/visitor/__init__.py
Aimee-pacy/NEWS
2b8afa2af5e5fe5ce5e91c43bcbb7c518606a43f
[ "Unlicense" ]
null
null
null
env/env/lib/python3.6/site-packages/visitor/__init__.py
Aimee-pacy/NEWS
2b8afa2af5e5fe5ce5e91c43bcbb7c518606a43f
[ "Unlicense" ]
null
null
null
env/env/lib/python3.6/site-packages/visitor/__init__.py
Aimee-pacy/NEWS
2b8afa2af5e5fe5ce5e91c43bcbb7c518606a43f
[ "Unlicense" ]
null
null
null
# Copyright (c) 2015 Marc Brinkmann # 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, ...
42.5
80
0.662896
class Visitor(object): def visit(self, node): if isinstance(node, type): mro = node.mro() else: mro = type(node).mro() for cls in mro: meth = getattr(self, 'visit_' + cls.__name__, None) if meth is None: ...
true
true
f753c71b1f9459b9ce20dc3c063ca6b2cef1d98c
1,496
py
Python
utils/losses.py
jimilee/image-classification
abd07abbbf3ed2e38bb7fda6f4bfeb28dd7ffaae
[ "MIT" ]
57
2021-08-23T03:36:15.000Z
2022-03-29T14:07:10.000Z
utils/losses.py
jimilee/image-classification
abd07abbbf3ed2e38bb7fda6f4bfeb28dd7ffaae
[ "MIT" ]
null
null
null
utils/losses.py
jimilee/image-classification
abd07abbbf3ed2e38bb7fda6f4bfeb28dd7ffaae
[ "MIT" ]
12
2021-08-15T17:56:02.000Z
2022-03-31T02:26:22.000Z
from torch import nn, Tensor from typing import Union from torch.nn import CrossEntropyLoss class LabelSmoothCrossEntropy(nn.Module): def __init__(self, smoothing=0.1): super().__init__() assert smoothing < 1.0 self.smoothing = smoothing self.confidence = 1. - smoothing sel...
38.358974
150
0.652406
from torch import nn, Tensor from typing import Union from torch.nn import CrossEntropyLoss class LabelSmoothCrossEntropy(nn.Module): def __init__(self, smoothing=0.1): super().__init__() assert smoothing < 1.0 self.smoothing = smoothing self.confidence = 1. - smoothing sel...
true
true
f753c8d80c51849de3e5480346435f2e4f8da168
3,695
py
Python
squealy/transformers.py
devashishsharma2302/testing-heroku-deployment
c126559035fe617e0547534fe7fa055a4155387a
[ "MIT" ]
null
null
null
squealy/transformers.py
devashishsharma2302/testing-heroku-deployment
c126559035fe617e0547534fe7fa055a4155387a
[ "MIT" ]
null
null
null
squealy/transformers.py
devashishsharma2302/testing-heroku-deployment
c126559035fe617e0547534fe7fa055a4155387a
[ "MIT" ]
null
null
null
from .table import Table class TableTransformer(object): def transform(self, table, *args): """ To be implemented in inherited classes """ return table class Transpose(TableTransformer): def transform(self, table): """Converts rows into columns and vice versa ...
41.055556
225
0.645467
from .table import Table class TableTransformer(object): def transform(self, table, *args): return table class Transpose(TableTransformer): def transform(self, table): column_names = table.columns table.data.insert(0, column_names) transposed = list(zip(*table.data)) ...
true
true
f753cbff6bf1363cdbaf443783189f575071cb2e
2,497
py
Python
bibmatch/parse_wos.py
kasoju2712/Science_of_success
fbaa92a8d035f7869162bf45338fc9e174492b98
[ "MIT" ]
null
null
null
bibmatch/parse_wos.py
kasoju2712/Science_of_success
fbaa92a8d035f7869162bf45338fc9e174492b98
[ "MIT" ]
null
null
null
bibmatch/parse_wos.py
kasoju2712/Science_of_success
fbaa92a8d035f7869162bf45338fc9e174492b98
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import os import numpy as np import pandas as pd from bibmatch.authorclass import author def adf2author(aid, adf): author_dict = {} author_dict['all_names'] = set(adf['FullName']) author_dict['prefered_name'] = sorted(author_dict['all_names'], key = len)[-1] author...
33.293333
150
0.651181
import os import numpy as np import pandas as pd from bibmatch.authorclass import author def adf2author(aid, adf): author_dict = {} author_dict['all_names'] = set(adf['FullName']) author_dict['prefered_name'] = sorted(author_dict['all_names'], key = len)[-1] author_dict['articles'] = set([t for t in ...
true
true
f753cc0757c9c46acd73bd5eb278b702035d8dd5
5,842
py
Python
test/test_sliprules.py
lynnmunday/neml
2c0e3db9f849345dba01d64fc8488e2b97e477dd
[ "MIT" ]
null
null
null
test/test_sliprules.py
lynnmunday/neml
2c0e3db9f849345dba01d64fc8488e2b97e477dd
[ "MIT" ]
null
null
null
test/test_sliprules.py
lynnmunday/neml
2c0e3db9f849345dba01d64fc8488e2b97e477dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from neml import history, interpolate from neml.math import tensors, rotations from neml.cp import crystallography, slipharden, sliprules from common import differentiate from nicediff import * import unittest import numpy as np import numpy.linalg as la class CommonSlipRule(object): def te...
35.621951
109
0.657823
from neml import history, interpolate from neml.math import tensors, rotations from neml.cp import crystallography, slipharden, sliprules from common import differentiate from nicediff import * import unittest import numpy as np import numpy.linalg as la class CommonSlipRule(object): def test_d_slip_d_stress(sel...
true
true
f753cc83181ed82f8d0a918df69da3590efd6764
56,850
py
Python
scipy/optimize/_linprog_util.py
hrk7531/scipy
a62bf66b2a485fbb3e08fe52feecaca765bead1f
[ "FSFAP" ]
1
2021-08-18T08:40:59.000Z
2021-08-18T08:40:59.000Z
scipy/optimize/_linprog_util.py
hrk7531/scipy
a62bf66b2a485fbb3e08fe52feecaca765bead1f
[ "FSFAP" ]
1
2021-12-01T05:27:28.000Z
2021-12-01T05:27:28.000Z
scipy/optimize/_linprog_util.py
hrk7531/scipy
a62bf66b2a485fbb3e08fe52feecaca765bead1f
[ "FSFAP" ]
2
2021-05-11T09:27:32.000Z
2021-06-08T01:00:21.000Z
""" Method agnostic utility functions for linear progamming """ import numpy as np import scipy.sparse as sps from warnings import warn from .optimize import OptimizeWarning from scipy.optimize._remove_redundancy import ( _remove_redundancy, _remove_redundancy_sparse, _remove_redundancy_dense ) def _check_sp...
40.063425
84
0.597573
import numpy as np import scipy.sparse as sps from warnings import warn from .optimize import OptimizeWarning from scipy.optimize._remove_redundancy import ( _remove_redundancy, _remove_redundancy_sparse, _remove_redundancy_dense ) def _check_sparse_inputs(options, A_ub, A_eq): _sparse_presolve = op...
true
true
f753cc8916839cf6f161ffaf19d1a0dde1125294
7,640
py
Python
tf_agents/networks/nest_map_test.py
Francis777/agents
24e878a697be418307cfbff69724d86be767719d
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/nest_map_test.py
Francis777/agents
24e878a697be418307cfbff69724d86be767719d
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/nest_map_test.py
Francis777/agents
24e878a697be418307cfbff69724d86be767719d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
35.37037
80
0.632068
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from absl import flags import tensorflow.compat.v2 as tf from tf_agents.keras_layers import inner_reshape from tf_agents.networks import nest_map from tf_agents.networks import seque...
true
true
f753ccff31e6c1549079dab05998d2c3b8b502fa
35,483
py
Python
onnxruntime/python/onnxruntime_inference_collection.py
prasanthpul/onnxruntime
d52d3c00520a10075e3bc75fe90db5b4c83ee557
[ "MIT" ]
25
2019-05-28T09:07:15.000Z
2022-03-09T21:24:29.000Z
onnxruntime/python/onnxruntime_inference_collection.py
prasanthpul/onnxruntime
d52d3c00520a10075e3bc75fe90db5b4c83ee557
[ "MIT" ]
82
2019-06-21T20:03:46.000Z
2022-03-27T07:33:51.000Z
onnxruntime/python/onnxruntime_inference_collection.py
prasanthpul/onnxruntime
d52d3c00520a10075e3bc75fe90db5b4c83ee557
[ "MIT" ]
11
2019-06-08T15:50:39.000Z
2022-03-09T21:24:29.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------- import collections import collections.abc import os import warnings from...
42.699158
120
0.653017
import collections import collections.abc import os import warnings from onnxruntime.capi import _pybind_state as C def get_ort_device_type(device): device_type = device if type(device) is str else device.type.lower() if device_type == 'cuda': return C.OrtDevice.cuda() elif device_type == 'cp...
true
true
f753cec5d8589934fe9e1b4b5565437f836d65f4
8,396
py
Python
pytorch_lightning/accelerators/ddp_spawn_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/ddp_spawn_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/ddp_spawn_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
35.72766
112
0.681039
import os import re import torch import torch.multiprocessing as mp import torch.distributed as torch_distrib import torch.distributed as dist from pytorch_lightning import _logger as log from pytorch_lightning.accelerators.base_backend import Accelerator from pytorch_lightning.utilities import AMPType f...
true
true
f753cf886c9dd1069652c50b9f22a327d28fa47d
1,617
py
Python
modules/appQuitter_module.py
Arvinth-Krishna/Reco-PC-Server
bb20df32fecb545d583f2b5a84d414e9a0d7b377
[ "MIT" ]
11
2021-02-11T11:00:37.000Z
2022-01-23T13:47:43.000Z
modules/appQuitter_module.py
Arvinth-Krishna/Reco-PC-Server
bb20df32fecb545d583f2b5a84d414e9a0d7b377
[ "MIT" ]
8
2021-05-13T18:06:46.000Z
2022-02-07T15:36:27.000Z
modules/appQuitter_module.py
Arvinth-Krishna/Reco-PC-Server
bb20df32fecb545d583f2b5a84d414e9a0d7b377
[ "MIT" ]
4
2021-07-28T19:39:43.000Z
2022-01-24T02:39:16.000Z
# Module: appQuitter # Description: Quits the application # Usage: !appquitter "PID/Application Name" or !appquitter "PID/Application Name" minutesToQuit # Dependencies: os import os, asyncio, configs,subprocess async def appquitter(ctx,appName, minutes=0): printlist=[] application={} if app...
30.509434
96
0.576994
import os, asyncio, configs,subprocess async def appquitter(ctx,appName, minutes=0): printlist=[] application={} if appName.isnumeric(): cmd = 'powershell "gps | where {$_.MainWindowTitle } | select Id,ProcessName' proc = subprocess.Popen(cmd, shell=True, stdout=s...
true
true
f753d0019a9dfd1c0bfc9caaeab6a9f6daee8ef5
3,031
py
Python
dump/plugins/vlan.py
VenkatCisco/sonic-utilities
a395e284a6bcca337f20edf2606408f131de0b4f
[ "Apache-2.0" ]
null
null
null
dump/plugins/vlan.py
VenkatCisco/sonic-utilities
a395e284a6bcca337f20edf2606408f131de0b4f
[ "Apache-2.0" ]
1
2021-01-17T11:49:34.000Z
2021-01-28T06:27:06.000Z
dump/plugins/vlan.py
VenkatCisco/sonic-utilities
a395e284a6bcca337f20edf2606408f131de0b4f
[ "Apache-2.0" ]
null
null
null
from .executor import Executor from dump.match_infra import MatchRequest from dump.helper import create_template_dict class Vlan(Executor): ARG_NAME = "vlan_name" def __init__(self, match_engine=None): super().__init__(match_engine) self.ret_temp = {} self.ns = '' ...
43.3
130
0.613329
from .executor import Executor from dump.match_infra import MatchRequest from dump.helper import create_template_dict class Vlan(Executor): ARG_NAME = "vlan_name" def __init__(self, match_engine=None): super().__init__(match_engine) self.ret_temp = {} self.ns = '' ...
true
true
f753d0c06e7907f0c964c194d88afaa752f7d531
524
py
Python
tests/test_song.py
kipyin/impresario
860aa313fb4206aacb22439e166b06d3aa974ed5
[ "MIT" ]
null
null
null
tests/test_song.py
kipyin/impresario
860aa313fb4206aacb22439e166b06d3aa974ed5
[ "MIT" ]
null
null
null
tests/test_song.py
kipyin/impresario
860aa313fb4206aacb22439e166b06d3aa974ed5
[ "MIT" ]
null
null
null
import tablib from impresario.song import Song, Songbook def test_song_pinyin(): song = Song(name="歌曲") assert song.pinyin == ["Ge", "Qu"] def test_song_mixed_title(): song = Song(name="歌曲 some songs") assert song.pinyin == ["Ge", "Qu", "Some", "Songs"] def test_song_normalized_key(): song = ...
20.96
64
0.627863
import tablib from impresario.song import Song, Songbook def test_song_pinyin(): song = Song(name="歌曲") assert song.pinyin == ["Ge", "Qu"] def test_song_mixed_title(): song = Song(name="歌曲 some songs") assert song.pinyin == ["Ge", "Qu", "Some", "Songs"] def test_song_normalized_key(): song = ...
true
true
f753d42c9751f2121055efe11ccb71f86e669787
1,426
py
Python
mapclientplugins/electrodearraydetectorstep/scene/trackingpointsscene.py
mahyar-osn/mapclientplugins.electrodearraydetectorstep
c4824e3361bb8464ee19ccdf1a7ea71182d7fcfb
[ "Apache-2.0" ]
null
null
null
mapclientplugins/electrodearraydetectorstep/scene/trackingpointsscene.py
mahyar-osn/mapclientplugins.electrodearraydetectorstep
c4824e3361bb8464ee19ccdf1a7ea71182d7fcfb
[ "Apache-2.0" ]
null
null
null
mapclientplugins/electrodearraydetectorstep/scene/trackingpointsscene.py
mahyar-osn/mapclientplugins.electrodearraydetectorstep
c4824e3361bb8464ee19ccdf1a7ea71182d7fcfb
[ "Apache-2.0" ]
null
null
null
from opencmiss.zinc.field import Field from opencmiss.zinc.glyph import Glyph class TrackingPointsScene(object): def __init__(self, master_model): self._master_model = master_model def create_graphics(self): tracking_points_model = self._master_model.get_tracking_points_model() coor...
37.526316
78
0.729313
from opencmiss.zinc.field import Field from opencmiss.zinc.glyph import Glyph class TrackingPointsScene(object): def __init__(self, master_model): self._master_model = master_model def create_graphics(self): tracking_points_model = self._master_model.get_tracking_points_model() coor...
true
true
f753d4497bdd250708d8eb4ef48fef980fce6539
43
py
Python
spacetimeformer/mtgnn_model/__init__.py
Azerrroth/spacetimeformer
e822444a6d696a1edb9e446d6f3482a70681be3c
[ "MIT" ]
null
null
null
spacetimeformer/mtgnn_model/__init__.py
Azerrroth/spacetimeformer
e822444a6d696a1edb9e446d6f3482a70681be3c
[ "MIT" ]
null
null
null
spacetimeformer/mtgnn_model/__init__.py
Azerrroth/spacetimeformer
e822444a6d696a1edb9e446d6f3482a70681be3c
[ "MIT" ]
null
null
null
from .mtgnn_model import MTGNN_Forecaster
21.5
42
0.860465
from .mtgnn_model import MTGNN_Forecaster
true
true
f753d4a3851fb7cad5ea563490d94024d0061b05
80,496
py
Python
Kernel.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
Kernel.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
Kernel.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
import time from threading import Thread, Lock from LaserOperation import * from svgelements import Path, SVGText STATE_UNKNOWN = -1 STATE_INITIALIZE = 0 STATE_IDLE = 1 STATE_ACTIVE = 2 STATE_BUSY = 3 STATE_PAUSE = 4 STATE_END = 5 STATE_TERMINATE = 10 INTERPRETER_STATE_RAPID = 0 INTERPRETER_STATE_FIN...
37.146285
126
0.555667
import time from threading import Thread, Lock from LaserOperation import * from svgelements import Path, SVGText STATE_UNKNOWN = -1 STATE_INITIALIZE = 0 STATE_IDLE = 1 STATE_ACTIVE = 2 STATE_BUSY = 3 STATE_PAUSE = 4 STATE_END = 5 STATE_TERMINATE = 10 INTERPRETER_STATE_RAPID = 0 INTERPRETER_STATE_FIN...
true
true
f753d527a4dd6cddd34234e3b8bde3577f298566
786
py
Python
ALPHABETS/CAPITAL_ALPHABETS/Q.py
charansaim1819/Python_Patterns
02e636855003346ec84c3d69f2be174dc9e9e3cb
[ "MIT" ]
null
null
null
ALPHABETS/CAPITAL_ALPHABETS/Q.py
charansaim1819/Python_Patterns
02e636855003346ec84c3d69f2be174dc9e9e3cb
[ "MIT" ]
null
null
null
ALPHABETS/CAPITAL_ALPHABETS/Q.py
charansaim1819/Python_Patterns
02e636855003346ec84c3d69f2be174dc9e9e3cb
[ "MIT" ]
null
null
null
#Shape of capital Q: def for_Q(): """printing capital 'Q' using for loop""" for row in range(6): for col in range(7): if col%5==0 and row%5!=0 or row in(0,5) and col not in(0,5,6) or row==3 and col==4 or row==5 and col==6: print("*",end=" ") else: ...
27.103448
140
0.416031
def for_Q(): for row in range(6): for col in range(7): if col%5==0 and row%5!=0 or row in(0,5) and col not in(0,5,6) or row==3 and col==4 or row==5 and col==6: print("*",end=" ") else: print(" ",end=" ") print() def while_Q(): ...
true
true
f753d76bee136cf4d1d5f98f9fb6dbbc90e37437
765
py
Python
examples/routes/delete_route.py
route4me/route4me-python-sdk
e2136c54e1ec5ed518f8eb94d5883486e0ec3afd
[ "0BSD" ]
10
2016-10-17T07:14:05.000Z
2021-12-05T02:54:41.000Z
examples/routes/delete_route.py
route4me/route4me-python-sdk
e2136c54e1ec5ed518f8eb94d5883486e0ec3afd
[ "0BSD" ]
14
2017-02-26T23:52:00.000Z
2017-09-16T19:28:49.000Z
examples/routes/delete_route.py
route4me/route4me-python-sdk
e2136c54e1ec5ed518f8eb94d5883486e0ec3afd
[ "0BSD" ]
8
2017-02-23T14:27:07.000Z
2020-05-23T14:23:55.000Z
# -*- coding: utf-8 -*- from route4me import Route4Me API_KEY = "11111111111111111111111111111111" def main(): route4me = Route4Me(API_KEY) route = route4me.route print('Getting Last Route') response = route.get_routes(limit=1, offset=0) if isinstance(response, dict) and 'errors' in response.key...
27.321429
70
0.616993
from route4me import Route4Me API_KEY = "11111111111111111111111111111111" def main(): route4me = Route4Me(API_KEY) route = route4me.route print('Getting Last Route') response = route.get_routes(limit=1, offset=0) if isinstance(response, dict) and 'errors' in response.keys(): print('. '...
true
true
f753d7931862afa85c35b836963feb657274ee85
1,532
py
Python
tools/gwd/test_hrsc2016.py
LucasKirsten/RotationDetection
8b4dadc8a10463a98143061929353325fee7ff4f
[ "Apache-2.0" ]
null
null
null
tools/gwd/test_hrsc2016.py
LucasKirsten/RotationDetection
8b4dadc8a10463a98143061929353325fee7ff4f
[ "Apache-2.0" ]
null
null
null
tools/gwd/test_hrsc2016.py
LucasKirsten/RotationDetection
8b4dadc8a10463a98143061929353325fee7ff4f
[ "Apache-2.0" ]
1
2021-05-20T03:23:10.000Z
2021-05-20T03:23:10.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys import tensorflow as tf import time import cv2 import pickle import numpy as np import argparse from tqdm import tqdm sys.path.append("../../") from libs.models.det...
28.90566
91
0.644256
from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys import tensorflow as tf import time import cv2 import pickle import numpy as np import argparse from tqdm import tqdm sys.path.append("../../") from libs.models.detectors.gwd import buil...
true
true
f753d85459fbf3e4b5e0292900c0657220b7d5ac
42,612
py
Python
ios_device/util/kperf_data.py
hhkhub/py-ios-device
dc1d5cf8ef0089fd158cc286a0c2380e7b172be2
[ "MIT" ]
null
null
null
ios_device/util/kperf_data.py
hhkhub/py-ios-device
dc1d5cf8ef0089fd158cc286a0c2380e7b172be2
[ "MIT" ]
null
null
null
ios_device/util/kperf_data.py
hhkhub/py-ios-device
dc1d5cf8ef0089fd158cc286a0c2380e7b172be2
[ "MIT" ]
null
null
null
# Referenced from # https://opensource.apple.com/tarballs/xnu-7195.60.75/bsd/kern/kdebug.c # https://gitee.com/mirrors/darwin-xnu/blob/main/bsd/kern/kdebug.c kdebug.h import enum import io from construct import Struct, Const, Padding, Int32ul, Int64ul, Array, GreedyRange, Byte, FixedSized, \ CString KDBG_CLASS...
42.569431
130
0.602389
import enum import io from construct import Struct, Const, Padding, Int32ul, Int64ul, Array, GreedyRange, Byte, FixedSized, \ CString KDBG_CLASS_MASK = 0xff000000 KDBG_CLASS_OFFSET = 24 KDBG_CLASS_MAX = 0xff KDBG_SUBCLASS_MASK = 0x00ff0000 KDBG_SUBCLASS_OFFSET = 16 KDBG_SUBCLASS_MAX = 0xff SET KDBG_CSC_MAX...
true
true
f753d96cfc53c8dd7171651c0968725e044ed33f
327
py
Python
openldap/util.py
bjthorpe/cogs3
d6f0091c41f784ff1884456037685bfabd7c1897
[ "MIT" ]
null
null
null
openldap/util.py
bjthorpe/cogs3
d6f0091c41f784ff1884456037685bfabd7c1897
[ "MIT" ]
150
2018-08-07T09:34:47.000Z
2019-08-15T20:16:11.000Z
openldap/util.py
bjthorpe/cogs3
d6f0091c41f784ff1884456037685bfabd7c1897
[ "MIT" ]
2
2019-02-20T15:40:30.000Z
2019-07-01T15:03:55.000Z
from django.conf import settings from security.json_web_token import JSONWebToken def decode_response(response): return JSONWebToken.decode( data=response.content, key=settings.OPENLDAP_JWT_KEY, audience=settings.OPENLDAP_JWT_AUDIENCE, algorithms=[settings.OPENLDAP_JWT_ALGORITHM],...
25.153846
53
0.749235
from django.conf import settings from security.json_web_token import JSONWebToken def decode_response(response): return JSONWebToken.decode( data=response.content, key=settings.OPENLDAP_JWT_KEY, audience=settings.OPENLDAP_JWT_AUDIENCE, algorithms=[settings.OPENLDAP_JWT_ALGORITHM],...
true
true
f753d97e1ea949802bf37cf5a629b8e2d66a4715
500
py
Python
coogger/cooggerapp/urls/explorer.py
adilkhan8000/coogger
0d9350116bec29c0c4f5229118e4045c9e64d796
[ "MIT" ]
null
null
null
coogger/cooggerapp/urls/explorer.py
adilkhan8000/coogger
0d9350116bec29c0c4f5229118e4045c9e64d796
[ "MIT" ]
null
null
null
coogger/cooggerapp/urls/explorer.py
adilkhan8000/coogger
0d9350116bec29c0c4f5229118e4045c9e64d796
[ "MIT" ]
null
null
null
from django.conf.urls import url # views from cooggerapp.views import explorer urlpatterns = [ url(r'^tags/(?P<hashtag>.+)/', explorer.Hashtag.as_view(), name="hashtag"), url(r'^list/(?P<list_>.+)/', explorer.Userlist.as_view(), name="list"), url(r'^language/(?P<lang_name>.+)/', explorer.Languages.as_view...
38.461538
88
0.654
from django.conf.urls import url from cooggerapp.views import explorer urlpatterns = [ url(r'^tags/(?P<hashtag>.+)/', explorer.Hashtag.as_view(), name="hashtag"), url(r'^list/(?P<list_>.+)/', explorer.Userlist.as_view(), name="list"), url(r'^language/(?P<lang_name>.+)/', explorer.Languages.as_view(), nam...
true
true
f753da67e867d578406a31999b64b79bdaa9726a
11,094
py
Python
dl/pytorch/rnn/char-lstm.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
dl/pytorch/rnn/char-lstm.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
dl/pytorch/rnn/char-lstm.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn import torch.nn.functional as F # open text file and read in data as `text` with open('data/anna.txt', 'r') as f: text = f.read() # print(text[:100]) # encode the text and map each character to an integer and vice versa # we create two dictionaries: # 1. int2...
34.453416
110
0.585542
import numpy as np import torch from torch import nn import torch.nn.functional as F with open('data/anna.txt', 'r') as f: text = f.read() chars = tuple(set(text)) int2char = dict(enumerate(chars)) char2int = {ch: ii for ii, ch in int2char.items()} # encode the text encoded = np.array([char2int[ch] for...
true
true
f753da6f579f5bcae722726f633d4dcebf5915b0
13,660
py
Python
frappe/client.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/client.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/client.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import json import os from typing import TYPE_CHECKING import frappe import frappe.model import frappe.utils from frappe import _ from frappe.desk.reportview import validate_args from frappe.model.db_query import check_par...
27.157058
106
0.729502
import json import os from typing import TYPE_CHECKING import frappe import frappe.model import frappe.utils from frappe import _ from frappe.desk.reportview import validate_args from frappe.model.db_query import check_parent_permission from frappe.utils import get_safe_filters if TYPE_CHECKING: from frappe.model....
true
true
f753da9ab0c864c074b64fa5fd7a3a0beec20a9e
93,502
py
Python
oamap/schema.py
diana-hep/shredtypes
bb7c17eea849f8934c449c3fa260af54b3532736
[ "BSD-3-Clause" ]
1
2017-10-11T17:29:22.000Z
2017-10-11T17:29:22.000Z
oamap/schema.py
diana-hep/shredtypes
bb7c17eea849f8934c449c3fa260af54b3532736
[ "BSD-3-Clause" ]
null
null
null
oamap/schema.py
diana-hep/shredtypes
bb7c17eea849f8934c449c3fa260af54b3532736
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list ...
40.794939
406
0.579581
import bisect import codecs import copy import fnmatch import json import numbers import re import sys from types import ModuleType import numpy import oamap.generator import oamap.inference import oamap.backend.packing import oamap.extension.common import oamap.proxy import oamap.util f...
true
true
f753dabe0c2ebc6d0ae1217b707851ffe4c8fd5f
1,970
py
Python
vistrails/db/versions/v0_3_0/domain/__init__.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
vistrails/db/versions/v0_3_0/domain/__init__.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
vistrails/db/versions/v0_3_0/domain/__init__.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
49.25
79
0.698985
true
true
f753db33484c4f6964b9258f0acb59742acc2d5d
1,573
py
Python
blog/urls.py
hossshakiba/Django-Personal-Website-Blog
6f75a7b7d8778e556305a883f23b04d526a8d5fd
[ "MIT" ]
2
2021-01-01T08:30:39.000Z
2021-01-01T08:35:39.000Z
blog/urls.py
hossshakiba/Django-Personal-Website-Blog
6f75a7b7d8778e556305a883f23b04d526a8d5fd
[ "MIT" ]
null
null
null
blog/urls.py
hossshakiba/Django-Personal-Website-Blog
6f75a7b7d8778e556305a883f23b04d526a8d5fd
[ "MIT" ]
null
null
null
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
36.581395
79
0.691036
from django.contrib import admin from django.urls import path, include, re_path from .views import home_page, header, footer, resume_page, custom404, custom500 from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', home_page), path('resume', resume_page), path(...
true
true
f753db8d67d4a01abb26ffe1b2c8e5a9aa8e0bb5
2,045
py
Python
autotest/gdrivers/gtx.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
1
2015-04-21T19:52:03.000Z
2015-04-21T19:52:03.000Z
autotest/gdrivers/gtx.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
7
2018-04-09T09:35:42.000Z
2018-05-22T06:54:05.000Z
autotest/gdrivers/gtx.py
pramsey/gdal
965421b79fe4d3332b0f2f633b072fdcab2b700a
[ "MIT" ]
2
2018-05-03T15:34:36.000Z
2020-07-13T15:30:20.000Z
#!/usr/bin/env python ############################################################################### # $Id: gsc.py 16265 2009-02-08 11:15:27Z rouault $ # # Project: GDAL/OGR Test Suite # Purpose: Test GSC driver # Author: Frank Warmerdam <warmerdam@pobox.com> # #####################################################...
35.877193
79
0.616626
true
true
f753dce059b9454c2a984fb6eef6bcc48f6651e1
4,459
py
Python
tests/test_maintainence.py
domoritz/solas
23878fed9efbf14781791dafec26705c6762cfd1
[ "Apache-2.0" ]
2
2021-11-09T17:54:43.000Z
2022-01-28T15:38:58.000Z
tests/test_maintainence.py
domoritz/solas
23878fed9efbf14781791dafec26705c6762cfd1
[ "Apache-2.0" ]
27
2021-04-08T18:58:49.000Z
2021-10-11T02:33:35.000Z
tests/test_maintainence.py
domoritz/solas
23878fed9efbf14781791dafec26705c6762cfd1
[ "Apache-2.0" ]
1
2021-06-18T02:41:48.000Z
2021-06-18T02:41:48.000Z
# Copyright 2019-2020 The Solas Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
41.287037
145
0.726396
from .context import solas import pytest import pandas as pd from solas.vis.Vis import Vis def test_metadata_subsequent_display(global_var): df = pytest.car_df df._ipython_display_() assert df._metadata_fresh == True, "Failed to maintain metadata after display df" df._ipython_display_()...
true
true
f753dd81a8b6908afab669d837c56259a0fabf19
7,868
py
Python
PriceHero/__init__.py
mehtaarn000/PriceHero
ef4429b84c1460532aeca5e9c7f15b110456b989
[ "MIT" ]
8
2020-09-06T23:56:46.000Z
2021-12-12T03:18:51.000Z
PriceHero/__init__.py
mehtaarn000/PriceHero
ef4429b84c1460532aeca5e9c7f15b110456b989
[ "MIT" ]
9
2020-09-27T01:19:58.000Z
2021-11-25T19:53:50.000Z
PriceHero/__init__.py
mehtaarn000/PriceHero
ef4429b84c1460532aeca5e9c7f15b110456b989
[ "MIT" ]
5
2020-09-19T05:16:46.000Z
2021-04-18T22:51:37.000Z
# -*- coding: utf-8 -*- __version__ = "0.5.9" __author__ = "mehtaarn000" __license__ = "MIT" __maintainer__ = "mehtaarn000" __credits__ = ["mehtaarn000", "kilianalias", "nethracookie", "bizzyvinci"] """A python module that will allow users to get product prices information from a multitude of different websites.""" fr...
26.761905
117
0.699288
__version__ = "0.5.9" __author__ = "mehtaarn000" __license__ = "MIT" __maintainer__ = "mehtaarn000" __credits__ = ["mehtaarn000", "kilianalias", "nethracookie", "bizzyvinci"] from . import (_amazon, _bestbuy, _dell, _michaels, _acer, _walmart, _adafruit, _xbox, _joann, _github_shop, _chess_shop, _neweg...
true
true
f753de26921a60e86ed6149eeffc5e2f183fc5d3
76,281
py
Python
zarr/core.py
yetyetanotherusername/zarr-python
e3cdd1a50e1047304be2c91a017da6362f8df533
[ "MIT" ]
1
2020-11-12T15:16:28.000Z
2020-11-12T15:16:28.000Z
zarr/core.py
yetyetanotherusername/zarr-python
e3cdd1a50e1047304be2c91a017da6362f8df533
[ "MIT" ]
null
null
null
zarr/core.py
yetyetanotherusername/zarr-python
e3cdd1a50e1047304be2c91a017da6362f8df533
[ "MIT" ]
null
null
null
import binascii import hashlib import itertools import math import operator import re from functools import reduce import numpy as np from numcodecs.compat import ensure_bytes, ensure_ndarray from zarr.attrs import Attributes from zarr.codecs import AsType, get_codec from zarr.errors import ArrayNotFoundError, ReadOn...
33.093709
93
0.5324
import binascii import hashlib import itertools import math import operator import re from functools import reduce import numpy as np from numcodecs.compat import ensure_bytes, ensure_ndarray from zarr.attrs import Attributes from zarr.codecs import AsType, get_codec from zarr.errors import ArrayNotFoundError, ReadOn...
true
true
f753de988f5e6bf770ca3540afaefcc58a4737a2
117
py
Python
src/kernel/__init__.py
Mimalef/paasta
33c1abddc37e6ecf573beb3ea691a941b082d4c5
[ "MIT" ]
null
null
null
src/kernel/__init__.py
Mimalef/paasta
33c1abddc37e6ecf573beb3ea691a941b082d4c5
[ "MIT" ]
null
null
null
src/kernel/__init__.py
Mimalef/paasta
33c1abddc37e6ecf573beb3ea691a941b082d4c5
[ "MIT" ]
null
null
null
def logged(): from flask import session try: if session['id']: return True except Exception: return False
14.625
26
0.692308
def logged(): from flask import session try: if session['id']: return True except Exception: return False
true
true
f753debb505d2689221ee3e0cd08215b866a5afe
260
py
Python
code/handlers/local_handler.py
hfiuza/ApartmentFinder
476b5364f9ea807037e374934b0b14959143addd
[ "MIT" ]
2
2019-08-28T16:47:21.000Z
2019-09-01T17:01:25.000Z
code/handlers/local_handler.py
hfiuza/ApartmentFinder
476b5364f9ea807037e374934b0b14959143addd
[ "MIT" ]
null
null
null
code/handlers/local_handler.py
hfiuza/ApartmentFinder
476b5364f9ea807037e374934b0b14959143addd
[ "MIT" ]
null
null
null
import pandas as pd import os from constants import LOCAL_PATH, APARTMENTS_FILENAME def basic_write(df): df.to_csv(os.path.join(LOCAL_PATH, APARTMENTS_FILENAME)) def basic_read(): return pd.read_csv(os.path.join(LOCAL_PATH, APARTMENTS_FILENAME))
18.571429
69
0.780769
import pandas as pd import os from constants import LOCAL_PATH, APARTMENTS_FILENAME def basic_write(df): df.to_csv(os.path.join(LOCAL_PATH, APARTMENTS_FILENAME)) def basic_read(): return pd.read_csv(os.path.join(LOCAL_PATH, APARTMENTS_FILENAME))
true
true
f753dfd925fba9791c26845f052a9e59590e1a42
609
py
Python
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/anomalous_backslash_escape.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
463
2015-01-15T08:17:42.000Z
2022-03-28T15:10:20.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/anomalous_backslash_escape.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
52
2015-01-06T02:43:59.000Z
2022-03-14T11:15:21.000Z
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/a/anomalous_backslash_escape.py
ciskoinch8/vimrc
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
[ "MIT" ]
249
2015-01-07T22:49:49.000Z
2022-03-18T02:32:06.000Z
"""Test for anomalous backslash escapes in strings""" BAD_ESCAPE = '\z' # [anomalous-backslash-in-string] BAD_ESCAPE_NOT_FIRST = 'abc\z' # [anomalous-backslash-in-string] BAD_ESCAPE_WITH_PREFIX = b'abc\z' # [anomalous-backslash-in-string] BAD_ESCAPE_WITH_BACKSLASH = b'a\ \z' # [anomalous-backslash-in-string] ...
27.681818
68
0.681445
BAD_ESCAPE = '\z' BAD_ESCAPE_NOT_FIRST = 'abc\z' BAD_ESCAPE_WITH_PREFIX = b'abc\z' BAD_ESCAPE_WITH_BACKSLASH = b'a\ \z' BAD_ESCAPE_BLOCK = b''' abc \z ''' BAD_ESCAPE_PARENS = (b'abc' b'\z') GOOD_ESCAPE = '\b' BAD_ESCAPE_BUT_RAW = r'\z'
true
true
f753dffc2fb865ec5ac4199a5e21df845c7e2b12
1,244
py
Python
00_LIBRARIES/00_NUMPY/03_numpy_manipulations.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
2
2021-03-18T06:07:09.000Z
2021-05-08T22:14:14.000Z
00_LIBRARIES/00_NUMPY/03_numpy_manipulations.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
00_LIBRARIES/00_NUMPY/03_numpy_manipulations.py
san99tiago/ML_BASICS
ebd51827f7dd427c848b5c8e1d4bfd017d2fb56f
[ "MIT" ]
null
null
null
# NUMPY MANIPULATIONS OF ARRAYS # Santiago Garcia Arango # ------------------------------------------------------------------------- import numpy as np my_array = np.arange(1, 11) # [1,2,..,8,9,10] print("my_array=\n", my_array, "\n") # -----------------CHECKING CONDITIONS IN ARRAY ITEMS---------------------- # FIR...
32.736842
75
0.596463
import numpy as np my_array = np.arange(1, 11) print("my_array=\n", my_array, "\n") boolean_array = my_array > 5 print("my_array > 5 --> ", boolean_array, "\n") print("my_array[boolean_array] = ", my_array[boolean_array], "\n") print("my_array[my_array>5] = ", my_array[my_array > 5], "\n") c...
true
true
f753e1763a267af6ca23320c4cb19fdf7d633911
8,534
py
Python
deepcave/plugins/static_plugin.py
PhMueller/DeepCAVE
2aec109470e667d4bbbe0cd0d9abb11e683a23c4
[ "Apache-2.0" ]
null
null
null
deepcave/plugins/static_plugin.py
PhMueller/DeepCAVE
2aec109470e667d4bbbe0cd0d9abb11e683a23c4
[ "Apache-2.0" ]
null
null
null
deepcave/plugins/static_plugin.py
PhMueller/DeepCAVE
2aec109470e667d4bbbe0cd0d9abb11e683a23c4
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from typing import Dict, List, Any, Type, Union, Optional, Tuple from dash.dash import no_update from dash.dependencies import Input, Output, State from dash import dcc import dash_bootstrap_components as dbc from dash import html from dash.development.base_component import Componen...
34.832653
91
0.515585
from abc import ABC, abstractmethod from typing import Dict, List, Any, Type, Union, Optional, Tuple from dash.dash import no_update from dash.dependencies import Input, Output, State from dash import dcc import dash_bootstrap_components as dbc from dash import html from dash.development.base_component import Componen...
true
true
f753e3c6261a250b36925a736ea0679e6dc8cc62
3,682
py
Python
sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/sync_samples/avro_serializer.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/sync_samples/avro_serializer.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/sync_samples/avro_serializer.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
41.840909
139
0.731668
import os from azure.identity import ClientSecretCredential from azure.schemaregistry import SchemaRegistryClient from azure.schemaregistry.serializer.avroserializer import AvroSerializer TENANT_ID=os.environ['AZURE_TENANT_ID'] CLIENT_ID=os.environ['AZURE_CLIENT_ID'] CLIENT_SECRET=os.environ[...
true
true
f753e46efeb71e959158b882f9354523c5aaf56d
768
py
Python
utils/clean_invalid.py
1105042987/Dominant-Patterns
713b535e80aff0f04e20d1ef56d005e183a5d8a5
[ "MIT" ]
1
2021-06-14T12:01:24.000Z
2021-06-14T12:01:24.000Z
utils/clean_invalid.py
1105042987/Dominant-Patterns
713b535e80aff0f04e20d1ef56d005e183a5d8a5
[ "MIT" ]
null
null
null
utils/clean_invalid.py
1105042987/Dominant-Patterns
713b535e80aff0f04e20d1ef56d005e183a5d8a5
[ "MIT" ]
null
null
null
import sys,os base = sys.path[0] sys.path.append(os.path.abspath(os.path.join(base, ".."))) import json5 import shutil from glob import glob from docker.tool import yellow with open('RootPath.json') as f: root = json5.load(f)[r'%RESULT%'] assert len(sys.argv)>1, 'Project Name Needed!' tars = glob(os.path.join(root...
28.444444
75
0.626302
import sys,os base = sys.path[0] sys.path.append(os.path.abspath(os.path.join(base, ".."))) import json5 import shutil from glob import glob from docker.tool import yellow with open('RootPath.json') as f: root = json5.load(f)[r'%RESULT%'] assert len(sys.argv)>1, 'Project Name Needed!' tars = glob(os.path.join(root...
true
true
f753e56e67e11920f96f1eb323d92363439a14d0
8,227
py
Python
pymo/viz_tools.py
onyalcin/PyMO
1d49620096b7f81b6db0cd4ed427cd7496bd5f99
[ "MIT" ]
224
2017-11-30T19:02:44.000Z
2022-03-19T23:02:47.000Z
pymo/viz_tools.py
onyalcin/PyMO
1d49620096b7f81b6db0cd4ed427cd7496bd5f99
[ "MIT" ]
15
2018-01-12T15:52:43.000Z
2021-12-06T13:55:50.000Z
pymo/viz_tools.py
onyalcin/PyMO
1d49620096b7f81b6db0cd4ed427cd7496bd5f99
[ "MIT" ]
49
2017-12-16T13:32:49.000Z
2021-12-13T15:59:52.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import IPython import os def save_fig(fig_id, tight_layout=True): if tight_layout: plt.tight_layout() plt.savefig(fig_id + '.png', format='png', dpi=300) def draw_stickfigure(mocap_track, frame, data=None, joints=None, dra...
34.71308
131
0.557068
import pandas as pd import numpy as np import matplotlib.pyplot as plt import IPython import os def save_fig(fig_id, tight_layout=True): if tight_layout: plt.tight_layout() plt.savefig(fig_id + '.png', format='png', dpi=300) def draw_stickfigure(mocap_track, frame, data=None, joints=None, dra...
true
true
f753e86b16f5422cb99c62df2ef565445889a32e
2,116
py
Python
about.py
AP2008/novelcovid19tracker
273e9b7184a53e31e888b6ecfc7fe55c0d97e8b6
[ "MIT" ]
null
null
null
about.py
AP2008/novelcovid19tracker
273e9b7184a53e31e888b6ecfc7fe55c0d97e8b6
[ "MIT" ]
null
null
null
about.py
AP2008/novelcovid19tracker
273e9b7184a53e31e888b6ecfc7fe55c0d97e8b6
[ "MIT" ]
null
null
null
from web_scrape import * from modules import * from sidebar import * import extras external_stylesheets = [extras.theme] colors = { 'background': '#111111', 'text': '#FFFFFF' } sn = {'color':'white'} app = dash.Dash(__name__, external_stylesheets=external_stylesheets, request...
34.688525
158
0.502836
from web_scrape import * from modules import * from sidebar import * import extras external_stylesheets = [extras.theme] colors = { 'background': '#111111', 'text': '#FFFFFF' } sn = {'color':'white'} app = dash.Dash(__name__, external_stylesheets=external_stylesheets, request...
true
true
f753e89d802aaec181cac7f2510a29ea56b17b99
956
py
Python
test/test_anchor_target_layer.py
anhlt/faster_rcnn
97bf8a153db704cba9b2d753bf87ec2fa2938c84
[ "MIT" ]
24
2018-01-07T15:15:38.000Z
2021-08-17T03:39:01.000Z
test/test_anchor_target_layer.py
anhlt/faster_rcnn
97bf8a153db704cba9b2d753bf87ec2fa2938c84
[ "MIT" ]
1
2018-11-07T04:32:52.000Z
2018-11-07T04:39:14.000Z
test/test_anchor_target_layer.py
anhlt/faster_rcnn
97bf8a153db704cba9b2d753bf87ec2fa2938c84
[ "MIT" ]
5
2018-07-02T13:30:34.000Z
2021-08-17T03:39:12.000Z
from faster_rcnn.rpn_msr.anchor_target_layer_2 import AnchorTargerLayer import unittest class AnchorTargerLayerTest(unittest.TestCase): """docstring for AnchorTargerLayerTest""" def setUp(self): self.anchor_scales = [8, 16, 32] self.layer = AnchorTargerLayer( [16, ], anchor_scales...
29.875
75
0.65795
from faster_rcnn.rpn_msr.anchor_target_layer_2 import AnchorTargerLayer import unittest class AnchorTargerLayerTest(unittest.TestCase): def setUp(self): self.anchor_scales = [8, 16, 32] self.layer = AnchorTargerLayer( [16, ], anchor_scales=self.anchor_scales) def test_dump(self):...
true
true
f753e90e5df5c9070154328be349717262a72204
1,040
py
Python
app/auth/auth.py
faithngetich/Buckectlist
f7503d2de93d733a8ef44a8c36d9410d40fea4e3
[ "MIT" ]
null
null
null
app/auth/auth.py
faithngetich/Buckectlist
f7503d2de93d733a8ef44a8c36d9410d40fea4e3
[ "MIT" ]
1
2017-05-27T19:52:14.000Z
2017-05-29T08:52:50.000Z
app/auth/auth.py
faithngetich/Buckectlist
f7503d2de93d733a8ef44a8c36d9410d40fea4e3
[ "MIT" ]
null
null
null
from app.models import User from flask_restful import Resource, reqparse from sqlalchemy.orm.exc import NoResultFound from flask import request, jsonify, make_response def identity(payload): username = payload['identity'] return User.query.filter_by(id = username).first() def authenticate(username, password):...
38.518519
103
0.718269
from app.models import User from flask_restful import Resource, reqparse from sqlalchemy.orm.exc import NoResultFound from flask import request, jsonify, make_response def identity(payload): username = payload['identity'] return User.query.filter_by(id = username).first() def authenticate(username, password):...
true
true
f753e94cf6f712ddbec3eacbf5ac5c774a87ae25
8,849
py
Python
peer.py
dcheno/dripdrop
ed8b3b18d0796192d0f8cfa09efd2aece078ea9b
[ "MIT" ]
null
null
null
peer.py
dcheno/dripdrop
ed8b3b18d0796192d0f8cfa09efd2aece078ea9b
[ "MIT" ]
null
null
null
peer.py
dcheno/dripdrop
ed8b3b18d0796192d0f8cfa09efd2aece078ea9b
[ "MIT" ]
null
null
null
from threading import Thread from math import ceil from struct import unpack from twisted.internet.protocol import Protocol, ClientFactory from twisted.internet import reactor from message import Message, MessageParser, MessageType, get_handshake, parse_handshake, \ is_handshake, MessageQueue, message_queue_worke...
35.115079
99
0.652842
from threading import Thread from math import ceil from struct import unpack from twisted.internet.protocol import Protocol, ClientFactory from twisted.internet import reactor from message import Message, MessageParser, MessageType, get_handshake, parse_handshake, \ is_handshake, MessageQueue, message_queue_worke...
true
true
f753e9e5768fe2ce1573d1d7f067fcd70409a27f
4,339
py
Python
src/Replicate/run.py
Dyex719/Battlecode
5ed0932b0ba18ce914725e90839a476328cb9460
[ "MIT" ]
null
null
null
src/Replicate/run.py
Dyex719/Battlecode
5ed0932b0ba18ce914725e90839a476328cb9460
[ "MIT" ]
null
null
null
src/Replicate/run.py
Dyex719/Battlecode
5ed0932b0ba18ce914725e90839a476328cb9460
[ "MIT" ]
null
null
null
# Running into logical errors :( import battlecode as bc import random import sys import traceback print("pystarting") gc = bc.GameController() directions = list(bc.Direction) print("pystarted") random.seed(8078) worker_count = 1 knight_count = 0 factory_count = 0 gc.queue_research(bc.UnitType.Worker) gc.queue_res...
32.871212
127
0.591611
import battlecode as bc import random import sys import traceback print("pystarting") gc = bc.GameController() directions = list(bc.Direction) print("pystarted") random.seed(8078) worker_count = 1 knight_count = 0 factory_count = 0 gc.queue_research(bc.UnitType.Worker) gc.queue_research(bc.UnitType.Rocket) gc.que...
true
true
f753ea7c076152b53f7959bce657be720257a1ed
3,626
py
Python
com/gionee/ota/apps/gnApps.py
qmxiu531/OtaNeedInstalledApps
45e9d4214c721752651afd3f98b3e2363b380be4
[ "Apache-2.0" ]
1
2020-05-20T12:22:09.000Z
2020-05-20T12:22:09.000Z
com/gionee/ota/apps/gnApps.py
qmxiu531/OtaNeedInstalledApps
45e9d4214c721752651afd3f98b3e2363b380be4
[ "Apache-2.0" ]
null
null
null
com/gionee/ota/apps/gnApps.py
qmxiu531/OtaNeedInstalledApps
45e9d4214c721752651afd3f98b3e2363b380be4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import requests import os from com.gionee.ota import gol import json from com.gionee.ota.util import Util from com.gionee.ota.Base import * __author__ = 'suse' url="http://api.appgionee.com/api/gionee/getDownloadUrl?packageName=" logger = Util.logger class GN_Apps(): def __init__(self): ...
33.88785
84
0.532543
import requests import os from com.gionee.ota import gol import json from com.gionee.ota.util import Util from com.gionee.ota.Base import * __author__ = 'suse' url="http://api.appgionee.com/api/gionee/getDownloadUrl?packageName=" logger = Util.logger class GN_Apps(): def __init__(self): ...
true
true
f753eb3edd157c89dbc3775a8c1f52f27bcf0abf
3,272
py
Python
cinder/tests/unit/volume/drivers/hpe/fake_hpe_client_exceptions.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/tests/unit/volume/drivers/hpe/fake_hpe_client_exceptions.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/tests/unit/volume/drivers/hpe/fake_hpe_client_exceptions.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# (c) Copyright 2014-2015 Hewlett Packard Enterprise Development LP # 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/licens...
27.266667
78
0.629584
class UnsupportedVersion(Exception): pass class ClientException(Exception): _error_code = None _error_desc = None _error_ref = None _debug1 = None _debug2 = None def __init__(self, error=None): if error: if 'code' in error: self._error...
true
true
f753ed620d0a7009f877dfe6d8213dc4ecb30332
21
py
Python
frederic/hello_wrapper.py
infelane/python-for-java-devs
56f313f89ad8603598f879f31e0d9a35795e50e3
[ "Apache-2.0" ]
1
2019-10-20T16:05:30.000Z
2019-10-20T16:05:30.000Z
frederic/hello_wrapper.py
infelane/python-for-java-devs
56f313f89ad8603598f879f31e0d9a35795e50e3
[ "Apache-2.0" ]
1
2020-07-10T09:09:58.000Z
2020-07-10T09:09:58.000Z
frederic/hello_wrapper.py
infelane/python-for-java-devs
56f313f89ad8603598f879f31e0d9a35795e50e3
[ "Apache-2.0" ]
3
2020-07-10T07:46:51.000Z
2022-02-21T08:58:45.000Z
import hello_world
5.25
18
0.809524
import hello_world
true
true
f753ed6de8dd644db68198081d0b67ea95645f40
7,607
py
Python
desktop/core/ext-py/Django/django/contrib/auth/views.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
2
2021-04-27T03:57:00.000Z
2021-06-18T09:39:58.000Z
django/contrib/auth/views.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
null
null
null
django/contrib/auth/views.py
joetyson/django
c3699190186561d5c216b2a77ecbfc487d42a734
[ "BSD-3-Clause" ]
2
2021-09-06T18:44:45.000Z
2022-02-24T04:10:10.000Z
from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm, PasswordChangeForm from django.contrib.auth.to...
46.10303
123
0.710793
from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm, PasswordChangeForm from django.contrib.auth.to...
true
true
f753ed6f8c5349911e251cc14711a2471263356c
194
py
Python
schemalite/deprecated/schemalite/__init__.py
inkmonk/jschema
fc04b5d4870ddfaa582ab04ea033d0e8d584a43a
[ "MIT" ]
1
2020-08-06T13:00:19.000Z
2020-08-06T13:00:19.000Z
schemalite/deprecated/schemalite/__init__.py
SuryaSankar/schemalite
fc04b5d4870ddfaa582ab04ea033d0e8d584a43a
[ "MIT" ]
null
null
null
schemalite/deprecated/schemalite/__init__.py
SuryaSankar/schemalite
fc04b5d4870ddfaa582ab04ea033d0e8d584a43a
[ "MIT" ]
2
2015-08-05T07:26:02.000Z
2015-10-15T09:52:25.000Z
# -*- coding: utf-8 -*- """Deprecated modules""" from .core import Schema, Field, validator, schema_validator, SchemaObjectField, ListOfSchemaObjectsField from .schema_error import SchemaError
32.333333
105
0.778351
from .core import Schema, Field, validator, schema_validator, SchemaObjectField, ListOfSchemaObjectsField from .schema_error import SchemaError
true
true
f753eda8a127fae60dda92f8d180a82e6e5e0842
36,151
py
Python
src/_analyze_semantic_line.py
SunLoveSheep/Sem-LSD
8c085217c372588fbb9ca37c5aef32d66270560f
[ "MIT" ]
5
2020-09-17T12:09:10.000Z
2022-03-09T08:30:19.000Z
src/_analyze_semantic_line.py
SunLoveSheep/Sem-LSD
8c085217c372588fbb9ca37c5aef32d66270560f
[ "MIT" ]
2
2021-04-04T11:53:37.000Z
2022-03-09T15:40:23.000Z
src/_analyze_semantic_line.py
SunLoveSheep/Sem-LSD
8c085217c372588fbb9ca37c5aef32d66270560f
[ "MIT" ]
2
2020-05-12T06:41:08.000Z
2020-06-01T07:08:16.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths # /workspace/tangyang.sy/pytorch_CV/pytorch_CenterNet/src try: from utils_ctdet.lineNMS import do_nms_line, do_acl_line, do_acl_line_v1 except ImportError: from utils.lineNMS import ...
38.788627
120
0.564936
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths try: from utils_ctdet.lineNMS import do_nms_line, do_acl_line, do_acl_line_v1 except ImportError: from utils.lineNMS import do_nms_line, do_acl_line, do_acl_line_v1 from collection...
true
true
f753ee22cdca71156f474c3f224ba3615def6cd3
1,634
py
Python
src/compas_rhino/forms/text.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
1
2019-03-27T22:46:29.000Z
2019-03-27T22:46:29.000Z
src/compas_rhino/forms/text.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
9
2019-09-11T08:53:19.000Z
2019-09-16T08:35:39.000Z
src/compas_rhino/forms/text.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
1
2022-01-16T02:32:43.000Z
2022-01-16T02:32:43.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas from compas_rhino.forms import Form try: from System.Windows.Forms import TextBox from System.Windows.Forms import DockStyle from System.Windows.Forms import ScrollBars from Syste...
25.53125
80
0.582619
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas from compas_rhino.forms import Form try: from System.Windows.Forms import TextBox from System.Windows.Forms import DockStyle from System.Windows.Forms import ScrollBars from Syste...
true
true
f753ee729c747bc8e02b5d4ea15a3a98ac9dd683
8,124
py
Python
21-fs-ias-lec/07-BackEnd/Person/Person.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/07-BackEnd/Person/Person.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/07-BackEnd/Person/Person.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import sys import time sys.path.append("../Feed") sys.path.append("../lib") import crypto import feed as fe from generateJson import generate_json from Feed import Feed class Person: name = "" # name of the user id = 0 # BacNet id of the user feed = None # feed of the user (refers to Feed.py) ...
41.44898
115
0.612383
import sys import time sys.path.append("../Feed") sys.path.append("../lib") import crypto import feed as fe from generateJson import generate_json from Feed import Feed class Person: name = "" id = 0 feed = None def __init__(self, id, name, feed): self.id = id self.name = ...
true
true
f753ef4fb8885ad3633eb7a346de6dbf32d8308e
1,717
py
Python
RecoEcal/EgammaClusterProducers/python/particleFlowSuperClusteringSequence_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
RecoEcal/EgammaClusterProducers/python/particleFlowSuperClusteringSequence_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
RecoEcal/EgammaClusterProducers/python/particleFlowSuperClusteringSequence_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms #------------------ #Hybrid clustering: #------------------ # Producer for Box Particle Flow Super Clusters from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECAL_cfi import * # Producer for energy corrections #from RecoEcal.EgammaClusterProducers.correctedDynamicHyb...
46.405405
116
0.830518
import FWCore.ParameterSet.Config as cms from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECAL_cfi import * particleFlowSuperClusteringSequence = cms.Sequence(particleFlowSuperClusterECAL) particleFlowSuperClusterHGCal = particleFlowSuperClusterECAL.clone() from Configuration.Eras.Modifier_phase2_h...
true
true
f753ef6ce67a860aedb18ebe21dece5ca3a659ff
1,050
py
Python
segmatch/python/display_matched_segments.py
jidebingfeng/segmatch
c662324d23b9e049fbb49b52cda7895d1a4d2798
[ "BSD-3-Clause" ]
13
2018-11-28T12:02:48.000Z
2021-12-22T01:04:49.000Z
segmatch/python/display_matched_segments.py
yuekaka/segmatch
c662324d23b9e049fbb49b52cda7895d1a4d2798
[ "BSD-3-Clause" ]
2
2019-03-03T01:50:51.000Z
2019-08-19T08:06:41.000Z
segmatch/python/display_matched_segments.py
yuekaka/segmatch
c662324d23b9e049fbb49b52cda7895d1a4d2798
[ "BSD-3-Clause" ]
8
2019-06-18T19:40:35.000Z
2020-06-15T17:43:06.000Z
from __future__ import print_function import numpy as np ## LOAD DATA ## ############### print("Loading segments.") from import_export import load_segments segments, ids = load_segments(folder="/tmp/segment_matcher/") from import_export import load_matches matches = load_matches(folder="/tmp/segment_matcher/") visua...
23.333333
61
0.62
from __future__ import print_function import numpy as np tcher/") from import_export import load_matches matches = load_matches(folder="/tmp/segment_matcher/") visualize=True print("q<Enter> to quit") for match in matches: if visualize: segment1 = segments[match[0]] segment2 = segments[match[1]] from ...
true
true
f753efb6a65817cefc6939ac015da41e58443553
836
py
Python
blog_ruicci/urls.py
nogueirarcz/blog-ruicci
ca4b8bbd31367592535fec49c5efc57f6cb69d14
[ "MIT" ]
null
null
null
blog_ruicci/urls.py
nogueirarcz/blog-ruicci
ca4b8bbd31367592535fec49c5efc57f6cb69d14
[ "MIT" ]
null
null
null
blog_ruicci/urls.py
nogueirarcz/blog-ruicci
ca4b8bbd31367592535fec49c5efc57f6cb69d14
[ "MIT" ]
null
null
null
"""blog_ruicci URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
32.153846
77
0.700957
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('blog/', include('app_blog.urls', namespace='app_blog')), ]
true
true
f753f0463268c8457b06316f94a7e6bf618f541f
69
py
Python
python/subprocess/sub1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python/subprocess/sub1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python/subprocess/sub1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
#!/usr/bin/python import subprocess subprocess.call(['echo', ''])
11.5
30
0.666667
import subprocess subprocess.call(['echo', ''])
true
true
f753f060168cc8b0d36633e6ff3f0b2455ddc300
85
py
Python
hydra/__init__.py
knagrecha/hydra
bf0cf55e0b71acd1966e6e9766ac2022b4a39605
[ "Apache-2.0" ]
7
2021-10-16T06:11:39.000Z
2022-03-14T14:21:14.000Z
hydra/__init__.py
knagrecha/hydra
bf0cf55e0b71acd1966e6e9766ac2022b4a39605
[ "Apache-2.0" ]
3
2021-11-11T19:34:00.000Z
2022-03-11T04:33:16.000Z
hydra/__init__.py
knagrecha/hydra
bf0cf55e0b71acd1966e6e9766ac2022b4a39605
[ "Apache-2.0" ]
1
2022-02-10T02:51:26.000Z
2022-02-10T02:51:26.000Z
from .ModelOrchestrator import ModelOrchestrator from .ModelTask import ModelTask
14.166667
48
0.847059
from .ModelOrchestrator import ModelOrchestrator from .ModelTask import ModelTask
true
true
f753f0eac80996b7071abf7c3c5e2755a66099a8
1,403
py
Python
tests/unit/test_balance.py
lukka5/ledger
d3381049504578b3a89771d828e6383d08403625
[ "MIT" ]
null
null
null
tests/unit/test_balance.py
lukka5/ledger
d3381049504578b3a89771d828e6383d08403625
[ "MIT" ]
null
null
null
tests/unit/test_balance.py
lukka5/ledger
d3381049504578b3a89771d828e6383d08403625
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest from ledger.balance import Balance from ledger.transaction import IrrelevantTransactionError class TestBalance: def test_init(self): balance = Balance(entity="mike", total="1.123") assert balance.entity == "mike" assert balance.total == Decimal("...
32.627907
82
0.687812
from decimal import Decimal import pytest from ledger.balance import Balance from ledger.transaction import IrrelevantTransactionError class TestBalance: def test_init(self): balance = Balance(entity="mike", total="1.123") assert balance.entity == "mike" assert balance.total == Decimal("...
true
true
f753f2a115e7ffea550a69231a201fa2a430d689
1,830
py
Python
tests/query/bugs/fixed_update_issue1827.py
wenhaocs/nebula
326b856cdf44fcaf67d3883073dc9412a9e3eebd
[ "Apache-2.0" ]
8,586
2019-05-15T07:25:51.000Z
2022-03-31T13:49:27.000Z
tests/query/bugs/fixed_update_issue1827.py
zzl200012/nebula-graph
c08b248c69d7db40c0ba9011d4429083cf539bbd
[ "Apache-2.0" ]
3,078
2019-05-15T08:14:02.000Z
2022-03-31T11:39:51.000Z
tests/query/bugs/fixed_update_issue1827.py
zzl200012/nebula-graph
c08b248c69d7db40c0ba9011d4429083cf539bbd
[ "Apache-2.0" ]
880
2019-05-15T07:36:10.000Z
2022-03-31T03:43:02.000Z
import time from tests.common.nebula_test_suite import NebulaTestSuite class TestBugUpdate(NebulaTestSuite): @classmethod def prepare(self): resp = self.execute( 'CREATE SPACE IF NOT EXISTS issue1827_update(partition_num={partition_num}, replica_factor={replica_factor})' .forma...
38.93617
121
0.663934
import time from tests.common.nebula_test_suite import NebulaTestSuite class TestBugUpdate(NebulaTestSuite): @classmethod def prepare(self): resp = self.execute( 'CREATE SPACE IF NOT EXISTS issue1827_update(partition_num={partition_num}, replica_factor={replica_factor})' .forma...
true
true
f753f2c8eea5689a42bb020a0739fc96ae4545fa
105
py
Python
High School/9th Grade APCSP (Python)/Unit 7/07.01.03.py
SomewhereOutInSpace/Computer-Science-Class
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
[ "Unlicense" ]
null
null
null
High School/9th Grade APCSP (Python)/Unit 7/07.01.03.py
SomewhereOutInSpace/Computer-Science-Class
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
[ "Unlicense" ]
null
null
null
High School/9th Grade APCSP (Python)/Unit 7/07.01.03.py
SomewhereOutInSpace/Computer-Science-Class
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
[ "Unlicense" ]
null
null
null
sum = 0 for num in range (10): add = int(input("")) sum = sum + add avg = sum / 10 print(avg)
10.5
24
0.52381
sum = 0 for num in range (10): add = int(input("")) sum = sum + add avg = sum / 10 print(avg)
true
true
f753f2f25dc05cc60d90e06e97ea18a785703ef3
440
py
Python
accounts/migrations/0010_auto_20200902_0501.py
samarthkulshrestha/zedway
96fced2bd480ffb4d296cb761cf3d775cf0d0b97
[ "Unlicense" ]
1
2021-08-11T06:45:25.000Z
2021-08-11T06:45:25.000Z
accounts/migrations/0010_auto_20200902_0501.py
samarthkulshrestha/zedway
96fced2bd480ffb4d296cb761cf3d775cf0d0b97
[ "Unlicense" ]
null
null
null
accounts/migrations/0010_auto_20200902_0501.py
samarthkulshrestha/zedway
96fced2bd480ffb4d296cb761cf3d775cf0d0b97
[ "Unlicense" ]
null
null
null
# Generated by Django 3.0.8 on 2020-09-02 05:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0009_auto_20200828_1240'), ] operations = [ migrations.AlterField( model_name='userprofile', name='image...
23.157895
99
0.622727
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0009_auto_20200828_1240'), ] operations = [ migrations.AlterField( model_name='userprofile', name='image', field=models.ImageField(blank=Tr...
true
true
f753f30bf951f6b99d207dcb2512c45d880f198c
7,711
py
Python
docs/conf.py
marksweb/django-import-export
26977ed44ff8f2c9769b14bc69f0b41f3524da6d
[ "BSD-2-Clause" ]
2,020
2015-05-20T02:41:40.000Z
2022-03-31T14:37:50.000Z
docs/conf.py
marksweb/django-import-export
26977ed44ff8f2c9769b14bc69f0b41f3524da6d
[ "BSD-2-Clause" ]
1,195
2015-05-19T15:28:11.000Z
2022-03-31T16:56:16.000Z
docs/conf.py
marksweb/django-import-export
26977ed44ff8f2c9769b14bc69f0b41f3524da6d
[ "BSD-2-Clause" ]
680
2015-05-27T16:54:17.000Z
2022-03-31T07:56:09.000Z
import os import sys # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.append(os.path.abspath('.')) sys.path.append(os.pat...
32.39916
90
0.714693
import os import sys sys.path.append(os.path.abspath('.')) sys.path.append(os.path.abspath('..')) sys.path.append(os.path.abspath('../tests')) os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django django.setup() extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] templates_path = ['_...
true
true
f753f3b71b7ea3886d077cea96776c452fe2a9e9
2,084
py
Python
app/core/migrations/0001_initial.py
C4st3ll4n/recipe-api
af9b22d713c6dae55cd81d5d6f460223f4a79df1
[ "MIT" ]
1
2021-07-01T20:35:11.000Z
2021-07-01T20:35:11.000Z
app/core/migrations/0001_initial.py
C4st3ll4n/recipe-api
af9b22d713c6dae55cd81d5d6f460223f4a79df1
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
C4st3ll4n/recipe-api
af9b22d713c6dae55cd81d5d6f460223f4a79df1
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-12-04 05:33 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
52.1
160
0.523992
from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.Aut...
true
true
f753f3f3bdc34e05406b798bd782824e777b1078
3,498
py
Python
backend/rumergy_backend/rumergy/views/access_request_view.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-11-08T00:28:37.000Z
2021-11-08T00:28:37.000Z
backend/rumergy_backend/rumergy/views/access_request_view.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-11-02T02:17:37.000Z
2021-11-02T02:17:37.000Z
backend/rumergy_backend/rumergy/views/access_request_view.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-10-18T22:27:04.000Z
2021-10-18T22:27:04.000Z
from rumergy_backend.rumergy.models import AccessRequest from django.contrib.auth.models import User, Group from rest_framework import viewsets from rest_framework import permissions from rest_framework import status from rest_framework.decorators import action, permission_classes from rest_framework.response import Re...
35.333333
116
0.65952
from rumergy_backend.rumergy.models import AccessRequest from django.contrib.auth.models import User, Group from rest_framework import viewsets from rest_framework import permissions from rest_framework import status from rest_framework.decorators import action, permission_classes from rest_framework.response import Re...
true
true
f753f405bba1f2671a4ac4acbcfb024bd417d6ca
9,031
py
Python
python/paddle/dataset/movielens.py
TingquanGao/Paddle
9b1015d90b4d498ab58df7cff2c3ed27863ce970
[ "Apache-2.0" ]
10
2021-05-12T07:20:32.000Z
2022-03-04T08:21:56.000Z
python/paddle/dataset/movielens.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
1
2021-01-25T09:40:19.000Z
2021-01-25T09:40:19.000Z
python/paddle/dataset/movielens.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
18
2021-05-19T08:01:49.000Z
2022-02-11T03:11:32.000Z
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
30.003322
80
0.619976
from __future__ import print_function import numpy as np import zipfile import paddle.dataset.common import paddle.utils.deprecated as deprecated import re import random import functools import six import paddle.compat as cpt __all__ = [ 'train', 'test', 'get_movie_title_dict', 'max_movie_id', 'max_...
true
true
f753f59c2bd871dca1742a5281a46565f9e9746e
1,526
py
Python
setup.py
devnicg/python-binance
5012e6722530e9976c65456d56d578dbb75c22c7
[ "MIT" ]
null
null
null
setup.py
devnicg/python-binance
5012e6722530e9976c65456d56d578dbb75c22c7
[ "MIT" ]
null
null
null
setup.py
devnicg/python-binance
5012e6722530e9976c65456d56d578dbb75c22c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup import codecs import os import re with codecs.open( os.path.join( os.path.abspath(os.path.dirname(__file__)), 'binance', '__init__.py' ), 'r', 'latin1') as fp: try: version = re.findall(r"^__version__ = ...
31.142857
78
0.616645
from setuptools import setup import codecs import os import re with codecs.open( os.path.join( os.path.abspath(os.path.dirname(__file__)), 'binance', '__init__.py' ), 'r', 'latin1') as fp: try: version = re.findall(r"^__version__ = '([^']+)'$", fp.read(...
true
true
f753f5d60f6584a7069e53c5814836cf9ae8d78c
1,788
py
Python
graph_query/main.py
nikitavlaev/formal-languages
4e5212858e7cdaa6f2d5130189f88b66e317d25f
[ "Unlicense" ]
null
null
null
graph_query/main.py
nikitavlaev/formal-languages
4e5212858e7cdaa6f2d5130189f88b66e317d25f
[ "Unlicense" ]
2
2020-09-17T19:11:45.000Z
2020-09-24T08:13:22.000Z
graph_query/main.py
nikitavlaev/formal-languages
4e5212858e7cdaa6f2d5130189f88b66e317d25f
[ "Unlicense" ]
null
null
null
import argparse from graph.graph import Graph from graph.regexp import Regexp from graph_query.algo import algo def main(): parser = argparse.ArgumentParser( description=('Script to execute simple query on graph using ' 'tensor product automata intersection'), ) parser.add_ar...
26.686567
69
0.598434
import argparse from graph.graph import Graph from graph.regexp import Regexp from graph_query.algo import algo def main(): parser = argparse.ArgumentParser( description=('Script to execute simple query on graph using ' 'tensor product automata intersection'), ) parser.add_ar...
true
true
f753f5f107b493c345fab946038af5e23dde8ddf
215
py
Python
apps/raidnight/config.py
zhudotexe/cse183-raidnight-backend
51cab1567ae0f48f41b3be46cf83bbf2afed23a3
[ "MIT" ]
null
null
null
apps/raidnight/config.py
zhudotexe/cse183-raidnight-backend
51cab1567ae0f48f41b3be46cf83bbf2afed23a3
[ "MIT" ]
null
null
null
apps/raidnight/config.py
zhudotexe/cse183-raidnight-backend
51cab1567ae0f48f41b3be46cf83bbf2afed23a3
[ "MIT" ]
null
null
null
import os SESSION_SECRET = os.getenv("SESSION_SECRET") DB_URI = os.getenv("DB_URI", 'sqlite://dev.db') DISCORD_CLIENT_ID = os.getenv("DISCORD_CLIENT_ID") DISCORD_CLIENT_SECRET = os.getenv("DISCORD_CLIENT_SECRET")
26.875
58
0.776744
import os SESSION_SECRET = os.getenv("SESSION_SECRET") DB_URI = os.getenv("DB_URI", 'sqlite://dev.db') DISCORD_CLIENT_ID = os.getenv("DISCORD_CLIENT_ID") DISCORD_CLIENT_SECRET = os.getenv("DISCORD_CLIENT_SECRET")
true
true
f753f66f0ad6668c28f9261d079980c55e6f02f5
205
py
Python
meeting/meeting/doctype/meeting/test_meeting.py
MahMaejah/meeting
60e8445559084cb64f4ed9b3a854ace01b24553a
[ "MIT" ]
null
null
null
meeting/meeting/doctype/meeting/test_meeting.py
MahMaejah/meeting
60e8445559084cb64f4ed9b3a854ace01b24553a
[ "MIT" ]
null
null
null
meeting/meeting/doctype/meeting/test_meeting.py
MahMaejah/meeting
60e8445559084cb64f4ed9b3a854ace01b24553a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Maeja and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestMeeting(unittest.TestCase): pass
18.636364
44
0.756098
from __future__ import unicode_literals import unittest class TestMeeting(unittest.TestCase): pass
true
true
f753f67522a63f610654dbae4ff6acdef0a5a72b
12,179
py
Python
amcp_pylib/module/mixer.py
dolejska-daniel/amcp-pylib
3cccfcf263fce938de942a80e07375b17c5f82f9
[ "MIT" ]
5
2020-05-14T18:35:35.000Z
2021-08-10T12:29:36.000Z
amcp_pylib/module/mixer.py
dolejska-daniel/amcp-pylib
3cccfcf263fce938de942a80e07375b17c5f82f9
[ "MIT" ]
3
2020-10-14T16:59:38.000Z
2021-04-30T15:33:24.000Z
amcp_pylib/module/mixer.py
dolejska-daniel/amcp-pylib
3cccfcf263fce938de942a80e07375b17c5f82f9
[ "MIT" ]
null
null
null
from amcp_pylib.core import Command, command_syntax @command_syntax('MIXER [video_channel:int]{-[layer:int]|-0} KEYER {[keyer:0,1]|0}') def MIXER_KEYER(command: Command) -> Command: """ Replaces layer n+1's alpha with the R (red) channel of layer n, and hides the RGB channels of layer n. If keyer equals 1...
41.852234
120
0.699072
from amcp_pylib.core import Command, command_syntax @command_syntax('MIXER [video_channel:int]{-[layer:int]|-0} KEYER {[keyer:0,1]|0}') def MIXER_KEYER(command: Command) -> Command: return command @command_syntax('MIXER [video_channel:int]{-[layer:int]|-0} CHROMA {[enable:0,1] {[target_hue:float] [hue_width:flo...
true
true
f753f7367ccfd1350744e5ca850f42c3bb5b83a6
2,216
py
Python
tests/manage/z_cluster/nodes/test_rolling_shutdown_and_recovery.py
srivickynesh/ocs-ci
994b8635a2f44ec7982585cfb293215aa8b27d2a
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_rolling_shutdown_and_recovery.py
srivickynesh/ocs-ci
994b8635a2f44ec7982585cfb293215aa8b27d2a
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_rolling_shutdown_and_recovery.py
srivickynesh/ocs-ci
994b8635a2f44ec7982585cfb293215aa8b27d2a
[ "MIT" ]
null
null
null
import logging import time import pytest from ocs_ci.framework.testlib import ( tier4b, ignore_leftovers, ManageTest, bugzilla, skipif_external_mode, skipif_ibm_cloud, ) from ocs_ci.ocs.node import get_ocs_nodes from ocs_ci.ocs.resources.pod import wait_for_pods_to_be_running from ocs_ci.helpe...
27.7
81
0.68231
import logging import time import pytest from ocs_ci.framework.testlib import ( tier4b, ignore_leftovers, ManageTest, bugzilla, skipif_external_mode, skipif_ibm_cloud, ) from ocs_ci.ocs.node import get_ocs_nodes from ocs_ci.ocs.resources.pod import wait_for_pods_to_be_running from ocs_ci.helpe...
true
true
f753f74bb5873a11e18d1696cb38fe91d6f33599
3,229
py
Python
ARIMA1- Air Passengers.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
null
null
null
ARIMA1- Air Passengers.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
5
2020-05-22T14:10:02.000Z
2022-03-25T19:13:05.000Z
ARIMA1- Air Passengers.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 29 11:20:51 2020 @author: 766810 """ import numpy as np import pandas as pd from matplotlib import pyplot as plt from statsmodels.tsa.stattools import adfuller from statsmodels.tsa.seasonal import seasonal_decompose from statsmodels.tsa.arima_model import ARI...
31.970297
95
0.715392
import numpy as np import pandas as pd from matplotlib import pyplot as plt from statsmodels.tsa.stattools import adfuller from statsmodels.tsa.seasonal import seasonal_decompose from statsmodels.tsa.arima_model import ARIMA from pandas.plotting import register_matplotlib_converters register_matplotlib_conver...
true
true
f753f78a836e3c6a16633f4cae364b524fb25c83
5,673
py
Python
src/waldur_openstack/openstack_tenant/migrations/0002_service_properties.py
opennode/waldur-openstack
8a4170c09bdb8367493441016ef06081250fddb8
[ "MIT" ]
1
2017-11-07T19:53:57.000Z
2017-11-07T19:53:57.000Z
src/waldur_openstack/openstack_tenant/migrations/0002_service_properties.py
opennode/waldur-openstack
8a4170c09bdb8367493441016ef06081250fddb8
[ "MIT" ]
null
null
null
src/waldur_openstack/openstack_tenant/migrations/0002_service_properties.py
opennode/waldur-openstack
8a4170c09bdb8367493441016ef06081250fddb8
[ "MIT" ]
3
2017-09-24T03:11:19.000Z
2018-08-12T07:43:13.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import waldur_core.logging.loggers import waldur_core.core.fields import django.core.validators import waldur_core.core.validators class Migration(migrations.Migration): dependencies = [ ('structure'...
50.651786
139
0.590693
from __future__ import unicode_literals from django.db import migrations, models import waldur_core.logging.loggers import waldur_core.core.fields import django.core.validators import waldur_core.core.validators class Migration(migrations.Migration): dependencies = [ ('structure', '0037_remove_customer...
true
true
f753f9385f55f9119be943eb030e3318c09a606b
3,008
py
Python
heat/tests/test_rpc_listener_client.py
stackriot/heat
9ed612906e388eda8bf850420cbceef54e05841c
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/tests/test_rpc_listener_client.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/tests/test_rpc_listener_client.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.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 the...
41.777778
74
0.688165
from unittest import mock import oslo_messaging as messaging from heat.rpc import api as rpc_api from heat.rpc import listener_client as rpc_client from heat.tests import common class ListenerClientTest(common.HeatTestCase): @mock.patch('heat.common.messaging.get_rpc_client', retur...
true
true
f753f93ad733c9ef5ff48b601615352132153f7e
3,083
py
Python
lib/galaxy_test/selenium/test_collection_edit.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/galaxy_test/selenium/test_collection_edit.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/galaxy_test/selenium/test_collection_edit.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
from selenium.webdriver.common.keys import Keys from .framework import ( selenium_test, SeleniumTestCase ) class CollectionEditTestCase(SeleniumTestCase): ensure_registered = True @selenium_test def test_change_dbkey_simple_list(self): self.use_beta_history() self.create_simple_...
41.106667
104
0.738242
from selenium.webdriver.common.keys import Keys from .framework import ( selenium_test, SeleniumTestCase ) class CollectionEditTestCase(SeleniumTestCase): ensure_registered = True @selenium_test def test_change_dbkey_simple_list(self): self.use_beta_history() self.create_simple_...
true
true
f753f9ea21644f97c373bcca4c0a3eff17310310
84
py
Python
src/thug/detect/debug.py
rmoutie/thug-memes
925b1282f7bf60bf0e70f4f0387dd90a8ce91fce
[ "MIT" ]
234
2018-03-17T02:32:55.000Z
2022-03-09T20:50:24.000Z
src/thug/detect/debug.py
rmoutie/thug-memes
925b1282f7bf60bf0e70f4f0387dd90a8ce91fce
[ "MIT" ]
9
2018-03-17T01:27:37.000Z
2020-05-10T18:37:25.000Z
src/thug/detect/debug.py
rmoutie/thug-memes
925b1282f7bf60bf0e70f4f0387dd90a8ce91fce
[ "MIT" ]
15
2018-03-17T08:04:35.000Z
2020-09-17T16:46:41.000Z
import datetime as dt def timestamp(): return dt.datetime.utcnow().isoformat()
16.8
43
0.72619
import datetime as dt def timestamp(): return dt.datetime.utcnow().isoformat()
true
true
f753fa1eb7a4a2060d5cf5a37c9c18f98e18636d
376
py
Python
test/stubs/sublime_plugin.py
jtsternberg/gist
e34d0964c3e3a97858ba226a8789744baa584a1f
[ "MIT" ]
359
2015-01-16T00:25:52.000Z
2021-04-01T11:02:13.000Z
test/stubs/sublime_plugin.py
jtsternberg/gist
e34d0964c3e3a97858ba226a8789744baa584a1f
[ "MIT" ]
57
2015-01-09T22:30:38.000Z
2021-06-10T06:54:40.000Z
test/stubs/sublime_plugin.py
jtsternberg/gist
e34d0964c3e3a97858ba226a8789744baa584a1f
[ "MIT" ]
106
2015-01-29T06:23:54.000Z
2021-09-08T07:36:49.000Z
from abc import abstractmethod from test.stubs.sublime import View class TextCommand: def __init__(self): self.view = View() @abstractmethod def run(self, edit): raise NotImplementedError class EventListener: pass class WindowCommand: def __init__(self, window): self....
15.04
35
0.664894
from abc import abstractmethod from test.stubs.sublime import View class TextCommand: def __init__(self): self.view = View() @abstractmethod def run(self, edit): raise NotImplementedError class EventListener: pass class WindowCommand: def __init__(self, window): self....
true
true
f753fae7f45597d3b3acd782a8d6f096506526c0
1,758
py
Python
salt/proxy/junos.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/proxy/junos.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/proxy/junos.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
1
2017-01-27T21:33:36.000Z
2017-01-27T21:33:36.000Z
# -*- coding: utf-8 -*- ''' Interface with a Junos device via proxy-minion. ''' # Import python libs from __future__ import print_function from __future__ import absolute_import import logging # Import 3rd-party libs # import jnpr.junos # import jnpr.junos.utils # import jnpr.junos.utils.config import json HAS_JUNOS...
20.44186
79
0.614903
from __future__ import print_function from __future__ import absolute_import import logging import json HAS_JUNOS = True __proxyenabled__ = ['junos'] thisproxy = {} log = logging.getLogger(__name__) # Open the connection to the Junos device, login, and bind to the # Resource class # ''' ...
true
true
f753fbf3ff60b90fee53bf99ea41acdd1b952379
3,173
py
Python
networkx_mod/algorithms/__init__.py
movingpictures83/MATria
d3dbd0d15e00dbc26db39ace0663868180fdc471
[ "BSD-3-Clause", "MIT" ]
null
null
null
networkx_mod/algorithms/__init__.py
movingpictures83/MATria
d3dbd0d15e00dbc26db39ace0663868180fdc471
[ "BSD-3-Clause", "MIT" ]
null
null
null
networkx_mod/algorithms/__init__.py
movingpictures83/MATria
d3dbd0d15e00dbc26db39ace0663868180fdc471
[ "BSD-3-Clause", "MIT" ]
null
null
null
from networkx_mod.algorithms.assortativity import * from networkx_mod.algorithms.block import * from networkx_mod.algorithms.boundary import * from networkx_mod.algorithms.centrality import * from networkx_mod.algorithms.cluster import * from networkx_mod.algorithms.clique import * from networkx_mod.algorithms.communit...
43.465753
86
0.86133
from networkx_mod.algorithms.assortativity import * from networkx_mod.algorithms.block import * from networkx_mod.algorithms.boundary import * from networkx_mod.algorithms.centrality import * from networkx_mod.algorithms.cluster import * from networkx_mod.algorithms.clique import * from networkx_mod.algorithms.communit...
true
true
f753fe578f5e0a09cb5ed07959d186d4b544546e
928
py
Python
gamestonk_terminal/etf/wsj_view.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
gamestonk_terminal/etf/wsj_view.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
gamestonk_terminal/etf/wsj_view.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
"""WSJ view""" __docformat__ = "numpy" import os from tabulate import tabulate from gamestonk_terminal.etf import wsj_model from gamestonk_terminal.helper_funcs import ( export_data, ) def show_top_mover(sort_type: str, limit: int = 20, export=""): """ Show top ETF movers from wsj.com Parameters ...
21.581395
75
0.582974
__docformat__ = "numpy" import os from tabulate import tabulate from gamestonk_terminal.etf import wsj_model from gamestonk_terminal.helper_funcs import ( export_data, ) def show_top_mover(sort_type: str, limit: int = 20, export=""): data = wsj_model.etf_movers(sort_type) print( tabulate( ...
true
true
f753fe663fa4dec3c63237cc0707c5ed09ebc1b4
703
py
Python
scripts/host_debug_server.py
gtranche/netboot
472f8de130db9e9bd8982d7c1c5e4bf9c86c30ff
[ "Unlicense" ]
25
2019-09-17T05:15:46.000Z
2022-03-30T07:36:24.000Z
scripts/host_debug_server.py
gtranche/netboot
472f8de130db9e9bd8982d7c1c5e4bf9c86c30ff
[ "Unlicense" ]
12
2020-05-04T01:08:46.000Z
2022-03-14T16:16:20.000Z
scripts/host_debug_server.py
gtranche/netboot
472f8de130db9e9bd8982d7c1c5e4bf9c86c30ff
[ "Unlicense" ]
9
2019-11-11T04:47:48.000Z
2022-03-21T13:21:51.000Z
#!/usr/bin/env python3 import argparse import sys from netboot.web import spawn_app def main() -> int: parser = argparse.ArgumentParser(description="A debug version of the Netboot web services.") parser.add_argument("-p", "--port", help="Port to listen on. Defaults to 80", type=int, default=80) parser.add...
33.47619
126
0.699858
import argparse import sys from netboot.web import spawn_app def main() -> int: parser = argparse.ArgumentParser(description="A debug version of the Netboot web services.") parser.add_argument("-p", "--port", help="Port to listen on. Defaults to 80", type=int, default=80) parser.add_argument("-c", "--con...
true
true
f753fee33729501c5694cc5c7eb6e7843eb3a3ce
4,222
py
Python
Scripts/TypeRig GUI/Manager/__Instances.py
twardoch/TypeRig
121838d98ed41160dbebf575d0a5623def0ce256
[ "BSD-3-Clause" ]
1
2020-07-11T06:18:49.000Z
2020-07-11T06:18:49.000Z
Scripts/TypeRig GUI/Manager/__Instances.py
twardoch/TypeRig
121838d98ed41160dbebf575d0a5623def0ce256
[ "BSD-3-Clause" ]
null
null
null
Scripts/TypeRig GUI/Manager/__Instances.py
twardoch/TypeRig
121838d98ed41160dbebf575d0a5623def0ce256
[ "BSD-3-Clause" ]
null
null
null
#FLM: Font: Instances # ---------------------------------------- # (C) Vassil Kateliev, 2018 (http://www.kateliev.com) # (C) Karandash Type Foundry (http://www.karandash.eu) #----------------------------------------- # No warranties. By using this you agree # that you use it at your own risk! # - Init global pLayers ...
28.721088
159
0.688063
global pLayers pLayers = None app_name, app_version = 'TypeRig | Font Metrics', '0.11' import os, json import fontlab as fl6 import fontgate as fgt from PythonQt import QtCore from typerig import QtGui from typerig.proxy import pGlyph, pFont class WAxisTable(QtGui.QTableWidget): def __init__(self, data):...
true
true
f753ff0aeacb8096221837705c2474bd747c6065
2,483
py
Python
examples/nlp/cnn_sentence_classification.py
amongstar/https-github.com-tflearn-tflearn
8af77b5aebcb8aba0f1b855201aed732906c6de8
[ "MIT" ]
11
2017-03-12T14:18:52.000Z
2018-12-18T12:15:50.000Z
examples/nlp/cnn_sentence_classification.py
DonJon86/tflearn
af57b1759c0d251313c5bcde8cbb7274bf4b08c3
[ "MIT" ]
null
null
null
examples/nlp/cnn_sentence_classification.py
DonJon86/tflearn
af57b1759c0d251313c5bcde8cbb7274bf4b08c3
[ "MIT" ]
20
2017-03-11T10:38:27.000Z
2020-11-25T05:59:59.000Z
# -*- coding: utf-8 -*- """ Simple example using convolutional neural network to classify IMDB sentiment dataset. References: - Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. (2011). Learning Word Vectors for Sentiment Analysis. The 49th Annual Meeting of th...
41.383333
116
0.751108
from __future__ import division, print_function, absolute_import import tensorflow as tf import tflearn from tflearn.layers.core import input_data, dropout, fully_connected from tflearn.layers.conv import conv_1d, global_max_pool from tflearn.layers.merge_ops import merge from tflearn.layers.estimator import regressi...
true
true
f753ff7b1651052763a9efbba9471bd2e7c23705
13,380
py
Python
test/test_reliability_cutoff.py
ComputationalMechanics/SurfaceTopography
6751be427c89d526ef4857300409596c79119029
[ "MIT" ]
5
2020-06-03T20:01:36.000Z
2021-03-03T09:25:03.000Z
test/test_reliability_cutoff.py
ComputationalMechanics/SurfaceTopography
6751be427c89d526ef4857300409596c79119029
[ "MIT" ]
44
2020-06-02T12:25:15.000Z
2021-03-17T15:18:51.000Z
test/test_reliability_cutoff.py
ComputationalMechanics/SurfaceTopography
6751be427c89d526ef4857300409596c79119029
[ "MIT" ]
1
2021-03-08T13:15:18.000Z
2021-03-08T13:15:18.000Z
# # Copyright 2021 Lars Pastewka # # ### MIT license # # 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, mer...
36.961326
118
0.590209
mpy as np import pytest from SurfaceTopography import (read_container, read_topography, SurfaceContainer, NonuniformLineScan, UniformLineScan, Topography) from SurfaceTopography.Exceptions import NoReliableDataError def test_scanning_probe_reliability_cutoff(file_format_examples): ...
true
true
f753ffa490061027579303cbea9a04e8342e0fed
2,046
py
Python
main.py
mov-huyu/Mochi
5102f89fa6b09ccb2bb06ae56acdf50c9e7b31b6
[ "MIT" ]
1
2021-03-11T00:06:23.000Z
2021-03-11T00:06:23.000Z
main.py
Huyu2239/Mochi
5102f89fa6b09ccb2bb06ae56acdf50c9e7b31b6
[ "MIT" ]
null
null
null
main.py
Huyu2239/Mochi
5102f89fa6b09ccb2bb06ae56acdf50c9e7b31b6
[ "MIT" ]
null
null
null
import os import discord import json from discord.ext import commands import traceback from dotenv import load_dotenv load_dotenv() if os.name == 'nt': data_directory = 'json\\' else: data_directory = 'json/' class Mochi(commands.Bot): def __init__(self, command_prefix, **options): ...
38.603774
116
0.624633
import os import discord import json from discord.ext import commands import traceback from dotenv import load_dotenv load_dotenv() if os.name == 'nt': data_directory = 'json\\' else: data_directory = 'json/' class Mochi(commands.Bot): def __init__(self, command_prefix, **options): ...
true
true
f7540137e9805488e11e8d7fced6c407cc483b7d
1,298
py
Python
talkmap.py
bouzebda/bouzebda.github.io
cabffc4c461ea06542117c532c7799caac94e159
[ "MIT" ]
null
null
null
talkmap.py
bouzebda/bouzebda.github.io
cabffc4c461ea06542117c532c7799caac94e159
[ "MIT" ]
null
null
null
talkmap.py
bouzebda/bouzebda.github.io
cabffc4c461ea06542117c532c7799caac94e159
[ "MIT" ]
null
null
null
# # Leaflet cluster map of talk locations # # (c) 2016-2017 R. Stuart Geiger, released under the MIT license # # Run this from the _talks/ directory, which contains 2020-10-01-Bouzebda-Elhattab-Nemouchi.md files of all your talks. # This scrapes the location YAML field from each 2020-10-01-Bouzebda-Elhattab-Nemouchi....
27.041667
119
0.669492
om geopy import Nominatim g = glob.glob("*2020-10-01-Bouzebda-Elhattab-Nemouchi.md") geocoder = Nominatim() location_dict = {} location = "" permalink = "" title = "" for file in g: with open(file, 'r') as f: lines = f.read() if lines.find('location: "') > 1: loc_start = lines.fin...
true
true
f754014cb6a73747713f5a9026a705cf5ad041a3
732
py
Python
proto/CV/stop_sign/main.py
nmarks99/aero-capstone
d828ccb80ff9835a40e7b1872e6b5851ad2b5058
[ "MIT" ]
null
null
null
proto/CV/stop_sign/main.py
nmarks99/aero-capstone
d828ccb80ff9835a40e7b1872e6b5851ad2b5058
[ "MIT" ]
null
null
null
proto/CV/stop_sign/main.py
nmarks99/aero-capstone
d828ccb80ff9835a40e7b1872e6b5851ad2b5058
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import cv2 import sys import time import os assert(len(sys.argv) == 2),'No input given. Please input path to image' img_path = str(sys.argv[1]) t0 = time.time() # Load the cascade print('Analyzing image...') cascade = cv2.CascadeClassifier('stop_data.xml') # Read the image img = cv2.imread(im...
20.914286
71
0.687158
import cv2 import sys import time import os assert(len(sys.argv) == 2),'No input given. Please input path to image' img_path = str(sys.argv[1]) t0 = time.time() print('Analyzing image...') cascade = cv2.CascadeClassifier('stop_data.xml') img = cv2.imread(img_path) detected = cascade.detectMultiScale(img, 1.1, ...
true
true
f75401bd5cd4f38be7573f0f893cb3217d37ada7
51,891
py
Python
autotest/gdrivers/hfa.py
roman0yurin/gdal
349a0992c7ebd0c71e8014e00897b098e4ca16fb
[ "MIT" ]
1
2020-02-22T01:28:29.000Z
2020-02-22T01:28:29.000Z
autotest/gdrivers/hfa.py
norBIT/gdal
64855dbee2cd0dff47da11d916c8d2703b4e99b8
[ "MIT" ]
7
2018-04-09T09:35:42.000Z
2018-05-22T06:54:05.000Z
autotest/gdrivers/hfa.py
norBIT/gdal
64855dbee2cd0dff47da11d916c8d2703b4e99b8
[ "MIT" ]
2
2018-05-03T15:34:36.000Z
2020-07-13T15:30:20.000Z
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test some functions of HFA driver. Most testing in ../gcore/hfa_* # Author: Frank Warmerdam <warmerdam@pobox.com> # ##############################################...
35.061486
662
0.602744
true
true
f7540256c4b9e6d402f9861a0c6cccefaca1b17f
4,629
py
Python
civil/apps/definitions/models.py
christopinka/django-civil
d134624da9d36c4ba0bea2df8a21698df196bdf6
[ "Apache-2.0" ]
3
2020-06-15T21:01:06.000Z
2022-02-17T17:41:57.000Z
civil/apps/definitions/models.py
christopinka/django-civil
d134624da9d36c4ba0bea2df8a21698df196bdf6
[ "Apache-2.0" ]
null
null
null
civil/apps/definitions/models.py
christopinka/django-civil
d134624da9d36c4ba0bea2df8a21698df196bdf6
[ "Apache-2.0" ]
1
2021-11-06T18:33:29.000Z
2021-11-06T18:33:29.000Z
# -*- coding: utf-8 -*- from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ from civil.library.models import BaseModel #============================================================================== class AddressType(BaseModel): name = models.Cha...
29.484076
88
0.544826
from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ from civil.library.models import BaseModel class AddressType(BaseModel): name = models.CharField(_('name'), max_length=100) class Meta: verbose_name = _('address type') ve...
true
true
f75402cdfd22cee4df685a7ea687ca039237e827
2,059
py
Python
bin/evaluate_step_placement.py
Vivoe/DeepSM
bc35f2bfc3758199466079ec54de1d5297374921
[ "MIT" ]
3
2020-08-09T11:40:54.000Z
2021-07-09T06:14:57.000Z
bin/evaluate_step_placement.py
Vivoe/DeepSM
bc35f2bfc3758199466079ec54de1d5297374921
[ "MIT" ]
null
null
null
bin/evaluate_step_placement.py
Vivoe/DeepSM
bc35f2bfc3758199466079ec54de1d5297374921
[ "MIT" ]
null
null
null
import os import argparse import numpy as np from sklearn import metrics import matplotlib.pyplot as plt import torch import torch.utils.data as datautils from deepSM import StepPlacement from deepSM import SMDUtils from deepSM import post_processing from deepSM import utils parser = argparse.ArgumentParser() par...
25.7375
79
0.737251
import os import argparse import numpy as np from sklearn import metrics import matplotlib.pyplot as plt import torch import torch.utils.data as datautils from deepSM import StepPlacement from deepSM import SMDUtils from deepSM import post_processing from deepSM import utils parser = argparse.ArgumentParser() par...
true
true
f75402f02eaaccccb3f4f580aca4ce077adcae8c
4,696
py
Python
napari_plugin_engine/_testsupport.py
tlambert-forks/napari-plugin-engine
79ee20ff57061f3a4c592601a7bc3faae398cf7b
[ "MIT" ]
6
2021-01-04T10:43:34.000Z
2021-12-20T08:37:30.000Z
napari_plugin_engine/_testsupport.py
tlambert-forks/napari-plugin-engine
79ee20ff57061f3a4c592601a7bc3faae398cf7b
[ "MIT" ]
47
2020-06-26T02:54:24.000Z
2022-03-21T19:54:51.000Z
napari_plugin_engine/_testsupport.py
tlambert-forks/napari-plugin-engine
79ee20ff57061f3a4c592601a7bc3faae398cf7b
[ "MIT" ]
8
2020-04-26T23:10:06.000Z
2021-08-13T18:07:09.000Z
from contextlib import contextmanager import pytest from napari_plugin_engine import ( HookCaller, HookImplementation, HookImplementationMarker, HookSpecification, HookSpecificationMarker, PluginManager, ) @pytest.fixture def test_plugin_manager() -> PluginManager: """A plugin manager fi...
33.784173
87
0.669719
from contextlib import contextmanager import pytest from napari_plugin_engine import ( HookCaller, HookImplementation, HookImplementationMarker, HookSpecification, HookSpecificationMarker, PluginManager, ) @pytest.fixture def test_plugin_manager() -> PluginManager: return PluginManager(p...
true
true
f754038a4d3677f969cfa59e37d8cdb0bbb73d86
1,393
py
Python
crawler/cy/spiders/property_publication_spider.py
g0v/sunshine.cy
17ad8e92c413ba64e586592fbf332ce93672cd65
[ "CC0-1.0" ]
6
2015-05-08T12:30:12.000Z
2021-08-30T09:13:23.000Z
crawler/cy/spiders/property_publication_spider.py
g0v/sunshine.cy
17ad8e92c413ba64e586592fbf332ce93672cd65
[ "CC0-1.0" ]
5
2017-01-26T08:46:44.000Z
2019-02-20T08:44:00.000Z
crawler/cy/spiders/property_publication_spider.py
g0v/sunshine.cy
17ad8e92c413ba64e586592fbf332ce93672cd65
[ "CC0-1.0" ]
1
2018-10-24T04:18:03.000Z
2018-10-24T04:18:03.000Z
# -*- coding: utf-8 -*- import os import re import subprocess import scrapy from scrapy.http import Request, FormRequest from scrapy.selector import Selector from cy.items import PropertyItem class Spider(scrapy.Spider): name = "property" allowed_domains = ["sunshine.cy.gov.tw"] start_urls = ['http://suns...
38.694444
145
0.541278
import os import re import subprocess import scrapy from scrapy.http import Request, FormRequest from scrapy.selector import Selector from cy.items import PropertyItem class Spider(scrapy.Spider): name = "property" allowed_domains = ["sunshine.cy.gov.tw"] start_urls = ['http://sunshine.cy.gov.tw/GipOpenW...
true
true
f754040bf03851a2b0b6dc7db0be871cc58fda1d
368
py
Python
simp-py-code/task13.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
simp-py-code/task13.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
simp-py-code/task13.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
# Question: If we list all the natural numbers below 10 that are the multiples of 3 or 5, we get 3, 5, 6, 9. The sum of these is 23 Find the sum of all the multiples of 3 or 5 i = 0 num = 1000 count = 0 while i < num: if i%3==0 or i%5==0: print(i) count = count + i # when i satisfies the condition ...
33.454545
175
0.644022
i = 0 num = 1000 count = 0 while i < num: if i%3==0 or i%5==0: print(i) count = count + i i+=1 print(count)
true
true
f75405282baee0b032ed769c84fa33c0ae8135dc
2,760
py
Python
model_builder.py
jhamrak/instrument-recognition-lab
a2fab13b854a3650c437ec65e1cf078067827415
[ "Apache-2.0" ]
null
null
null
model_builder.py
jhamrak/instrument-recognition-lab
a2fab13b854a3650c437ec65e1cf078067827415
[ "Apache-2.0" ]
4
2020-09-03T07:39:07.000Z
2020-09-03T07:40:47.000Z
model_builder.py
jhamrak/instrument-recognition-lab
a2fab13b854a3650c437ec65e1cf078067827415
[ "Apache-2.0" ]
null
null
null
import keras from keras.utils import np_utils from keras import layers from keras import models import os from keras.models import Sequential from keras.layers import Dense, Conv2D, MaxPool2D , Flatten, Dropout from keras.preprocessing.image import ImageDataGenerator import numpy as np def build_vgg(in_shape): model...
56.326531
137
0.751812
import keras from keras.utils import np_utils from keras import layers from keras import models import os from keras.models import Sequential from keras.layers import Dense, Conv2D, MaxPool2D , Flatten, Dropout from keras.preprocessing.image import ImageDataGenerator import numpy as np def build_vgg(in_shape): model...
true
true
f7540632598318efa6db5df56565909a4416b92c
1,557
py
Python
src/prefect/storage/__init__.py
vnsn/prefect
972345597975155dba9e3232bcc430d0a6258a37
[ "Apache-2.0" ]
8,633
2019-03-23T17:51:03.000Z
2022-03-31T22:17:42.000Z
src/prefect/storage/__init__.py
vnsn/prefect
972345597975155dba9e3232bcc430d0a6258a37
[ "Apache-2.0" ]
3,903
2019-03-23T19:11:21.000Z
2022-03-31T23:21:23.000Z
src/prefect/storage/__init__.py
vnsn/prefect
972345597975155dba9e3232bcc430d0a6258a37
[ "Apache-2.0" ]
937
2019-03-23T18:49:44.000Z
2022-03-31T21:45:13.000Z
""" The Prefect Storage interface encapsulates logic for storing flows. Each storage unit is able to store _multiple_ flows (with the constraint of name uniqueness within a given unit). """ from warnings import warn import prefect from prefect import config from prefect.storage.base import Storage from prefect.storag...
34.6
92
0.755299
from warnings import warn import prefect from prefect import config from prefect.storage.base import Storage from prefect.storage.azure import Azure from prefect.storage.bitbucket import Bitbucket from prefect.storage.codecommit import CodeCommit from prefect.storage.docker import Docker from prefect.storage.gcs impo...
true
true
f7540749ffeea8831045a0b74100e7129db47c86
9,357
py
Python
code/LanguageGenChars_Predict.py
craiggua/NaturalLanguageGen
de7c83ed08eded17528f8e55c07a969e0f409e8a
[ "MIT" ]
null
null
null
code/LanguageGenChars_Predict.py
craiggua/NaturalLanguageGen
de7c83ed08eded17528f8e55c07a969e0f409e8a
[ "MIT" ]
null
null
null
code/LanguageGenChars_Predict.py
craiggua/NaturalLanguageGen
de7c83ed08eded17528f8e55c07a969e0f409e8a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Purpose: Character level Natural Language Generation (NLG). This file loads a previously trained character NLG model from LanguageGenChars_train.py, and predicts subsequent chars. To run: 1) Set constants below to be the same as the languagegenchars_train.py fil...
33.537634
124
0.68227
import numpy as np import os from datetime import datetime, timedelta import re import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow import keras from tensorflow.keras.layers import LSTM, Dense, Dropout from tensorflow.keras import utils as keras_utils CURR...
true
true
f75407a949521cc4b50e0c5d3a816a5d437eb19b
532
py
Python
sokna/migrations/0007_auto_20200915_2352.py
medram/daira
cf445f1b308b879bb6c852067b162a2a1c1c72d3
[ "MIT" ]
1
2020-11-08T01:37:21.000Z
2020-11-08T01:37:21.000Z
sokna/migrations/0007_auto_20200915_2352.py
medram/daira
cf445f1b308b879bb6c852067b162a2a1c1c72d3
[ "MIT" ]
8
2020-08-30T18:16:08.000Z
2022-01-13T03:01:35.000Z
sokna/migrations/0007_auto_20200915_2352.py
medram/daira
cf445f1b308b879bb6c852067b162a2a1c1c72d3
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-15 22:52 import daira.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sokna', '0006_auto_20200712_1329'), ] operations = [ migrations.AlterField( model_name='soknarequest', ...
26.6
164
0.665414
import daira.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sokna', '0006_auto_20200712_1329'), ] operations = [ migrations.AlterField( model_name='soknarequest', name='terms_of_use', fie...
true
true
f75407e3e3c46371b6090438bb011e5c0208251f
2,355
py
Python
tests/integration/templatetags/test_currency_filters.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
4,639
2015-01-01T00:42:33.000Z
2022-03-29T18:32:12.000Z
tests/integration/templatetags/test_currency_filters.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,215
2015-01-02T22:32:51.000Z
2022-03-29T12:16:23.000Z
tests/integration/templatetags/test_currency_filters.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,187
2015-01-02T06:33:31.000Z
2022-03-31T15:32:36.000Z
# -*- coding: utf-8 -*- from decimal import Decimal as D from django import template from django.test import TestCase from django.test.utils import override_settings from django.utils import translation def render(template_string, ctx): tpl = template.Template(template_string) return tpl.render(template.Cont...
28.373494
57
0.546497
from decimal import Decimal as D from django import template from django.test import TestCase from django.test.utils import override_settings from django.utils import translation def render(template_string, ctx): tpl = template.Template(template_string) return tpl.render(template.Context(ctx)) class TestC...
true
true
f75407f40aa02f81d0fc6c4dbcb1174d19ff8b94
2,933
py
Python
QsWidgets/QsMpl/tools.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
null
null
null
QsWidgets/QsMpl/tools.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
25
2019-03-05T05:56:35.000Z
2019-07-24T13:11:57.000Z
QsWidgets/QsMpl/tools.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
1
2019-11-27T05:10:47.000Z
2019-11-27T05:10:47.000Z
from matplotlib.backend_tools import ToolBase, ToolToggleBase, Cursors from PyQt5.QtCore import QObject, pyqtSignal import logging class ToolPickPoint(ToolToggleBase,QObject): """ Marker selection tool. """ # Tool options for matplotlib. description = 'Pick a point on the image' image = 'pick.png' cursor = Curso...
30.552083
88
0.741562
from matplotlib.backend_tools import ToolBase, ToolToggleBase, Cursors from PyQt5.QtCore import QObject, pyqtSignal import logging class ToolPickPoint(ToolToggleBase,QObject): description = 'Pick a point on the image' image = 'pick.png' cursor = Cursors.SELECT_REGION radio_group = 'default' newPoint = pyqtSi...
true
true
f7540ab7c69f1a18d1582297ffe2201054b8a959
95
py
Python
enan/process/__init__.py
mizuno-group/enan
3c9dbe60bebf98e384e858db56980928b5897775
[ "MIT" ]
null
null
null
enan/process/__init__.py
mizuno-group/enan
3c9dbe60bebf98e384e858db56980928b5897775
[ "MIT" ]
null
null
null
enan/process/__init__.py
mizuno-group/enan
3c9dbe60bebf98e384e858db56980928b5897775
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 25 15:46:32 2019 @author: tadahaya """
11.875
36
0.536842
true
true