hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c99d3c7e28e9dea78a86ef5a775934a3c6b5969f
3,164
py
Python
AG1.py
ingratosocial/gaia
0f08648c9ddec0e6b9fc19ad760b56683c34a0d9
[ "MIT" ]
null
null
null
AG1.py
ingratosocial/gaia
0f08648c9ddec0e6b9fc19ad760b56683c34a0d9
[ "MIT" ]
null
null
null
AG1.py
ingratosocial/gaia
0f08648c9ddec0e6b9fc19ad760b56683c34a0d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random modelo = [1,2,3,4,5] # Objetivo largo = len(modelo) # longitud del material genetico de cada individuo num = 10 # Cantidad de individuos ...
60.846154
150
0.541719
5fd261b876fba34b2aec8e5cd4490a043642fc54
3,387
py
Python
nimble/preprocessing.py
risteon/nimble
7ba28d3f2cc08501dc68ae4d63cf82980005df75
[ "MIT" ]
1
2017-01-20T14:04:39.000Z
2017-01-20T14:04:39.000Z
nimble/preprocessing.py
risteon/nimble
7ba28d3f2cc08501dc68ae4d63cf82980005df75
[ "MIT" ]
null
null
null
nimble/preprocessing.py
risteon/nimble
7ba28d3f2cc08501dc68ae4d63cf82980005df75
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from scipy.misc import imresize # scale Label SCALING_FACTOR = 0.1 def convert_to_scaled_floats(x): r = x.astype(np.float32) r /= 255 return r def flip_axis(x, axis): x = np.asarray(x).swapaxes(axis, 0) x = x[::-1, ...] x = x.swapaxes(0, a...
33.205882
105
0.59876
33d23106b7c15c359021d10ef7b98a5f054373f1
6,516
py
Python
tests/template/test_load_context_framework.py
laisbsc/kedro
abdb51f1fc5a247dc92cca63010cf06a581c5462
[ "Apache-2.0" ]
null
null
null
tests/template/test_load_context_framework.py
laisbsc/kedro
abdb51f1fc5a247dc92cca63010cf06a581c5462
[ "Apache-2.0" ]
null
null
null
tests/template/test_load_context_framework.py
laisbsc/kedro
abdb51f1fc5a247dc92cca63010cf06a581c5462
[ "Apache-2.0" ]
1
2021-08-22T08:16:22.000Z
2021-08-22T08:16:22.000Z
# Copyright 2020 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS",...
37.883721
85
0.663137
2e6935b106db7bde9e36ccafbddf9e11212051f9
1,012
py
Python
src/flatten_nest_dict.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
3
2019-03-06T03:14:56.000Z
2020-01-07T16:00:48.000Z
src/flatten_nest_dict.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
null
null
null
src/flatten_nest_dict.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
null
null
null
# Write a function to flatten a nested dictionary. Namespace the keys with a # period. # For example, given the following dictionary: # { # "key": 3, # "foo": { # "a": 5, # "bar": { # "baz": 8 # } # } # } # it should become: # { # "key": 3, # "fo...
21.083333
82
0.433794
dfd7747763dddc0808fb3dc0430ccf5efcb4ae6b
2,122
py
Python
test/test_edit_group.py
Nasts/pythin_training
3a46b98e4130d26f9a8f32ea607b1a14b3ea13b8
[ "Apache-2.0" ]
null
null
null
test/test_edit_group.py
Nasts/pythin_training
3a46b98e4130d26f9a8f32ea607b1a14b3ea13b8
[ "Apache-2.0" ]
3
2020-02-08T14:31:55.000Z
2020-02-09T17:12:27.000Z
test/test_edit_group.py
Nasts/pythin_training
3a46b98e4130d26f9a8f32ea607b1a14b3ea13b8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import random import allure from model.group import Group def test_edit_group_name(app, db, check_ui): if len(db.get_group_list()) == 0: app.group.create(Group(name="new group")) with allure.step("Given a group list"): old_groups = db.get_group_list() with allure....
40.037736
117
0.675778
5b7d37c603133f3af15ac966b150a65cde909f15
707
py
Python
pyleecan/Methods/Machine/LamSlotWind/comp_output_geo.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Machine/LamSlotWind/comp_output_geo.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Machine/LamSlotWind/comp_output_geo.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
# -*- coding: utf-8 -*- from ....Classes.Lamination import Lamination def comp_output_geo(self): """Compute the main geometry output Parameters ---------- self : Lamination A Lamination object Returns ------- output: OutGeoLam Main geometry output of the lamintion "...
22.09375
70
0.640736
67d90c6021a67bbc7c4c084fc4085d44a75d80f5
1,778
py
Python
generate_config.py
kaityo256/lammps_restart
3b3d125af979b2a05f049892786bca1c8b25db59
[ "MIT" ]
null
null
null
generate_config.py
kaityo256/lammps_restart
3b3d125af979b2a05f049892786bca1c8b25db59
[ "MIT" ]
null
null
null
generate_config.py
kaityo256/lammps_restart
3b3d125af979b2a05f049892786bca1c8b25db59
[ "MIT" ]
null
null
null
class Atom: def __init__(self, x, y, z): self.x = x self.y = y self.z = z self.type = 1 self.vx = 0.0 self.vy = 0.0 self.vz = 0.0 def get_atoms(): atoms = [] r = 4 s = 1.55 h = 0.5 * s for ix in range(r): for iy i...
25.4
75
0.426322
5caff27a5fd164213ba71b7d4f7958789daa9f67
3,710
py
Python
Game Palace/snow.py
BirdLQ/Game-Arcade
f61081250a617d33dccd4dc81fd469bfcbe0afe3
[ "MIT" ]
1
2021-01-08T01:44:23.000Z
2021-01-08T01:44:23.000Z
Game Palace/snow.py
BirdLQ/Game-Arcade
f61081250a617d33dccd4dc81fd469bfcbe0afe3
[ "MIT" ]
null
null
null
Game Palace/snow.py
BirdLQ/Game-Arcade
f61081250a617d33dccd4dc81fd469bfcbe0afe3
[ "MIT" ]
null
null
null
import curses import time import random from methods.ascii_dict import * import main_menu import gameoflife snowflake = ['*', '+', '.'] def get_screen(stdscr): h, w = stdscr.getmaxyx() return (h, w) def max_dimensions(window): height, width = window.getmaxyx() return height - 2, width - 1 def draw_...
28.75969
73
0.555256
ccec02eae104728a219e9b693bc609a17e3db765
775
py
Python
svc_confusion_matrix.py
ksrinivs64/gntk
861770b4fc48e48c71fa9283b2f84a06b80e7c05
[ "MIT" ]
null
null
null
svc_confusion_matrix.py
ksrinivs64/gntk
861770b4fc48e48c71fa9283b2f84a06b80e7c05
[ "MIT" ]
null
null
null
svc_confusion_matrix.py
ksrinivs64/gntk
861770b4fc48e48c71fa9283b2f84a06b80e7c05
[ "MIT" ]
null
null
null
import numpy as np from os.path import join from sklearn.svm import SVC from sklearn.model_selection import StratifiedKFold, cross_val_predict from sklearn.metrics import confusion_matrix import argparse def search(data_dir): gram = np.load(join(data_dir, 'gram.npy')) gram /= gram.min() y = np.load(join(...
31
90
0.753548
383a9e78a3104dfd5233c7313af56f5df36d592b
2,005
py
Python
api/tests/test_sessions.py
jcuna/room-mgt
84c071b5f3a2e6276f0064fd3f5a8ea3d87b58f7
[ "MIT" ]
null
null
null
api/tests/test_sessions.py
jcuna/room-mgt
84c071b5f3a2e6276f0064fd3f5a8ea3d87b58f7
[ "MIT" ]
21
2019-07-04T21:31:37.000Z
2022-02-26T09:50:57.000Z
api/tests/test_sessions.py
jcuna/room-mgt
84c071b5f3a2e6276f0064fd3f5a8ea3d87b58f7
[ "MIT" ]
null
null
null
import io from base64 import b64encode, b64decode from sqlalchemy.exc import OperationalError import pytest from tests import endpoint def test_install(no_db_client): from dal.models import User from dal.models import CompanyProfile rv = no_db_client.get(endpoint('/user')) assert rv.json['error'] == ...
29.057971
97
0.645387
13bb86e6cbb0bb4a373def0a44261ffce202b90c
66,341
py
Python
politician/models.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
44
2015-11-19T04:52:39.000Z
2021-03-17T02:08:26.000Z
politician/models.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
748
2015-09-03T04:18:33.000Z
2022-03-10T14:08:10.000Z
politician/models.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
145
2015-09-19T10:10:44.000Z
2022-03-04T21:01:12.000Z
# politician/models.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- import re from django.db import models from django.db.models import Q import wevote_functions.admin from exception.models import handle_exception, handle_record_found_more_than_one_exception from tag.models import Tag from wevote_func...
49.17791
120
0.618034
df44ca74a12f43bd9e431c0a1504b13ff7879808
5,377
py
Python
src/kompressor/utils.py
rosalindfranklininstitute/kompressor
9634bf605985827ba1ca7f028f488f8eac78cb53
[ "MIT" ]
3
2022-03-08T18:19:32.000Z
2022-03-14T19:58:01.000Z
src/kompressor/utils.py
rosalindfranklininstitute/kompressor
9634bf605985827ba1ca7f028f488f8eac78cb53
[ "MIT" ]
10
2022-03-01T12:03:01.000Z
2022-03-10T08:47:21.000Z
src/kompressor/utils.py
rosalindfranklininstitute/kompressor
9634bf605985827ba1ca7f028f488f8eac78cb53
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Joss Whittle # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
33.191358
97
0.677329
26f660801033e59ea249419f22c5edbb0c4c38af
1,089
py
Python
config.py
AwkwardAxotl/WaterBender
36cd90eb9ef6aaa2f7d41b701f7d79b9972c0c44
[ "MIT" ]
null
null
null
config.py
AwkwardAxotl/WaterBender
36cd90eb9ef6aaa2f7d41b701f7d79b9972c0c44
[ "MIT" ]
null
null
null
config.py
AwkwardAxotl/WaterBender
36cd90eb9ef6aaa2f7d41b701f7d79b9972c0c44
[ "MIT" ]
null
null
null
SEED = 12345 MAP_SIZE = 10000 # GRAPH GRAPH_MAX_POINTS = 7500 GRAPH_RELAXATIONS = 2 POINT_RADIUS = 15 # GEO STARTING_LAND = True STARTING_LAND_SIZE = 5000 STARTING_LAND_POS = (5000, 5000) LAND_PERLIN_WEIGHT = 1.25 LAND_RADIAL_WEIGHT = 1.1 LAND_THRESHOLD = 1.0 LAND_CORNER_FACTOR = 0.3 ELEVATION_OCEAN_WEIGHT = .8 EL...
19.446429
40
0.820937
92ee5e105ea9af6be4a292a45249b97048120dc5
1,897
py
Python
doc/source/conf.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
2
2020-01-16T18:30:55.000Z
2020-02-06T08:33:51.000Z
doc/source/conf.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
zfphil/htdeblur
ac557284f9913292721a6b9f943ff9b921043978
[ "BSD-3-Clause" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
33.875
79
0.662098
9ec2f14cced1cf5706237f64ceb1ff2113a1cb13
96
py
Python
python/testData/quickFixes/PyWrapInExceptionQuickFixTest/inFunction.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickFixes/PyWrapInExceptionQuickFixTest/inFunction.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/quickFixes/PyWrapInExceptionQuickFixTest/inFunction.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def foo(): raise <error descr="Raising a string exception">"String"<caret> "String1"</error>
48
85
0.697917
9bfd39ce71554b31a0fe7709ed3aa2499d8b8a01
6,041
py
Python
upload/chatAnalyze.py
zinuzian-portfolio/LAJI
fd1122099fca68e9b5b2b62001d956e1fa57655c
[ "MIT" ]
2
2019-07-24T09:29:24.000Z
2021-01-16T13:13:52.000Z
upload/chatAnalyze.py
zinuzian-portfolio/LAJI
fd1122099fca68e9b5b2b62001d956e1fa57655c
[ "MIT" ]
21
2019-08-28T09:20:34.000Z
2022-02-10T10:13:37.000Z
upload/chatAnalyze.py
zinuzian-portfolio/HighlightU
fd1122099fca68e9b5b2b62001d956e1fa57655c
[ "MIT" ]
1
2021-06-14T20:21:59.000Z
2021-06-14T20:21:59.000Z
from nltk.stem import PorterStemmer from nltk.tokenize import sent_tokenize, word_tokenize from nltk.corpus import stopwords from collections import Counter, OrderedDict from .repeatReplacer import RepeatReplacer # from sklearn.preprocessing import normalize import operator import re ''' 1. Load chatlog and words for...
31.139175
102
0.583182
29922d970f25d34c203abc65b655df1f369694a6
687
py
Python
LeetCode/Python3/Math/168. Excel Sheet Column Title.py
WatsonWangZh/CodingPractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
11
2019-09-01T22:36:00.000Z
2021-11-08T08:57:20.000Z
LeetCode/Python3/Math/168. Excel Sheet Column Title.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
null
null
null
LeetCode/Python3/Math/168. Excel Sheet Column Title.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
2
2020-05-27T14:58:52.000Z
2020-05-27T15:04:17.000Z
# Given a positive integer, return its corresponding column title as appear in an Excel sheet. # For example: # 1 -> A # 2 -> B # 3 -> C # ... # 26 -> Z # 27 -> AA # 28 -> AB # ... # Example 1: # Input: 1 # Output: "A" # Example 2: # Input: 28 # Output: "AB" # Example 3: # Input: 701...
19.083333
94
0.462882
ed54647747e9d405ccb57e0d1c98fa497abe942b
5,066
py
Python
datasets/thainer/thainer.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
7
2021-01-04T22:18:26.000Z
2021-07-10T09:13:29.000Z
datasets/thainer/thainer.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
null
null
null
datasets/thainer/thainer.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
3
2021-01-03T22:08:20.000Z
2021-08-12T20:09:39.000Z
from __future__ import absolute_import, division, print_function import datasets _CITATION = """\ @misc{Wannaphong Phatthiyaphaibun_2019, title={wannaphongcom/thai-ner: ThaiNER 1.3}, url={https://zenodo.org/record/3550546}, DOI={10.5281/ZENODO.3550546}, abstractNote={Thai Named Entity Recognition}, ...
30.70303
122
0.51895
b2d4ee18d6d8a99e3d59be8485067461766467be
22,419
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/operations/_interface_endpoints_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/operations/_interface_endpoints_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/operations/_interface_endpoints_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.903846
205
0.662385
5622133ff54778788672e8fc9bab2a6f58cc0977
207,294
py
Python
python/pefile.py
omarghader/pefile-go
b1abcb010d7d45cfcbe572dc15e315cf6f55c859
[ "MIT" ]
16
2016-08-08T13:17:12.000Z
2021-04-01T20:00:54.000Z
python/pefile.py
Neo23x0/pefile-go
deef81088a615886265cbccfcbbcacb9280b96b1
[ "MIT" ]
1
2017-07-16T18:45:14.000Z
2019-03-14T08:43:31.000Z
python/pefile.py
Neo23x0/pefile-go
deef81088a615886265cbccfcbbcacb9280b96b1
[ "MIT" ]
5
2018-03-14T22:26:42.000Z
2019-09-29T00:50:17.000Z
# -*- coding: latin-1 -*- """pefile, Portable Executable reader module All the PE file basic structures are available with their default names as attributes of the instance returned. Processed elements such as the import table are made available with lowercase names, to differentiate them from the upper case basic s...
38.602235
166
0.574339
4ffe947d13be2de9e9b05205409a3e14f4ef137f
21,494
py
Python
tools/esp_app_trace/espytrace/apptrace.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
tools/esp_app_trace/espytrace/apptrace.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
tools/esp_app_trace/espytrace/apptrace.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 from __future__ import print_function import os import sys try: from urlparse import urlparse except ImportError: from urllib.parse import urlparse import os.path import socketserver as SocketServer impor...
28.356201
130
0.513911
a0cee9287f2381c26acad42998008b4e3c29ce3a
7,622
py
Python
projects/tests.py
dymaxionlabs/analytics-backend
fb801b184e4e510d54e8addb283fd202c9dfe7b1
[ "BSD-3-Clause" ]
null
null
null
projects/tests.py
dymaxionlabs/analytics-backend
fb801b184e4e510d54e8addb283fd202c9dfe7b1
[ "BSD-3-Clause" ]
1
2022-01-21T20:07:50.000Z
2022-01-21T20:07:50.000Z
projects/tests.py
dymaxionlabs/analytics-backend
fb801b184e4e510d54e8addb283fd202c9dfe7b1
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient, APITestCase from projects.models import Project, ProjectInvitationToken def loginWithAPI(client, username, password): response ...
34.488688
79
0.604041
b9dd3cdc777139d70ac5467e0b1e15118b71ab62
67
py
Python
cbrunner/__init__.py
RobbieHember/fcgadgets
d968991ea185d48df8d674d290b7e03bfc8843d4
[ "Apache-2.0" ]
2
2021-11-18T21:29:37.000Z
2022-01-13T23:40:42.000Z
cbrunner/__init__.py
RobbieHember/fcgadgets
d968991ea185d48df8d674d290b7e03bfc8843d4
[ "Apache-2.0" ]
null
null
null
cbrunner/__init__.py
RobbieHember/fcgadgets
d968991ea185d48df8d674d290b7e03bfc8843d4
[ "Apache-2.0" ]
null
null
null
name="cbrunner" __all__=["cbrun","cbrun_annproc","cbrun_utilities"]
33.5
51
0.776119
325e6ec0d4429ebb174401abffed720b8600f1c7
1,917
py
Python
netwatch/scheduler.py
tkmcclellan/NetWatch
d195b39a4d8782153e8f26585049ff78f5fc56f7
[ "MIT" ]
1
2021-02-12T16:27:55.000Z
2021-02-12T16:27:55.000Z
netwatch/scheduler.py
tkmcclellan/NetWatch
d195b39a4d8782153e8f26585049ff78f5fc56f7
[ "MIT" ]
14
2021-02-11T16:19:00.000Z
2021-03-16T16:03:59.000Z
netwatch/scheduler.py
tkmcclellan/NetWatch
d195b39a4d8782153e8f26585049ff78f5fc56f7
[ "MIT" ]
null
null
null
"""Module for running scheduled NetWatch jobs. This module processes NetWatch alerts according to their frequency. Todo: * Find a way to process alerts in parallel and shut down those processes immediately """ import threading from concurrent.futures import ThreadPoolExecutor from datetime import datetime from ...
28.61194
88
0.637454
f8384979704184e461c5b390000a58adb9a8079c
1,846
py
Python
main.py
guo-yong-zhi/Maze
4f627f293b94171e3989e2ce60a892d0ec8d8942
[ "MIT" ]
null
null
null
main.py
guo-yong-zhi/Maze
4f627f293b94171e3989e2ce60a892d0ec8d8942
[ "MIT" ]
null
null
null
main.py
guo-yong-zhi/Maze
4f627f293b94171e3989e2ce60a892d0ec8d8942
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 11 15:02:26 2017 @author: momos """ import numpy as np from matplotlib import pyplot as plt array = np.array def neiPairsOf(idim, trans=-1, shift=None): shift = shift or (lambda im,pairs:[np.roll(im,(d,r),axis=(0,1)) for d,r in pairs]) def t...
24.945946
87
0.534128
e1bec4fa6af7b2642384626bae7c70a324484fcb
3,028
py
Python
platypush/backend/scard/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/backend/scard/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/backend/scard/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
import json from platypush.backend import Backend from platypush.message.event.scard import SmartCardDetectedEvent, SmartCardRemovedEvent class ScardBackend(Backend): """ Generic backend to read smart cards and NFC tags and trigger an event whenever a device is detected. Extend this backend to imple...
34.409091
233
0.588507
785274ce51a5ae7bb7861cf9d9de1668e29d11ba
846
py
Python
src/awsCluster/miRNASeq/DeduplicateFastqFile.py
AspirinCode/jupyter-genomics
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
[ "MIT" ]
2
2019-01-04T08:17:27.000Z
2021-04-10T02:59:35.000Z
src/awsCluster/miRNASeq/DeduplicateFastqFile.py
AspirinCode/jupyter-genomics
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
[ "MIT" ]
null
null
null
src/awsCluster/miRNASeq/DeduplicateFastqFile.py
AspirinCode/jupyter-genomics
d45526fab3de8fcc3d9fef005d4e39368ff3dfdc
[ "MIT" ]
2
2021-09-10T02:57:51.000Z
2021-09-21T00:16:56.000Z
__author__ = 'Guorong Xu<g1xu@ucsd.edu>' import sys def deduplicate(raw_file): fastq_id_list = {} print "system is processing " + raw_file filewriter = open(raw_file.replace("unfilter.fastq", "trim.fastq"), "w") with open(raw_file, 'r+') as f: lines = f.readlines() line_index = 0 ...
24.171429
76
0.585106
1c09d1a15d91cfecb926724101e0c2f8e8660495
4,131
py
Python
bot_modules/py/markov.py
cumdata/irc_bot
6593215acb7850f435389ae64652d831279f3332
[ "WTFPL" ]
null
null
null
bot_modules/py/markov.py
cumdata/irc_bot
6593215acb7850f435389ae64652d831279f3332
[ "WTFPL" ]
2
2021-09-10T04:15:59.000Z
2021-09-14T03:30:21.000Z
bot_modules/py/markov.py
cumdata/irc_bot
6593215acb7850f435389ae64652d831279f3332
[ "WTFPL" ]
null
null
null
"""simple markov chaining for shitposting""" import asyncio import os import pathlib import random import colors import logger import plugin_api _logger = logger.LOGGER # End of Sentence for Markov chaining EOS = ('.', '?', '!') def _should_log(msg): """Returns bool to log or not will return False if: ...
25.343558
71
0.573469
85bb1b6680fc09cbcea38ccf61f15078ca3f5a02
636
py
Python
kws/utils/utils.py
khaykingleb/KWS
12fa52414cb9135cea6e4d5200b334b7920b6a9e
[ "MIT" ]
null
null
null
kws/utils/utils.py
khaykingleb/KWS
12fa52414cb9135cea6e4d5200b334b7920b6a9e
[ "MIT" ]
null
null
null
kws/utils/utils.py
khaykingleb/KWS
12fa52414cb9135cea6e4d5200b334b7920b6a9e
[ "MIT" ]
null
null
null
import random import os import numpy as np import torch from thop import profile import tempfile def seed_everything(seed: int = 42): random.seed(seed) os.environ['PYTHONHASHSEED'] = str(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.cuda.manual_seed_all(...
25.44
53
0.701258
67305a3aadcca6c68993b57c152eb7d92ddb6bc0
1,813
py
Python
preprocess/test_base.py
Lummetry/CFDS
c2175180e071811dd5aad5fe6bf00976e0b64095
[ "Apache-2.0" ]
null
null
null
preprocess/test_base.py
Lummetry/CFDS
c2175180e071811dd5aad5fe6bf00976e0b64095
[ "Apache-2.0" ]
null
null
null
preprocess/test_base.py
Lummetry/CFDS
c2175180e071811dd5aad5fe6bf00976e0b64095
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright 2019 Lummetry.AI (Knowledge Investment Group SRL). All Rights Reserved. * NOTICE: All information contained herein is, and remains * the property of Knowledge Investment Group SRL. * The intellectual and technical concepts contained * herein are proprietary to Knowledge Invest...
27.469697
111
0.663541
48a02234f2254a037dbe99896483efb4166ba6a4
26,425
py
Python
src/train.py
prathameshmahankal/Fake-News-Detection-Using-BERT
7723843520b95d898890b70a909ac19ecb0eeffa
[ "MIT" ]
3
2021-05-28T22:42:40.000Z
2022-03-18T01:03:14.000Z
src/train.py
VeraSAMAooo/Fake-News-Detection-Using-BERT
7723843520b95d898890b70a909ac19ecb0eeffa
[ "MIT" ]
null
null
null
src/train.py
VeraSAMAooo/Fake-News-Detection-Using-BERT
7723843520b95d898890b70a909ac19ecb0eeffa
[ "MIT" ]
2
2021-12-01T19:03:53.000Z
2022-02-20T02:45:04.000Z
import numpy as np import pandas as pd import torch import time import joblib import torch.nn as nn from sklearn.model_selection import train_test_split from sklearn.metrics import (classification_report, f1_score, recall_score, precision_score, precision_recall_curve, confusion_matrix, ma...
35.139628
140
0.656575
0b9ad4b521df540970b8806ae195225ff8874e6c
7,567
py
Python
neutron/tests/unit/plugins/ml2/drivers/ovn/test_db_migration.py
Joffref/neutron
09f72d2ac42ff92a4a3f96dd00800ba0cf367270
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/tests/unit/plugins/ml2/drivers/ovn/test_db_migration.py
Joffref/neutron
09f72d2ac42ff92a4a3f96dd00800ba0cf367270
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/tests/unit/plugins/ml2/drivers/ovn/test_db_migration.py
Joffref/neutron
09f72d2ac42ff92a4a3f96dd00800ba0cf367270
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Copyright 2021 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 agre...
40.682796
79
0.612132
2bc6b1d2a56c9993b3d7f77a7c1219f8c16f4bb1
868
py
Python
layersclick/ec2_instance.py
hdknr/py-layers
884ffb2a681910cec7c8deb934c60a71dbd72b80
[ "MIT" ]
null
null
null
layersclick/ec2_instance.py
hdknr/py-layers
884ffb2a681910cec7c8deb934c60a71dbd72b80
[ "MIT" ]
null
null
null
layersclick/ec2_instance.py
hdknr/py-layers
884ffb2a681910cec7c8deb934c60a71dbd72b80
[ "MIT" ]
null
null
null
import click from layerslib.ec2 import instance from .utils import J, setup @click.group() @click.option("--profile_name", "-p", default=None) @click.pass_context def ec2_instance(ctx, profile_name): setup(ctx, profile_name) @ec2_instance.command() @click.pass_context def instance_list(ctx): """ec2: get I...
22.25641
51
0.656682
b684b92267bc405e4f36930958ad7df8fe4381db
107
py
Python
pylint_complexity/__init__.py
willprice/pylint-quality
34921e7fe30d3417e2f1ae3e1dc11082d5b850ab
[ "Apache-2.0" ]
null
null
null
pylint_complexity/__init__.py
willprice/pylint-quality
34921e7fe30d3417e2f1ae3e1dc11082d5b850ab
[ "Apache-2.0" ]
null
null
null
pylint_complexity/__init__.py
willprice/pylint-quality
34921e7fe30d3417e2f1ae3e1dc11082d5b850ab
[ "Apache-2.0" ]
null
null
null
from .method_count_checker import MethodCountChecker from .method_length_checker import MethodLengthChecker
53.5
54
0.915888
a0df4d8eb13037dcf09f28c3258698e74817c06d
15,973
py
Python
shioajicaller/caller.py
SDpower/shioajicaller
d24957a33ec31ba5bca957ac87b55ca6d1cabb32
[ "MIT" ]
14
2021-10-04T16:46:55.000Z
2022-03-20T02:11:33.000Z
shioajicaller/caller.py
SDpower/shioajicaller
d24957a33ec31ba5bca957ac87b55ca6d1cabb32
[ "MIT" ]
1
2022-01-15T19:38:03.000Z
2022-01-17T05:29:13.000Z
shioajicaller/caller.py
SDpower/shioajicaller
d24957a33ec31ba5bca957ac87b55ca6d1cabb32
[ "MIT" ]
10
2021-10-04T17:15:27.000Z
2022-02-08T03:10:51.000Z
# -*- coding: utf-8 -*- import sys, logging from datetime import datetime,date,timedelta from . import config import time import shioaji as sj from shioaji import TickFOPv1, TickSTKv1, BidAskSTKv1, BidAskFOPv1,Exchange class Caller(object): def __init__(self): self._userID = config.userId self._use...
37.850711
183
0.591999
d80dd98cfd33985bdc8de27e2ad2810d56cce77b
1,498
py
Python
cnn_grasp_main.py
gouxiangchen/DRL-grasp
daf4878e297b4762bd8eee71dca226826784dad1
[ "Apache-2.0" ]
7
2019-10-13T13:01:25.000Z
2022-03-13T02:24:34.000Z
cnn_grasp_main.py
gouxiangchen/DRL-grasp
daf4878e297b4762bd8eee71dca226826784dad1
[ "Apache-2.0" ]
1
2020-11-08T03:13:28.000Z
2020-11-08T03:13:28.000Z
cnn_grasp_main.py
gouxiangchen/DRL-grasp
daf4878e297b4762bd8eee71dca226826784dad1
[ "Apache-2.0" ]
null
null
null
from VisualGrasp.environment import EnvGrasp from VisualGrasp.model import CNNPolicy, CNNValue from VisualGrasp.train import GraspTrain from itertools import count from MyDQN.logger import Logger env = EnvGrasp() gt = GraspTrain(CNNPolicy, CNNValue, 2, 2) k = 0 log = Logger('./logs_grasp_cnn') steps = 0 for t in co...
30.571429
110
0.600801
87679ab307bdc53327b041b9b9f59e4225d6ade7
3,048
py
Python
samples/storage/manage_file_share.py
leigharubin/azure-samples-python-management
ed640755f5362e309ba66af22a3d0c67b008c708
[ "MIT" ]
47
2020-05-29T18:25:57.000Z
2022-03-30T06:04:56.000Z
samples/storage/manage_file_share.py
leigharubin/azure-samples-python-management
ed640755f5362e309ba66af22a3d0c67b008c708
[ "MIT" ]
27
2020-05-13T06:37:24.000Z
2022-03-01T07:58:34.000Z
samples/storage/manage_file_share.py
leigharubin/azure-samples-python-management
ed640755f5362e309ba66af22a3d0c67b008c708
[ "MIT" ]
67
2020-05-09T06:09:19.000Z
2022-03-22T23:18:06.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import os...
26.051282
97
0.549869
0ae147dd79a39e93886981edd8edb26cc78a5fe2
3,405
py
Python
fn_zia/tests/test_funct_zia_get_blocklist.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_zia/tests/test_funct_zia_get_blocklist.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_zia/tests/test_funct_zia_get_blocklist.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
# -*- coding: utf-8 -*- """Tests using pytest_resilient_circuits""" import pytest from mock import patch from resilient_circuits.util import get_config_data, get_function_definition from resilient_circuits import SubmitTestFunction, FunctionResult from .mock_artifacts import * PACKAGE_NAME = "fn_zia" FUNCTION_NAME = ...
35.842105
118
0.70837
32087a64c819100593a4b33552703228b12dac04
2,179
py
Python
2020-S2/psets/2018/pset7/finance/helpers.py
BoomlabsInc/BCSF
5bde1a113ac6fa7bf45dcf9bea9ec32f78b8e129
[ "MIT" ]
2
2020-11-20T18:47:29.000Z
2022-03-19T12:52:44.000Z
2020-S2/psets/2018/pset7/finance/helpers.py
DLozanoNavas/BCSF_Repo
d2776837c772b29008817cddf7eea241b0813809
[ "MIT" ]
null
null
null
2020-S2/psets/2018/pset7/finance/helpers.py
DLozanoNavas/BCSF_Repo
d2776837c772b29008817cddf7eea241b0813809
[ "MIT" ]
null
null
null
import csv import os import urllib.request from flask import redirect, render_template, request, session from functools import wraps def apology(message, code=400): """Render message as an apology to user.""" def escape(s): """ Escape special characters. https://github.com/jacebrowni...
25.635294
153
0.568609
29b134038238ae46f78b65e04934e74b81f6cf7b
2,955
py
Python
ppnp/tensorflow/earlystopping.py
achalagarwal/ppnp
3c2e3d5fdeab175410107da07b166066923e6856
[ "MIT" ]
256
2019-02-20T13:57:13.000Z
2022-02-28T15:44:25.000Z
ppnp/tensorflow/earlystopping.py
ibrahim85/Graph-Neural-Networks-meet-Personalized-PageRan
b408669b0a13797c84f5b6f0fab99fe3818abb92
[ "MIT" ]
15
2019-03-01T17:30:05.000Z
2022-02-08T11:26:29.000Z
ppnp/tensorflow/earlystopping.py
ibrahim85/Graph-Neural-Networks-meet-Personalized-PageRan
b408669b0a13797c84f5b6f0fab99fe3818abb92
[ "MIT" ]
51
2019-02-27T08:25:30.000Z
2022-02-14T09:57:35.000Z
from typing import List import copy import operator from enum import Enum, auto import numpy as np from .model import Model class StopVariable(Enum): LOSS = auto() ACCURACY = auto() F1_SCORE = auto() NONE = auto() class Best(Enum): RANKED = auto() ALL = auto() stopping_args = dict( ...
35.178571
81
0.56176
5bf078f95e08bd1eb2802af9113b11d8cd3cdab1
16,999
py
Python
main.py
bobeina/wordseg_results_editor
87de99b3e8603b5048598fea84afacf697d513a4
[ "MIT" ]
2
2017-05-22T08:36:08.000Z
2017-05-22T09:58:31.000Z
main.py
bobeina/wordseg_results_editor
87de99b3e8603b5048598fea84afacf697d513a4
[ "MIT" ]
null
null
null
main.py
bobeina/wordseg_results_editor
87de99b3e8603b5048598fea84afacf697d513a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # This file is derivied from the Tornado tutorial # https://github.com/tornadoweb/tornado/tree/stable/demos/blog and has # been modified by Yang D.Y. <minvacai@sina.com> for: # TextListHandler / AboutHandler/ RawTextHandler/ WordSegHandler and # relative parts such as template files. # # # C...
30.684116
90
0.526855
7739b83899057b7473e77b75e1e35dd2a2e24bb8
1,476
py
Python
ament_pep257/setup.py
ExcessBullseye/ament_lint
100683ca73de2ccf377937e64955d5b79c43721e
[ "Apache-2.0" ]
null
null
null
ament_pep257/setup.py
ExcessBullseye/ament_lint
100683ca73de2ccf377937e64955d5b79c43721e
[ "Apache-2.0" ]
null
null
null
ament_pep257/setup.py
ExcessBullseye/ament_lint
100683ca73de2ccf377937e64955d5b79c43721e
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages from setuptools import setup package_name = 'ament_pep257' setup( name=package_name, version='0.10.6', packages=find_packages(exclude=['test']), data_files=[ ('share/' + package_name, ['package.xml']), ('share/ament_index/resource_index/packages', ...
30.75
70
0.639566
5244fb5b22b7e7dd44890749467daa379c964477
8,142
py
Python
desktop/libs/notebook/src/notebook/connectors/jdbc.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/connectors/jdbc.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
null
null
null
desktop/libs/notebook/src/notebook/connectors/jdbc.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
1
2020-04-02T04:50:26.000Z
2020-04-02T04:50:26.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
34.066946
210
0.689388
7c250191bf3ac9bd184517465ed5ec381045a5cd
1,264
py
Python
erp/migrations/0035_auto_20200206_1109.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
erp/migrations/0035_auto_20200206_1109.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
erp/migrations/0035_auto_20200206_1109.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
# Generated by Django 3.0.3 on 2020-02-06 10:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('erp', '0034_accessibilite_entree_plain_pied'), ] operations = [ migrations.AlterModelOptions( n...
39.5
250
0.641614
3da76bdaea90f8e15cd36e524ffe1eb91453bac7
969
py
Python
main.py
Jeffrey-Gadenne/ENG103_GUI_IOT_DATABASE_HEART
f0b8f596fc42c5f08a0569d637ef6dfa33ea0355
[ "MIT" ]
null
null
null
main.py
Jeffrey-Gadenne/ENG103_GUI_IOT_DATABASE_HEART
f0b8f596fc42c5f08a0569d637ef6dfa33ea0355
[ "MIT" ]
null
null
null
main.py
Jeffrey-Gadenne/ENG103_GUI_IOT_DATABASE_HEART
f0b8f596fc42c5f08a0569d637ef6dfa33ea0355
[ "MIT" ]
null
null
null
from heartrate_monitor import HeartRateMonitor import time import argparse import Adafruit_DHT import argparse import sys import tempread sys.stdout = open ("heart.txt", "w") dht_sensor = Adafruit_DHT.DHT11 pin = 5 humidity, temperature = Adafruit_DHT.read_retry(dht_sensor, pin) parser = argparse.ArgumentParser(des...
26.189189
81
0.728586
0e81231f074d3a9d0aae862d0496205cd19d5aaa
1,122
py
Python
build.py
gcuendet/conan-libjpeg-turbo
f974c40e839290d77318002f8be9cc164f6a33fb
[ "MIT" ]
null
null
null
build.py
gcuendet/conan-libjpeg-turbo
f974c40e839290d77318002f8be9cc164f6a33fb
[ "MIT" ]
null
null
null
build.py
gcuendet/conan-libjpeg-turbo
f974c40e839290d77318002f8be9cc164f6a33fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from bincrafters import build_template_default import platform import copy if __name__ == "__main__": builder = build_template_default.get_builder() items = [] for item in builder.items: # skip mingw cross-builds if not (platform.system() == ...
36.193548
89
0.582888
a3d7a64a8366fb641b44e64d89da8b8670e6be37
24,682
py
Python
libioc/ResourceUpdater.py
himrock922/libioc
83111de2320c96946234eec852c00de72482ea0f
[ "BSD-2-Clause" ]
null
null
null
libioc/ResourceUpdater.py
himrock922/libioc
83111de2320c96946234eec852c00de72482ea0f
[ "BSD-2-Clause" ]
null
null
null
libioc/ResourceUpdater.py
himrock922/libioc
83111de2320c96946234eec852c00de72482ea0f
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2017-2019, Stefan Grönke # Copyright (c) 2014-2018, iocage # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted providing that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # ...
33.672578
79
0.589296
ba144dec17ab0cdf34bb256b4bb1cb541c69fb52
403
py
Python
docs/setup.py
sandialabs/slycat
efbb91ce4ea4da08b58399eb820f6d6987408e44
[ "BSD-3-Clause" ]
66
2015-01-06T20:53:50.000Z
2022-03-30T17:25:04.000Z
docs/setup.py
agentdavidjoseph/slycat
690e1cb07a6fa990d7206265e18edb22ae3f62e7
[ "BSD-3-Clause" ]
782
2015-01-05T15:42:30.000Z
2022-03-11T03:27:52.000Z
docs/setup.py
agentdavidjoseph/slycat
690e1cb07a6fa990d7206265e18edb22ae3f62e7
[ "BSD-3-Clause" ]
23
2015-04-29T08:16:27.000Z
2022-01-05T23:21:54.000Z
import os import shutil import subprocess root_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) docs_dir = os.path.join(root_dir, "docs/source") build_dir = os.path.join(docs_dir, "_build") # Always build the documentation from scratch. if os.path.exists(build_dir): shutil.rmtree(build_dir) # Gene...
26.866667
70
0.766749
a84821915a4da4419a2d501532e00e6811cbacb4
12,043
py
Python
summarize/nnsum/summarization-datasets/preprocess_cnn_dailymail.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
2
2019-01-17T17:43:09.000Z
2019-01-17T17:50:38.000Z
summarize/nnsum/summarization-datasets/preprocess_cnn_dailymail.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
null
null
null
summarize/nnsum/summarization-datasets/preprocess_cnn_dailymail.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
1
2021-09-19T08:29:08.000Z
2021-09-19T08:29:08.000Z
import rouge_papier import requests import argparse import pathlib import os import shutil import zipfile import tempfile import spacy from spacy.tokens import Doc import hashlib import ujson as json import re from multiprocessing import Pool, cpu_count # Modified Abigail See's preprocessing code. class WhitespaceT...
32.636856
215
0.61488
f7e084176b8928ef086e3b810e017bfd178b34ed
403
py
Python
evap/grades/migrations/0010_gradedocument_description_en_add_unique.py
felixrindt/EvaP
fe65fcc511cc942695ce1edbaab170894f0d37b1
[ "MIT" ]
29
2020-02-28T23:03:41.000Z
2022-02-19T09:29:36.000Z
evap/grades/migrations/0010_gradedocument_description_en_add_unique.py
felixrindt/EvaP
fe65fcc511cc942695ce1edbaab170894f0d37b1
[ "MIT" ]
737
2015-01-02T17:43:25.000Z
2018-12-10T20:45:10.000Z
evap/grades/migrations/0010_gradedocument_description_en_add_unique.py
felixrindt/EvaP
fe65fcc511cc942695ce1edbaab170894f0d37b1
[ "MIT" ]
83
2015-01-14T12:39:41.000Z
2018-10-29T16:36:43.000Z
# Generated by Django 1.9 on 2016-02-01 18:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('grades', '0009_fill_description_en'), ] operations = [ migrations.AlterUniqueTogether( name='gradedocument', unique_together=s...
22.388889
94
0.620347
d72316a437223092416ef9f2809b646b559cf672
1,952
py
Python
qiskit/extensions/standard/rz.py
PierreDC/qiskit-sdk-py
e879167ac86ee731f53ee71c10210ba37e4559ab
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/rz.py
PierreDC/qiskit-sdk-py
e879167ac86ee731f53ee71c10210ba37e4559ab
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/rz.py
PierreDC/qiskit-sdk-py
e879167ac86ee731f53ee71c10210ba37e4559ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=invalid-name """ Rotation around the z-axis. """ from qiskit import Gate from qiskit import InstructionSet...
27.111111
78
0.632684
4292e984335fc38e0c22bee14d1a5441a6ba06ba
302
py
Python
python/LinkedInLearning/Ex_Files_Python_Automation_Testing/Exercise Files/CH03/03_01/code_03_01.py
Youngermaster/Selenium-Scripts
e8e785780ee83e4b4f122f64bd61189f33a1825a
[ "MIT" ]
null
null
null
python/LinkedInLearning/Ex_Files_Python_Automation_Testing/Exercise Files/CH03/03_01/code_03_01.py
Youngermaster/Selenium-Scripts
e8e785780ee83e4b4f122f64bd61189f33a1825a
[ "MIT" ]
null
null
null
python/LinkedInLearning/Ex_Files_Python_Automation_Testing/Exercise Files/CH03/03_01/code_03_01.py
Youngermaster/Selenium-Scripts
e8e785780ee83e4b4f122f64bd61189f33a1825a
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver= webdriver.Firefox() driver.get("http://python.org"); search = driver.find_element_by_name('q'); search.clear(); search.send_keys("pycon"); search.send_keys(Keys.RETURN); time.sleep(4) driver.close();
20.133333
47
0.768212
e441cabf4f5ff6f09fd3b8c8b855674f8bb8b376
1,349
py
Python
sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_paged_models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_paged_models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_paged_models.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
32.902439
131
0.582654
1780df502749998e5ea90bd8f187fe88eff955c6
3,484
py
Python
utils/swift_build_support/swift_build_support/products/zlib.py
xjc90s/swift
cafe5ccbd1b7aa9cc9c837c5be2cdf3d5acd8a49
[ "Apache-2.0" ]
1
2022-03-27T15:28:07.000Z
2022-03-27T15:28:07.000Z
utils/swift_build_support/swift_build_support/products/zlib.py
xjc90s/swift
cafe5ccbd1b7aa9cc9c837c5be2cdf3d5acd8a49
[ "Apache-2.0" ]
null
null
null
utils/swift_build_support/swift_build_support/products/zlib.py
xjc90s/swift
cafe5ccbd1b7aa9cc9c837c5be2cdf3d5acd8a49
[ "Apache-2.0" ]
null
null
null
# swift_build_support/products/zlib.py ------------------------------------ # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt f...
35.191919
82
0.648393
43c688e3d614c8b3aaba57456499b558fe4921b5
44,373
py
Python
lib/listeners/onedrive.py
CykuTW/Empire
af30a1f20abc09366e9af83b51fb7566b7ebb3bd
[ "BSD-3-Clause" ]
3
2020-03-24T04:37:00.000Z
2021-04-07T06:05:16.000Z
lib/listeners/onedrive.py
TheWover/Empire
bf0225a773ac2b822b2eb5df655875dc014ca5b0
[ "BSD-3-Clause" ]
null
null
null
lib/listeners/onedrive.py
TheWover/Empire
bf0225a773ac2b822b2eb5df655875dc014ca5b0
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from builtins import str from builtins import object import base64 import random import os import re import time from datetime import datetime import copy import traceback import sys import json from pydispatch import dispatcher from requests import Request, Session # Empire impor...
50.252548
221
0.511054
689086857f25a3645162c721f28272a3a37c64a8
11,600
py
Python
utils.py
yifengtao/CADRE
3d35de6234350efe025561d95d4d872766495ea9
[ "MIT" ]
7
2020-08-21T04:04:13.000Z
2022-03-08T08:00:30.000Z
utils.py
yifengtao/CADRE
3d35de6234350efe025561d95d4d872766495ea9
[ "MIT" ]
1
2020-10-30T04:14:29.000Z
2020-11-23T18:34:54.000Z
utils.py
yifengtao/CADRE
3d35de6234350efe025561d95d4d872766495ea9
[ "MIT" ]
1
2021-12-23T04:03:15.000Z
2021-12-23T04:03:15.000Z
# utils.py import os import random import numpy as np import pandas as pd from sklearn.metrics import auc, roc_curve, precision_recall_curve import torch from torch.autograd import Variable __author__ = "Yifeng Tao" def fill_mask(y_trn, m_trn): y_pos = y_trn.sum(axis=0) y_neg = ((1 - y_trn) * m_trn).sum(axis=...
28.501229
153
0.6825
043964834e0e65f29bcc42ca627921a57ef7f305
1,749
py
Python
data/cirq_new/cirq_program/startCirq_noisy39.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_noisy39.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/cirq_new/cirq_program/startCirq_noisy39.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=9 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode def make_circuit(n: int, input_qubit): c = cirq.Cir...
29.15
77
0.691824
aef51ba03a3c750c47f957f93756187a93e12a7b
3,260
py
Python
tests/conftest.py
akamai/pallas
63aba588be3ab97b5e6183e4c560a45c82870cdc
[ "Apache-2.0" ]
7
2020-04-03T19:40:35.000Z
2022-01-03T17:28:58.000Z
tests/conftest.py
akamai/pallas
63aba588be3ab97b5e6183e4c560a45c82870cdc
[ "Apache-2.0" ]
1
2022-01-05T13:29:18.000Z
2022-01-05T13:29:18.000Z
tests/conftest.py
akamai/pallas
63aba588be3ab97b5e6183e4c560a45c82870cdc
[ "Apache-2.0" ]
1
2020-10-23T11:31:54.000Z
2020-10-23T11:31:54.000Z
# Copyright 2020 Akamai Technologies, 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...
32.277228
77
0.724847
39cb9e79a094748f59916127acc97b45cc62ec6e
2,066
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
34.433333
85
0.584221
c3f90e5d6e96d4856f238bf286404cb56c0f391e
4,635
py
Python
vcs_mirrors/host/gitlab.py
jayvdb/vcs-mirrors
db10e912224b7482ba5d8318b0d78f257d0e152d
[ "MIT" ]
4
2018-04-27T23:12:49.000Z
2020-11-02T02:03:52.000Z
vcs_mirrors/host/gitlab.py
jayvdb/vcs-mirrors
db10e912224b7482ba5d8318b0d78f257d0e152d
[ "MIT" ]
1
2020-01-14T08:18:44.000Z
2020-01-14T08:18:44.000Z
vcs_mirrors/host/gitlab.py
jayvdb/vcs-mirrors
db10e912224b7482ba5d8318b0d78f257d0e152d
[ "MIT" ]
1
2020-01-14T05:22:47.000Z
2020-01-14T05:22:47.000Z
""" Large parts from: https://github.com/samrocketman/gitlab-mirrors/blob/development/lib/manage_gitlab_project.py """ import logging from zope.interface import implementer from vcs_mirrors.lib.interfaces import IHost try: import gitlab from gitlab.exceptions import GitlabCreateError GITLAB_AVAILABLE = T...
30.097403
110
0.59137
870c0c7558830f685b6f820b0605913e3a9db722
3,892
py
Python
cs/python/python_general/misc_functions/dates.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/python/python_general/misc_functions/dates.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/misc_functions/dates.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
"""Fun(c) with dates""" # %% Imports from datetime import datetime, timedelta from typing import List # %% Mondays def mondays_between_two_dates(start: datetime, end: datetime) -> List[str]: """Returns the dates of each Monday between two dates, inclusive. :param start (str) : ISO-formatted start date. :...
35.706422
86
0.643114
b6b7069571f69f0b0de097e3f6fa403a831fc40c
3,751
py
Python
nipyapi/registry/models/resource.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
199
2017-08-24T12:19:41.000Z
2022-03-20T14:50:17.000Z
nipyapi/registry/models/resource.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
275
2017-08-28T21:21:49.000Z
2022-03-29T17:57:26.000Z
nipyapi/registry/models/resource.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
73
2017-09-07T10:13:56.000Z
2022-02-28T10:37:21.000Z
# coding: utf-8 """ Apache NiFi Registry REST API The REST API provides an interface to a registry with operations for saving, versioning, reading NiFi flows and components. OpenAPI spec version: 1.15.0 Contact: dev@nifi.apache.org Generated by: https://github.com/swagger-api/swagger-codegen.git ...
24.357143
127
0.53799
3950b599fc72a2dc295e2e7ac1546a871dd9102a
1,690
py
Python
a10sdk/core/logging/logging_email_filter.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/logging/logging_email_filter.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/logging/logging_email_filter.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class Filter(A10BaseClass): """Class Description:: Logging via email filter settings. Class filter supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param filter_id: {"d...
39.302326
250
0.642012
663399fc6a136ba9c5bbad123a56724e2c7c8044
10,722
py
Python
examples/duet/word_language_model/original/main.py
godormad/PySyft
fcb3374b6318dcccf377175fb8db6f70e9e1d1e3
[ "Apache-2.0" ]
1
2020-12-22T17:22:13.000Z
2020-12-22T17:22:13.000Z
examples/duet/word_language_model/original/main.py
godormad/PySyft
fcb3374b6318dcccf377175fb8db6f70e9e1d1e3
[ "Apache-2.0" ]
null
null
null
examples/duet/word_language_model/original/main.py
godormad/PySyft
fcb3374b6318dcccf377175fb8db6f70e9e1d1e3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # stdlib import argparse import math import os import time # third party import data import model import torch import torch.nn as nn import torch.onnx parser = argparse.ArgumentParser( description="PyTorch Wikitext-2 RNN/LSTM/GRU/Transformer Language Model" ) parser.add_argument( "--data", ...
29.056911
97
0.592613
831e487ac073eea4a8131b23e5b526eaa67e5298
771
py
Python
creational-patterns/factory.py
someshchaturvedi/pythonic-design-patterns
74ef0b1ad233bdf9f75f86afa1b8874228d88429
[ "MIT" ]
1
2018-08-02T12:16:20.000Z
2018-08-02T12:16:20.000Z
creational-patterns/factory.py
someshchaturvedi/pythonic-design-patterns
74ef0b1ad233bdf9f75f86afa1b8874228d88429
[ "MIT" ]
null
null
null
creational-patterns/factory.py
someshchaturvedi/pythonic-design-patterns
74ef0b1ad233bdf9f75f86afa1b8874228d88429
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Phone(ABC): @abstractmethod def name(self): pass class ApplePhone(Phone): def name(self): print('apple phone') class SamsungPhone(Phone): def name(self): print('samsung phone') class Company(ABC): def get_phone(self): ...
17.133333
38
0.661479
79aafe4ef32c5d30a33784ad089b6d6a12ae3822
15,791
py
Python
cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_fib_oper.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_fib_oper.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_fib_oper.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-22T04:04:44.000Z
2020-07-22T04:04:44.000Z
""" Cisco_IOS_XE_fib_oper This module contains a collection of YANG definitions for IOS\-XE FIB operational data. """ from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64 from ydk.filters import YFilter fro...
34.105832
299
0.524793
81d600188a7510dffd890a3808730f64c0ea6089
880
py
Python
python/tests/transformers/named_image_VGG16_test.py
flysky1991/spark-deep-learning
36e9b105f8df57680f8cf7cb112125d555a14ce9
[ "Apache-2.0" ]
1
2019-02-25T15:02:19.000Z
2019-02-25T15:02:19.000Z
python/tests/transformers/named_image_VGG16_test.py
jennifer19/spark-deep-learning
e3c5876fb610ede37e43716a5c3cfd76a5a8464b
[ "Apache-2.0" ]
null
null
null
python/tests/transformers/named_image_VGG16_test.py
jennifer19/spark-deep-learning
e3c5876fb610ede37e43716a5c3cfd76a5a8464b
[ "Apache-2.0" ]
2
2020-02-08T06:51:36.000Z
2020-06-18T05:38:09.000Z
# Copyright 2017 Databricks, 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 writin...
36.666667
74
0.770455
85472deba06c689b7b7973af427e23561ab49f2a
7,233
py
Python
homeassistant/components/nam/const.py
nickna/core
c682d5d5e430de52e3da7e06026cd8b4087e864f
[ "Apache-2.0" ]
5
2019-02-24T11:46:18.000Z
2019-05-28T17:37:21.000Z
homeassistant/components/nam/const.py
flexy2dd/core
1019ee22ff13e5f542e868179d791e6a0d87369a
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
homeassistant/components/nam/const.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
1
2020-03-09T19:15:38.000Z
2020-03-09T19:15:38.000Z
"""Constants for Nettigo Air Monitor integration.""" from __future__ import annotations from datetime import timedelta from typing import Final from homeassistant.components.sensor import ( STATE_CLASS_MEASUREMENT, SensorEntityDescription, ) from homeassistant.const import ( CONCENTRATION_MICROGRAMS_PER_C...
35.11165
69
0.72819
0617c24b5f530cfc306b89618fff1f73b328c8b7
3,521
py
Python
CardReader.py
schettn/ChainMeUp
5665cc1cb7eb124f16e49f980e955d21e8845578
[ "MIT" ]
null
null
null
CardReader.py
schettn/ChainMeUp
5665cc1cb7eb124f16e49f980e955d21e8845578
[ "MIT" ]
null
null
null
CardReader.py
schettn/ChainMeUp
5665cc1cb7eb124f16e49f980e955d21e8845578
[ "MIT" ]
2
2019-12-02T21:46:39.000Z
2019-12-09T21:54:08.000Z
''' Created by Simon Possegger on 12.11.2019 as part of the Infineon Hackathon. This Class asynchronously reads from the card reader and provides the needed functions to interact with the Infineon Blockchain Security 2Go cards. ''' import blocksec2go import hashlib import os import json def initReading(): reader...
29.099174
94
0.629367
3204e2fb7428c92292bc48b44385764f4b3d8e26
4,046
py
Python
tests/connections.py
Bamuir3/CCF
21d819a2a9a6bf087063b6fdefe3722a85c47bbe
[ "Apache-2.0" ]
null
null
null
tests/connections.py
Bamuir3/CCF
21d819a2a9a6bf087063b6fdefe3722a85c47bbe
[ "Apache-2.0" ]
null
null
null
tests/connections.py
Bamuir3/CCF
21d819a2a9a6bf087063b6fdefe3722a85c47bbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import infra.e2e_args import time import infra.network import infra.proc import infra.checker import contextlib import resource import psutil from loguru import logger as LOG def run(args): hosts = ["localhost"] ...
36.125
109
0.571181
c6c5c9fbffacf421b23da843e42643cab295bc09
5,465
py
Python
chrome/content/papermachines/processors/ngrams.py
papermachines/papermachines
6afcde40621bbe6a0554647a27101af83e5f61cf
[ "BSD-2-Clause" ]
134
2015-01-04T11:29:04.000Z
2022-03-30T22:39:51.000Z
chrome/content/papermachines/processors/ngrams.py
wisliyao/papermachines
6afcde40621bbe6a0554647a27101af83e5f61cf
[ "BSD-2-Clause" ]
20
2015-02-06T18:42:31.000Z
2021-11-07T05:19:03.000Z
chrome/content/papermachines/processors/ngrams.py
wisliyao/papermachines
6afcde40621bbe6a0554647a27101af83e5f61cf
[ "BSD-2-Clause" ]
16
2015-02-14T18:46:58.000Z
2020-07-24T02:38:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import json import logging import traceback import codecs import re import math import pickle import copy import itertools from collections import Counter, defaultdict import textprocessor class NGrams(textprocessor.TextProcessor): """ Generate ...
35.258065
129
0.570906
8c8cb577623e23d742cde2a67e777dfe41cb3f41
1,657
py
Python
aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnDomainRealTimeSrcBpsDataRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnDomainRealTimeSrcBpsDataRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnDomainRealTimeSrcBpsDataRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.520833
90
0.765238
1dca48c3faa8e9790295a4d7ca41de98cd149df0
17,118
py
Python
Kessler-Syndrome/graphics.py
Starbuck5/Kessler-Syndrome
9a85291cc9bd42bfa0a1e949bfb91a973c8e9d43
[ "Apache-2.0" ]
5
2019-03-01T04:03:31.000Z
2019-07-28T21:04:20.000Z
Kessler-Syndrome/graphics.py
Starbuck5/Kessler-Syndrome
9a85291cc9bd42bfa0a1e949bfb91a973c8e9d43
[ "Apache-2.0" ]
19
2019-03-26T03:59:55.000Z
2019-06-26T17:01:16.000Z
Kessler-Syndrome/graphics.py
Starbuck5/Kessler-Syndrome
9a85291cc9bd42bfa0a1e949bfb91a973c8e9d43
[ "Apache-2.0" ]
9
2019-02-26T03:13:35.000Z
2019-10-10T02:44:46.000Z
from pgx import pointsToRect from game import Rotate from pgx import rotatePixelArt from pgx import scaleImage from pgx import Texthelper from pgx import loadImage from pgx import spriteSheetBreaker import pygame import pgx from pygame import gfxdraw #accepts a surface that supports palettes (gifs) and changes the c...
44.232558
132
0.637574
608741e2664030ef7eded0de736775fa79908a2c
588
py
Python
test/functional_requirements/devel/RESET_EVENT_WRR_POLICY_BASIC.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
38
2021-04-06T03:20:55.000Z
2022-03-02T09:33:28.000Z
test/functional_requirements/devel/RESET_EVENT_WRR_POLICY_BASIC.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
19
2021-04-08T02:27:44.000Z
2022-03-23T00:59:04.000Z
test/functional_requirements/devel/RESET_EVENT_WRR_POLICY_BASIC.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
28
2021-04-08T04:39:18.000Z
2022-03-24T05:56:00.000Z
#!/usr/bin/env python3 import subprocess import os import sys sys.path.append("../") sys.path.append("../../system/lib/") sys.path.append("../system_overall/") import json_parser import pos import cli import api import json import START_POS_BASIC def execute(): START_POS_BASIC.execute() out = cli.reset_even...
18.375
53
0.688776
b4bffde38480b9dbb11547c19b96236422867543
30,150
py
Python
src/sage/functions/airy.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/functions/airy.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/functions/airy.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T12:20:37.000Z
2020-07-24T12:20:37.000Z
r""" Airy Functions This module implements Airy functions and their generalized derivatives. It supports symbolic functionality through Maxima and numeric evaluation through mpmath and scipy. Airy functions are solutions to the differential equation `f''(x) - x f(x) = 0`. Four global function symbols are immediately...
33.57461
106
0.548524
8f745849e52fa61740852128171f2de7c13525f0
2,953
py
Python
cogs/lyrics.py
ssebastianoo/SpotifyLyrics
489c5e9f3b76f40a497ea82e85ebbb178f2a774b
[ "MIT" ]
2
2021-07-24T18:15:05.000Z
2021-11-14T11:29:04.000Z
cogs/lyrics.py
ssebastianoo/SpotifyLyrics
489c5e9f3b76f40a497ea82e85ebbb178f2a774b
[ "MIT" ]
null
null
null
cogs/lyrics.py
ssebastianoo/SpotifyLyrics
489c5e9f3b76f40a497ea82e85ebbb178f2a774b
[ "MIT" ]
null
null
null
import discord from urllib.parse import quote from discord.ext import commands from discord_slash import cog_ext, SlashContext from discord_slash.utils.manage_commands import create_option class Lyrics(commands.Cog): def __init__(self, bot): self.bot = bot @cog_ext.cog_slash(name="lyrics", description...
37.858974
135
0.631561
13c78543efaa5ffd0f66b231a8493e977a6eafa6
152
py
Python
src/modules/helper/formatters.py
spotlightpa/covid-alerts-emailer
6362b841aa348d33096489495a9d4a2a4925cff7
[ "MIT" ]
1
2021-03-19T16:03:39.000Z
2021-03-19T16:03:39.000Z
src/modules/helper/formatters.py
spotlightpa/covid-alerts-emailer
6362b841aa348d33096489495a9d4a2a4925cff7
[ "MIT" ]
null
null
null
src/modules/helper/formatters.py
spotlightpa/covid-alerts-emailer
6362b841aa348d33096489495a9d4a2a4925cff7
[ "MIT" ]
null
null
null
def format_commas(number: int): """ Takes int, adds commas between 1000s. eg. converts 10000 to 10,000 """ return "{:,}".format(number)
25.333333
70
0.625
74109f55606dd7e4528a6816a2f9a41b90b018cd
2,309
py
Python
DPPinPytorch/positive bias.py
visinf/dpp
e810bd63ed61bd7710559467bcd9a35ab9a1b028
[ "BSD-3-Clause" ]
118
2018-04-12T02:41:43.000Z
2022-03-09T12:49:58.000Z
DPPinPytorch/positive bias.py
visinf/dpp
e810bd63ed61bd7710559467bcd9a35ab9a1b028
[ "BSD-3-Clause" ]
11
2018-05-09T11:51:21.000Z
2020-09-02T10:19:14.000Z
DPPinPytorch/positive bias.py
visinf/dpp
e810bd63ed61bd7710559467bcd9a35ab9a1b028
[ "BSD-3-Clause" ]
22
2018-04-12T16:16:04.000Z
2020-07-15T03:20:29.000Z
# Copyright (c) 2018, TU Darmstadt. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # import tc and torch both import tensor_comprehensions as tc import torch import torch.nn as nn from torch.utils.serializat...
38.483333
129
0.661758
334e220fa4fc0b1d730eb14026f00e3b8f3a01ac
1,369
py
Python
geocamUtil/plane.py
finleyexp/georef_geocamutilweb
3ea2d2cf65928cba6ad6fb0a8b601e19d2cb17f6
[ "NASA-1.3" ]
null
null
null
geocamUtil/plane.py
finleyexp/georef_geocamutilweb
3ea2d2cf65928cba6ad6fb0a8b601e19d2cb17f6
[ "NASA-1.3" ]
null
null
null
geocamUtil/plane.py
finleyexp/georef_geocamutilweb
3ea2d2cf65928cba6ad6fb0a8b601e19d2cb17f6
[ "NASA-1.3" ]
4
2017-07-16T03:21:09.000Z
2019-11-12T20:29:36.000Z
# Based on https://github.com/phire/Python-Ray-tracer/blob/master/plane.py # https://gist.github.com/rossant/6046463 """A ray-traceable Plane is a Plane through a given point with a given normal and surface material. It needs an intersect method that returns the point of intersection of a given ray with the ...
36.026316
84
0.6355
a246d4b95469792f1d2cfe0a1633d051e4312b91
100
py
Python
src/product/apps.py
asanka94/OMS-backend
0b0637b40e71b9b71156d28fdc0ff1fb7a3d12ac
[ "MIT" ]
null
null
null
src/product/apps.py
asanka94/OMS-backend
0b0637b40e71b9b71156d28fdc0ff1fb7a3d12ac
[ "MIT" ]
9
2021-03-19T01:50:04.000Z
2022-03-12T00:23:18.000Z
src/product/apps.py
asanka94/OMS-backend
0b0637b40e71b9b71156d28fdc0ff1fb7a3d12ac
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CatalogueConfig(AppConfig): name = 'src.product'
16.666667
34
0.72
a4620f042ba0825ffed3e8c8cbaf32acd2f87149
1,143
py
Python
project/app/urls.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
project/app/urls.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
project/app/urls.py
dbinetti/kidsallin
147491cdfbe812ffde91725193ec16c03083c1da
[ "BSD-3-Clause" ]
null
null
null
# Django from django.urls import path from django.views.generic import TemplateView # Local from . import views urlpatterns = [ # Root path('', views.index, name='index',), # Footer path('about/', TemplateView.as_view(template_name='app/pages/about.html'), name='about',), path('faq/', TemplateVie...
32.657143
100
0.663167
096765c66bcded8e910b616b1bb7f680a0d9496f
2,017
py
Python
NoSQLAttack/globalVar.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
8
2019-02-17T20:11:46.000Z
2019-10-18T06:27:16.000Z
NoSQLAttack/globalVar.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
null
null
null
NoSQLAttack/globalVar.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
4
2019-02-17T23:00:18.000Z
2019-10-18T06:27:14.000Z
class GlobalVar: optionSet = [False] * 9 yes_tag = ['y', 'Y'] # easy for users to choose "y" or "Y" no_tag = ['n', 'N'] victim = "Not Set" # target IP webPort = 80 url = "Not Set" httpMethod= "Not Set" platform = "Not Set" https = "Not Set" # use http or https for attacking URL m...
22.920455
86
0.6941
5afe39edf37c3d89a94a1a9314b3b787dcd6a764
963
py
Python
capsules/classifier_person_attributes_openvino/capsule.py
aotuai/capsule-zoo
bb0093799cf035a88153a9be6ed1e58df9923a8e
[ "BSD-3-Clause" ]
11
2021-02-08T03:23:17.000Z
2022-03-15T08:31:59.000Z
capsules/classifier_person_attributes_openvino/capsule.py
aotuai/capsule-zoo
bb0093799cf035a88153a9be6ed1e58df9923a8e
[ "BSD-3-Clause" ]
5
2020-12-31T20:43:18.000Z
2021-03-24T02:26:41.000Z
capsules/classifier_person_attributes_openvino/capsule.py
aotuai/capsule-zoo
bb0093799cf035a88153a9be6ed1e58df9923a8e
[ "BSD-3-Clause" ]
6
2021-01-25T10:59:37.000Z
2022-02-26T07:36:43.000Z
from vcap import BaseCapsule, DeviceMapper, NodeDescription from .backend import ATTRIBUTES, Backend, options class Capsule(BaseCapsule): name = "classifier_person_attributes_openvino" description = "OpenVINO powered person classifier, " \ "for general person appearance attributes." ver...
34.392857
69
0.694704
0941925ca50893b1f5e0c08e7b0c319c1cc68a1e
3,103
py
Python
isi_sdk_8_1_0/isi_sdk_8_1_0/models/reports_threats.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_0/isi_sdk_8_1_0/models/reports_threats.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_0/isi_sdk_8_1_0/models/reports_threats.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 5 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_1_0.models.reports...
26.982609
95
0.571383
2475cf39b97c1c7be54865dcb1346f671b0792a6
3,359
py
Python
vncdotool/api.py
easybe/vncdotool
2ed9d4fa69b596c5ee848bc6d48c875dfe1d7282
[ "MIT" ]
2
2015-11-10T15:02:29.000Z
2021-09-14T23:34:22.000Z
vncdotool/api.py
easybe/vncdotool
2ed9d4fa69b596c5ee848bc6d48c875dfe1d7282
[ "MIT" ]
null
null
null
vncdotool/api.py
easybe/vncdotool
2ed9d4fa69b596c5ee848bc6d48c875dfe1d7282
[ "MIT" ]
1
2021-09-14T23:34:28.000Z
2021-09-14T23:34:28.000Z
""" Helpers to allow vncdotool to be intergrated into other applications. This feature is under developemental, you're help testing and debugging is appreciated. """ import threading import Queue import logging from twisted.internet import reactor from twisted.internet.defer import maybeDeferred from twisted.python....
26.242188
78
0.664781
511cba785414c0fa94176b5261d2ca7355db897a
1,743
py
Python
kglib/kgcn/models/embedding.py
lolski/kglib
2265009bc066454accb88cdaad8769b920d5df39
[ "Apache-2.0" ]
null
null
null
kglib/kgcn/models/embedding.py
lolski/kglib
2265009bc066454accb88cdaad8769b920d5df39
[ "Apache-2.0" ]
null
null
null
kglib/kgcn/models/embedding.py
lolski/kglib
2265009bc066454accb88cdaad8769b920d5df39
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you m...
43.575
96
0.769937
19e12d057783bf2f5a920da0463e6f7e3948b1c0
1,764
py
Python
__constants/constants.py
priyanshuga/Automatic-Udemy-Courses-Grabber
44426ca2b7b9cb4f18196e12d4d3096baf2b8154
[ "MIT" ]
null
null
null
__constants/constants.py
priyanshuga/Automatic-Udemy-Courses-Grabber
44426ca2b7b9cb4f18196e12d4d3096baf2b8154
[ "MIT" ]
null
null
null
__constants/constants.py
priyanshuga/Automatic-Udemy-Courses-Grabber
44426ca2b7b9cb4f18196e12d4d3096baf2b8154
[ "MIT" ]
null
null
null
########## SITEWIDE CONSTANTS ############ animation = ["[■□□□□□□□□□□□□□]", "[■■□□□□□□□□□□□□]", "[■■■□□□□□□□□□□□]", "[■■■■□□□□□□□□□□]", "[■■■■□□□□□□□□□□]", "[■■■■■□□□□□□□□□]", "[■■■■■■□□□□□□□□]", "[■■■■■■■□□□□□□□]", "[■■■■■■■■□□□□□□]", "[■■■■■■■■■□□□□□]", "[■■■■■■■■■□□□□]", "[■■■■■■■■■■□□□]", "[■■■■■■■■■■■...
47.675676
400
0.60941
4ba4e0af2158066f2a17b8af43dc42fa8735599d
1,414
py
Python
jiant/utils/string_comparing.py
yzpang/jiant
192d6b525c06f33010b59044df40cb86bbfba4ea
[ "MIT" ]
1,108
2019-04-22T09:19:19.000Z
2022-03-31T13:23:51.000Z
jiant/utils/string_comparing.py
eric11eca/inference-information-probing
f55156201992cb024edf112e06dd2d7fe09381e4
[ "MIT" ]
737
2019-04-22T14:30:36.000Z
2022-03-31T22:22:17.000Z
jiant/utils/string_comparing.py
eric11eca/inference-information-probing
f55156201992cb024edf112e06dd2d7fe09381e4
[ "MIT" ]
273
2019-04-23T01:42:11.000Z
2022-03-25T15:59:38.000Z
import re import string import collections def normalize_answer(s): """Lower text and remove punctuation, articles and extra whitespace. From official ReCoRD eval script """ def remove_articles(text): return re.sub(r"\b(a|an|the)\b", " ", text) def white_space_fix(text): return "...
29.458333
94
0.694484
27a967b578cd31a729c0fed37c1ffdfe1bda3c9e
12,036
py
Python
dual_encoder/keras_layers_test.py
Abhin02/federated
5fd8f69284c2784b635faadfaf6c66ce843f7701
[ "Apache-2.0" ]
1
2022-03-16T02:13:39.000Z
2022-03-16T02:13:39.000Z
dual_encoder/keras_layers_test.py
notminusone/federated
6a709f5598450232b918c046cfeba849f479d5cb
[ "Apache-2.0" ]
null
null
null
dual_encoder/keras_layers_test.py
notminusone/federated
6a709f5598450232b918c046cfeba849f479d5cb
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.821429
80
0.571868
716215b5f34434c9d265401560bc6fbf4dc58b53
1,910
py
Python
PySiddhi/core/stream/input/InputHandler.py
localstack/PySiddhi
8f16c5f25908aa6ff94fb3cd256c3d47b6ee3ab2
[ "Apache-2.0" ]
13
2019-03-19T11:28:59.000Z
2022-02-22T10:52:44.000Z
PySiddhi/core/stream/input/InputHandler.py
localstack/PySiddhi
8f16c5f25908aa6ff94fb3cd256c3d47b6ee3ab2
[ "Apache-2.0" ]
8
2019-06-18T11:56:11.000Z
2021-08-17T11:22:58.000Z
PySiddhi/core/stream/input/InputHandler.py
localstack/PySiddhi
8f16c5f25908aa6ff94fb3cd256c3d47b6ee3ab2
[ "Apache-2.0" ]
12
2019-05-07T01:44:53.000Z
2021-11-12T09:26:02.000Z
# Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. # # WSO2 Inc. licenses this file to you 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/...
32.931034
83
0.708901
7c06fa6ec47b0fd1bf3dc954788ca4424a0c3456
393
py
Python
catalyst/dl/meters/__init__.py
vaklyuenkov/catalyst
402294aa5b27784d23cee2b8fff5a1ed26dec8a8
[ "Apache-2.0" ]
null
null
null
catalyst/dl/meters/__init__.py
vaklyuenkov/catalyst
402294aa5b27784d23cee2b8fff5a1ed26dec8a8
[ "Apache-2.0" ]
null
null
null
catalyst/dl/meters/__init__.py
vaklyuenkov/catalyst
402294aa5b27784d23cee2b8fff5a1ed26dec8a8
[ "Apache-2.0" ]
null
null
null
# flake8: noqa from .averagevaluemeter import AverageValueMeter from .classerrormeter import ClassErrorMeter from .confusionmeter import ConfusionMeter from .msemeter import MSEMeter from .movingaveragevaluemeter import MovingAverageValueMeter from .aucmeter import AUCMeter from .apmeter import APMeter from .mapmeter i...
35.727273
60
0.872774
5d415393fc3e2331e79a1aa573d38c6755d36c03
2,786
py
Python
burst_paper/all_ds/plot_example_ds_with_im.py
jackievilladsen/dynspec
87101b188d7891644d848e781bca00f044fe3f0b
[ "MIT" ]
2
2019-05-01T00:34:28.000Z
2021-02-10T09:18:10.000Z
burst_paper/all_ds/plot_example_ds_with_im.py
jackievilladsen/dynspec
87101b188d7891644d848e781bca00f044fe3f0b
[ "MIT" ]
null
null
null
burst_paper/all_ds/plot_example_ds_with_im.py
jackievilladsen/dynspec
87101b188d7891644d848e781bca00f044fe3f0b
[ "MIT" ]
null
null
null
########### # now plot just an example of ADLeo_3 with real and imaginary components ########### import dynspec.plot reload(dynspec.plot) from dynspec import load_dict from dynspec.plot import * from pylab import * import os, subprocess import matplotlib.gridspec as gridspec params = {'legend.fontsize': 'small'...
25.327273
170
0.666547
b81d6d1e98b2b6b8c8e39dd0cb73ba0b4ef2c0d4
16,043
py
Python
scripts/memex/machine_run_scripts/hbase_gpu_machine/compute.py
cdeepakroy/SMQTK
ef5cec7399e9766f95ff06fe122471a51fc4b2d8
[ "BSD-3-Clause" ]
1
2021-04-10T10:51:26.000Z
2021-04-10T10:51:26.000Z
scripts/memex/machine_run_scripts/hbase_gpu_machine/compute.py
cdeepakroy/SMQTK
ef5cec7399e9766f95ff06fe122471a51fc4b2d8
[ "BSD-3-Clause" ]
3
2021-06-08T22:19:14.000Z
2022-03-12T00:46:44.000Z
scripts/memex/machine_run_scripts/hbase_gpu_machine/compute.py
DigitalCompanion/SMQTK
fc9404b69150ef44f24423844bc80735c0c2b669
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Script controlling processing of "image_cache" table image content via HBase (happybase module) Notes: - HBase scan doesn't return keys in order, so check pointing based on "highest" key completed doesn't effectively work. There is completed key skipping, which prevents duplicate computat...
34.650108
111
0.63442
59da50cf240a71fbac66c2a9b071e154da0ec946
1,966
py
Python
functional_tests/factory/resource_factory.py
9sneha-n/pari
78e1e4851e484c076ce6ba3c76d1db081aacbc9a
[ "BSD-3-Clause" ]
35
2015-10-04T17:07:20.000Z
2022-03-23T08:10:13.000Z
functional_tests/factory/resource_factory.py
9sneha-n/pari
78e1e4851e484c076ce6ba3c76d1db081aacbc9a
[ "BSD-3-Clause" ]
322
2015-07-31T17:06:47.000Z
2022-02-10T07:17:55.000Z
functional_tests/factory/resource_factory.py
9sneha-n/pari
78e1e4851e484c076ce6ba3c76d1db081aacbc9a
[ "BSD-3-Clause" ]
14
2016-05-09T10:50:20.000Z
2021-05-08T14:48:51.000Z
import factory from django.contrib.contenttypes.models import ContentType from django.utils.text import slugify from wagtail.core.rich_text import RichText from resources.models import Resource class ContentTypeFactory(factory.django.DjangoModelFactory): class Meta: model = ContentType django_get...
33.896552
147
0.669379
0f3208ac4aa8e0cd144fa044a7212156aafe85f3
26,210
py
Python
growth.py
Venkatprasadkalet1/carboncalc
b7a66407b453e16d9b8606f6ceac43e882c16b19
[ "Unlicense" ]
null
null
null
growth.py
Venkatprasadkalet1/carboncalc
b7a66407b453e16d9b8606f6ceac43e882c16b19
[ "Unlicense" ]
null
null
null
growth.py
Venkatprasadkalet1/carboncalc
b7a66407b453e16d9b8606f6ceac43e882c16b19
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 18 13:06:05 2014 @author: adh Urban forest calculator: Calculate carbon added in previous year. """ import biomass import sqlite3 from numpy import exp, log, sqrt from scipy.optimize import brentq, fsolve UrbForDB = "/home/adh/UrbanForests/UrbanForestCC.sqlite" root...
47.225225
173
0.582869
cffdac8ff97bce692671550aaa1b020349950469
9,669
py
Python
scripts/qapi/visit.py
nonomal/UTM
758372318887710a74791ac4c6af175a0fe363d0
[ "Apache-2.0" ]
1
2022-02-17T04:51:18.000Z
2022-02-17T04:51:18.000Z
scripts/qapi/visit.py
nonomal/UTM
758372318887710a74791ac4c6af175a0fe363d0
[ "Apache-2.0" ]
null
null
null
scripts/qapi/visit.py
nonomal/UTM
758372318887710a74791ac4c6af175a0fe363d0
[ "Apache-2.0" ]
1
2020-02-23T04:35:10.000Z
2020-02-23T04:35:10.000Z
""" QAPI visitor generator Copyright IBM, Corp. 2011 Copyright (C) 2014-2018 Red Hat, Inc. Authors: Anthony Liguori <aliguori@us.ibm.com> Michael Roth <mdroth@linux.vnet.ibm.com> Markus Armbruster <armbru@redhat.com> This work is licensed under the terms of the GNU GPL, version 2. See the COPYING file in the t...
28.189504
88
0.555383
8ef462a63fe7c865f5be0ecc4a4eec880f4b343f
732
py
Python
src/main.py
Just-Joe/CreoMusic
254c9ca418e8770786205b32afdd2b974e50192a
[ "Apache-2.0" ]
null
null
null
src/main.py
Just-Joe/CreoMusic
254c9ca418e8770786205b32afdd2b974e50192a
[ "Apache-2.0" ]
null
null
null
src/main.py
Just-Joe/CreoMusic
254c9ca418e8770786205b32afdd2b974e50192a
[ "Apache-2.0" ]
null
null
null
import time import subprocess import logging # Initialise global logging logpath = 'logs/CreoMusic.log' log = None def logger_init(): """ Sets up logging process """ logger = logging.getLogger('creologger') logger.setLevel(logging.DEBUG) subprocess.call(['rm', logpath]) fh = logging.FileHandler(logpath) fo...
19.263158
77
0.72541
0af5ed9f160855cd5aae5497952d00a75ee956dc
16,305
py
Python
2048.py
wjthieme/Python-2048
fa32e0ae6b5bb38de2f56f39d6ccfcc1e8b59605
[ "MIT" ]
null
null
null
2048.py
wjthieme/Python-2048
fa32e0ae6b5bb38de2f56f39d6ccfcc1e8b59605
[ "MIT" ]
null
null
null
2048.py
wjthieme/Python-2048
fa32e0ae6b5bb38de2f56f39d6ccfcc1e8b59605
[ "MIT" ]
null
null
null
# 2048 by Mara Dekkers & Willem Thieme (copyright (c) 2017) # LSC213 Computer Science II - Final assignment (All code is written by Mara and Willem) import tkinter as tk # import the tkinter module as tk import random as rand # import the random module as rand def startGame(): # start a new game global score,...
51.598101
186
0.621466
3593d9078bf13e8341efc0ec1435a514c9802103
1,059
py
Python
test_station.py
Lab-Group-61/LG61-Flood-Warning
f4eac4f11c398c2c475d7eebe151c409c2c61942
[ "MIT" ]
null
null
null
test_station.py
Lab-Group-61/LG61-Flood-Warning
f4eac4f11c398c2c475d7eebe151c409c2c61942
[ "MIT" ]
null
null
null
test_station.py
Lab-Group-61/LG61-Flood-Warning
f4eac4f11c398c2c475d7eebe151c409c2c61942
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """Unit test for the station submodule""" from floodsystem.station import MonitoringStation, inconsistent_typical_range_stations def test_create_monitoring_station(): # Create a station s_id = "test-s-id" m_id = "test-m-id" label = ...
32.090909
96
0.673277
7b8e2fcd09123dbcd6fffa3ebd2f30ab39bdcf66
17,719
py
Python
code/YOLO101_1Resolusi_320x240_TrainCDV2.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
null
null
null
code/YOLO101_1Resolusi_320x240_TrainCDV2.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
null
null
null
code/YOLO101_1Resolusi_320x240_TrainCDV2.py
mlcv-lab/mr3dcapsnet
d0b37ca085073257b0c485210ec92a5c6e7d9bb6
[ "Apache-2.0" ]
1
2021-02-21T16:07:39.000Z
2021-02-21T16:07:39.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jul 14 13:24:34 2017 @author: user """ #from keras.preprocessing.image import ImageDataGenerator #from keras.models import Sequential #from keras.layers.core import Dense, Dropout, Activation, Flatten, SpatialDropout3D, Merge #from keras.layers.convolutional import...
35.868421
213
0.56335