hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796d71c68be4abe4eda5779a3b802fac2e54f6ca
140
py
Python
backend/apps/adverts/api/pagination.py
Nyior/vendor
ad6718abcfc58b41616a05dacfcdde24b6ccaafd
[ "MIT" ]
1
2021-11-13T22:44:24.000Z
2021-11-13T22:44:24.000Z
backend/apps/adverts/api/pagination.py
Nyior/vendor
ad6718abcfc58b41616a05dacfcdde24b6ccaafd
[ "MIT" ]
9
2021-04-08T22:13:24.000Z
2022-03-12T00:59:41.000Z
backend/apps/adverts/api/pagination.py
Nyior/vendor
ad6718abcfc58b41616a05dacfcdde24b6ccaafd
[ "MIT" ]
null
null
null
class StandardResultsSetPagination(PageNumberPagination): page_size = 18 page_size_query_param = 'page_size' max_page_size = 180
35
57
0.785714
796d71d2904a9bc2ad6e7559ad96e74c7adb8a2b
5,664
py
Python
driz_tools/reg_drzs.py
gbrammer/pabeta
3078d85449154240cfc47e53677665156b83ac1e
[ "MIT" ]
null
null
null
driz_tools/reg_drzs.py
gbrammer/pabeta
3078d85449154240cfc47e53677665156b83ac1e
[ "MIT" ]
null
null
null
driz_tools/reg_drzs.py
gbrammer/pabeta
3078d85449154240cfc47e53677665156b83ac1e
[ "MIT" ]
null
null
null
from drizzlepac import tweakreg import glob, os from astropy.io import fits from multiprocessing import Pool import numpy as np from stsci.tools import teal import argparse import astropy.units as u from astropy.table import Table from astropy.coordinates.sky_coordinate import SkyCoord from astropy.units import Quanti...
33.714286
97
0.653778
796d71f0dce95fdd2d5ece020f898dd0a95c0c9e
330
py
Python
AudioBook.py
Zunayed28/Audio-Book
aec068bb21a2fd3b09b72558cfde7865bf22ae51
[ "Apache-2.0" ]
1
2021-08-17T06:38:49.000Z
2021-08-17T06:38:49.000Z
AudioBook.py
Zunayed28/Audio-Book
aec068bb21a2fd3b09b72558cfde7865bf22ae51
[ "Apache-2.0" ]
null
null
null
AudioBook.py
Zunayed28/Audio-Book
aec068bb21a2fd3b09b72558cfde7865bf22ae51
[ "Apache-2.0" ]
null
null
null
import pyttsx3 import PyPDF2 book = open("Book.pdf", 'rb') # mention any PDF file with location reader = PyPDF2.PdfFileReader(book) pages = reader.numPages speaker = pyttsx3.init() for i in range(2, pages): page = reader.getPage(i) text = page.extractText() speaker.say(text) speaker.runA...
23.571429
69
0.672727
796d72e445f64dbff8bedf1315032d7bf0889531
18,284
py
Python
roadlib/roadtools/roadlib/auth.py
noraj/ROADtools
4929c9d2c030567e97a3cb89d815a957347fe682
[ "MIT" ]
1
2021-05-20T11:53:50.000Z
2021-05-20T11:53:50.000Z
roadlib/roadtools/roadlib/auth.py
noraj/ROADtools
4929c9d2c030567e97a3cb89d815a957347fe682
[ "MIT" ]
null
null
null
roadlib/roadtools/roadlib/auth.py
noraj/ROADtools
4929c9d2c030567e97a3cb89d815a957347fe682
[ "MIT" ]
1
2021-05-20T11:53:57.000Z
2021-05-20T11:53:57.000Z
import getpass import sys import json import argparse import base64 import datetime import uuid import binascii import time from urllib.parse import urlparse, parse_qs import requests import adal import jwt class Authentication(): """ Authentication class for ROADtools """ def __init__(self, username=N...
44.704156
184
0.570718
796d7385b22fb7602f322fe0c84634ad5de4febc
4,256
py
Python
benchmark/startQiskit_Class2629.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2629.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2629.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=42 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.601626
140
0.647321
796d73acb9657d11e238260c83d1034097d8cbd3
1,520
py
Python
ml_logger/ml_logger/helpers/color_helpers.py
mcx/ml_logger
697b376d176b3b5e84272a4173e0f3b84fffbfa0
[ "BSD-3-Clause" ]
107
2018-05-26T22:51:48.000Z
2020-04-27T09:46:36.000Z
ml_logger/ml_logger/helpers/color_helpers.py
mcx/ml_logger
697b376d176b3b5e84272a4173e0f3b84fffbfa0
[ "BSD-3-Clause" ]
29
2020-09-04T16:08:04.000Z
2022-01-25T20:21:13.000Z
ml_logger/ml_logger/helpers/color_helpers.py
mcx/ml_logger
697b376d176b3b5e84272a4173e0f3b84fffbfa0
[ "BSD-3-Clause" ]
14
2018-06-30T18:50:48.000Z
2019-12-10T01:08:44.000Z
from typing import Union, Callable, Any from termcolor import colored as c class Color: # noinspection PyInitNewSignature def __init__(self, value, color=None, formatter: Union[Callable[[Any], Any], None] = lambda v: v): self.value = value self.color = color self.formatter = formatter...
23.75
102
0.633553
796d75b21d44f5f984a34495e21aa3f5fcefc941
5,306
py
Python
src/visualization/console.py
ClaasM/Masters-Thesis
c9106f1747dc6d7d0d1199a386315f6cb389b832
[ "Apache-2.0" ]
null
null
null
src/visualization/console.py
ClaasM/Masters-Thesis
c9106f1747dc6d7d0d1199a386315f6cb389b832
[ "Apache-2.0" ]
null
null
null
src/visualization/console.py
ClaasM/Masters-Thesis
c9106f1747dc6d7d0d1199a386315f6cb389b832
[ "Apache-2.0" ]
null
null
null
import time from datetime import timedelta from multiprocessing import Value, Manager # Each column is 20 chars wide, plus the separator COL_WIDTH = 12 COLUMNS = ["CURRENT", "TOTAL", "PERCENTAGE", "RUNTIME", "RATE", "EXPECTED"] COL_SEPARATOR = "|" ROW_SEPARATOR = "-" TIME_FORMAT = "%H:%M:%S" class SyncedCrawlingProg...
38.449275
115
0.590087
796d7830903024374cbdb42600c7195a69ba619d
1,398
py
Python
ironic/drivers/drac.py
Tehsmash/ironic
a34c351639e960af92a3608fbc9249dfce5c6057
[ "Apache-2.0" ]
null
null
null
ironic/drivers/drac.py
Tehsmash/ironic
a34c351639e960af92a3608fbc9249dfce5c6057
[ "Apache-2.0" ]
null
null
null
ironic/drivers/drac.py
Tehsmash/ironic
a34c351639e960af92a3608fbc9249dfce5c6057
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under...
34.95
75
0.726037
796d785bd2faf1e42df816380bcd7aa6971eff7c
6,040
py
Python
test/functional/p2p_fingerprint.py
ngocviet/lotusd
769802c5db7302aa1c23cf81cf42b2e861c45732
[ "MIT" ]
null
null
null
test/functional/p2p_fingerprint.py
ngocviet/lotusd
769802c5db7302aa1c23cf81cf42b2e861c45732
[ "MIT" ]
null
null
null
test/functional/p2p_fingerprint.py
ngocviet/lotusd
769802c5db7302aa1c23cf81cf42b2e861c45732
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various fingerprinting protections. If a stale block more than a month old or its header are requested...
38.717949
91
0.691225
796d789aa0d417857fff62e335f3e67fdc9c45ee
991
py
Python
chatspace/resource/__init__.py
yangs1202/chatspace
1c61092245645823b18578e83480af0680b5ccbd
[ "Apache-2.0" ]
1
2021-01-15T11:57:47.000Z
2021-01-15T11:57:47.000Z
chatspace/resource/__init__.py
yangs1202/chatspace
1c61092245645823b18578e83480af0680b5ccbd
[ "Apache-2.0" ]
null
null
null
chatspace/resource/__init__.py
yangs1202/chatspace
1c61092245645823b18578e83480af0680b5ccbd
[ "Apache-2.0" ]
11
2021-01-13T04:18:21.000Z
2022-01-13T06:21:11.000Z
""" Copyright 2019 Pingpong AI Research, ScatterLab 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...
36.703704
93
0.778002
796d7a0e5aff83af7fbbfba20e83882bfcfc7bee
497
py
Python
sysconf/migrations/0003_auto_20200530_2023.py
kanezhu1031/midplatform
8a499278bf83fe33b9c75099b79e0b3bca2e0de4
[ "MIT" ]
2
2020-05-21T04:43:56.000Z
2020-05-25T04:34:41.000Z
sysconf/migrations/0003_auto_20200530_2023.py
kanezhu1031/midplatform
8a499278bf83fe33b9c75099b79e0b3bca2e0de4
[ "MIT" ]
4
2020-06-13T08:02:45.000Z
2021-06-10T23:59:20.000Z
sysconf/migrations/0003_auto_20200530_2023.py
canpowerzhu/midplatform
8a499278bf83fe33b9c75099b79e0b3bca2e0de4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2020-05-30 20:23 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sysconf', '0002_auto_20200530_1932'), ] operations = [ migrations.AlterFie...
23.666667
95
0.625755
796d7a44ce405f60f179bbb0b20eecf14f0da9e4
1,506
py
Python
src/zenml/integrations/tensorflow/materializers/keras_materializer.py
LocalLegend517/zenml
0f9639a7a1014d893885263647bbe3b9b1a36d5f
[ "Apache-2.0" ]
1
2022-01-04T15:12:38.000Z
2022-01-04T15:12:38.000Z
src/zenml/integrations/tensorflow/materializers/keras_materializer.py
LocalLegend517/zenml
0f9639a7a1014d893885263647bbe3b9b1a36d5f
[ "Apache-2.0" ]
null
null
null
src/zenml/integrations/tensorflow/materializers/keras_materializer.py
LocalLegend517/zenml
0f9639a7a1014d893885263647bbe3b9b1a36d5f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. 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 applica...
32.042553
70
0.701859
796d7a7f2f565a257063504d524bf5fc8d313b90
27,524
py
Python
cirq/sim/density_matrix_simulator_test.py
rickyHong/Cirq-repl
5b31440d5b5bf5a66ee85ef5e44373ac89aa0eaf
[ "Apache-2.0" ]
null
null
null
cirq/sim/density_matrix_simulator_test.py
rickyHong/Cirq-repl
5b31440d5b5bf5a66ee85ef5e44373ac89aa0eaf
[ "Apache-2.0" ]
null
null
null
cirq/sim/density_matrix_simulator_test.py
rickyHong/Cirq-repl
5b31440d5b5bf5a66ee85ef5e44373ac89aa0eaf
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Cirq Developers # # 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 law or agreed to in ...
41.893455
80
0.584145
796d7ae9e56b620eb7097238d42dfa7874e74c59
13,641
py
Python
tests/test_ase_cases.py
libAtoms/extxyz
f48a3c68a50eebaef035b8c615120dbccaaa38c6
[ "MIT" ]
3
2021-06-18T15:07:57.000Z
2022-01-26T22:02:01.000Z
tests/test_ase_cases.py
libAtoms/extxyz
f48a3c68a50eebaef035b8c615120dbccaaa38c6
[ "MIT" ]
7
2021-07-26T13:12:25.000Z
2022-01-26T22:35:17.000Z
tests/test_ase_cases.py
libAtoms/extxyz
f48a3c68a50eebaef035b8c615120dbccaaa38c6
[ "MIT" ]
1
2021-06-24T09:17:33.000Z
2021-06-24T09:17:33.000Z
# additional tests of the extended XYZ file I/O # (which is also included in oi.py test case) # maintained by James Kermode <james.kermode@gmail.com> import os from pathlib import Path import numpy as np import pytest from extxyz.extxyz import read, write # from ase.io.extxyz import key_val_str_to_dict, key_val_dic...
38.533898
125
0.570119
796d7c8fb7487eb9cc2ee378a5c50448e6bf7ed2
114
py
Python
orb_simulator/orbsim_language/orbsim_ast/restart_sim_node.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
1
2022-01-19T22:49:09.000Z
2022-01-19T22:49:09.000Z
orb_simulator/orbsim_language/orbsim_ast/restart_sim_node.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
15
2021-11-10T14:25:02.000Z
2022-02-12T19:17:11.000Z
orb_simulator/orbsim_language/orbsim_ast/restart_sim_node.py
dmguezjaviersnet/IA-Sim-Comp-Project
8165b9546efc45f98091a3774e2dae4f45942048
[ "MIT" ]
null
null
null
from orbsim_language.orbsim_ast.statement_node import StatementNode class RestartSimNode(StatementNode): pass
28.5
67
0.859649
796d7d3f95a0c477b267c06900b4443ab3ee1605
2,426
py
Python
data/p4VQE/R4/benchmark/startQiskit457.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit457.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit457.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.258427
118
0.63479
796d7fbf80a4a0aa6f353d4aac37e79a009f6aab
11,148
py
Python
official/staging/shakespeare/shakespeare_main.py
Danhyal-Masood/models
50c4ca40f312932afb29bb5b4c860b3e17fc9d8b
[ "Apache-2.0" ]
1
2020-02-19T09:29:54.000Z
2020-02-19T09:29:54.000Z
official/staging/shakespeare/shakespeare_main.py
xingjianzhang1997/models
5ceb3acfc48843f260bac9a8afae5f90c5409eed
[ "Apache-2.0" ]
2
2019-10-24T16:45:29.000Z
2021-06-09T04:16:09.000Z
official/staging/shakespeare/shakespeare_main.py
xingjianzhang1997/models
5ceb3acfc48843f260bac9a8afae5f90c5409eed
[ "Apache-2.0" ]
5
2020-03-05T14:15:12.000Z
2021-11-11T12:13:11.000Z
# Copyright 2019 The TensorFlow 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 applica...
36.07767
80
0.675278
796d8009cb41acdaf0b3db1f38699efb629e082d
8,985
py
Python
Nb_ok_test.py
ever-qxl/-
e5b6bb67a9d6aaa0aaaa99c678073951b980c47f
[ "MIT" ]
1
2019-09-29T12:08:57.000Z
2019-09-29T12:08:57.000Z
Nb_ok_test.py
ever-qxl/-
e5b6bb67a9d6aaa0aaaa99c678073951b980c47f
[ "MIT" ]
null
null
null
Nb_ok_test.py
ever-qxl/-
e5b6bb67a9d6aaa0aaaa99c678073951b980c47f
[ "MIT" ]
null
null
null
# coding: utf-8 # NB # get_ipython().magic(u'matplotlib inline') import pandas as pd import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.colors as colors from mpl_toolkits.axes_grid1 import make_axes_locatable from sklearn import preprocessing from django.views.ge...
33.033088
115
0.482248
796d819eb68cb71588921bc96eb7b692e0b04216
4,256
py
Python
bin/main.py
Krittisak/ShapeDeepLearning
e64fb1e35e075e166465da45bd89876bb0996ea8
[ "MIT" ]
null
null
null
bin/main.py
Krittisak/ShapeDeepLearning
e64fb1e35e075e166465da45bd89876bb0996ea8
[ "MIT" ]
null
null
null
bin/main.py
Krittisak/ShapeDeepLearning
e64fb1e35e075e166465da45bd89876bb0996ea8
[ "MIT" ]
null
null
null
from shapes import Sphere, Torus, Pyramid, Cube, SquareTorus, Gridspace from datasets import Dataset from models import ConvModel from docopt import docopt from graph import Graph import matplotlib.pyplot as plt import numpy as np from scipy.stats import ortho_group import json import random import gc __version__ = "0...
38.342342
117
0.647556
796d83117a66d94c0918a978dc623e60adad6bb8
3,133
py
Python
nonograms_solver/line.py
konradkorczynski/nonograms-solver
2a17a93647b491676125a8af3dab9f80803df644
[ "Unlicense" ]
null
null
null
nonograms_solver/line.py
konradkorczynski/nonograms-solver
2a17a93647b491676125a8af3dab9f80803df644
[ "Unlicense" ]
null
null
null
nonograms_solver/line.py
konradkorczynski/nonograms-solver
2a17a93647b491676125a8af3dab9f80803df644
[ "Unlicense" ]
null
null
null
import numpy as np class Line: def __init__(self, input_values: list, length: int, position: int): self.solved = False self.length = length self.position = position self.possible_solutions = self.get_possible_solutions(input_values) def get_possible_solutions(self, input_value...
43.513889
105
0.656878
796d83e26aafa578f1c59ad5c0e0fda3115cf28c
249
py
Python
roles/client/files/backend/manage.py
ppc64le/ciaas
2eaa4226b9b7db28bb9c9603bb8421a76d131be2
[ "Apache-2.0" ]
3
2017-10-05T13:51:50.000Z
2019-04-12T07:45:20.000Z
roles/client/files/backend/manage.py
ppc64le/ciaas
2eaa4226b9b7db28bb9c9603bb8421a76d131be2
[ "Apache-2.0" ]
1
2016-10-18T14:22:58.000Z
2016-10-18T14:22:58.000Z
roles/client/files/backend/manage.py
ppc64le/ciaas
2eaa4226b9b7db28bb9c9603bb8421a76d131be2
[ "Apache-2.0" ]
2
2018-03-27T08:03:08.000Z
2019-01-25T03:52:04.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "client.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.636364
70
0.771084
796d84a41506438b191b2d1e1d8db91da8779f6c
8,486
py
Python
slam/dataset/rosbag_dataset.py
Pandinosaurus/pyLiDAR-SLAM
1baa21a67bd32f144f8e17583251ac777f81345e
[ "MIT" ]
130
2021-07-21T13:15:11.000Z
2022-03-23T07:31:39.000Z
slam/dataset/rosbag_dataset.py
Pandinosaurus/pyLiDAR-SLAM
1baa21a67bd32f144f8e17583251ac777f81345e
[ "MIT" ]
null
null
null
slam/dataset/rosbag_dataset.py
Pandinosaurus/pyLiDAR-SLAM
1baa21a67bd32f144f8e17583251ac777f81345e
[ "MIT" ]
17
2021-08-09T13:07:23.000Z
2022-01-23T04:55:20.000Z
import logging from dataclasses import MISSING from pathlib import Path from typing import Optional, Tuple import os from torch.utils.data import IterableDataset import numpy as np from hydra.conf import field, dataclass from hydra.core.config_store import ConfigStore from omegaconf import DictConfig, OmegaConf from...
40.798077
116
0.607707
796d8a3c6c0ed66fc268da73bde86c6c3a1c8bcc
833
py
Python
database.py
alenrajsp/NiaAML-API
30f0942c446b4ec8053db7a82282d75b35a3e8ab
[ "MIT" ]
1
2021-09-22T06:49:58.000Z
2021-09-22T06:49:58.000Z
database.py
alenrajsp/NiaAML-API
30f0942c446b4ec8053db7a82282d75b35a3e8ab
[ "MIT" ]
1
2021-12-23T17:56:03.000Z
2021-12-23T17:56:03.000Z
database.py
alenrajsp/NiaAML-API
30f0942c446b4ec8053db7a82282d75b35a3e8ab
[ "MIT" ]
null
null
null
import sqlite3 from pathlib import Path from os import sep """ This script creates a local SQLite 3 database for managing and tracking NiaAML jobs. """ print('Connecting and initialising SQLite database!') con = sqlite3.connect(f"{Path(__file__).parent}{sep}data{sep}jobs.db", check_same_thread=False) cur = con.cursor...
34.708333
95
0.65066
796d8a7f0f456a160caf5a7d2aa5adebd678508d
1,249
py
Python
script.jedi.guide/play.py
TheWardoctor/Jedi
75a4dda67a4a3fef68dcb5d758383d59d20c3580
[ "Apache-2.0" ]
1
2019-03-05T09:38:18.000Z
2019-03-05T09:38:18.000Z
script.jedi.guide/play.py
TheWardoctor/Jedi
75a4dda67a4a3fef68dcb5d758383d59d20c3580
[ "Apache-2.0" ]
null
null
null
script.jedi.guide/play.py
TheWardoctor/Jedi
75a4dda67a4a3fef68dcb5d758383d59d20c3580
[ "Apache-2.0" ]
null
null
null
import sys import xbmc,xbmcaddon import sqlite3 from vpnapi import VPNAPI ADDON = xbmcaddon.Addon(id='script.jedi.guide') channel = sys.argv[1] start = sys.argv[2] path = xbmc.translatePath('special://profile/addon_data/script.jedi.guide/source.db') try: conn = sqlite3.connect(path, detect_types=sqlite3.PARSE_DE...
33.756757
85
0.6245
796d8e5f37d0f9db39c1b33916774f46a225e1d9
2,221
py
Python
friendly_traceback/my_gettext.py
JulienPalard/friendly-traceback
cc12915787fdcd871a443571986ddc6c1eef1049
[ "MIT" ]
null
null
null
friendly_traceback/my_gettext.py
JulienPalard/friendly-traceback
cc12915787fdcd871a443571986ddc6c1eef1049
[ "MIT" ]
null
null
null
friendly_traceback/my_gettext.py
JulienPalard/friendly-traceback
cc12915787fdcd871a443571986ddc6c1eef1049
[ "MIT" ]
null
null
null
"""my_gettext.py The usual pattern when using gettext is to surround strings to be translated by a call to a function named _, as in _("This string should be translated.") This is done when having gettext "install" a given language: it adds a function named _ to the global builtins. However, this can fail if som...
33.149254
79
0.610536
796d8eceb155a2e5862ec0a83da694a669ea2374
747
py
Python
alf/examples/lite_sac/lite_sac/lite_sac_array_conf.py
hnyu/entropy_reward
f3ae1cdd5e893bacfa77c7e1da894b74c288585a
[ "Apache-2.0" ]
null
null
null
alf/examples/lite_sac/lite_sac/lite_sac_array_conf.py
hnyu/entropy_reward
f3ae1cdd5e893bacfa77c7e1da894b74c288585a
[ "Apache-2.0" ]
null
null
null
alf/examples/lite_sac/lite_sac/lite_sac_array_conf.py
hnyu/entropy_reward
f3ae1cdd5e893bacfa77c7e1da894b74c288585a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Horizon Robotics and ALF Contributors. 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...
39.315789
80
0.7751
796d8f95b4a28a8d37991073479a19bc3d842115
3,486
py
Python
cms/tests/test_permissions.py
Mario-Kart-Felix/django-cms
6d68439fe7fd59d000f99e27c1f2135a3f9c816a
[ "BSD-3-Clause" ]
1
2021-02-11T16:20:01.000Z
2021-02-11T16:20:01.000Z
cms/tests/test_permissions.py
vlctt/django-cms
eeb86fd70c86b0cdac5f3959995b92de8d100771
[ "BSD-3-Clause" ]
2
2020-10-28T13:48:53.000Z
2020-10-28T13:52:48.000Z
cms/tests/test_permissions.py
vlctt/django-cms
eeb86fd70c86b0cdac5f3959995b92de8d100771
[ "BSD-3-Clause" ]
1
2021-07-26T14:43:54.000Z
2021-07-26T14:43:54.000Z
from django.contrib.sites.models import Site from django.test.utils import override_settings from cms.api import create_page, assign_user_to_page from cms.cache.permissions import (get_permission_cache, set_permission_cache, clear_user_permission_cache) from cms.models.permissionmode...
41.011765
91
0.650029
796d8fe82bdd995c6e0813aff9746383f9722af3
6,318
py
Python
src/wider/test_img.py
weihao996/Quarantine-Boys
b74de4c989d58e0496901be7bf09c8acd9557527
[ "MIT" ]
1
2020-05-26T02:53:07.000Z
2020-05-26T02:53:07.000Z
src/wider/test_img.py
weihao996/Quarantine-Boys
b74de4c989d58e0496901be7bf09c8acd9557527
[ "MIT" ]
1
2020-05-26T10:05:17.000Z
2020-05-26T18:26:47.000Z
src/wider/test_img.py
weihao996/Quarantine-Boys
b74de4c989d58e0496901be7bf09c8acd9557527
[ "MIT" ]
4
2020-05-15T04:11:08.000Z
2020-09-22T07:18:03.000Z
import sys import argparse import time import tensorflow as tf import cv2 import numpy as np from src.mtcnn import PNet, RNet, ONet from tools import detect_face, get_model_filenames def main(args): img = cv2.imread(args.image_path) file_paths = get_model_filenames(args.model_dir) count = 0 with t...
41.565789
96
0.47246
796d911849617d2236e971c4daffcded949dd718
19,322
py
Python
setup.py
oliviajain/onnxruntime
8140e3fde5c22d8fc95a50fa2f840fa15238daba
[ "MIT" ]
null
null
null
setup.py
oliviajain/onnxruntime
8140e3fde5c22d8fc95a50fa2f840fa15238daba
[ "MIT" ]
null
null
null
setup.py
oliviajain/onnxruntime
8140e3fde5c22d8fc95a50fa2f840fa15238daba
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. #-------------------------------------------------------------------------- from setuptools import setup, find_packages, Extension from distutils impo...
41.286325
156
0.665149
796d91cade842b74376dd9b62228a6c2d733d077
904
py
Python
homeassistant/components/frontend/version.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
homeassistant/components/frontend/version.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
homeassistant/components/frontend/version.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
"""DO NOT MODIFY. Auto-generated by script/fingerprint_frontend.""" FINGERPRINTS = { "core.js": "1fd10c1fcdf56a61f60cf861d5a0368c", "frontend.html": "20defe06c11b2fa2f076dc92b6c3b0dd", "mdi.html": "710b84acc99b32514f52291aba9cd8e8", "panels/ha-panel-dev-event.html": "3cc881ae8026c0fba5aa67d334a3ab2b", ...
53.176471
76
0.766593
796d923876f2f5c9a5092a366a269a4d28314712
1,902
py
Python
test/test_card.py
Einavzil/WARGAME-project
c01abc5e18f6a4f825fcc8c03f7a0cd3981ca817
[ "MIT" ]
null
null
null
test/test_card.py
Einavzil/WARGAME-project
c01abc5e18f6a4f825fcc8c03f7a0cd3981ca817
[ "MIT" ]
null
null
null
test/test_card.py
Einavzil/WARGAME-project
c01abc5e18f6a4f825fcc8c03f7a0cd3981ca817
[ "MIT" ]
1
2022-03-03T17:12:43.000Z
2022-03-03T17:12:43.000Z
"""Tests functionalities of the Card class.""" import unittest import random from war import card class TestCard(unittest.TestCase): """Unit tests for Card class.""" def test_shuffle_ranks(self): """Tests the shuffle method for ranks.""" result = [card.Card.ranks] expected_result = ...
31.7
63
0.634595
796d9323975558e9d2126c48ae510a784f1b8541
732
py
Python
ball/delayed_pybullet_ball.py
nomagiclab/balancing-ball
28a2f95ee489cf7c1a2a3208412eda00e43835f3
[ "MIT" ]
4
2021-11-09T10:48:48.000Z
2022-01-20T11:12:54.000Z
ball/delayed_pybullet_ball.py
nomagiclab/balancing-ball
28a2f95ee489cf7c1a2a3208412eda00e43835f3
[ "MIT" ]
16
2021-11-09T10:36:40.000Z
2022-03-19T18:35:40.000Z
ball/delayed_pybullet_ball.py
nomagiclab/balancing-ball
28a2f95ee489cf7c1a2a3208412eda00e43835f3
[ "MIT" ]
null
null
null
from abc import ABC from collections import deque from typing import List from ball.abc_ball import ABCBall from ball.pybullet_ball import PyBulletBall class DelayedPybulletBall(ABCBall): def __init__(self, ball: PyBulletBall, n_delayed, *args, **kwargs): super().__init__(*args, **kwargs) self.ba...
33.272727
80
0.70082
796d951860b3afca04e1bd60f9e7b7e148c41baf
23,054
py
Python
tests/user/test_user_facing.py
leeshunpeng/ctfd-chinese
c1342d227acade052dc8ce26b32328be0b3f7946
[ "Apache-2.0" ]
2
2018-09-20T16:20:18.000Z
2019-04-01T06:27:36.000Z
tests/user/test_user_facing.py
leeshunpeng/ctfd-chinese
c1342d227acade052dc8ce26b32328be0b3f7946
[ "Apache-2.0" ]
1
2021-02-01T08:11:02.000Z
2021-02-01T08:11:02.000Z
tests/user/test_user_facing.py
leeshunpeng/ctfd-chinese
c1342d227acade052dc8ce26b32328be0b3f7946
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from CTFd.models import Teams, Solves, WrongKeys from CTFd.utils import get_config, set_config from CTFd import utils from tests.helpers import * from freezegun import freeze_time from mock import patch import json def test_index(): """Does the index page return a 20...
33.028653
125
0.610133
796d9564eaf8c73177fb1001b904b548a982af8c
4,606
py
Python
src/scripts/scripthandler.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
5
2015-01-30T08:47:59.000Z
2022-01-22T19:27:03.000Z
src/scripts/scripthandler.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
2
2017-12-28T21:36:48.000Z
2017-12-28T21:36:57.000Z
src/scripts/scripthandler.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
1
2019-01-05T15:51:37.000Z
2019-01-05T15:51:37.000Z
""" The script handler makes sure to check through all stored scripts to make sure they are still relevant. An scripthandler is automatically added to all game objects. You access it through the property 'scripts' on the game object. """ from src.scripts.models import ScriptDB from src.utils import create from src.uti...
36.267717
124
0.59835
796d95fb9802c684d88141bb7d19229c39309dc5
25,328
py
Python
udemy-dl.py
Ex-Communicad0/ud-dl
220f25684798b385927f2892c1fc1b0add3cae36
[ "MIT" ]
null
null
null
udemy-dl.py
Ex-Communicad0/ud-dl
220f25684798b385927f2892c1fc1b0add3cae36
[ "MIT" ]
null
null
null
udemy-dl.py
Ex-Communicad0/ud-dl
220f25684798b385927f2892c1fc1b0add3cae36
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # pylint: disable=R,C0330,C0301,C0303 """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software a...
37.467456
167
0.508449
796d960179e4e203345a6385dc11e07b8dfc8ac5
2,512
py
Python
flextGLgen.py
to-miz/flextgl
0f78fe7e527d5108f4ab36794e6d2086dda8a536
[ "MIT" ]
2
2021-01-18T19:30:15.000Z
2021-04-11T15:53:31.000Z
flextGLgen.py
edubart/flextgl
80bd6f7b6a37a92f10764392c36b3eae3610e02c
[ "MIT" ]
null
null
null
flextGLgen.py
edubart/flextgl
80bd6f7b6a37a92f10764392c36b3eae3610e02c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os.path from optparse import OptionParser import flext def main(argsstring, options, profile): version,extensions,funcslist,funcsblacklist = flext.parse_profile(profile) # Download spec file(s) if necessary if version.api == 'vulkan': if version.release:...
36.941176
125
0.640924
796d9736351b1dfd16e9ead4b00d90340632c424
11,339
py
Python
python/ray/serve/tests/test_standalone.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
39
2021-02-02T23:09:31.000Z
2022-03-28T16:39:12.000Z
python/ray/serve/tests/test_standalone.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
70
2019-03-13T05:25:48.000Z
2022-03-26T07:05:19.000Z
python/ray/serve/tests/test_standalone.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
20
2021-02-05T05:51:39.000Z
2022-03-04T21:13:24.000Z
""" The test file for all standalone tests that doesn't requires a shared Serve instance. """ import sys import socket import pytest import requests import ray from ray import serve from ray.cluster_utils import Cluster from ray.serve.constants import SERVE_PROXY_NAME from ray.serve.exceptions import RayServeExceptio...
29
79
0.653409
796d9802a5d8ceda62c9d142de701ee65005e5d4
1,024
py
Python
test/test_v1_subject_access_review_spec.py
tantioch/aiokubernetes
2f332498598ece14d22f8e59ecb02665db6db68d
[ "Apache-2.0" ]
24
2018-07-07T15:12:19.000Z
2021-09-01T07:33:11.000Z
test/test_v1_subject_access_review_spec.py
revoteon/aiokubernetes
730eae03e4779563740f07ad3ecef180b511ac18
[ "Apache-2.0" ]
5
2018-07-11T00:09:17.000Z
2018-10-22T16:41:54.000Z
test/test_v1_subject_access_review_spec.py
revoteon/aiokubernetes
730eae03e4779563740f07ad3ecef180b511ac18
[ "Apache-2.0" ]
3
2018-07-10T10:16:57.000Z
2018-10-20T19:32:05.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
24.97561
119
0.735352
796d9aad2f307d046214dea199e4c39855ab9354
707
py
Python
datapackage_pipelines/lib/concatenate.py
gperonato/datapackage-pipelines
72b98918db1c19590586a3a85c5b087227cbbc3b
[ "MIT" ]
109
2016-09-01T08:41:55.000Z
2021-11-10T10:08:35.000Z
datapackage_pipelines/lib/concatenate.py
gperonato/datapackage-pipelines
72b98918db1c19590586a3a85c5b087227cbbc3b
[ "MIT" ]
144
2016-08-30T16:26:50.000Z
2021-04-18T09:06:12.000Z
datapackage_pipelines/lib/concatenate.py
gperonato/datapackage-pipelines
72b98918db1c19590586a3a85c5b087227cbbc3b
[ "MIT" ]
34
2016-09-05T12:46:53.000Z
2022-03-05T01:53:49.000Z
from dataflows import Flow, concatenate, update_resource from datapackage_pipelines.wrapper import ingest from datapackage_pipelines.utilities.resources import PROP_STREAMING from datapackage_pipelines.utilities.flow_utils import spew_flow def flow(parameters): return Flow( concatenate( parame...
27.192308
68
0.619519
796d9b5ab573a54321342c6d5542a67942a57b67
889
py
Python
RebuttalAnalysis/RevRespSimilarity/embed.py
UKPLab/naacl2019-does-my-rebuttal-matter
ad76295863046e8d44995736598ca2643e47a3c9
[ "Apache-2.0" ]
24
2019-03-11T13:53:41.000Z
2021-03-26T01:39:43.000Z
RebuttalAnalysis/RevRespSimilarity/embed.py
yg211/naacl2019-does-my-rebuttal-matter
69b5311e5f5c51755091c0db8cffa8f17f01615a
[ "Apache-2.0" ]
2
2020-06-13T10:59:51.000Z
2020-08-06T09:03:27.000Z
RebuttalAnalysis/RevRespSimilarity/embed.py
yg211/naacl2019-does-my-rebuttal-matter
69b5311e5f5c51755091c0db8cffa8f17f01615a
[ "Apache-2.0" ]
2
2019-09-17T09:25:27.000Z
2020-03-09T15:55:16.000Z
import numpy as np from gensim.models import KeyedVectors from resources import EMBEDDING_PATH from sklearn.metrics.pairwise import cosine_similarity def averageEmbedding(model,sentence,lowercase=True): if lowercase: sentence = sentence.lower() vecs = [] for w in sentence.split(): # assume it's already tok...
32.925926
78
0.683915
796d9db2f0115a1c9d26e5b7435d19e3d7a1271a
1,162
py
Python
src/my_first_nn.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
1
2018-08-31T09:39:11.000Z
2018-08-31T09:39:11.000Z
src/my_first_nn.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
src/my_first_nn.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
import os import sys import numpy as np import pickle import matplotlib.pylab as plt sys.path.append(os.pardir) from dataset.mnist import load_mnist (x_train, t_train), (x_test, t_test) = load_mnist(flatten=True, normalize=True, one_hot_label=False) network = pickle.load(open("../ch03/sample_weight.pkl", "rb")) W1,...
24.208333
100
0.616179
796d9db5e0fc40e6e80627439ac41dfb19bcf0a5
1,255
py
Python
Server/ExpertWebtool/Helper/Storage.py
Kieran-Bacon/Expert-Opinions-Vegetation-Change
5b1e9a47beaecea1207979ff0a5ee02a26e5f3a9
[ "Apache-2.0" ]
null
null
null
Server/ExpertWebtool/Helper/Storage.py
Kieran-Bacon/Expert-Opinions-Vegetation-Change
5b1e9a47beaecea1207979ff0a5ee02a26e5f3a9
[ "Apache-2.0" ]
null
null
null
Server/ExpertWebtool/Helper/Storage.py
Kieran-Bacon/Expert-Opinions-Vegetation-Change
5b1e9a47beaecea1207979ff0a5ee02a26e5f3a9
[ "Apache-2.0" ]
null
null
null
import os, uuid from ExpertWebtool import CMOSTORAGE, TEMPSTORAGE from ExpertRep import ClimateModelOutput class CMOStore(): _model_store = [] def models(): if not CMOStore._model_store: for modelName in os.listdir(CMOSTORAGE): if modelName == "Placeholder.ignore": continue model = ClimateModelOutpu...
25.612245
71
0.713147
796d9df09b07cbdf0ac9726b9b5fbd9f0d4666b9
1,139
py
Python
napalm_servertech_pro2/constants.py
napalm-automation-community/napalm-servertech-pro2
5276ffb04b04edfff845e0ddb07807a1b60e6098
[ "Apache-2.0" ]
2
2021-05-19T17:44:34.000Z
2022-01-07T11:07:28.000Z
napalm_servertech_pro2/constants.py
napalm-automation-community/napalm-servertech-pro2
5276ffb04b04edfff845e0ddb07807a1b60e6098
[ "Apache-2.0" ]
null
null
null
napalm_servertech_pro2/constants.py
napalm-automation-community/napalm-servertech-pro2
5276ffb04b04edfff845e0ddb07807a1b60e6098
[ "Apache-2.0" ]
2
2021-05-18T11:28:27.000Z
2021-05-19T17:45:53.000Z
CONFIG_ITEMS = [ "access", "banner", "branches", "branches-global", "cli", "cords", "cords-global", "data-trending", "email", "ftp", "groups", "ldap", "lines", "lines-global", "network", "outlets", "outlets-global", "ocps", "phases", "phase...
16.75
50
0.523266
796d9e1c52706b6c25ffe3e76cc02b6ec37c1fbe
1,615
py
Python
keras_code/DataGeneratorTestingCross.py
wineslab/deepbeam
00bcebb043f2d9da8dd83300b12b9c253fde85b7
[ "MIT" ]
5
2021-08-12T20:46:46.000Z
2021-12-29T03:08:15.000Z
keras_code/DataGeneratorTestingCross.py
wineslab/deepbeam
00bcebb043f2d9da8dd83300b12b9c253fde85b7
[ "MIT" ]
null
null
null
keras_code/DataGeneratorTestingCross.py
wineslab/deepbeam
00bcebb043f2d9da8dd83300b12b9c253fde85b7
[ "MIT" ]
1
2021-10-05T16:01:57.000Z
2021-10-05T16:01:57.000Z
from DataGeneratorCross import DataGeneratorCross import numpy as np def main(): gains = [40, 50, 60] tx_beams = np.arange(0, 24) num_frames_for_gain_tx_beam_pair = 100 # 10000 # Order is gain * indexes = np.arange( 0, num_frames_for_gain_tx_beam_pair * len(tx_beams) * len(gains...
26.916667
97
0.594427
796d9e478e8f0f0dd182eba0bc3010f0b43dce0b
21,176
py
Python
Lib/site-packages/astroid/bases.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
2
2020-02-13T06:41:07.000Z
2022-02-14T09:28:02.000Z
Lib/site-packages/astroid/bases.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
null
null
null
Lib/site-packages/astroid/bases.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
null
null
null
# Copyright (c) 2009-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com> # Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Google, Inc. # Copyright (c) 2014 Eevee (Alex Munroe) <amunroe@yelp.com> # Copyright (c) 2015...
35.649832
88
0.621647
796d9e8a317ca0233a1ea1e0ddd6038b3f546a7b
1,782
py
Python
backend/handlers/graphql/types/pool.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
null
null
null
backend/handlers/graphql/types/pool.py
al-indigo/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
8
2017-10-11T13:26:10.000Z
2021-12-13T20:27:52.000Z
backend/handlers/graphql/types/pool.py
ispras/vmemperor
80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1
[ "Apache-2.0" ]
4
2017-07-27T12:25:42.000Z
2018-01-28T02:06:26.000Z
from enum import auto import graphene from serflag import SerFlag from handlers.graphql.interfaces.aclxenobject import GAclXenObject from handlers.graphql.resolvers.accessentry import resolve_accessentries from handlers.graphql.resolvers.host import hostType from handlers.graphql.resolvers.myactions import resolve_ow...
38.73913
116
0.790123
796d9f2e8407d3d4ac145aa76f281457c06f2142
538
py
Python
Project3/auto_test.py
YuMengJie001/NYU-CSA-Projects
3802a410c70adf791004d5a8aa4c6fc9474c6228
[ "Apache-2.0" ]
null
null
null
Project3/auto_test.py
YuMengJie001/NYU-CSA-Projects
3802a410c70adf791004d5a8aa4c6fc9474c6228
[ "Apache-2.0" ]
null
null
null
Project3/auto_test.py
YuMengJie001/NYU-CSA-Projects
3802a410c70adf791004d5a8aa4c6fc9474c6228
[ "Apache-2.0" ]
null
null
null
import subprocess with open('trace.txt', 'r') as f: data = [int(line[-2:-1]) for line in f.readlines()] for m in range(1, 21): with open('config.txt', 'w') as f: f.write(str(m) + '\n2') try: subprocess.check_call('./branchsimulator.out', shell=True) except subprocess.Called...
31.647059
82
0.576208
796d9f61f3362e333b762921e23a57d6c47c8a8f
40,846
py
Python
tests/api/test_translations.py
dnordio/saleor
323963748e6a2702265ec6635b930a234abde4f5
[ "BSD-3-Clause" ]
1
2019-05-02T17:24:05.000Z
2019-05-02T17:24:05.000Z
tests/api/test_translations.py
valentine217/saleor
323963748e6a2702265ec6635b930a234abde4f5
[ "BSD-3-Clause" ]
null
null
null
tests/api/test_translations.py
valentine217/saleor
323963748e6a2702265ec6635b930a234abde4f5
[ "BSD-3-Clause" ]
1
2019-05-02T17:24:11.000Z
2019-05-02T17:24:11.000Z
import graphene import pytest from saleor.graphql.translations.schema import TranslatableKinds from tests.api.utils import get_graphql_content def test_product_translation(user_api_client, product): product.translations.create(language_code='pl', name='Produkt') query = """ query productById($productId:...
31.299617
79
0.56669
796da110b1f99517c65b9176ccf15dc10a8fa50a
4,209
py
Python
2.1-en-route-salute/solution.py
danielpetrica/google-foobar
81fa6ee25b32d3018887c827211b3208b3eba03b
[ "MIT" ]
null
null
null
2.1-en-route-salute/solution.py
danielpetrica/google-foobar
81fa6ee25b32d3018887c827211b3208b3eba03b
[ "MIT" ]
null
null
null
2.1-en-route-salute/solution.py
danielpetrica/google-foobar
81fa6ee25b32d3018887c827211b3208b3eba03b
[ "MIT" ]
null
null
null
def solution(s): # array of person objects people = [] # type: list # used to find the last index corridor_length = s.__len__() # type: int # data to return salute_count = 0 # type: int salutes = SaluteCheck() parse(s, people, corridor_length) for person in people: # type: Pers...
36.921053
118
0.540746
796da1330d6330d57477213303add1c9aa2ec7fc
2,950
py
Python
main.py
dbouget/ct_mediastinal_structures_segmentation
697795c479ad1bc62f4efb6c0ddedf2e8d4da175
[ "BSD-2-Clause" ]
5
2021-02-11T23:52:10.000Z
2021-12-30T13:32:41.000Z
main.py
dbouget/ct_mediastinal_structures_segmentation
697795c479ad1bc62f4efb6c0ddedf2e8d4da175
[ "BSD-2-Clause" ]
2
2021-07-26T01:11:14.000Z
2022-02-01T16:47:09.000Z
main.py
dbouget/ct_mediastinal_structures_segmentation
697795c479ad1bc62f4efb6c0ddedf2e8d4da175
[ "BSD-2-Clause" ]
null
null
null
import getopt import os import sys from src.fit import fit, fit_ensemble def main(argv): input_filename = '' output_prefix = '' model_list = '' lungs_mask_filename = None apg_mask_filename = None gpu_id = '-1' try: opts, args = getopt.getopt(argv, "hi:o:m:l:a:g:", ["Input=", "Outpu...
40.972222
118
0.620678
796da2740d9398b7f85f3e56ff4c8d7a3aba741d
10,129
py
Python
Plotting_Scripts/Elimination_Methods_Comparison.py
FILALIHicham/Numerical_Analysis_Optimization_Package
b12b12bf529d0f42ab268fd29188e887fa6fbbdb
[ "MIT" ]
1
2022-02-25T00:03:41.000Z
2022-02-25T00:03:41.000Z
Plotting_Scripts/Elimination_Methods_Comparison.py
FILALIHicham/Numerical_Analysis_Optimization_Package
b12b12bf529d0f42ab268fd29188e887fa6fbbdb
[ "MIT" ]
null
null
null
Plotting_Scripts/Elimination_Methods_Comparison.py
FILALIHicham/Numerical_Analysis_Optimization_Package
b12b12bf529d0f42ab268fd29188e887fa6fbbdb
[ "MIT" ]
null
null
null
#=================================================\\Documentation//================================================== """ This program generates and saves a gif file containing a comparison plot of the optimisation elimination methods that we have imported in the package. In this program, I have defined the "iter"...
27.301887
190
0.54033
796da290265b1b6c718a39ded6c2fdd3740d0801
1,588
py
Python
fbvid_downloader.py
0xWise64/fbvid_downloader
1f52112efd42a575b9111d280251dbb4879c648d
[ "MIT" ]
1
2021-12-03T16:21:03.000Z
2021-12-03T16:21:03.000Z
fbvid_downloader.py
0xWise64/fbvid_downloader
1f52112efd42a575b9111d280251dbb4879c648d
[ "MIT" ]
null
null
null
fbvid_downloader.py
0xWise64/fbvid_downloader
1f52112efd42a575b9111d280251dbb4879c648d
[ "MIT" ]
null
null
null
import requests import bs4 import json import argparse import random def download(k): r = requests.get(str(k), timeout=10) bs = bs4.BeautifulSoup(r.text, 'html.parser') scripts = bs.find_all('script') if r.status_code == 200: for s in scripts: if 'embedUrl' in s.text...
35.288889
129
0.576826
796da2cea15ad88c60fb3896847360453212483a
12,501
py
Python
python_modules/dagster/dagster/core/execution/plan/execute_plan.py
metinsenturk/dagster
3560475d0d99a319632625683002931e502f32ed
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/execute_plan.py
metinsenturk/dagster
3560475d0d99a319632625683002931e502f32ed
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/plan/execute_plan.py
metinsenturk/dagster
3560475d0d99a319632625683002931e502f32ed
[ "Apache-2.0" ]
null
null
null
import sys from typing import Iterator, List, cast from dagster import check from dagster.core.definitions import Failure, HookExecutionResult, RetryRequested from dagster.core.errors import ( DagsterError, DagsterExecutionInterruptedError, DagsterUserCodeExecutionError, HookExecutionError, user_co...
42.520408
103
0.661387
796da41ae19635dbb584bc9a61fd7aaf9d0b63ed
2,408
py
Python
contact/serializers.py
mx-hacks/IV-Back-End
5103cfed84a8de67809947ff243698502c83db28
[ "MIT" ]
null
null
null
contact/serializers.py
mx-hacks/IV-Back-End
5103cfed84a8de67809947ff243698502c83db28
[ "MIT" ]
null
null
null
contact/serializers.py
mx-hacks/IV-Back-End
5103cfed84a8de67809947ff243698502c83db28
[ "MIT" ]
null
null
null
from django.conf import settings from django.template.loader import render_to_string from rest_framework import serializers from .models import Sponsor, Hacker from mxhacks.utils import send_mail class SponsorSerializer(serializers.ModelSerializer): class Meta: model = Sponsor fields = ( ...
27.05618
77
0.527824
796da4c622ebf651c3402a5a7857be24c7de8afc
9,055
py
Python
salt/modules/cloud.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:21.000Z
2020-01-02T09:03:21.000Z
salt/modules/cloud.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
null
null
null
salt/modules/cloud.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' Salt-specific interface for calling Salt Cloud directly ''' # Import python libs from __future__ import absolute_import import os import logging import copy import salt.utils # Import salt libs try: import salt.cloud HAS_SALTCLOUD = True except ImportError: HAS_SALTCLOUD = Fals...
21.662679
163
0.661623
796da4edee1c42c53359e176f4d9e514d2c3d060
13,758
py
Python
models/mixnet.py
wps712/MicroNetChallenge
5edc5aaaf918826eb1669897024ad4e6f5220d3e
[ "Apache-2.0" ]
11
2019-12-09T06:24:01.000Z
2021-01-18T12:07:24.000Z
models/mixnet.py
PeisongWang/MicroNetChallenge
5edc5aaaf918826eb1669897024ad4e6f5220d3e
[ "Apache-2.0" ]
null
null
null
models/mixnet.py
PeisongWang/MicroNetChallenge
5edc5aaaf918826eb1669897024ad4e6f5220d3e
[ "Apache-2.0" ]
8
2019-12-17T05:59:35.000Z
2021-01-05T03:45:12.000Z
import torch import torch.nn as nn import numpy as np from collections import OrderedDict __all__ = ['mixnet_m', 'mixnet_l', 'mixnet_s'] class Swish(nn.Module): def __init__(self, inplace=True): super(Swish, self).__init__() self.inplace = inplace def forward(self, x): #return x * t...
38.537815
153
0.610263
796da51b594d266697addceb7e0bd2493d42bc7c
936
py
Python
examples/update_to_latest_ledger.py
egorsmkv/libra-grpc-py
5afe7121ccfd3d14edad64a031e278d75e62813e
[ "Apache-2.0" ]
17
2019-06-23T09:13:41.000Z
2021-02-12T08:46:57.000Z
examples/update_to_latest_ledger.py
egorsmkv/libra-grpc-py
5afe7121ccfd3d14edad64a031e278d75e62813e
[ "Apache-2.0" ]
null
null
null
examples/update_to_latest_ledger.py
egorsmkv/libra-grpc-py
5afe7121ccfd3d14edad64a031e278d75e62813e
[ "Apache-2.0" ]
4
2019-06-23T03:48:38.000Z
2019-09-07T09:40:45.000Z
import grpc from lib.admission_control_pb2_grpc import AdmissionControlStub from lib.get_with_proof_pb2 import UpdateToLatestLedgerRequest from examples.config import SERVER_ADDRESS def run(): channel = grpc.insecure_channel(SERVER_ADDRESS) stub = AdmissionControlStub(channel) request = UpdateToLatestLe...
31.2
85
0.757479
796da652b7d825036c088705afae87cd90011508
4,812
py
Python
Tkinter Apps/Connect4.py
lazydinoz/HackFest21
84bfbfbb2c75a6511226a87d2e947984db878ba1
[ "MIT" ]
1
2021-11-12T10:51:19.000Z
2021-11-12T10:51:19.000Z
Tkinter Apps/Connect4.py
lazydinoz/HackFest21
84bfbfbb2c75a6511226a87d2e947984db878ba1
[ "MIT" ]
null
null
null
Tkinter Apps/Connect4.py
lazydinoz/HackFest21
84bfbfbb2c75a6511226a87d2e947984db878ba1
[ "MIT" ]
null
null
null
import numpy as np import pygame import sys import math BLUE = (0, 0, 255) BLACK = (0, 0, 0) RED = (255, 0, 0) YELLOW = (255, 255, 0) ROW_COUNT = 6 COLUMN_COUNT = 7 def create_board(): board = np.zeros((ROW_COUNT, COLUMN_COUNT)) return board def drop_piece(board, row, col, piece): board[row][col] = pi...
29.888199
123
0.547797
796da6a906b475c42818c1a48a79578d6d764db2
2,422
py
Python
mmdet2trt/models/roi_heads/bbox_heads/sabl_head.py
jackweiwang/mmdetection-to-tensorrt
f988ba8e923764fb1173385a1c7160b8f8b5bd99
[ "Apache-2.0" ]
1
2021-08-23T10:09:37.000Z
2021-08-23T10:09:37.000Z
mmdet2trt/models/roi_heads/bbox_heads/sabl_head.py
gcong18/mmdetection-to-tensorrt
c31c32ee4720ff56010bcda77bacf3a110d0526c
[ "Apache-2.0" ]
null
null
null
mmdet2trt/models/roi_heads/bbox_heads/sabl_head.py
gcong18/mmdetection-to-tensorrt
c31c32ee4720ff56010bcda77bacf3a110d0526c
[ "Apache-2.0" ]
null
null
null
from mmdet2trt.models.builder import register_wraper, build_wraper import torch from torch import nn import torch.nn.functional as F from .bbox_head import BBoxHeadWraper @register_wraper("mmdet.models.roi_heads.bbox_heads.sabl_head.SABLHead") class SABLHeadWraper(BBoxHeadWraper): def __init__(self, module, test_...
39.064516
77
0.605285
796da6c1cf21bb36b16010dcd4ff21bbc5b82b9e
705
py
Python
hijack/tests/test_templatetags.py
LysanderKie/django-hijack
f6655bb5f20bd18301d7b0bb13de77117f3e0d78
[ "MIT" ]
884
2015-01-06T21:05:58.000Z
2021-01-18T20:23:27.000Z
hijack/tests/test_templatetags.py
LysanderKie/django-hijack
f6655bb5f20bd18301d7b0bb13de77117f3e0d78
[ "MIT" ]
182
2021-01-22T00:18:22.000Z
2022-03-31T07:53:18.000Z
hijack/tests/test_templatetags.py
LysanderKie/django-hijack
f6655bb5f20bd18301d7b0bb13de77117f3e0d78
[ "MIT" ]
138
2015-01-07T22:06:58.000Z
2021-01-17T22:39:32.000Z
from django.urls import reverse from hijack.templatetags import hijack as templatetags from .test_app.permissions import allow_all, deny_all def test_can_hijack__integration(admin_client): response = admin_client.get(reverse("user-list")) assert response.status_code == 200 assert b'<button type="submit"...
32.045455
87
0.77305
796da733d778813a77f3ab9dbe910bf4db9ef3c5
4,269
py
Python
comply/rules/standard/prefer_sized_integers.py
jhauberg/comply
0461ab96b85a1f368839aae8a5029ece3a5e4ed8
[ "MIT" ]
null
null
null
comply/rules/standard/prefer_sized_integers.py
jhauberg/comply
0461ab96b85a1f368839aae8a5029ece3a5e4ed8
[ "MIT" ]
1
2018-11-02T11:55:12.000Z
2018-11-02T11:55:12.000Z
comply/rules/standard/prefer_sized_integers.py
jhauberg/comply
0461ab96b85a1f368839aae8a5029ece3a5e4ed8
[ "MIT" ]
null
null
null
# coding=utf-8 import re from comply.rules.rule import * def match_exactly(int_type: str) -> str: return r'\bunsigned\s+{type}\b|\bsigned\s+{type}\b|(\b{type}\b)'.format( type=int_type) def match_signed(int_type: str) -> str: return r'\b(signed {type})\b'.format( type=int_type) def match...
35.280992
98
0.591473
796da80fd3e4e19067f63e37658279bb83e4ff2b
481
py
Python
py/cliff.py
gigliovale/h2o
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
882
2015-05-22T02:59:21.000Z
2022-02-17T05:02:48.000Z
py/cliff.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
1
2022-02-22T12:15:02.000Z
2022-02-22T12:15:02.000Z
py/cliff.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
392
2015-05-22T17:04:11.000Z
2022-02-22T09:04:39.000Z
import h2o, h2o_cmd import h2o_browse as h2b import time, sys, h2o_hosts h2o.clean_sandbox() h2o.parse_our_args() try: while True: sys.stdout.write('.') sys.stdout.flush() #h2o.build_cloud(5) h2o_hosts.build_cloud_with_hosts() h2o.tear_down_cloud() h2o.check_sandbox...
21.863636
42
0.68815
796da89e00576565eac9c350b5a27c6bb4613ca1
620
py
Python
Scripts/rst2html.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
null
null
null
Scripts/rst2html.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
null
null
null
Scripts/rst2html.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
null
null
null
#!C:/Users/user/anaconda3/envs/ST\python.exe # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML. """ try: import locale locale.setl...
25.833333
78
0.735484
796da8b26847ec640adb5e11fc30ea36789857fb
919
py
Python
sockets/drafts/endlessServerListener.py
benitodarder/python-workshop
92ae8070114016eb07da2ac88111cb677c7f0e6a
[ "Unlicense" ]
null
null
null
sockets/drafts/endlessServerListener.py
benitodarder/python-workshop
92ae8070114016eb07da2ac88111cb677c7f0e6a
[ "Unlicense" ]
null
null
null
sockets/drafts/endlessServerListener.py
benitodarder/python-workshop
92ae8070114016eb07da2ac88111cb677c7f0e6a
[ "Unlicense" ]
null
null
null
# Reads endlessly until SIGINT import sys import socket import signal def signal_handler(signal, frame): print("That's all folks!") sys.exit(0) def usage(): print('python echoServer.py <address> <port> <buffer>') def main(args): if (len(args) != 4): usage() else: s = socket.socket...
27.029412
79
0.546246
796da8eea6ab61d3d084d43a42718f5960083738
290
py
Python
cvrobot/util.py
jopereira/cvrobot
130cee172fc040351b9463022dc0cec76c393a80
[ "Unlicense" ]
1
2019-03-25T09:36:18.000Z
2019-03-25T09:36:18.000Z
cvrobot/util.py
jopereira/cvrobot
130cee172fc040351b9463022dc0cec76c393a80
[ "Unlicense" ]
null
null
null
cvrobot/util.py
jopereira/cvrobot
130cee172fc040351b9463022dc0cec76c393a80
[ "Unlicense" ]
null
null
null
import getpass import keyring def pedePassword(user): passwd = keyring.get_password("cvrobot", user) if passwd == None: passwd = getpass.getpass() keyring.set_password("cvrobot", user, passwd) else: print("Password found in keyring.") return passwd
24.166667
53
0.662069
796da9d962f1bfb8ada7135d16006d19e102f545
7,512
py
Python
intents/oversights/benchmark_set_too_different.py
anmoliiitd823/debaised-analysis
1dddfa87de0a889156afa25fcd1626de11b715e3
[ "Apache-2.0" ]
null
null
null
intents/oversights/benchmark_set_too_different.py
anmoliiitd823/debaised-analysis
1dddfa87de0a889156afa25fcd1626de11b715e3
[ "Apache-2.0" ]
null
null
null
intents/oversights/benchmark_set_too_different.py
anmoliiitd823/debaised-analysis
1dddfa87de0a889156afa25fcd1626de11b715e3
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Google LLC 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 law or agreed to in writing, software distrib...
41.274725
212
0.670793
796daad1fc0bd5db1ff58e8077549e376106232d
2,623
py
Python
flasktodo/auth.py
BillSpyro/flask-todo
fb6e4e98933e2db15fcbf49de1774a619f535d03
[ "MIT" ]
null
null
null
flasktodo/auth.py
BillSpyro/flask-todo
fb6e4e98933e2db15fcbf49de1774a619f535d03
[ "MIT" ]
null
null
null
flasktodo/auth.py
BillSpyro/flask-todo
fb6e4e98933e2db15fcbf49de1774a619f535d03
[ "MIT" ]
null
null
null
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash from . import db bp = Blueprint('auth', __name__, url_prefix='/auth') @bp.route('/register', methods=('GET', 'POST')) def reg...
27.041237
77
0.572627
796daba01e0a0405723193520fb9196369affd5a
9,068
py
Python
NoComponentDrag.py
thomasa88/NoComponentDrag
135d736e77b6efe940bc18dc6e011e8e84182111
[ "MIT" ]
8
2021-03-11T14:52:45.000Z
2022-01-05T04:35:21.000Z
NoComponentDrag.py
thomasa88/NoComponentDrag
135d736e77b6efe940bc18dc6e011e8e84182111
[ "MIT" ]
7
2020-11-03T20:40:22.000Z
2021-12-10T23:06:36.000Z
NoComponentDrag.py
thomasa88/NoComponentDrag
135d736e77b6efe940bc18dc6e011e8e84182111
[ "MIT" ]
1
2021-08-13T01:36:54.000Z
2021-08-13T01:36:54.000Z
#Author-Thomas Axelsson, ZXYNINE #Description-Blocks Component Dragging in parametric mode # This file is part of NoComponentDrag, a Fusion 360 add-in for blocking # component drags. # # Copyright (c) 2020 Thomas Axelsson # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
46.984456
136
0.732025
796dac3602b76e91304364cffb8141d7479b58f7
469
py
Python
chapter03/bar2.py
teleported/ds-fromscratch
cbc598f1ba8d89412f4617cf19fc00e53bc55b28
[ "MIT" ]
null
null
null
chapter03/bar2.py
teleported/ds-fromscratch
cbc598f1ba8d89412f4617cf19fc00e53bc55b28
[ "MIT" ]
null
null
null
chapter03/bar2.py
teleported/ds-fromscratch
cbc598f1ba8d89412f4617cf19fc00e53bc55b28
[ "MIT" ]
null
null
null
#!/usr/bin/python import matplotlib matplotlib.use('Qt4Agg') from collections import Counter from matplotlib import pyplot as plt import random grades = random.sample(range(100), 10) deciles = [i // 10 * 10 for i in grades] histogram = Counter(deciles) plt.bar([k - 4 for k in histogram.keys()], histogram.values(), ...
22.333333
65
0.703625
796dacb0e8d5c19186a8ae7208f221228e6e29ce
6,584
py
Python
tests/test_generate.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
tests/test_generate.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
tests/test_generate.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
# Copyright 2o18 Premise Data # # 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, ...
40.146341
108
0.612849
796dacbd684dca72f16a8e3004583bd75f958605
3,148
py
Python
pytorch/nlp/language-modeling/wikitext2-lstm-all-reduce/utils/utils.py
mlbench/mlbench-benchmarks
625226ad1f00f6ba93568c33268a7da57e823115
[ "Apache-2.0" ]
12
2019-02-23T19:21:59.000Z
2021-10-17T16:23:33.000Z
pytorch/nlp/language-modeling/wikitext2-lstm-all-reduce/utils/utils.py
mlbench/mlbench-benchmarks
625226ad1f00f6ba93568c33268a7da57e823115
[ "Apache-2.0" ]
63
2018-10-09T12:18:23.000Z
2022-02-24T11:24:03.000Z
pytorch/nlp/language-modeling/wikitext2-lstm-all-reduce/utils/utils.py
mlbench/mlbench-benchmarks
625226ad1f00f6ba93568c33268a7da57e823115
[ "Apache-2.0" ]
6
2019-02-23T19:22:02.000Z
2021-08-23T08:16:50.000Z
import logging import torch import torch.distributed as dist from mlbench_core.utils import AverageMeter from mlbench_core.utils.pytorch.distributed import get_backend_tensor, global_average logger = logging.getLogger("mlbench") def repackage_hidden(h): """Wraps hidden states in new Tensors, to detach them...
30.269231
85
0.653431
796dad2b359ac580f2da98f215e7dc5f810df180
11,450
py
Python
neutron/objects/router.py
netsec/neutron
17f90e17f139dc47eaafa1d3e342eb87ff0f61ed
[ "Apache-2.0" ]
null
null
null
neutron/objects/router.py
netsec/neutron
17f90e17f139dc47eaafa1d3e342eb87ff0f61ed
[ "Apache-2.0" ]
null
null
null
neutron/objects/router.py
netsec/neutron
17f90e17f139dc47eaafa1d3e342eb87ff0f61ed
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
36.81672
79
0.664541
796dad37b6cba7fb587e51b93877a9c5726459a8
3,246
py
Python
app/app/settings.py
Kane-Ryans/recipe-app-api
23f43bdf7cae98209edfc43d81c735fa83994c8e
[ "MIT" ]
null
null
null
app/app/settings.py
Kane-Ryans/recipe-app-api
23f43bdf7cae98209edfc43d81c735fa83994c8e
[ "MIT" ]
null
null
null
app/app/settings.py
Kane-Ryans/recipe-app-api
23f43bdf7cae98209edfc43d81c735fa83994c8e
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.761905
91
0.689464
796dadb1bed128e4b400be78e4172248355ff2e8
8,038
py
Python
academictorrents/Tracker.py
ozendelait/at-python
6a4817e258c3786a1ce982bf6a3e5cf4bcac65d9
[ "MIT" ]
7
2020-06-22T04:58:16.000Z
2021-05-20T03:50:24.000Z
academictorrents/Tracker.py
ozendelait/at-python
6a4817e258c3786a1ce982bf6a3e5cf4bcac65d9
[ "MIT" ]
6
2021-03-02T14:06:02.000Z
2021-11-17T20:32:55.000Z
academictorrents/Tracker.py
ozendelait/at-python
6a4817e258c3786a1ce982bf6a3e5cf4bcac65d9
[ "MIT" ]
3
2021-05-01T19:12:08.000Z
2021-12-12T00:58:56.000Z
import bencode import requests import logging import struct import random import socket import threading import datetime import time from threading import Thread from . import utils from .version import __version__ # Python 2 and 3: alternative 4 try: from urllib.parse import urlparse except ImportError: from u...
36.703196
175
0.55785
796dae6c9f0d1966b544f99e9c9c7b0a0a7209bb
5,726
py
Python
ni_python_styleguide/_cli.py
rick-morrow/python-styleguide
8fac8f412d6c710c65b8964bbcf4bdc8681c04c5
[ "MIT" ]
null
null
null
ni_python_styleguide/_cli.py
rick-morrow/python-styleguide
8fac8f412d6c710c65b8964bbcf4bdc8681c04c5
[ "MIT" ]
null
null
null
ni_python_styleguide/_cli.py
rick-morrow/python-styleguide
8fac8f412d6c710c65b8964bbcf4bdc8681c04c5
[ "MIT" ]
null
null
null
import contextlib from io import StringIO import logging import pathlib import click import flake8.main.application import toml from ni_python_styleguide import _acknowledge_existing_errors def _qs_or_vs(verbosity): if verbosity != 0: return f"-{'v' * verbosity if verbosity > 0 else 'q' * abs(verbosity)...
32.534091
96
0.645826
796daf667c93e21aa80ffbc36470f1f3fb9d4ca6
19,604
py
Python
sprint_challenge/aqthing/openaq.py
llpk79/DS-Unit-3-Sprint-3-Productization-and-Cloud
9af972adad6cc99eab417bba2bfb0d35c92bb181
[ "MIT" ]
null
null
null
sprint_challenge/aqthing/openaq.py
llpk79/DS-Unit-3-Sprint-3-Productization-and-Cloud
9af972adad6cc99eab417bba2bfb0d35c92bb181
[ "MIT" ]
null
null
null
sprint_challenge/aqthing/openaq.py
llpk79/DS-Unit-3-Sprint-3-Productization-and-Cloud
9af972adad6cc99eab417bba2bfb0d35c92bb181
[ "MIT" ]
null
null
null
"""Simple openaq to only depend on json, math, and requests (no dfs/plots).""" #!/usr/bin/env python # -*- coding: utf-8 -*- import json import requests import math class ApiError(Exception): pass class API(object): """Generic API wrapper object. """ def __init__(self, **kwargs): self._key ...
36.438662
123
0.513824
796db01646e169bff214aa56489f82b27e65c563
76,965
py
Python
tests/test_protocols/test_generator/test_validate.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_protocols/test_generator/test_validate.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_protocols/test_generator/test_validate.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
39.775194
243
0.632794
796db187b9fd7772e46e3f2a0b1a10fe99b32cc7
3,508
py
Python
src/openbiolink/gui/startPage.py
cthoyt/OpenBioLink
c5f85b99f9104f70493136c343e4554261e990a5
[ "MIT" ]
null
null
null
src/openbiolink/gui/startPage.py
cthoyt/OpenBioLink
c5f85b99f9104f70493136c343e4554261e990a5
[ "MIT" ]
null
null
null
src/openbiolink/gui/startPage.py
cthoyt/OpenBioLink
c5f85b99f9104f70493136c343e4554261e990a5
[ "MIT" ]
null
null
null
import os import tkinter as tk from tkinter import messagebox, filedialog, ttk from openbiolink.gui import gui as gui class StartPage(tk.Frame): def __init__(self, parent, controller): tk.Frame.__init__(self, parent) self.controller = controller self.info_text="select " titles_p...
42.780488
117
0.632269
796db1e9893df88d08e4174134d7a83a209c71b7
18,186
py
Python
trainer.py
malashinroman/recurrent-visual-attention
7a0ba286e35565bf52eea7995e277d2c7c03d1ad
[ "MIT" ]
null
null
null
trainer.py
malashinroman/recurrent-visual-attention
7a0ba286e35565bf52eea7995e277d2c7c03d1ad
[ "MIT" ]
null
null
null
trainer.py
malashinroman/recurrent-visual-attention
7a0ba286e35565bf52eea7995e277d2c7c03d1ad
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch.autograd import Variable import torch.optim as optim from torch.optim.lr_scheduler import ReduceLROnPlateau import os import time import shutil import pickle from tqdm import tqdm from utils import AverageMeter from model import RecurrentAttention from tensorbo...
34.120075
79
0.527824
796db29f6749c67159800a332b7097fc692b3bd2
711
py
Python
LeetCode/021. Merge Two Sorted Lists.py
QinganZhao/LXXtCode
9debb10f9d33dcdb3def9d141a638b8172d25ff3
[ "MIT" ]
3
2019-01-08T02:53:44.000Z
2021-07-26T07:03:27.000Z
LeetCode/021. Merge Two Sorted Lists.py
QinganZhao/LXXtCode
9debb10f9d33dcdb3def9d141a638b8172d25ff3
[ "MIT" ]
null
null
null
LeetCode/021. Merge Two Sorted Lists.py
QinganZhao/LXXtCode
9debb10f9d33dcdb3def9d141a638b8172d25ff3
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def mergeTwoLists(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ curre...
22.21875
37
0.434599
796db4d83ae01e8520ed7b8d1780d073d0feb08e
784
py
Python
rStagger/inst/java/scripts/conll.py
arianbarakat/rStagger
0e272882e27cf7a5d96ec561e964c8284a99417a
[ "MIT" ]
null
null
null
rStagger/inst/java/scripts/conll.py
arianbarakat/rStagger
0e272882e27cf7a5d96ec561e964c8284a99417a
[ "MIT" ]
null
null
null
rStagger/inst/java/scripts/conll.py
arianbarakat/rStagger
0e272882e27cf7a5d96ec561e964c8284a99417a
[ "MIT" ]
1
2018-10-31T15:16:13.000Z
2018-10-31T15:16:13.000Z
def read_sent(f): toks = [] while True: line = f.readline() if line == "": return toks if len(toks) > 0 else None elif line.startswith("#"): continue elif line.endswith(u"\u2028") or line.endswith(u"\u0085") or \ line.endswith(u"\u2029"): ...
29.037037
71
0.465561
796db5812725d2fa44514dfd3891e9179a6ef730
1,680
py
Python
setup.py
liumenglife/factorset
ad246804449b31c0e24434ade75b86513eecf72c
[ "MIT" ]
24
2018-04-19T10:01:54.000Z
2022-03-23T03:47:36.000Z
setup.py
quantasset/factorset
ad246804449b31c0e24434ade75b86513eecf72c
[ "MIT" ]
null
null
null
setup.py
quantasset/factorset
ad246804449b31c0e24434ade75b86513eecf72c
[ "MIT" ]
21
2018-10-18T06:34:27.000Z
2022-01-18T01:52:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst', encoding='utf-8') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['Click>=6.0', 'aioh...
29.473684
112
0.623214
796db6d28a0fe3348b2afdb8836353cb5646cc93
682
py
Python
bpgen/path.py
EhwaZoom/bpgen
ed8d8ebd064a0905b744897e76eb4ca3c8af1a1b
[ "Apache-2.0" ]
null
null
null
bpgen/path.py
EhwaZoom/bpgen
ed8d8ebd064a0905b744897e76eb4ca3c8af1a1b
[ "Apache-2.0" ]
null
null
null
bpgen/path.py
EhwaZoom/bpgen
ed8d8ebd064a0905b744897e76eb4ca3c8af1a1b
[ "Apache-2.0" ]
null
null
null
import os def get_path_to_module(path_to_modules, module_name): return os.path.join( path_to_modules, module_name ) def get_path_to_templates(path_to_module): return os.path.join( path_to_module, 'templates' ) def get_path_to_template(path_to_module, template_name):...
17.947368
56
0.66129
796db7f8d2787391f1dfd2eb1fd1de0559cc856b
1,708
py
Python
hotair/template/dom.py
serviper/hota
b132d94af7217ce90636bf1af4f207dc01d00116
[ "MIT" ]
null
null
null
hotair/template/dom.py
serviper/hota
b132d94af7217ce90636bf1af4f207dc01d00116
[ "MIT" ]
null
null
null
hotair/template/dom.py
serviper/hota
b132d94af7217ce90636bf1af4f207dc01d00116
[ "MIT" ]
null
null
null
from uuid import uuid4 from starlette.websockets import WebSocket from .custom import CustomElement from .element import Element from .internal import hotair_ack, hotair_frame, hotair_payload from .utils import make_nonce class DOM: def __init__(self, *, ws: WebSocket): self.ws = ws def _accumulate...
32.846154
76
0.611827
796db958239ac2a1837f59b1ef9cc31b30a7bb83
7,031
py
Python
tool/torchutils.py
aaaqhbd/psa
e000545acb7949f8efab451a6cfdbc80bbc33ca8
[ "MIT" ]
null
null
null
tool/torchutils.py
aaaqhbd/psa
e000545acb7949f8efab451a6cfdbc80bbc33ca8
[ "MIT" ]
null
null
null
tool/torchutils.py
aaaqhbd/psa
e000545acb7949f8efab451a6cfdbc80bbc33ca8
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset from PIL import Image import os.path import random import numpy as np from tool import imutils class PolyOptimizer(torch.optim.SGD): def __init__(self, params, lr, weight_decay, max_step, momentum=0.9): super().__init__(params, lr, weight_decay) ...
32.550926
153
0.651828
796db99a5bb382afdd09c1eda0ad3af76ed6c3df
2,256
py
Python
fastestimator/op/tensorop/loss/l2_regularization.py
fastestimator/fastestimator
a8ea30c5da2d92ff8aa0de0084d10c86fb8dfd10
[ "Apache-2.0" ]
57
2019-05-21T21:29:26.000Z
2022-02-23T05:55:21.000Z
fastestimator/op/tensorop/loss/l2_regularization.py
fastestimator/fastestimator
a8ea30c5da2d92ff8aa0de0084d10c86fb8dfd10
[ "Apache-2.0" ]
93
2019-05-23T18:36:07.000Z
2022-03-23T17:15:55.000Z
fastestimator/op/tensorop/loss/l2_regularization.py
fastestimator/fastestimator
a8ea30c5da2d92ff8aa0de0084d10c86fb8dfd10
[ "Apache-2.0" ]
47
2019-05-09T15:41:37.000Z
2022-03-26T17:00:08.000Z
# Copyright 2021 The FastEstimator 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 appl...
40.285714
120
0.66578
796db9c060ea34b21b228c0c30d9680b6e488cea
2,501
py
Python
octavia/tests/unit/controller/worker/v2/flows/test_l7policy_flows.py
johnsom/octavia
41c628a084002017d2003926cf0e25ba3ffeee0c
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/v2/flows/test_l7policy_flows.py
johnsom/octavia
41c628a084002017d2003926cf0e25ba3ffeee0c
[ "Apache-2.0" ]
null
null
null
octavia/tests/unit/controller/worker/v2/flows/test_l7policy_flows.py
johnsom/octavia
41c628a084002017d2003926cf0e25ba3ffeee0c
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Blue Box, an IBM Company # # 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 ...
36.246377
75
0.754098
796dba8983d65e92ed86852b9715fe098ac684ad
15,833
py
Python
cflow/misc/toolkit.py
carefree0910/carefree-flow
7035015a072cf8142074d01683889f90950d2939
[ "MIT" ]
11
2021-08-25T11:10:49.000Z
2021-09-05T11:52:42.000Z
cflow/misc/toolkit.py
carefree0910/carefree-flow
7035015a072cf8142074d01683889f90950d2939
[ "MIT" ]
null
null
null
cflow/misc/toolkit.py
carefree0910/carefree-flow
7035015a072cf8142074d01683889f90950d2939
[ "MIT" ]
2
2021-08-28T01:17:10.000Z
2021-09-02T04:04:43.000Z
import os import json import math import time import shutil import inspect import logging import urllib.request import numpy as np import oneflow as flow import oneflow.nn as nn import matplotlib.pyplot as plt import oneflow.nn.functional as F from PIL import Image from PIL import ImageDraw from tqdm import tqdm from...
30.565637
88
0.613087
796dbb6595a4845eecf8a354587cdfc6a39eec06
5,555
py
Python
skrf/media/cpw.py
Vinc0110/scikit-rf
c8501ad6d7a09e7bc79eb6df87b9e2d28868fca5
[ "BSD-3-Clause" ]
2
2018-04-20T16:26:53.000Z
2021-02-19T17:56:33.000Z
skrf/media/cpw.py
Vinc0110/scikit-rf
c8501ad6d7a09e7bc79eb6df87b9e2d28868fca5
[ "BSD-3-Clause" ]
1
2021-07-15T14:45:49.000Z
2021-07-15T14:45:49.000Z
skrf/media/cpw.py
Vinc0110/scikit-rf
c8501ad6d7a09e7bc79eb6df87b9e2d28868fca5
[ "BSD-3-Clause" ]
null
null
null
""" cpw (:mod:`skrf.media.cpw`) ======================================== .. autosummary:: :toctree: generated/ CPW """ from scipy.constants import epsilon_0, mu_0 from scipy.special import ellipk from numpy import pi, sqrt, log, zeros, ones from .media import Media from ..tlineFunctions import surface_resis...
29.547872
133
0.567777
796dbb85a358ba61c96745f277ebc10f2cea5151
1,503
py
Python
Anti_Adv.py
MotasemAlfarra/Combating-Adversaries-with-Anti-Adversaries
71d82c4274b9c03abbab0570bf2fccec6e7d124d
[ "MIT" ]
6
2021-03-29T07:13:34.000Z
2022-02-23T10:38:43.000Z
Anti_Adv.py
MotasemAlfarra/Combating-Adversaries-with-Anti-Adversaries
71d82c4274b9c03abbab0570bf2fccec6e7d124d
[ "MIT" ]
null
null
null
Anti_Adv.py
MotasemAlfarra/Combating-Adversaries-with-Anti-Adversaries
71d82c4274b9c03abbab0570bf2fccec6e7d124d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class anti_adversary_wrapper(nn.Module): def __init__(self, model, mean=None, std=None, k=0, alpha=1, device='cuda'): super(anti_adversary_wrapper, self).__init__() self.model = model self.normalize = False self.k = ...
40.621622
92
0.600798
796dbcdfd9966aeb015ae2a139b104b7090ca1f4
1,178
py
Python
tests/libkge/util/test_kg.py
samehkamaleldin/libkge
c80e82a894ddc4160cc03034206e3c1f05d32b42
[ "Apache-2.0" ]
12
2019-10-08T08:42:04.000Z
2021-12-16T06:50:17.000Z
benchmarking/libkge/tests/libkge/util/test_kg.py
hpi-sam/GNN-Effectants
e1204cb78bb91ffe3126df62d2d14b20da950694
[ "MIT" ]
null
null
null
benchmarking/libkge/tests/libkge/util/test_kg.py
hpi-sam/GNN-Effectants
e1204cb78bb91ffe3126df62d2d14b20da950694
[ "MIT" ]
3
2020-03-11T02:34:38.000Z
2021-01-24T15:09:44.000Z
# -*- coding: utf-8 -*- from libkge.util import KgDataset import numpy as np triples = np.array([ ['a', 'friend-of', 'b'], ['a', 'parent-of', 'c'], ['k', 'brother-of', 'c'], ['a', 'parent-of', 'k'], ['k', 'friend-of', 'k'], ['k', 'friend-of', 'c'], ['b', 'friend-of', 'c'], ]) def test_lo...
20.666667
63
0.61545
796dbd5ec92c6f33ccaca4d2ccc90a310517117a
34,736
py
Python
src/connectedk8s/azext_connectedk8s/custom.py
amecodegenbot/azure-cli-extensions
bea863256d7c6ba84ceaeca7df12c34d87f80477
[ "MIT" ]
null
null
null
src/connectedk8s/azext_connectedk8s/custom.py
amecodegenbot/azure-cli-extensions
bea863256d7c6ba84ceaeca7df12c34d87f80477
[ "MIT" ]
null
null
null
src/connectedk8s/azext_connectedk8s/custom.py
amecodegenbot/azure-cli-extensions
bea863256d7c6ba84ceaeca7df12c34d87f80477
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
49.340909
152
0.683441
796dbeafd2dfb7d8f9fdaa165c6aa8f8790bfd2f
24,059
py
Python
code/PricingAndCalibration.py
canari-dev/Calibrating-implicit-volatility-surface-with-Deutsche-Boerse-A7
b8e934b4152560c483bdaf70d62673a6a862eb7f
[ "MIT" ]
null
null
null
code/PricingAndCalibration.py
canari-dev/Calibrating-implicit-volatility-surface-with-Deutsche-Boerse-A7
b8e934b4152560c483bdaf70d62673a6a862eb7f
[ "MIT" ]
null
null
null
code/PricingAndCalibration.py
canari-dev/Calibrating-implicit-volatility-surface-with-Deutsche-Boerse-A7
b8e934b4152560c483bdaf70d62673a6a862eb7f
[ "MIT" ]
null
null
null
from SetUp import * from DateAndTime import DateAndTime from scipy.interpolate import UnivariateSpline import statsmodels.api as sm class Pricing(): def __init__(self): # super(Pricing, self).__init__() # self.DT = DT self.smile_sliding_coef = 1 self.moneyness_range = ...
49.811594
223
0.585186
796dbee4b8a8081a80b3a3e5fc9bef36b4dfc945
26,484
py
Python
scripts/android/build_apk.py
billkris-ms/VK-GL-CTS
fbd32b9e48d981580e40c6e4b54d30ddb4980867
[ "Apache-2.0" ]
1
2018-05-02T22:43:33.000Z
2018-05-02T22:43:33.000Z
scripts/android/build_apk.py
billkris-ms/VK-GL-CTS
fbd32b9e48d981580e40c6e4b54d30ddb4980867
[ "Apache-2.0" ]
3
2017-10-17T22:38:53.000Z
2018-02-17T02:09:03.000Z
scripts/android/build_apk.py
billkris-ms/VK-GL-CTS
fbd32b9e48d981580e40c6e4b54d30ddb4980867
[ "Apache-2.0" ]
2
2017-10-17T10:00:25.000Z
2022-02-28T07:43:27.000Z
# -*- coding: utf-8 -*- #------------------------------------------------------------------------- # drawElements Quality Program utilities # -------------------------------------- # # Copyright 2017 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
28.264674
142
0.701933
796dbfcc938376ed34847c09f470f3cf563b8165
1,689
py
Python
API/src/main/resources/Lib/robot/utils/robottypes3.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/utils/robottypes3.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/utils/robottypes3.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
25.984615
75
0.694494
796dc0bd3aa7dc633c51d6e519932f7fcb57c7c6
13,796
py
Python
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20046_notation_fsym_regional.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20046_notation_fsym_regional.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20046_notation_fsym_regional.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Quotes API For Digital Portals The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic searc...
52.257576
1,302
0.609742
796dc0dbab99738aa73f8adfee8155bd3106ed4d
2,247
py
Python
mendeley/resources/annotations.py
mnpopcenter/mendeley-python-sdk
bffd2ed5945a47f67be54049b1bac812a4bc7dfc
[ "Apache-2.0" ]
1
2020-02-26T08:39:07.000Z
2020-02-26T08:39:07.000Z
mendeley/resources/annotations.py
mnpopcenter/mendeley-python-sdk
bffd2ed5945a47f67be54049b1bac812a4bc7dfc
[ "Apache-2.0" ]
null
null
null
mendeley/resources/annotations.py
mnpopcenter/mendeley-python-sdk
bffd2ed5945a47f67be54049b1bac812a4bc7dfc
[ "Apache-2.0" ]
null
null
null
from mendeley.models.annotations import Annotation from mendeley.resources.base import GetByIdResource, ListResource class Annotations(GetByIdResource, ListResource): """ Top-level resource for accessing annotations. """ _url = '/annotations' def __init__(self, session): self.session = se...
41.611111
116
0.689809
796dc1e07712861a663fefe03934593fb3d83073
2,512
py
Python
tests/policy/test_td_policy.py
ml-research/X-mushroom-rl
ef5f131d3cfa9c229a614c044d8c001afe8812d2
[ "MIT" ]
null
null
null
tests/policy/test_td_policy.py
ml-research/X-mushroom-rl
ef5f131d3cfa9c229a614c044d8c001afe8812d2
[ "MIT" ]
null
null
null
tests/policy/test_td_policy.py
ml-research/X-mushroom-rl
ef5f131d3cfa9c229a614c044d8c001afe8812d2
[ "MIT" ]
null
null
null
from x_mushroom_rl.policy.td_policy import * from x_mushroom_rl.utils.table import Table from x_mushroom_rl.utils.parameters import Parameter, LinearParameter def test_td_policy(): Q = Table((10, 3)) pi = TDPolicy() pi.set_q(Q) assert Q == pi.get_q() def test_eps_greedy(): np.random.seed(88) ...
19.779528
69
0.588774
796dc289676f332e10a459d7e6fe5961730cb630
5,096
py
Python
src/MathewApp.py
akshaybahadur21/MathEw
15bd0ab11bdb3139b03ed8f7fdef8e16f43461a0
[ "MIT" ]
10
2022-01-07T09:18:20.000Z
2022-01-18T22:15:27.000Z
src/MathewApp.py
akshaybahadur21/MathEw
15bd0ab11bdb3139b03ed8f7fdef8e16f43461a0
[ "MIT" ]
null
null
null
src/MathewApp.py
akshaybahadur21/MathEw
15bd0ab11bdb3139b03ed8f7fdef8e16f43461a0
[ "MIT" ]
3
2022-01-07T09:18:46.000Z
2022-01-07T18:27:14.000Z
from collections import deque import cv2 import mediapipe as mp import numpy as np from src.MathewModel import MathewModel from src.utils.cv_utils import get_idx_to_coordinates, rescale_frame from src.utils.utils import solve_eqn class MathewApp: def __init__(self): self.mp_drawing = mp.solutions.drawin...
47.626168
117
0.537284
796dc31fd73b30e1875c893ed922650b3d7e3fc8
1,993
py
Python
100 Days of Code/Day 019/turtle_race.py
jburke234/learning
f192e1ab5d6ec4a7d7dfc66d9e8d1b170e6685ea
[ "MIT" ]
null
null
null
100 Days of Code/Day 019/turtle_race.py
jburke234/learning
f192e1ab5d6ec4a7d7dfc66d9e8d1b170e6685ea
[ "MIT" ]
null
null
null
100 Days of Code/Day 019/turtle_race.py
jburke234/learning
f192e1ab5d6ec4a7d7dfc66d9e8d1b170e6685ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 27 11:51:33 2021 @author: jb """ from turtle import Turtle, Screen from random import randint colours = ["red", "blue", "orange", "green", "purple", "yellow"] screen = Screen() screen.setup(width=500, height=400) def create_turtles(): ...
23.72619
94
0.57702