hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
86ae09cbaacba38fc832b4e7fdf84cb497dab5f7
1,994
py
Python
hw1/train_test.py
ianwonilkim/gct634-2020
e671cb4949fa1d3944937e01ace9e4fdd2b914b0
[ "MIT" ]
13
2020-09-07T02:06:30.000Z
2021-08-30T04:57:43.000Z
hw1/train_test.py
ianwonilkim/gct634-2020
e671cb4949fa1d3944937e01ace9e4fdd2b914b0
[ "MIT" ]
1
2020-10-22T02:57:23.000Z
2020-10-22T02:57:23.000Z
hw1/train_test.py
ianwonilkim/gct634-2020
e671cb4949fa1d3944937e01ace9e4fdd2b914b0
[ "MIT" ]
17
2020-09-11T01:42:53.000Z
2021-09-06T05:20:06.000Z
# GCT634 (2018) HW1 # # Mar-18-2018: initial version # # Juhan Nam # import sys import os import numpy as np import librosa from feature_summary import * from sklearn.linear_model import SGDClassifier def train_model(train_X, train_Y, valid_X, valid_Y, hyper_param1): # Choose a classifier (here, linear SVM) ...
25.564103
113
0.648947
705890781aa6cab8db0716fafddddb4aeba87df1
32,989
py
Python
katpoint/projection.py
LChristelis/katpoint
e6a9efdff0c2b4d87e33e0a4a8a1f81117ea7117
[ "BSD-3-Clause" ]
null
null
null
katpoint/projection.py
LChristelis/katpoint
e6a9efdff0c2b4d87e33e0a4a8a1f81117ea7117
[ "BSD-3-Clause" ]
1
2021-03-30T05:51:47.000Z
2021-03-30T05:51:47.000Z
katpoint/projection.py
LChristelis/katpoint
e6a9efdff0c2b4d87e33e0a4a8a1f81117ea7117
[ "BSD-3-Clause" ]
1
2017-02-01T10:34:37.000Z
2017-02-01T10:34:37.000Z
################################################################################ # Copyright (c) 2009-2019, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the...
41.495597
107
0.64855
2e3d2c2d88ad0acced2738d1a2832a3d38942bbc
9,289
py
Python
src/oci/data_integration/models/rule_type_config.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_integration/models/rule_type_config.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_integration/models/rule_type_config.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.920962
245
0.64388
3635eeb8e603d70e62b84aab9fde341f538e3f91
299
py
Python
suffix_tree/test/test_bug01.py
mkroutikov/suffix_tree
be5d13b93924e26bb5d1b423172db995ee10c6e1
[ "MIT" ]
null
null
null
suffix_tree/test/test_bug01.py
mkroutikov/suffix_tree
be5d13b93924e26bb5d1b423172db995ee10c6e1
[ "MIT" ]
null
null
null
suffix_tree/test/test_bug01.py
mkroutikov/suffix_tree
be5d13b93924e26bb5d1b423172db995ee10c6e1
[ "MIT" ]
null
null
null
''' Created on Jan 10, 2017 @author: mike ''' import unittest from suffix_tree.suffix_tree import SuffixTree class TestBug01(unittest.TestCase): def test(self): text = 'bbacbaccba' st = SuffixTree.build(text) st.pretty_print() st.validate()
15.736842
46
0.615385
f6661f384647db1af31a8612536e45f74dd4c186
11,316
py
Python
networkx/algorithms/centrality/tests/test_katz_centrality.py
armando1793/networkx
48326e1761c08d7a073aec53f7a644baf2249ef6
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
networkx/algorithms/centrality/tests/test_katz_centrality.py
armando1793/networkx
48326e1761c08d7a073aec53f7a644baf2249ef6
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
networkx/algorithms/centrality/tests/test_katz_centrality.py
armando1793/networkx
48326e1761c08d7a073aec53f7a644baf2249ef6
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# -*- coding: utf-8 -*- import math import networkx as nx from nose import SkipTest from nose.tools import assert_almost_equal, assert_equal, raises class TestKatzCentrality(object): def test_K5(self): """Katz centrality: K5""" G = nx.complete_graph(5) alpha = 0.1 b = nx.katz_cen...
35.034056
80
0.545776
311f7abe5df9a4abecdac1e4c7a67b7f5a434794
4,713
py
Python
tests/factories/test_plugin_factory.py
NESCAU-UFLA/FuzzyingTool
ee0a3c149fb9839fb269cc0f254fb3234058e6af
[ "MIT" ]
null
null
null
tests/factories/test_plugin_factory.py
NESCAU-UFLA/FuzzyingTool
ee0a3c149fb9839fb269cc0f254fb3234058e6af
[ "MIT" ]
null
null
null
tests/factories/test_plugin_factory.py
NESCAU-UFLA/FuzzyingTool
ee0a3c149fb9839fb269cc0f254fb3234058e6af
[ "MIT" ]
null
null
null
import unittest from unittest.mock import Mock, patch from src.fuzzingtool.utils.consts import PluginCategory from src.fuzzingtool.factories.plugin_factory import PluginFactory from src.fuzzingtool.core.plugins import scanners, Grep, Reflected from src.fuzzingtool.exceptions.plugin_exceptions import InvalidPlugin, Inv...
49.09375
114
0.741778
4f491fa0a0278d2cb57f857c8f94fd9e7ebc0068
2,895
py
Python
graphgallery/nn/layers/dgl/mixhop.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
300
2020-08-09T04:27:41.000Z
2022-03-30T07:43:41.000Z
graphgallery/nn/layers/dgl/mixhop.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
5
2020-11-05T06:16:50.000Z
2021-12-11T05:05:22.000Z
graphgallery/nn/layers/dgl/mixhop.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
51
2020-09-23T15:37:12.000Z
2022-03-05T01:28:56.000Z
import torch import torch.nn as nn import dgl.function as fn class MixHopConv(nn.Module): r""" Description ----------- MixHop Graph Convolutional layer from paper `MixHop: Higher-Order Graph Convolutional Architecturesvia Sparsified Neighborhood Mixing <https://arxiv.org/abs/1905.0006...
35.740741
138
0.558895
5781e1d36217b6c28854bfa238505db416fc46b1
310
py
Python
series/example.py
mambocab/xpython
be4aacc18aafee449fa2ce0f515ee03b0c8ae4d9
[ "MIT" ]
null
null
null
series/example.py
mambocab/xpython
be4aacc18aafee449fa2ce0f515ee03b0c8ae4d9
[ "MIT" ]
null
null
null
series/example.py
mambocab/xpython
be4aacc18aafee449fa2ce0f515ee03b0c8ae4d9
[ "MIT" ]
1
2020-06-10T23:33:20.000Z
2020-06-10T23:33:20.000Z
def slices(series, length): numbers = [int(digit) for digit in series] if not 1 <= length <= len(numbers): raise ValueError("Invalid slice length for this series: " + str(length)) return [numbers[i:i + length] for i in range(len(numbers) - length + 1)]
38.75
65
0.574194
e6e79887ea8e7a364ed1073a19ce2f6e1d4ed362
11,001
py
Python
pysc2/env/lan_sc2_env.py
philomely/pysc2
eb11de901d47acb1cf507e67dd6025827df5ce29
[ "Apache-2.0" ]
null
null
null
pysc2/env/lan_sc2_env.py
philomely/pysc2
eb11de901d47acb1cf507e67dd6025827df5ce29
[ "Apache-2.0" ]
null
null
null
pysc2/env/lan_sc2_env.py
philomely/pysc2
eb11de901d47acb1cf507e67dd6025827df5ce29
[ "Apache-2.0" ]
2
2018-06-10T11:14:44.000Z
2018-06-26T13:50:38.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
33.135542
80
0.684483
367fe24885575988811fbcd9312c93910a1f047e
45,069
py
Python
mrjob/job.py
cleemesser/mrjob
f24991ffae9e7a2dad9fd3403d5e96635ededa4a
[ "Apache-2.0" ]
null
null
null
mrjob/job.py
cleemesser/mrjob
f24991ffae9e7a2dad9fd3403d5e96635ededa4a
[ "Apache-2.0" ]
null
null
null
mrjob/job.py
cleemesser/mrjob
f24991ffae9e7a2dad9fd3403d5e96635ededa4a
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2010 Yelp # # 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, softwa...
39.813604
176
0.622823
96ed838b5eb5c2fd9d4e5b0349259e4ae1ba88e3
406
py
Python
lightnlp/sl/pos/config.py
CNLPT/lightNLP
c7f128422ba5b16f514bb294145cb3b562e95829
[ "Apache-2.0" ]
563
2019-03-26T14:42:08.000Z
2022-03-28T11:26:40.000Z
lightnlp/sl/pos/config.py
CNLPT/lightNLP
c7f128422ba5b16f514bb294145cb3b562e95829
[ "Apache-2.0" ]
8
2019-04-08T08:33:40.000Z
2020-07-11T13:18:25.000Z
lightnlp/sl/pos/config.py
CNLPT/lightNLP
c7f128422ba5b16f514bb294145cb3b562e95829
[ "Apache-2.0" ]
139
2019-03-27T16:07:54.000Z
2022-03-21T01:42:51.000Z
from ...base.config import DEVICE DEFAULT_CONFIG = { 'lr': 0.02, 'epoch': 30, 'lr_decay': 0.05, 'batch_size': 128, 'dropout': 0.5, 'static': False, 'non_static': False, 'embedding_dim': 300, 'num_layers': 2, 'pad_index': 1, 'vector_path': '', 'tag_num': 0, 'vocabulary...
21.368421
33
0.551724
e3277ebfe95377cba274603fbb30d67ef25ea920
1,728
py
Python
sgp4/model.py
rirze/python-sgp4
b05a70e8537498c1eb459be3c1f8ff865ce20e78
[ "MIT" ]
null
null
null
sgp4/model.py
rirze/python-sgp4
b05a70e8537498c1eb459be3c1f8ff865ce20e78
[ "MIT" ]
1
2020-01-06T19:23:25.000Z
2020-01-06T19:23:25.000Z
sgp4/model.py
rirze/python-sgp4
b05a70e8537498c1eb459be3c1f8ff865ce20e78
[ "MIT" ]
null
null
null
"""The Satellite class.""" from sgp4.ext import jday try: from sgp4.cpropagation import sgp4 except ImportError as e: print(e) from sgp4.propagation import sgp4 minutes_per_day = 1440. class Satellite(object): """An earth-orbiting satellite as represented by the SGP4 model. Most of this class's ...
31.418182
79
0.640625
b9a12bc1d9ae953f4cd9d26e4124d60eab7c0880
394
py
Python
src/oscar/templatetags/purchase_info_tags.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
68
2016-11-06T05:07:57.000Z
2021-12-17T09:17:38.000Z
src/oscar/templatetags/purchase_info_tags.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
null
null
null
src/oscar/templatetags/purchase_info_tags.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
28
2016-12-04T07:12:50.000Z
2021-02-06T21:13:15.000Z
from django import template register = template.Library() @register.assignment_tag def purchase_info_for_product(request, product): if product.is_parent: return request.strategy.fetch_for_parent(product) return request.strategy.fetch_for_product(product) @register.assignment_tag def purchase_info_...
23.176471
57
0.799492
7e6f386e42de4852e08fc6634e539d20e4591d53
5,267
py
Python
setup.py
ed0tli/django-simple-avatar
714096bfa4d217735a98422fee01d48a0dec7627
[ "BSD-3-Clause" ]
null
null
null
setup.py
ed0tli/django-simple-avatar
714096bfa4d217735a98422fee01d48a0dec7627
[ "BSD-3-Clause" ]
null
null
null
setup.py
ed0tli/django-simple-avatar
714096bfa4d217735a98422fee01d48a0dec7627
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages import simpleavatar version = simpleavatar.__version__ LONG_DESCRIPTION = """ Using django-simple-avatar =================== Basics ------ To integrate ``django-simple-avatar`` with your site, there are relatively few things that are required. A minimal int...
32.714286
86
0.692994
f1a509dc4ab1284fe73b3741737706c688b0206d
5,143
py
Python
src/python/WMCore/WMBS/Mask.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Mask.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Mask.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ Mask.py This is a database-enabled version of the Mask code This is because saving a series of lumis in the database requires significant parsing ability. I'm going to have to add code to reduce the lumis to single entries and then put them back together again. """ from WMCore.DataStructs...
29.056497
88
0.539568
220f77150f6658650238204b6eedab2df901455f
4,400
py
Python
tests/snappy_wrappers/tools/test_quickvenn.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
5
2021-02-26T10:39:56.000Z
2021-12-23T07:53:26.000Z
tests/snappy_wrappers/tools/test_quickvenn.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
93
2021-02-22T11:23:59.000Z
2022-03-31T09:58:39.000Z
tests/snappy_wrappers/tools/test_quickvenn.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
3
2021-02-22T11:44:59.000Z
2021-06-21T19:33:53.000Z
# -*- coding: utf-8 -*- """Tests for ``snappy_wrappers.tools.quickvenn``""" import os import tempfile import textwrap import pytest from snappy_wrappers.tools import quickvenn @pytest.fixture def one_set_fake_fs(fake_fs): """Return fake file system setup with files with an FAI file""" # Create fake bedtool...
28.947368
97
0.692727
fb618bdbdbc7656cc5e512ca9ad8f7388d255519
2,197
py
Python
pdfconduit/transform/rotate.py
mrstephenneal/pdfwatermarker
55934803efd91b6b456985be7df93c03d24747c7
[ "Apache-2.0" ]
9
2018-08-28T14:08:19.000Z
2019-08-22T07:33:14.000Z
pdfconduit/transform/rotate.py
mrstephenneal/pdfwatermarker
55934803efd91b6b456985be7df93c03d24747c7
[ "Apache-2.0" ]
15
2018-08-28T14:08:17.000Z
2019-07-08T01:29:34.000Z
pdfconduit/transform/rotate.py
mrstephenneal/pdfwatermarker
55934803efd91b6b456985be7df93c03d24747c7
[ "Apache-2.0" ]
1
2020-08-10T00:14:43.000Z
2020-08-10T00:14:43.000Z
# Rotate a pdf file import os from tempfile import NamedTemporaryFile from PyPDF3 import PdfFileReader, PdfFileWriter from pdfrw import PdfReader, PdfWriter from pdfconduit.utils.path import add_suffix class Rotate: def __init__(self, file_name, rotation, suffix='rotated', tempdir=None, method='pdfrw'): ...
30.943662
107
0.613564
b7f06c68cc2becabc2f19b4674269a19a95435de
234
py
Python
site/bamboofox.cs.nctu.edu.tw/csc-2017/overflow/hack.py
ss8651twtw/CTF
cf348597cb72558cc5cd8d50582860fadf014228
[ "MIT" ]
12
2018-01-06T13:36:57.000Z
2021-07-19T16:47:57.000Z
site/bamboofox.cs.nctu.edu.tw/csc-2017/overflow/hack.py
ss8651twtw/Secure-Programming
cf348597cb72558cc5cd8d50582860fadf014228
[ "MIT" ]
null
null
null
site/bamboofox.cs.nctu.edu.tw/csc-2017/overflow/hack.py
ss8651twtw/Secure-Programming
cf348597cb72558cc5cd8d50582860fadf014228
[ "MIT" ]
2
2019-07-06T03:46:38.000Z
2019-10-28T15:15:36.000Z
#!/usr/bin/env python from pwn import * r = remote('bamboofox.cs.nctu.edu.tw', 22007) # r = process('./overflow') magic = 0x80486ad r.recvuntil('?') r.sendline(str(magic)) r.recvuntil('!!!') r.sendline('a' * 40) r.interactive()
13.764706
45
0.645299
357c1cebfe1164c56575d2aaada2bec5d37ee882
1,545
py
Python
scripts/tflite_model_tools/tflite/WhereOptions.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
15
2021-09-05T03:43:54.000Z
2022-03-29T14:17:29.000Z
scripts/tflite_model_tools/tflite/WhereOptions.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
21
2021-09-01T06:58:31.000Z
2022-03-31T06:33:15.000Z
scripts/tflite_model_tools/tflite/WhereOptions.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
6
2021-09-22T06:44:19.000Z
2022-02-07T06:28:35.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class WhereOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsWhereOptions(cls, buf, offset): n = flatbuffers.e...
26.186441
114
0.682848
65d1f08d736ee3bb824f9d485300fdf7b3e52efd
124
py
Python
tests/lazilyTest1/b.py
KOLANICH/lazyImport.py
ee6574c10c941973de8f4ea3b67af3e94fc9668d
[ "Unlicense" ]
null
null
null
tests/lazilyTest1/b.py
KOLANICH/lazyImport.py
ee6574c10c941973de8f4ea3b67af3e94fc9668d
[ "Unlicense" ]
null
null
null
tests/lazilyTest1/b.py
KOLANICH/lazyImport.py
ee6574c10c941973de8f4ea3b67af3e94fc9668d
[ "Unlicense" ]
null
null
null
from ImportTimeline import log log("lazilyTest1/b.py run") import traceback #traceback.print_stack() import lazily.shit.a
15.5
30
0.798387
50a1f1b865aa212c023b3bea3bd039dd8426e228
8,504
py
Python
distributed/tests/test_diskutils.py
bryanwweber/distributed
c9dcbe7ee87be83fde1156f18e88ebe2da992c0c
[ "BSD-3-Clause" ]
null
null
null
distributed/tests/test_diskutils.py
bryanwweber/distributed
c9dcbe7ee87be83fde1156f18e88ebe2da992c0c
[ "BSD-3-Clause" ]
null
null
null
distributed/tests/test_diskutils.py
bryanwweber/distributed
c9dcbe7ee87be83fde1156f18e88ebe2da992c0c
[ "BSD-3-Clause" ]
null
null
null
import functools import gc import os import queue import shutil import subprocess import sys from time import sleep from unittest import mock import pytest import dask from distributed.compatibility import WINDOWS from distributed.diskutils import WorkSpace from distributed.metrics import time from distributed.profi...
29.630662
86
0.633349
d121489ba8db026c5766bc747bbb3ca049467a10
334
py
Python
demo/hello_chars.py
peitur/rb_py_demo1909
a1e2ad8098631658a2b1fcd3f56ceabdf7e828e8
[ "Apache-2.0" ]
1
2019-09-02T18:28:12.000Z
2019-09-02T18:28:12.000Z
demo/hello_chars.py
peitur/rb_py_demo1909
a1e2ad8098631658a2b1fcd3f56ceabdf7e828e8
[ "Apache-2.0" ]
null
null
null
demo/hello_chars.py
peitur/rb_py_demo1909
a1e2ad8098631658a2b1fcd3f56ceabdf7e828e8
[ "Apache-2.0" ]
null
null
null
#!/bin/bash import string if __name__ == "__main__": for x in range(33, 127): print( "%s > %s" % ( x, chr(x) ) ) for x in string.digits+string.ascii_letters+string.ascii_lowercase+string.ascii_uppercase: z = ord('0') y = ord(x) ^ z print("%s > %s xor %s => %s" % ( x, ord(x), ...
23.857143
94
0.52994
9f007b90ed8a1f3baafd98d95e6c7b7081780fc3
241
py
Python
SMS-Back-End/microservicio1/APIDB/Imparte.py
mresti/StudentsManagementSystem
a1d67af517379b249630cac70a55bdfd9f77c54a
[ "Apache-2.0" ]
null
null
null
SMS-Back-End/microservicio1/APIDB/Imparte.py
mresti/StudentsManagementSystem
a1d67af517379b249630cac70a55bdfd9f77c54a
[ "Apache-2.0" ]
null
null
null
SMS-Back-End/microservicio1/APIDB/Imparte.py
mresti/StudentsManagementSystem
a1d67af517379b249630cac70a55bdfd9f77c54a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Modelo de la relacion Imparte, siguiendo el esquema de la base de datos ''' class Imparte: def __init__(self): self.id_clase = "" self.id_asignatura = "" self.id_profesor = ""
21.909091
71
0.576763
2dce4be107cea6061538c413ff92da684aad55e7
2,246
py
Python
scintilla/scripts/DBCS.py
rangzee/notepad2
459da4c883d8808bf399522926bce90c232c134c
[ "MIT" ]
null
null
null
scintilla/scripts/DBCS.py
rangzee/notepad2
459da4c883d8808bf399522926bce90c232c134c
[ "MIT" ]
null
null
null
scintilla/scripts/DBCS.py
rangzee/notepad2
459da4c883d8808bf399522926bce90c232c134c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from enum import IntFlag class DBCSTailKind(IntFlag): Digit = 1 Punctuation = 2 Word = 4 Control = 8 All = 15 NonWord = 3 @staticmethod def get_kind(flags, ch_tail): if (flags & DBCSTailKind.Digit) and ch_tail.isdigit(): return DBCSTailKind.Digit if (flags & DBCSTailKi...
26.116279
103
0.695904
4a33a995384ea8c9d2b8647bf4341ccfb7cc9243
1,135
py
Python
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
2
2018-01-20T02:24:20.000Z
2018-06-07T18:16:59.000Z
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
null
null
null
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import re # 设置请求头 # 更换一下爬虫的User-Agent,这是最常规的爬虫设置 headers = { "User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'} # 获取天气信息 def get_weather(): html = requests.get("http://www.wea...
31.527778
142
0.65022
155309a51ea7171046c02268393cfa3173620384
2,890
py
Python
Cayenne/__init__.py
progval/oddluck-limnoria-plugins
8a681362f27f3fbb7ffc2b27dfa3f5c51d8f408c
[ "WTFPL" ]
37
2019-03-13T17:03:39.000Z
2022-02-03T09:31:32.000Z
Cayenne/__init__.py
progval/oddluck-limnoria-plugins
8a681362f27f3fbb7ffc2b27dfa3f5c51d8f408c
[ "WTFPL" ]
33
2019-03-29T01:16:05.000Z
2022-03-02T02:58:57.000Z
Cayenne/__init__.py
progval/oddluck-limnoria-plugins
8a681362f27f3fbb7ffc2b27dfa3f5c51d8f408c
[ "WTFPL" ]
17
2019-03-20T19:48:09.000Z
2022-02-03T09:30:50.000Z
### # Copyright (c) 2015, butterscotchstallion # Copyright (c) 2020, oddluck <oddluck@riseup.net> # 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...
38.533333
79
0.763668
0fa89a488715cd4b2716ac42d29c5be712a8a431
2,191
py
Python
get_data_plot.py
yuchen996/GoogleCloudCompute_example
e0b0bf245c57c3a41c71c8fc2cd9b2906c9f1187
[ "Apache-2.0" ]
null
null
null
get_data_plot.py
yuchen996/GoogleCloudCompute_example
e0b0bf245c57c3a41c71c8fc2cd9b2906c9f1187
[ "Apache-2.0" ]
null
null
null
get_data_plot.py
yuchen996/GoogleCloudCompute_example
e0b0bf245c57c3a41c71c8fc2cd9b2906c9f1187
[ "Apache-2.0" ]
null
null
null
import pandas as pd import requests import lxml.html as lh import pandas as pd import matplotlib.pyplot as plt import matplotlib matplotlib.use('Agg') import seaborn as sns from datetime import datetime as dt import time url='http://pokemondb.net/pokedex/all' #Create a handle, page, to handle the contents of the web...
28.089744
99
0.673209
2f51458e0d4100b3ac3c5d15ee59c2612d795b0e
49
py
Python
tests/resources/system_tests/test_breakpoints/mypkg_bar/bar.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
tests/resources/system_tests/test_breakpoints/mypkg_bar/bar.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
tests/resources/system_tests/test_breakpoints/mypkg_bar/bar.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
def do_bar(): assert 1 == 1 print('bye')
12.25
17
0.510204
78df435bcd0e2c3c8ed27179f4487208e2830d27
2,090
py
Python
src/insertion_sort.py
Darren-Haynes/Data_Structures
640f9ae8de58fbb034058f410ac70c0af14d7b60
[ "MIT" ]
null
null
null
src/insertion_sort.py
Darren-Haynes/Data_Structures
640f9ae8de58fbb034058f410ac70c0af14d7b60
[ "MIT" ]
null
null
null
src/insertion_sort.py
Darren-Haynes/Data_Structures
640f9ae8de58fbb034058f410ac70c0af14d7b60
[ "MIT" ]
null
null
null
"""Sort a list using the insertion sort algorithm.""" from random import randint, shuffle from timeit import timeit def insertion_sort(lst): """Insertion sort.""" for i in range(0, len(lst) - 1): if lst[i] > lst[i+1]: # import pdb; pdb.set_trace() lst[i], lst[i + 1] = lst[i +...
33.709677
80
0.538756
b6dcb6e5d28c18662e3e3058bc33c95b877dc224
416
py
Python
hsploit/searcher/db_manager/session_manager.py
nicolas-carolo/hsploit
66dede8549b418a2485b88dd6da28e96d60e74f5
[ "BSD-3-Clause" ]
10
2020-04-17T11:38:46.000Z
2021-11-12T01:07:50.000Z
hsploit/searcher/db_manager/session_manager.py
nicolas-carolo/HoundSploitBash
66dede8549b418a2485b88dd6da28e96d60e74f5
[ "BSD-3-Clause" ]
null
null
null
hsploit/searcher/db_manager/session_manager.py
nicolas-carolo/HoundSploitBash
66dede8549b418a2485b88dd6da28e96d60e74f5
[ "BSD-3-Clause" ]
3
2019-03-13T22:17:37.000Z
2019-04-11T10:37:22.000Z
import sqlalchemy from sqlalchemy.orm import sessionmaker import sys import os def start_session(): """ Start a new database session. :return: a new database session. """ init_path = os.path.expanduser("~") + "/.HoundSploit/" db_path = "sqlite:///" + init_path + "hound_db.sqlite3" engine =...
24.470588
59
0.682692
9a03a8920c90250e5ec4d6bae3baf4625ced51de
7,418
py
Python
langchangetrack/tsconstruction/distributional/scripts/embedding_displacements.py
mattdahl/langchangetrack
8ee73a0e9ad4026f4cc961e05aedabac9e4a9650
[ "BSD-3-Clause" ]
null
null
null
langchangetrack/tsconstruction/distributional/scripts/embedding_displacements.py
mattdahl/langchangetrack
8ee73a0e9ad4026f4cc961e05aedabac9e4a9650
[ "BSD-3-Clause" ]
null
null
null
langchangetrack/tsconstruction/distributional/scripts/embedding_displacements.py
mattdahl/langchangetrack
8ee73a0e9ad4026f4cc961e05aedabac9e4a9650
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from argparse import ArgumentParser import os from os import path import pickle import numpy as np import scipy import itertools from scipy.spatial.distance import cosine, euclidean, norm import pandas as pd import more_itertools from joblib import Parallel, delayed impo...
41.211111
138
0.637503
5dfa8190844f26bfc58b8bea3fb9a89aa844401c
467
py
Python
2018/src/main/python/1a.py
ununhexium/adventofcode
d5c38e55b9574137ed6b351a64f80d764e7e61a9
[ "Unlicense" ]
null
null
null
2018/src/main/python/1a.py
ununhexium/adventofcode
d5c38e55b9574137ed6b351a64f80d764e7e61a9
[ "Unlicense" ]
4
2021-03-31T20:06:10.000Z
2021-03-31T21:45:21.000Z
2018/src/main/python/1a.py
ununhexium/adventofcode
d5c38e55b9574137ed6b351a64f80d764e7e61a9
[ "Unlicense" ]
null
null
null
with open("../resources/1.input.txt") as f: txt = f.readlines() previous = set() current = 0 iteration = 0 while True: iteration += 1 for l in txt: # print(sorted(previous)) if current in previous: break else: previous.add(current) current += int...
20.304348
89
0.567452
7c0fba9f938e1ab7c92b2ac5aed3d3ab45519c8a
6,863
py
Python
examples/jet_substructure/models.py
maltanar/logicnets-1
0afa2aa5b39cb484db0fcaa542e55c8cbe586119
[ "Apache-2.0" ]
null
null
null
examples/jet_substructure/models.py
maltanar/logicnets-1
0afa2aa5b39cb484db0fcaa542e55c8cbe586119
[ "Apache-2.0" ]
null
null
null
examples/jet_substructure/models.py
maltanar/logicnets-1
0afa2aa5b39cb484db0fcaa542e55c8cbe586119
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Xilinx, Inc # # 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...
51.992424
275
0.68964
eab9889977de13311f105b55da2e25c051e4f7bd
2,607
py
Python
scripts/check_docs.py
mithunpaul08/allennlp
c47318b43ceb8f38e648380c2a5618cfde8adb3b
[ "Apache-2.0" ]
1
2019-01-15T15:57:42.000Z
2019-01-15T15:57:42.000Z
scripts/check_docs.py
tokestermw/allennlp
0b7bb205a78cfef32e9122057df7fe46568a2f0d
[ "Apache-2.0" ]
null
null
null
scripts/check_docs.py
tokestermw/allennlp
0b7bb205a78cfef32e9122057df7fe46568a2f0d
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # pylint: disable=invalid-name,redefined-outer-name from glob import glob import os import re import sys from typing import Set DOCS_DIR = 'doc/api' MODULE_REGEX = r"\ballennlp\.[a-z0-9_.]+\b" MODULE_GLOB = 'allennlp/**/*.py' MODULES_THAT_NEED_NO_DOCS: Set[str] = { # No docs at top leve...
32.185185
103
0.630993
5eeb74bd697c6065f87b7328ac67c2640182f00f
32,419
py
Python
mpf/tests/MpfTestCase.py
Lamoraldus/mpf
77170eacd4932738d7f7c59fb63a0b689dce2fd1
[ "MIT" ]
null
null
null
mpf/tests/MpfTestCase.py
Lamoraldus/mpf
77170eacd4932738d7f7c59fb63a0b689dce2fd1
[ "MIT" ]
null
null
null
mpf/tests/MpfTestCase.py
Lamoraldus/mpf
77170eacd4932738d7f7c59fb63a0b689dce2fd1
[ "MIT" ]
null
null
null
"""Baseclass for all tests.""" import copy import inspect import logging import os import sys import time import unittest from unittest.mock import * import asyncio from asyncio import events from typing import Any from mpf.core.logging import LogMixin from mpf.core.rgb_color import RGBColor from mpf.tests.TestData...
36.303471
129
0.624726
122ac914a4c2f07a0656b05fe802ff66ffe2144f
9,670
py
Python
docs/conf.py
seedinvest/django-spaghetti-and-meatballs
de897dbc2c5e2460618dc693b591703b088182e7
[ "MIT" ]
null
null
null
docs/conf.py
seedinvest/django-spaghetti-and-meatballs
de897dbc2c5e2460618dc693b591703b088182e7
[ "MIT" ]
null
null
null
docs/conf.py
seedinvest/django-spaghetti-and-meatballs
de897dbc2c5e2460618dc693b591703b088182e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # django-spaghetti-and-meatballs documentation build configuration file, created by # sphinx-quickstart on Sat Aug 22 00:56:36 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
32.668919
101
0.722544
c69ee60b0b550842ca66aeb4da13d9b6f3045ecf
4,185
py
Python
UE_Phone/benchmark_add_channel.py
kkdas088/Cogradio_Testbed
115889011f490969ca3870601d797cd179374a08
[ "Unlicense" ]
1
2017-01-04T17:07:19.000Z
2017-01-04T17:07:19.000Z
UE_Phone/benchmark_add_channel.py
kkdas088/Cogradio_Testbed
115889011f490969ca3870601d797cd179374a08
[ "Unlicense" ]
null
null
null
UE_Phone/benchmark_add_channel.py
kkdas088/Cogradio_Testbed
115889011f490969ca3870601d797cd179374a08
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # Copyright 2010,2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your opt...
40.631068
96
0.620072
eefd2e948b684c37391bae1cb97650aad821db9f
8,866
py
Python
tools/openresolverchecker.py
JakubOnderka/misp-warninglists
78590f35269658cceb009d0fe282d5274e74ba89
[ "CC0-1.0" ]
277
2016-04-20T03:30:03.000Z
2022-03-10T05:25:59.000Z
tools/openresolverchecker.py
JakubOnderka/misp-warninglists
78590f35269658cceb009d0fe282d5274e74ba89
[ "CC0-1.0" ]
184
2016-04-20T09:38:28.000Z
2022-03-31T08:26:03.000Z
tools/openresolverchecker.py
JakubOnderka/misp-warninglists
78590f35269658cceb009d0fe282d5274e74ba89
[ "CC0-1.0" ]
155
2016-04-20T09:12:32.000Z
2022-03-30T15:28:12.000Z
#!/usr/bin/env python3 # Tool to check for openresolvers (from list of source IP). # # Dragon Research Group project # # Software is free software released under the "Modified BSD license" # # Copyright (c) 2015 Alexandre Dulaunoy - a@foo.be # # Has been modified by Edvard Rejthar, CSIRT.cz at MISP Hackathon 7 Dec 2016...
46.663158
269
0.546808
029b8481cfec11ba32ee42e0500a75bf223905ca
17,302
py
Python
upload_components/component-manager/idf_component_manager/core.py
hfudev/github-actions
2b246a4badf0b280ba32715d3354cab48f0d2b28
[ "Apache-2.0" ]
null
null
null
upload_components/component-manager/idf_component_manager/core.py
hfudev/github-actions
2b246a4badf0b280ba32715d3354cab48f0d2b28
[ "Apache-2.0" ]
null
null
null
upload_components/component-manager/idf_component_manager/core.py
hfudev/github-actions
2b246a4badf0b280ba32715d3354cab48f0d2b28
[ "Apache-2.0" ]
null
null
null
"""Core module of component manager""" from __future__ import print_function import os import re import shutil import tempfile import time from datetime import datetime, timedelta from io import open from pathlib import Path from semantic_version import SimpleSpec from tqdm import tqdm from idf_component_tools.api_c...
43.147132
119
0.63247
261d0bb1168399511fe5aa8876a0789cf1c7515e
566
py
Python
server/src/tests/samples/genericTypes10.py
mewbak/pyright
f068baa6007f6d39136386b6f178bb6761197248
[ "MIT" ]
null
null
null
server/src/tests/samples/genericTypes10.py
mewbak/pyright
f068baa6007f6d39136386b6f178bb6761197248
[ "MIT" ]
null
null
null
server/src/tests/samples/genericTypes10.py
mewbak/pyright
f068baa6007f6d39136386b6f178bb6761197248
[ "MIT" ]
null
null
null
# This sample tests that a Generic base class overrides the type parameter # ordering of other type parameters. from typing import Generic, Iterable, TypeVar _T1 = TypeVar('_T1') _T2 = TypeVar('_T2', str) class Foo(Iterable[_T2], Generic[_T1, _T2]): def __init__(self, a: _T1, b: _T2): pass def foo(s...
22.64
74
0.660777
b91d3360331de0578fb9e7d9276e8ee99085bc2f
1,118
py
Python
compass/utils/flags.py
huawei-cloud/compass
1f09b2d270917ffcc3829e533dd90c04ef664ff6
[ "Apache-2.0" ]
2
2015-12-07T06:47:16.000Z
2016-01-18T05:27:52.000Z
compass/utils/flags.py
SysCompass/compass-core
b04d02ae97d6fbeea9a6c42c6d368778c371ccde
[ "Apache-2.0" ]
1
2016-03-17T17:36:56.000Z
2016-03-17T17:36:56.000Z
compass/utils/flags.py
SysCompass/compass-core
b04d02ae97d6fbeea9a6c42c6d368778c371ccde
[ "Apache-2.0" ]
4
2016-06-13T17:19:14.000Z
2018-09-10T03:11:51.000Z
"""Module to load flags. .. moduleauthor:: Xiaodong Wang <xiaodongwang@huawei.com> """ import sys from optparse import OptionParser PARSER = OptionParser() OPTIONS = None def init(): """Init flag parsing. """ global OPTIONS (options, argv) = PARSER.parse_args() sys.argv = [sys.argv[0]] + ar...
24.304348
67
0.601073
a6e2bd66303a057ce75901d39aa0a64749cbfa53
8,761
py
Python
ml/deploy/utils.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
1
2022-02-21T21:06:29.000Z
2022-02-21T21:06:29.000Z
ml/deploy/utils.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
ml/deploy/utils.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
import os import glob import errno import random from pathlib import Path import torch as th from ml import io, logging def get_calibration_files(calibration_data, max_calibration_size=None, allowed_extensions=(".jpeg", ".jpg", ".png")): """Returns a list of all filenames ending with `allowed_extensions` found in...
41.719048
125
0.599475
f20e5b99d6acf4fcef00370da66692b69789ac4c
915
py
Python
src/garage/envs/wrappers/fire_reset.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
1
2021-03-02T08:43:20.000Z
2021-03-02T08:43:20.000Z
src/garage/envs/wrappers/fire_reset.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
src/garage/envs/wrappers/fire_reset.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
"""Fire reset wrapper for gym.Env.""" import gym class FireReset(gym.Wrapper): """Fire reset wrapper for gym.Env. Take action "fire" on reset. Args: env (gym.Env): The environment to be wrapped. """ def __init__(self, env): super().__init__(env) assert env...
28.59375
69
0.567213
bf0d3cb69fa00bea0fa68b9ec0ed54d6951e9b20
96
py
Python
venv/lib/python3.8/site-packages/poetry/console/commands/__init__.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/console/commands/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/console/commands/__init__.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/9d/08/7c/18a7a498302ec6661ccc84ece5e906563ec815e3dfb3aad28a64457d9f
96
96
0.895833
1741b4707370258841db422558ccf417f4a1bc89
2,293
py
Python
word_processing.py
hanee211/paper14
edb0739e879284aaa2b03b41252b1d4a724bb01d
[ "MIT" ]
null
null
null
word_processing.py
hanee211/paper14
edb0739e879284aaa2b03b41252b1d4a724bb01d
[ "MIT" ]
null
null
null
word_processing.py
hanee211/paper14
edb0739e879284aaa2b03b41252b1d4a724bb01d
[ "MIT" ]
null
null
null
import numpy as np #read embedding word_file = 'test_word' embedding_file = 'test_word_embedding_pad_eos.txt' sentence_file = 'test_text.txt' def preprocessing(text): _l = text.strip() _l = _l.replace('\n', '') #_l = _l.lower() return _l def get_wordList_from_text(): t_wordList = list() idx...
22.048077
81
0.64457
775fe347ade1df5d318642e5c355434dc0eee046
137
py
Python
Q4/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
Q4/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
Q4/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
mx = 0 for x in range(100,1000): for y in range(100,1000): pr = x*y if str(pr) == str(pr)[::-1]: if pr>mx: mx = pr print(mx)
15.222222
30
0.532847
1f0e83a3b3ec6f9bfc26a5267b954e68c079129a
961
py
Python
ec2-api-8.0.0/ec2api/s3/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
ec2-api-8.0.0/ec2api/s3/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
ec2-api-8.0.0/ec2api/s3/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
38.44
79
0.690947
807f6b45ed71fb688e39945a567fb9946c08ca3e
10,699
py
Python
utils.py
ashishsnaik/CarND-Advanced-Lane-Lines-P2
0887f4d170efb05217ed9f74e0e0d5d903cf1cb4
[ "MIT" ]
null
null
null
utils.py
ashishsnaik/CarND-Advanced-Lane-Lines-P2
0887f4d170efb05217ed9f74e0e0d5d903cf1cb4
[ "MIT" ]
null
null
null
utils.py
ashishsnaik/CarND-Advanced-Lane-Lines-P2
0887f4d170efb05217ed9f74e0e0d5d903cf1cb4
[ "MIT" ]
null
null
null
# Includes import os import numpy as np import cv2 import glob import math import time import matplotlib.pyplot as plt from moviepy.editor import VideoFileClip # Default HSV Binary Thresholds _HSV_YW_THRESHOLDS = [np.array([15, 127, 127], dtype=np.uint8), # yellow_dark np.array([25, 255, 255], ...
34.850163
107
0.665015
a2a036e02a1c889705274fd1b9947a0b962c42b2
4,126
py
Python
python/paddle/fluid/tests/unittests/test_lookup_sparse_table_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
2
2017-05-15T06:52:18.000Z
2017-06-13T11:55:11.000Z
python/paddle/fluid/tests/unittests/test_lookup_sparse_table_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_lookup_sparse_table_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
4
2020-07-27T13:24:03.000Z
2020-08-06T08:20:32.000Z
# Copyright (c) 2018 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 app...
34.672269
99
0.608822
65296f4ad5107211ac04a5f852a66154519bc3d9
10,599
py
Python
discordbot.py
WhiteF326/Ottosei_py
e8775ce0363ad5482f2cf0664b8ff0a9fe5003d9
[ "MIT" ]
null
null
null
discordbot.py
WhiteF326/Ottosei_py
e8775ce0363ad5482f2cf0664b8ff0a9fe5003d9
[ "MIT" ]
null
null
null
discordbot.py
WhiteF326/Ottosei_py
e8775ce0363ad5482f2cf0664b8ff0a9fe5003d9
[ "MIT" ]
null
null
null
from discord.ext import commands import time import requests import json import copy from datetime import datetime, timedelta, timezone import os import traceback bot = commands.Bot(command_prefix='/') token = os.environ['DISCORD_BOT_TOKEN'] Hololive = { "UCp6993wxpyDPHUpavwDFqgg": [ "ときのそら", "ht...
33.330189
175
0.634399
4b64cc4fafbe0c456fdf3b1350126d3d6cba6b6f
24,714
py
Python
pybulletgym/enjoy_TF_PybulletInvertedPendulumSwingup_v0_2017may.py
benelot/bullet-gym
863cbc25c74e3fcecdc84f68bde0cbba1a65f070
[ "MIT" ]
55
2017-04-12T19:12:57.000Z
2021-04-17T12:54:50.000Z
pybulletgym/enjoy_TF_PybulletInvertedPendulumSwingup_v0_2017may.py
shipjobs/bullet-gym
1e064b135175546172acd1a5a996863469759b6d
[ "MIT" ]
10
2017-03-25T20:55:30.000Z
2017-07-14T08:27:42.000Z
pybulletgym/enjoy_TF_PybulletInvertedPendulumSwingup_v0_2017may.py
shipjobs/bullet-gym
1e064b135175546172acd1a5a996863469759b6d
[ "MIT" ]
9
2017-11-04T15:33:40.000Z
2021-08-29T19:36:31.000Z
import gym, roboschool import numpy as np import pybullet as p import pybulletgym.envs import time def relu(x): return np.maximum(x, 0) class SmallReactivePolicy: "Simple multi-layer perceptron policy, no internal state" def __init__(self, observation_space, action_space): assert weights_dense1_w....
141.222857
606
0.551712
95a8fc759eb476d0882ba2a1edffdb1bdf131191
5,366
py
Python
locations/spiders/finishline.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
297
2017-12-07T01:29:14.000Z
2022-03-29T06:58:01.000Z
locations/spiders/finishline.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
2,770
2017-11-28T04:20:21.000Z
2022-03-31T11:29:16.000Z
locations/spiders/finishline.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
111
2017-11-27T21:40:02.000Z
2022-01-22T01:21:52.000Z
import scrapy import re from locations.items import GeojsonPointItem from locations.hours import OpeningHours class FinishlineSpider(scrapy.Spider): name = "finishline" item_attributes = { 'brand': "Finish Line" } allowed_domains = ["stores.finishline.com"] download_delay = 0.5 start_urls = ( ...
51.104762
134
0.56858
2c9dbc30c345cbf6f28cdfc7bc6d7f736f387d86
2,337
py
Python
bots/autoreply.py
alexvilla00/NASA-BOT
19048e524d251e9dc147e115e064ddd9b53978b6
[ "MIT" ]
null
null
null
bots/autoreply.py
alexvilla00/NASA-BOT
19048e524d251e9dc147e115e064ddd9b53978b6
[ "MIT" ]
1
2020-10-04T17:20:54.000Z
2020-10-04T17:21:17.000Z
bots/autoreply.py
alexvilla00/NASA-BOT
19048e524d251e9dc147e115e064ddd9b53978b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # tweepy-bots/bots/autoreply.py import tweepy import logging import time import functions as fc import DBinterface as DB logging.basicConfig(level=logging.INFO) logger = logging.getLogger() FILE_NAME = 'last_seen.txt' def read_last_seen(FILE_NAME): file_read= open(FILE_NAME, 'r') last_...
35.409091
145
0.634146
3716dec8d130f7ecd66af454afcf86bd79da125b
3,149
py
Python
main/cloudfoundry_client/v3/domains.py
alogishetty/cf-python-client
3c789619ddc3c6911aba3a9124a9edd3dd32dd3c
[ "Apache-2.0" ]
null
null
null
main/cloudfoundry_client/v3/domains.py
alogishetty/cf-python-client
3c789619ddc3c6911aba3a9124a9edd3dd32dd3c
[ "Apache-2.0" ]
null
null
null
main/cloudfoundry_client/v3/domains.py
alogishetty/cf-python-client
3c789619ddc3c6911aba3a9124a9edd3dd32dd3c
[ "Apache-2.0" ]
1
2020-09-02T09:09:11.000Z
2020-09-02T09:09:11.000Z
from typing import Optional from cloudfoundry_client.v3.entities import EntityManager, ToOneRelationship, ToManyRelationship, PaginateEntities, \ Entity class Domain(Entity): def __init__(self, target_endpoint: str, entity_manager: 'EntityManager', **kwargs): super(Domain, self).__init__(target_endpo...
45.637681
117
0.656716
da83d1a7c28ab807426dc171a186dc0097529e75
53
py
Python
src/dataBot.py
wsricardo/dlanabot
5cdd57f026bf2162f2f0f94254f8640c84b4c317
[ "MIT" ]
null
null
null
src/dataBot.py
wsricardo/dlanabot
5cdd57f026bf2162f2f0f94254f8640c84b4c317
[ "MIT" ]
null
null
null
src/dataBot.py
wsricardo/dlanabot
5cdd57f026bf2162f2f0f94254f8640c84b4c317
[ "MIT" ]
null
null
null
# Get data and info from database (sql, psjon, csv)
17.666667
51
0.698113
d1b340854b2d8bf89be1aea36c53774c422f4676
508
py
Python
web/app/syzygy/business_reviews/__init__.py
aaronSchanck/SepTech
323b7db183928b43576b0f13477fccdd192fd3fa
[ "Apache-2.0" ]
1
2021-09-10T17:51:40.000Z
2021-09-10T17:51:40.000Z
web/app/syzygy/business_reviews/__init__.py
ItsmeCurly/SepTech
323b7db183928b43576b0f13477fccdd192fd3fa
[ "Apache-2.0" ]
2
2021-04-30T15:57:12.000Z
2021-05-01T17:55:51.000Z
web/app/syzygy/business_reviews/__init__.py
ItsmeCurly/SepTech
323b7db183928b43576b0f13477fccdd192fd3fa
[ "Apache-2.0" ]
1
2021-09-10T17:51:10.000Z
2021-09-10T17:51:10.000Z
"""/web/app/syzygy/business_reviews/__init__.py Author: Adam Green (adam.green1@maine.edu) [Description] Classes: [ClassesList] Functions: [FunctionsList] """ import logging from .model import BusinessReview from .schema import BusinessReviewSchema BASE_ROUTE = "business_reviews" log = logging.getLog...
16.387097
72
0.751969
853c6a439e73fb7e7ecbc621d6f9f1a768912899
906
py
Python
pybgmm/prior/wishart.py
junlulocky/BGMM
9e3fb310a48733e66770059c8157d55e9d341529
[ "MIT" ]
59
2017-05-21T04:04:11.000Z
2020-11-25T00:29:17.000Z
pybgmm/prior/wishart.py
junlulocky/BGMM
9e3fb310a48733e66770059c8157d55e9d341529
[ "MIT" ]
null
null
null
pybgmm/prior/wishart.py
junlulocky/BGMM
9e3fb310a48733e66770059c8157d55e9d341529
[ "MIT" ]
21
2017-09-13T22:46:04.000Z
2019-05-05T20:07:52.000Z
""" Functions for generating values from Wishart and Inverse-Wishart distributions. Code taken from http://code.google.com/p/haines/source/browse/gcp/wishart.py. Author: Herman Kamper Contact: kamperh@gmail.com Date: 2013, 2014 """ import math import numpy as np import random def wishrnd(sigma, v_0, C=None): "...
27.454545
79
0.64128
19781ce20cf5f747b90789f3e4f26e791d378c1c
31,435
py
Python
Creator/tegar_dec.py
shyamjangid07/Reverse-Engineering
469efabcd6057f7895d8d891f1fabdf2ffe730b0
[ "Apache-2.0" ]
337
2020-08-15T12:22:14.000Z
2022-03-29T06:05:15.000Z
Creator/tegar_dec.py
Wh014M/Reverse-Engineering
f7aae2c43f7ea4a6730964d085c07814b6660a53
[ "Apache-2.0" ]
3
2020-11-12T14:30:48.000Z
2021-05-18T16:56:22.000Z
Creator/tegar_dec.py
Wh014M/Reverse-Engineering
f7aae2c43f7ea4a6730964d085c07814b6660a53
[ "Apache-2.0" ]
83
2020-08-15T00:22:58.000Z
2022-03-31T08:40:23.000Z
# Decompiled by HTR-TECH | TAHMID RAYAT # Github : https://github.com/htr-tech #--------------------------------------- # Auto Dis Parser 2.2.0 # Source File : tegar.py # Time : Sun Aug 9 11:07:58 2020 #--------------------------------------- #!usr/bin/python2.7 # -*- coding: UTF-8 -*- # Hayo mau ngapain # Jangan di ...
33.873922
1,178
0.481183
5c96e2c873512634ce89117ea5985ff1d90d33b9
738
py
Python
sner/server/visuals/views/__init__.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
9
2019-05-15T11:33:43.000Z
2022-02-17T04:05:28.000Z
sner/server/visuals/views/__init__.py
bodik/sner4
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
1
2019-03-01T11:48:13.000Z
2019-03-01T11:48:13.000Z
sner/server/visuals/views/__init__.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
3
2020-03-03T21:06:37.000Z
2021-01-11T14:40:56.000Z
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file. """ visuals views """ from flask import Blueprint, render_template blueprint = Blueprint('visuals', __name__) # pylint: disable=invalid-name @blueprint.route('/') def index_route(): """visuals index""" return render_te...
33.545455
100
0.762873
c0c80c83e5f548030395f08007b5fa7ed1c8de77
4,500
py
Python
sdk/python/pulumi_azure_native/eventgrid/v20190601/get_domain.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20190601/get_domain.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/v20190601/get_domain.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
31.25
129
0.623333
bc22f80ddad4502af3748866fc3e7191cc4190fc
9,875
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/subtlv_60e12b7ebaca7628a30e30506e5025bc.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/subtlv_60e12b7ebaca7628a30e30506e5025bc.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
uhd_restpy/testplatform/sessions/ixnetwork/globals/topology/tlveditor/subtlv_60e12b7ebaca7628a30e30506e5025bc.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
37.547529
164
0.647291
cf708f2f390ea385b88c6212bca6316d16628844
550,165
py
Python
pythonocc/lib/OCC/Extrema.py
mbattistello/lambda_converters
0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3
[ "MIT" ]
2
2017-10-30T15:51:48.000Z
2020-11-04T02:23:36.000Z
pythonocc/lib/OCC/Extrema.py
mbattistello/lambda_converters
0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3
[ "MIT" ]
null
null
null
pythonocc/lib/OCC/Extrema.py
mbattistello/lambda_converters
0dfef8927d3ddbc74e5c8ce1c38701ea182a27b3
[ "MIT" ]
4
2017-11-29T05:24:34.000Z
2020-03-05T23:23:23.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.10 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _Extrema...
34.747995
540
0.699796
7dd58baab9268c94f0a51c452043a4d757cd46f6
6,051
py
Python
clastic/tests/test_routing.py
mahmoud/clastic
4dd03cc25247dcedbb3e0cd1089bef8eefd32bf7
[ "BSD-3-Clause" ]
140
2015-02-11T19:03:30.000Z
2022-03-12T23:30:46.000Z
clastic/tests/test_routing.py
mahmoud/clastic
4dd03cc25247dcedbb3e0cd1089bef8eefd32bf7
[ "BSD-3-Clause" ]
21
2015-09-16T04:33:09.000Z
2021-11-08T04:46:32.000Z
clastic/tests/test_routing.py
mahmoud/clastic
4dd03cc25247dcedbb3e0cd1089bef8eefd32bf7
[ "BSD-3-Clause" ]
22
2015-09-15T19:30:06.000Z
2021-11-05T17:22:20.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from pytest import raises from clastic import Application, render_basic, Response from clastic.application import Application from clastic.route import Route from clastic.route import (InvalidEndpoint, InvalidPattern, ...
30.255
86
0.606346
1dcf3035c7235829dee7f39f6c6c0ee5f44f46aa
3,022
py
Python
joj/horse/schemas/problem_set.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
6
2020-12-28T07:05:52.000Z
2022-01-16T04:44:02.000Z
joj/horse/schemas/problem_set.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
56
2021-02-02T02:21:52.000Z
2022-03-13T02:39:05.000Z
joj/horse/schemas/problem_set.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
3
2021-01-28T17:52:58.000Z
2021-12-17T17:42:42.000Z
from datetime import datetime from typing import TYPE_CHECKING, List, Optional from uuid import UUID from sqlmodel import Field from joj.horse.schemas import BaseModel from joj.horse.schemas.base import ( DomainMixin, EditMetaclass, IDMixin, LongText, NoneEmptyLongStr, TimestampMixin, URLC...
28.780952
88
0.692588
6662135cff660d996112182a175ac9735f536668
8,729
py
Python
safewayclipclip/main.py
jprouty/safewayClipClip
7c5bb540f3a13623e672000089fe763b68bf92bc
[ "MIT" ]
null
null
null
safewayclipclip/main.py
jprouty/safewayClipClip
7c5bb540f3a13623e672000089fe763b68bf92bc
[ "MIT" ]
null
null
null
safewayclipclip/main.py
jprouty/safewayClipClip
7c5bb540f3a13623e672000089fe763b68bf92bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This script clips all available Safeway coupons. import argparse import atexit from functools import partial import logging import os import sys import time from PyQt5.QtCore import ( Qt, QMetaObject, QObject, QThread, pyqtSlot, pyqtSignal) from PyQt5.QtGui import QKeySequence from PyQt5...
31.857664
79
0.646122
f2a8cb8348419d9436ad82901f12fbd0aa50705e
4,719
py
Python
cobs/examples/rule_based_HVAC_controller.py
odtoolkit/COBS
b7a372e339769bdb033faec05341091394b0feec
[ "MIT" ]
11
2020-09-23T15:28:21.000Z
2022-03-21T21:22:40.000Z
cobs/examples/rule_based_HVAC_controller.py
odtoolkit/COBS
b7a372e339769bdb033faec05341091394b0feec
[ "MIT" ]
1
2021-06-29T17:01:14.000Z
2021-07-13T06:15:16.000Z
cobs/examples/rule_based_HVAC_controller.py
odtoolkit/COBS
b7a372e339769bdb033faec05341091394b0feec
[ "MIT" ]
3
2020-09-24T02:13:45.000Z
2021-11-06T07:01:29.000Z
""" This is an example of how to implement a rule-based controller. This controller set the heating setpoint to 20 and the cooling setpoint to 24 when the zone is occupied, and the heating setpoint to 18 and the cooling setpoint to 26 when the zone is unoccupied. There is a minor bug with the EnergyPlus occupancy state...
41.394737
113
0.508159
6293b3d0c109cb7ab43983ecf79f03c8e30deb04
2,871
py
Python
benchmarks/recommendation/tensorflow/wide_deep_large_ds/inference/fp32/model_init.py
gyshi/intel-models
4ead44aa254a84109ac8019f5d386e3adb75ac26
[ "Apache-2.0" ]
1
2019-09-11T21:41:36.000Z
2019-09-11T21:41:36.000Z
benchmarks/recommendation/tensorflow/wide_deep_large_ds/inference/fp32/model_init.py
gyshi/intel-models
4ead44aa254a84109ac8019f5d386e3adb75ac26
[ "Apache-2.0" ]
null
null
null
benchmarks/recommendation/tensorflow/wide_deep_large_ds/inference/fp32/model_init.py
gyshi/intel-models
4ead44aa254a84109ac8019f5d386e3adb75ac26
[ "Apache-2.0" ]
1
2019-09-11T21:41:51.000Z
2019-09-11T21:41:51.000Z
# # -*- coding: utf-8 -*- # # Copyright (c) 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
38.797297
103
0.688959
f9238bf65bf8f77172aa953b37749da996670996
1,156
py
Python
password_generator/urls.py
JaminCO/Passwordgen
f39b2b9e98b58529bde1803ae9242d87222e10be
[ "Apache-2.0" ]
null
null
null
password_generator/urls.py
JaminCO/Passwordgen
f39b2b9e98b58529bde1803ae9242d87222e10be
[ "Apache-2.0" ]
null
null
null
password_generator/urls.py
JaminCO/Passwordgen
f39b2b9e98b58529bde1803ae9242d87222e10be
[ "Apache-2.0" ]
null
null
null
"""password_generator 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='...
39.862069
78
0.718858
e6677a837c2d2a17c41c668fa7dfed49a5b396a3
51,206
py
Python
sympy/integrals/prde.py
shivangdubey/sympy
bd3ddd4c71d439c8b623f69a02274dd8a8a82198
[ "BSD-3-Clause" ]
2
2019-05-18T22:36:49.000Z
2019-05-24T05:56:16.000Z
sympy/integrals/prde.py
mmelotti/sympy
bea29026d27cc50c2e6a5501b6a70a9629ed3e18
[ "BSD-3-Clause" ]
2
2020-08-18T15:21:59.000Z
2020-08-18T19:35:29.000Z
sympy/integrals/prde.py
mmelotti/sympy
bea29026d27cc50c2e6a5501b6a70a9629ed3e18
[ "BSD-3-Clause" ]
3
2019-05-18T21:32:31.000Z
2019-07-26T11:05:46.000Z
""" Algorithms for solving Parametric Risch Differential Equations. The methods used for solving Parametric Risch Differential Equations parallel those for solving Risch Differential Equations. See the outline in the docstring of rde.py for more information. The Parametric Risch Differential Equation problem is, giv...
40.193093
110
0.561399
e87145e890a338289f20d90b5b8fcddabdfb0609
5,449
py
Python
code/model_train_helper_class.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/model_train_helper_class.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/model_train_helper_class.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
from structure_helper_class import structure_helper import numpy as np import pandas as pd from tabulate import tabulate class model_train_helper: def get_prediction_dict(structure_name_to_object_map, model, model_str): composition_ratio_to_structure_names_list_map = structure_helper.get_com...
54.49
161
0.650762
d9791481044f3ac8489b62c510f484f3bd120d6d
13,651
py
Python
TKEanalyst/profile_analyst.py
sschwindt/TKEanalyst
bb6ca6a98133e4e9c822c0d20188fab0cb2adb43
[ "BSD-3-Clause" ]
null
null
null
TKEanalyst/profile_analyst.py
sschwindt/TKEanalyst
bb6ca6a98133e4e9c822c0d20188fab0cb2adb43
[ "BSD-3-Clause" ]
null
null
null
TKEanalyst/profile_analyst.py
sschwindt/TKEanalyst
bb6ca6a98133e4e9c822c0d20188fab0cb2adb43
[ "BSD-3-Clause" ]
null
null
null
""" Load ADV measurements and calculate TKE with plot options Originally coded in Matlab at Nepf Lab (MIT) Re-written in Python by Sebastian Schwindt (2022) """ # import standard Python libraries import sys import os # import particular Python libraries try: import pandas as _pd import numpy as _np...
48.928315
148
0.583181
f3828c1014492b3f97df0d01d177c7323dd5bc67
918
py
Python
backend/backend/urls.py
RebornBeat/CodeEmerge
81066b1be8690c4600e3c656d7da45f035ab2ad7
[ "MIT" ]
null
null
null
backend/backend/urls.py
RebornBeat/CodeEmerge
81066b1be8690c4600e3c656d7da45f035ab2ad7
[ "MIT" ]
null
null
null
backend/backend/urls.py
RebornBeat/CodeEmerge
81066b1be8690c4600e3c656d7da45f035ab2ad7
[ "MIT" ]
null
null
null
"""backend 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...
34
77
0.708061
8fd8f5a562e5305805d3eb4065984297899534e3
197
py
Python
image/admin.py
martingathu/personal-gallery
9fa662c886326fcbbd8c48de3e945916da73c7b8
[ "MIT" ]
null
null
null
image/admin.py
martingathu/personal-gallery
9fa662c886326fcbbd8c48de3e945916da73c7b8
[ "MIT" ]
6
2021-03-19T03:59:16.000Z
2021-09-22T19:05:43.000Z
image/admin.py
martingathu/personal-gallery
9fa662c886326fcbbd8c48de3e945916da73c7b8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Images, Category, Location # Register your models here. admin.site.register(Images) admin.site.register(Category) admin.site.register(Location)
28.142857
46
0.817259
0427a2eb029ef6efc96cb82c47c250a63ef112a5
140
py
Python
pyrossgeo/__init__.py
hidekb/PyRossGeo
0d245a547add212f27be00bf234235cbd1db65f9
[ "MIT" ]
12
2020-05-12T09:18:48.000Z
2020-10-23T13:29:24.000Z
pyrossgeo/__init__.py
hidekb/PyRossGeo
0d245a547add212f27be00bf234235cbd1db65f9
[ "MIT" ]
null
null
null
pyrossgeo/__init__.py
hidekb/PyRossGeo
0d245a547add212f27be00bf234235cbd1db65f9
[ "MIT" ]
5
2020-05-15T15:53:08.000Z
2020-07-20T23:31:38.000Z
from .mft import * import pyrossgeo.utils from pyrossgeo.Simulation import Simulation ## current version of PyRossGeo __version__="1.0.8"
17.5
43
0.792857
fd5f8443015fd3bca44a98713566ea646a3c93ff
284
py
Python
414.third-maximum-number.py
elfgzp/leetCode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
3
2019-04-12T06:22:56.000Z
2019-05-04T04:25:01.000Z
414.third-maximum-number.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
414.third-maximum-number.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
class Solution: def thirdMax(self, nums: List[int]) -> int: if not nums: return float('-inf') nums = list(set(nums)) nums.sort(reverse=True) if len(nums) < 3: return nums[0] return nums[2]
21.846154
47
0.461268
0544a5b29fd54f3213c12aec35221fd189042944
734
py
Python
scripts/GenerateSampleIndex.py
jboboyle/DEC_modifications
5d053f5dbb4d7f7c43af1844a7dbe95ed4f1ce7e
[ "MIT" ]
6
2021-01-09T05:29:19.000Z
2021-09-02T00:14:40.000Z
scripts/GenerateSampleIndex.py
jboboyle/DEC_modifications
5d053f5dbb4d7f7c43af1844a7dbe95ed4f1ce7e
[ "MIT" ]
3
2020-12-01T16:45:24.000Z
2020-12-01T16:46:10.000Z
scripts/GenerateSampleIndex.py
jboboyle/DEC_modifications
5d053f5dbb4d7f7c43af1844a7dbe95ed4f1ce7e
[ "MIT" ]
1
2021-07-13T18:04:45.000Z
2021-07-13T18:04:45.000Z
import argparse import os import sys sys.path.insert(0, '../RISCluster/') import utils if __name__ == '__main__': parser = argparse.ArgumentParser(description='Enter sample number.') parser.add_argument( 'M', metavar='M', type=int, help='Enter number of spectrograms to be used ...
23.677419
79
0.623978
b41443fb2e7a6b623e2b4753023b9efda43ee353
7,134
py
Python
tests/test_build_from_entrypoints.py
oarepo/oarepo-model-builder-multilingual
884da6667dfd6f4bb2c255b4f42d6d4de999d2e8
[ "MIT" ]
null
null
null
tests/test_build_from_entrypoints.py
oarepo/oarepo-model-builder-multilingual
884da6667dfd6f4bb2c255b4f42d6d4de999d2e8
[ "MIT" ]
2
2022-02-06T20:03:11.000Z
2022-03-07T11:01:39.000Z
tests/test_build_from_entrypoints.py
oarepo/oarepo-model-builder-multilingual
884da6667dfd6f4bb2c255b4f42d6d4de999d2e8
[ "MIT" ]
null
null
null
import os import re from oarepo_model_builder.entrypoints import load_model, create_builder_from_entrypoints from tests.mock_filesystem import MockFilesystem import yaml def test_mapping(): schema = load_model( "test.yaml", "test", model_content={"oarepo:use": "invenio", "settings": {"su...
25.297872
185
0.470143
cf655ab39d067dbf6c095eb81ddcf739bc709b52
398
py
Python
hamro_shop/shop/admin.py
Pradip-p/E-commerce
a9e16f862ecdbe1f5f8ebd5572565841de8f5c22
[ "MIT" ]
null
null
null
hamro_shop/shop/admin.py
Pradip-p/E-commerce
a9e16f862ecdbe1f5f8ebd5572565841de8f5c22
[ "MIT" ]
null
null
null
hamro_shop/shop/admin.py
Pradip-p/E-commerce
a9e16f862ecdbe1f5f8ebd5572565841de8f5c22
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. class CategoryAdmin(admin.ModelAdmin): prepopulated_fields = {"slug":("name", ) } class ProductAdmin(admin.ModelAdmin): list_display = ['name','category','price'] prepopulated_fields = {"slug":("name", ) } admin.sit...
26.533333
46
0.723618
64b9b05df5d1b2fb60b59f50b4196087371a377b
329
py
Python
pywren_ibm_cloud/runtime/__init__.py
spitfiredd/pywren-ibm-cloud
3bc0818ffc510b32770d695b16755c8980feaefd
[ "Apache-2.0" ]
null
null
null
pywren_ibm_cloud/runtime/__init__.py
spitfiredd/pywren-ibm-cloud
3bc0818ffc510b32770d695b16755c8980feaefd
[ "Apache-2.0" ]
null
null
null
pywren_ibm_cloud/runtime/__init__.py
spitfiredd/pywren-ibm-cloud
3bc0818ffc510b32770d695b16755c8980feaefd
[ "Apache-2.0" ]
null
null
null
from pywren_ibm_cloud.runtime.deploy_utils import create_runtime from pywren_ibm_cloud.runtime.deploy_utils import build_runtime from pywren_ibm_cloud.runtime.deploy_utils import update_runtime from pywren_ibm_cloud.runtime.deploy_utils import delete_runtime from pywren_ibm_cloud.runtime.metadata import get_runtime_pre...
54.833333
69
0.908815
a28178c4c1a279b5f68e76bbc3db3979d7f8b9de
131
py
Python
lang/Python/color-of-a-screen-pixel-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/color-of-a-screen-pixel-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/color-of-a-screen-pixel-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
def get_pixel_colour(i_x, i_y): import PIL.ImageGrab return PIL.ImageGrab.grab().load()[i_x, i_y] print(get_pixel_colour(0, 0))
21.833333
45
0.748092
040030789df672702f784569944215633ee7228d
902
py
Python
controller/commands/password_modules/backend.py
rapydo/do
727bdf51ad99eca902e4b3a1deb6cdfaae8cd2a8
[ "MIT" ]
8
2017-08-11T10:41:25.000Z
2022-02-25T04:55:50.000Z
controller/commands/password_modules/backend.py
rapydo/do
727bdf51ad99eca902e4b3a1deb6cdfaae8cd2a8
[ "MIT" ]
32
2017-07-28T12:35:00.000Z
2022-03-04T05:47:06.000Z
controller/commands/password_modules/backend.py
rapydo/do
727bdf51ad99eca902e4b3a1deb6cdfaae8cd2a8
[ "MIT" ]
4
2017-12-17T15:14:15.000Z
2020-04-14T12:29:01.000Z
from typing import Tuple from controller.deploy.docker import Docker from controller.utilities import services SERVICE_NAME = __name__ PASSWORD_VARIABLES = ["AUTH_DEFAULT_PASSWORD"] IS_RUNNING_NEEDED = True def password(container: Tuple[str, str], old_password: str, new_password: str) -> None: docker = Docker(...
32.214286
87
0.682927
acc16d31935b20b2a8d3ff1d2ef692d70cddba7a
5,233
py
Python
lib/python3.8/site-packages/ansible_collections/openstack/cloud/plugins/modules/server_metadata.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/openstack/cloud/plugins/modules/server_metadata.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/openstack/cloud/plugins/modules/server_metadata.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # coding: utf-8 -*- # Copyright (c) 2016, Mario Santos <mario.rf.santos@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = ''' --- module: server_metadata short_description: Add/Update/Delete Metadata in Compute Instances from Open...
30.602339
92
0.640359
bc6904c32704036c863e3194d05e4732d411efe4
39
py
Python
scripts/field/Ranmaru_ExpeditionEnter.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/field/Ranmaru_ExpeditionEnter.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/field/Ranmaru_ExpeditionEnter.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
sm.spawnMob(9421583, -373, 123, False)
19.5
38
0.717949
e2ed3921b07aefaee48416e449646778cca4b7de
3,961
py
Python
learnTextCNN/text_cnn.py
ZDstandup/Some-deep-model-for-text-classification
002835466ef670945a9843b8a809782d49eaf24e
[ "Apache-2.0" ]
7
2018-06-12T03:07:31.000Z
2021-09-16T12:49:57.000Z
learnTextCNN/text_cnn.py
cmfyj/Some-deep-model-for-text-classification
002835466ef670945a9843b8a809782d49eaf24e
[ "Apache-2.0" ]
null
null
null
learnTextCNN/text_cnn.py
cmfyj/Some-deep-model-for-text-classification
002835466ef670945a9843b8a809782d49eaf24e
[ "Apache-2.0" ]
1
2018-11-20T02:03:38.000Z
2018-11-20T02:03:38.000Z
#__author__=="zhangdong" #@zhangdong import tensorflow as tf import numpy as np class TextCNN(object): #构造函数,里面的操作都是自动执行 def __init__(self,sequence_length,num_classes,vocab_size,embedding_size,filter_sizes,num_filters,l2_reg_lambda=0.0): #1.placeholder for input , and dropout ...
42.591398
131
0.631406
ebf59c5636fcdd3a22393d2d4666b8e6cea291f5
616
py
Python
GT3/ImpRadiation/Functions/CombineObjs.py
gt-frc/gt3
1b27d6ca68b182413be23efeb0282f4a9075212f
[ "MIT" ]
2
2018-10-10T00:11:19.000Z
2020-12-08T20:15:16.000Z
GT3/ImpRadiation/Functions/CombineObjs.py
gt-frc/gt3
1b27d6ca68b182413be23efeb0282f4a9075212f
[ "MIT" ]
25
2018-05-02T22:16:37.000Z
2021-12-13T20:53:38.000Z
GT3/ImpRadiation/Functions/CombineObjs.py
gt-frc/gt3
1b27d6ca68b182413be23efeb0282f4a9075212f
[ "MIT" ]
4
2018-06-06T16:07:20.000Z
2021-12-03T11:46:23.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from collections import namedtuple def combine_objs(obj1, obj2): """Combines dictionaries of two instantiated classes or namedtuples into a new namedtuple""" #this function might need some work, just FYI. try: dict1 = obj1._asdict() except Attrib...
25.666667
96
0.657468
ad7c42cc98be82087c36e04c51c07f1ca54ed463
4,876
py
Python
main.py
SealtielFreak/algorithm-project
c26cc32404125297061b4106828e642147a27dd8
[ "MIT" ]
null
null
null
main.py
SealtielFreak/algorithm-project
c26cc32404125297061b4106828e642147a27dd8
[ "MIT" ]
null
null
null
main.py
SealtielFreak/algorithm-project
c26cc32404125297061b4106828e642147a27dd8
[ "MIT" ]
null
null
null
#!/usr/bin/python # MIT License # # Copyright (c) 2021 Jesus Adrian Flores, Diego Sealtiel Valderrama García # # 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, in...
30.285714
126
0.641099
e594d1a446467980c5de3d220336ad95bb9bf152
6,749
py
Python
ansible/plugins/inventory/adoptopenjdk_yaml.py
ali-ince/openjdk-infrastructure
0628f935dccbc37a2ffdde135ec5222ce43b1828
[ "Apache-2.0" ]
1
2021-03-04T06:47:43.000Z
2021-03-04T06:47:43.000Z
ansible/plugins/inventory/adoptopenjdk_yaml.py
ali-ince/openjdk-infrastructure
0628f935dccbc37a2ffdde135ec5222ce43b1828
[ "Apache-2.0" ]
null
null
null
ansible/plugins/inventory/adoptopenjdk_yaml.py
ali-ince/openjdk-infrastructure
0628f935dccbc37a2ffdde135ec5222ce43b1828
[ "Apache-2.0" ]
1
2022-03-25T06:41:29.000Z
2022-03-25T06:41:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright Node.js contributors. All rights reserved. # # 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 ...
34.085859
83
0.564824
3a961437a56ddd8a8eb84fd191aa023cc5707541
32,628
py
Python
examples/audio_visual_se_sr/tasks/sequence_generator.py
IIP-Sogang/Audio-Visual-Speech-Recognition
bd03be91135acbc6162b83092d462b7fe71dd007
[ "MIT" ]
null
null
null
examples/audio_visual_se_sr/tasks/sequence_generator.py
IIP-Sogang/Audio-Visual-Speech-Recognition
bd03be91135acbc6162b83092d462b7fe71dd007
[ "MIT" ]
null
null
null
examples/audio_visual_se_sr/tasks/sequence_generator.py
IIP-Sogang/Audio-Visual-Speech-Recognition
bd03be91135acbc6162b83092d462b7fe71dd007
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch from fairseq import search, utils from fairseq.data import data_utils from fairseq.models import FairseqIncremental...
43.795973
149
0.59026
4c37db52b9ef09a68ae727c81730a7d0cd3b6c0e
3,096
py
Python
podman/tests/unit/system/test_system.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
106
2020-02-01T18:19:04.000Z
2022-03-25T04:34:30.000Z
podman/tests/unit/system/test_system.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
152
2020-02-04T01:52:34.000Z
2022-03-29T14:57:05.000Z
podman/tests/unit/system/test_system.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
61
2020-02-01T16:19:58.000Z
2022-03-25T17:58:34.000Z
# Copyright 2020 Red Hat, Inc. # # 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 ...
36.423529
95
0.662145
70f9a16f4c81e2b7dc99941905a00c8a46af9028
6,085
py
Python
Python/recommend.py
fire-punch/Fyp
9a63d171a77f1cf5752fac6fb63ab2020f8accc4
[ "Apache-2.0" ]
null
null
null
Python/recommend.py
fire-punch/Fyp
9a63d171a77f1cf5752fac6fb63ab2020f8accc4
[ "Apache-2.0" ]
null
null
null
Python/recommend.py
fire-punch/Fyp
9a63d171a77f1cf5752fac6fb63ab2020f8accc4
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from sentence_transformers import SentenceTransformer import pandas as pd import seaborn as sns from sklearn.feature_extraction.text import CountVectorizer from sklearn.cluster import KMeans from sklearn.metrics.pairwise import cosine_similarity from sklearn.de...
31.528497
174
0.680033
1dd7bd4e0f276ad09a9f9d62791571c4852f2800
10,183
py
Python
python/ccxt/bter.py
ddcash/ccxt
ea85be932071891fbf0bb2001dee3b1c2be941e3
[ "MIT" ]
3
2018-01-16T02:03:26.000Z
2018-01-16T16:05:48.000Z
python/ccxt/bter.py
snugghash/ccxt
ea85be932071891fbf0bb2001dee3b1c2be941e3
[ "MIT" ]
null
null
null
python/ccxt/bter.py
snugghash/ccxt
ea85be932071891fbf0bb2001dee3b1c2be941e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError class bter (Exchange): def describe(self): return self.deep_extend(super(bter, self).describe(), { 'id': 'bter', 'name': 'Bter', 'countries': ['VG...
36.498208
126
0.482765
6c34792d0d4ffed87e4c9dbe8c47f3d3abe66e10
3,449
py
Python
medicalAid2/settings.py
sophia-velasquez/Medical-Aid-Group2-BE
7f462dfc03a5f264eed2ce5055debf0609cfb496
[ "MIT" ]
null
null
null
medicalAid2/settings.py
sophia-velasquez/Medical-Aid-Group2-BE
7f462dfc03a5f264eed2ce5055debf0609cfb496
[ "MIT" ]
4
2021-08-08T06:57:53.000Z
2021-08-20T07:26:03.000Z
medicalAid2/settings.py
sophia-velasquez/Medical-Aid-Group2-BE
7f462dfc03a5f264eed2ce5055debf0609cfb496
[ "MIT" ]
10
2021-07-14T11:23:21.000Z
2021-08-11T21:53:21.000Z
""" Django settings for medicalAid2 project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import dj...
25.738806
91
0.695274
75bb199d4852bcb0acac9282e246435755b3231d
2,303
py
Python
python/tests/deployment/test_deployment.py
benknoll-umn/biomedicus3
ebef3014a6eb835a13bbf606160cf588c04573d2
[ "Apache-2.0" ]
10
2020-07-21T17:14:15.000Z
2021-11-22T02:48:44.000Z
python/tests/deployment/test_deployment.py
benknoll-umn/biomedicus3
ebef3014a6eb835a13bbf606160cf588c04573d2
[ "Apache-2.0" ]
45
2019-11-05T20:36:03.000Z
2022-03-22T13:11:39.000Z
python/tests/deployment/test_deployment.py
benknoll-umn/biomedicus3
ebef3014a6eb835a13bbf606160cf588c04573d2
[ "Apache-2.0" ]
8
2019-11-05T20:36:13.000Z
2021-08-12T02:20:05.000Z
# Copyright 2019 Regents of the University of Minnesota. # # 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...
34.893939
111
0.649153
87ed49ad4bce80915291ea72ae6b183adbd89c71
10,478
py
Python
jina/peapods/pods/__init__.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
2
2021-01-22T07:34:35.000Z
2021-01-23T04:36:41.000Z
jina/peapods/pods/__init__.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
null
null
null
jina/peapods/pods/__init__.py
abreu4/jina
d1d045e9e0933dffb3bd668cb9cfebab6cd52202
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import argparse from argparse import Namespace from contextlib import ExitStack from typing import Optional, Dict, List, Union, Set from .helper import _set_peas_args, _set_after_to_pass, _copy_to_head_args, _copy_to...
38.664207
119
0.611663
d45dcb212b0465257cc3c4f03735af71ce3078d8
7,360
py
Python
corehq/util/doc_processor/couch.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/util/doc_processor/couch.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/util/doc_processor/couch.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from couchdbkit import ResourceNotFound from corehq.util.couch_helpers import MultiKeyViewArgsProvider, MultiKwargViewArgsProvider from corehq.util.doc_processor.interface import DocumentProvider, ProcessorProgressLogger from corehq.util.pagination import ResumableFunctionIterator def resumable_view_iterator(db, ite...
42.057143
126
0.714674
39977e9f8cd32863e0a41f9afadffb1db3e26771
19,585
py
Python
taiga/users/api.py
threefoldtech/taiga-backend
b285c4f2ad0c4c1f9f6c89b99ecf5e927cf04366
[ "Apache-2.0" ]
null
null
null
taiga/users/api.py
threefoldtech/taiga-backend
b285c4f2ad0c4c1f9f6c89b99ecf5e927cf04366
[ "Apache-2.0" ]
3
2021-03-31T19:53:21.000Z
2021-09-08T02:15:48.000Z
taiga/users/api.py
threefoldtech/taiga-backend
b285c4f2ad0c4c1f9f6c89b99ecf5e927cf04366
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
39.248497
122
0.651723
0a9aca06ff0a76803d9a51973244210ca1d9e00e
587
py
Python
examples/Python/hwclient.py
gaubert/zguide
e24c02481c47b129a37f261d1109140572f255f4
[ "Zed", "X11", "MIT" ]
1
2015-11-05T03:41:04.000Z
2015-11-05T03:41:04.000Z
examples/Python/hwclient.py
gaubert/zguide
e24c02481c47b129a37f261d1109140572f255f4
[ "Zed", "X11", "MIT" ]
null
null
null
examples/Python/hwclient.py
gaubert/zguide
e24c02481c47b129a37f261d1109140572f255f4
[ "Zed", "X11", "MIT" ]
null
null
null
# # Hello World client in Python # Connects REQ socket to tcp://localhost:5555 # Sends "Hello" to server, expects "World" back # import zmq # Prepare our context and sockets context = zmq.Context() socket = context.socket(zmq.REQ) print "Connecting to hello world server..." socket.connect ("tcp://localhost:555...
25.521739
55
0.669506
a3c299189f2cd5615ec46064ba3e5f346a721707
15,216
py
Python
FMNIST/VAE.py
Sungyeop/IPRL
6ee17f415998ac5cc058c63cea06a5cad40b267c
[ "MIT" ]
2
2021-02-08T05:34:45.000Z
2021-03-02T08:36:06.000Z
FMNIST/VAE.py
Sungyeop/IPRL
6ee17f415998ac5cc058c63cea06a5cad40b267c
[ "MIT" ]
null
null
null
FMNIST/VAE.py
Sungyeop/IPRL
6ee17f415998ac5cc058c63cea06a5cad40b267c
[ "MIT" ]
null
null
null
import numpy as np import copy import torch import torchvision from torch import nn, optim import torch.nn.functional as F from torchvision import transforms, datasets from scipy.spatial.distance import pdist, squareform from scipy.special import expit import matplotlib.pyplot as plt # Training Options #=============...
35.802353
135
0.582676
f11e3d863d73604957553dcfad93b7bb9dd8b14d
8,975
py
Python
scripts/users-config-builder.py
pyuriy/single-node-cloudera-env
6d3c90d3676ce61b69cc4a6e1063774600a0957d
[ "Apache-2.0" ]
10
2015-11-06T21:52:40.000Z
2016-09-15T16:46:39.000Z
scripts/users-config-builder.py
pyuriy/single-node-cloudera-env
6d3c90d3676ce61b69cc4a6e1063774600a0957d
[ "Apache-2.0" ]
6
2015-11-02T13:23:00.000Z
2016-03-22T16:31:45.000Z
scripts/users-config-builder.py
pyuriy/single-node-cloudera-env
6d3c90d3676ce61b69cc4a6e1063774600a0957d
[ "Apache-2.0" ]
8
2016-02-27T08:17:01.000Z
2021-04-27T21:42:19.000Z
#!/usr/bin/env python import os import sys import json import base64 import optparse import httplib import urllib import urlparse import zipfile import shutil import contextlib import xml.etree.ElementTree as ET class ConfigBuilder(object): def __init__(self, username, password, hostname, cluster_name, api_...
33.996212
127
0.605014
51fa8d9b69378067b7475a0a9f2991cbf86f4411
751
py
Python
Create.py
arjunsagarkpc/TwitterTrendz
fad059e94ccc92acc8559fd11d5c3af0c856cab4
[ "Apache-2.0" ]
null
null
null
Create.py
arjunsagarkpc/TwitterTrendz
fad059e94ccc92acc8559fd11d5c3af0c856cab4
[ "Apache-2.0" ]
null
null
null
Create.py
arjunsagarkpc/TwitterTrendz
fad059e94ccc92acc8559fd11d5c3af0c856cab4
[ "Apache-2.0" ]
null
null
null
##import pandas as pd ## ##def copy_csv(filename): ## df = pd.read_csv('output_got.csv') ## df.to_csv('HT1.csv') ##copy_csv('file.csv') import pandas as pd def copy_csv1(): df = pd.read_csv('output_got.csv') return(df.to_csv('HT1.csv')) def copy_csv2(): df = pd.read_csv('output_got.csv') retur...
19.763158
40
0.603196