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
4a2060f7a5bbf7940bdfcddee312af57d9d85854
2,126
py
Python
common/client.py
yangtao4389/default_django2.0
9d0f827e1b46ba6c0c6952dddc6a59b0bb40b46d
[ "Apache-2.0" ]
1
2020-09-30T01:27:57.000Z
2020-09-30T01:27:57.000Z
common/client.py
yangtao4389/default_django2.0
9d0f827e1b46ba6c0c6952dddc6a59b0bb40b46d
[ "Apache-2.0" ]
10
2020-02-11T23:44:04.000Z
2022-03-11T23:40:19.000Z
common/client.py
yangtao4389/default_django2.0
9d0f827e1b46ba6c0c6952dddc6a59b0bb40b46d
[ "Apache-2.0" ]
null
null
null
import urllib.parse def get_client_ip(request): """ :param request: :return: 访问用户的ip """ x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_forwarded_for.split(',')[0] else: ip = request.META.get('REMOTE_ADDR') return ip def get_client_...
22.145833
74
0.630762
4a206290140dfc7bbe0f11af99653e761b472652
3,054
py
Python
tests/api/views_test.py
IslomSobirov/elasticsearch
4d6e2affc1df833dd97f6046f330e764728c9330
[ "MIT" ]
null
null
null
tests/api/views_test.py
IslomSobirov/elasticsearch
4d6e2affc1df833dd97f6046f330e764728c9330
[ "MIT" ]
null
null
null
tests/api/views_test.py
IslomSobirov/elasticsearch
4d6e2affc1df833dd97f6046f330e764728c9330
[ "MIT" ]
null
null
null
import pytest from aiohttp import web import settings from utils.helpers import getFromElastic, QuestionIndex, ChoiceIndex from api.models import Question async def test_get_question(cli, route_path, question_factory): question = await question_factory.get() resp = await cli.get(route_path('question_obj', s...
28.277778
81
0.716765
4a2062b9f75e1591bfdb2bf71eedea8c30a66cf3
4,853
py
Python
model_data_util/create_tt_data/cnn_build_rule.py
yuqil725/model_data_util
35d8463e964742053d99e97f6fb19dc1cac4a93e
[ "MIT" ]
null
null
null
model_data_util/create_tt_data/cnn_build_rule.py
yuqil725/model_data_util
35d8463e964742053d99e97f6fb19dc1cac4a93e
[ "MIT" ]
null
null
null
model_data_util/create_tt_data/cnn_build_rule.py
yuqil725/model_data_util
35d8463e964742053d99e97f6fb19dc1cac4a93e
[ "MIT" ]
null
null
null
""" # Convolutional Layer: ## Rule 1: No Convolutional Layer After the First Dense Layer ## Rule 2: At least the half of layers are convolutional ## Rule 3: Convolutional layer is always the first one #Maxpooling Layer ## Rule 3: No Maxpooling Layer After the First Dense Layer ## Rule 4: No two Maxpooling Layers Next t...
40.107438
115
0.646816
4a20648735696c6ba155251112c315c746c23ae4
56,941
py
Python
jax/_src/lax/linalg.py
SCiarella/jax
a7c9b6d11fa833c748d72b3ccc11baeed9c0248c
[ "Apache-2.0" ]
null
null
null
jax/_src/lax/linalg.py
SCiarella/jax
a7c9b6d11fa833c748d72b3ccc11baeed9c0248c
[ "Apache-2.0" ]
null
null
null
jax/_src/lax/linalg.py
SCiarella/jax
a7c9b6d11fa833c748d72b3ccc11baeed9c0248c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 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 ...
36.430582
157
0.665443
4a20651d5a76b755bafd113e7a42c61b581005a2
954
gyp
Python
src/pkg/mbedtls/mbedtls_static.gyp
dartino/fletch
aa7aba8473f405dd49b9c81b0faeeebfa6e94fc8
[ "BSD-3-Clause" ]
144
2016-01-29T00:14:04.000Z
2021-02-20T09:36:11.000Z
src/pkg/mbedtls/mbedtls_static.gyp
akashfoss/sdk
aa7aba8473f405dd49b9c81b0faeeebfa6e94fc8
[ "BSD-3-Clause" ]
241
2016-01-27T15:37:56.000Z
2016-09-09T07:34:07.000Z
src/pkg/mbedtls/mbedtls_static.gyp
akashfoss/sdk
aa7aba8473f405dd49b9c81b0faeeebfa6e94fc8
[ "BSD-3-Clause" ]
30
2016-02-23T18:14:54.000Z
2020-10-18T13:49:34.000Z
# Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE.md file. { 'targets': [ { 'target_name': 'mbedtls', 'type': 'static_library', 'standal...
23.268293
87
0.503145
4a20656e14131d07e791e6769d341e88a054878a
2,926
py
Python
pylith/materials/RheologyPoroelasticity.py
cehanagan/pylith
cf5c1c34040460a82f79b6eb54df894ed1b1ee93
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
pylith/materials/RheologyPoroelasticity.py
sloppyjuicy/pylith
ac2c1587f87e45c948638b19560813d4d5b6a9e3
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
pylith/materials/RheologyPoroelasticity.py
sloppyjuicy/pylith
ac2c1587f87e45c948638b19560813d4d5b6a9e3
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
# ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University at Buffalo # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copy...
36.123457
121
0.633971
4a2065765f9d2d281d64bc5a3b2dfa43177e9cf8
3,709
py
Python
mockredis/tests/test_list.py
optimizely/mockredis
0f783f70e8ffcf2a65a0f41b691ac3f8135e82bc
[ "Apache-2.0" ]
null
null
null
mockredis/tests/test_list.py
optimizely/mockredis
0f783f70e8ffcf2a65a0f41b691ac3f8135e82bc
[ "Apache-2.0" ]
null
null
null
mockredis/tests/test_list.py
optimizely/mockredis
0f783f70e8ffcf2a65a0f41b691ac3f8135e82bc
[ "Apache-2.0" ]
1
2021-02-14T12:04:33.000Z
2021-02-14T12:04:33.000Z
from unittest import TestCase from mockredis.redis import MockRedis class TestList(TestCase): """ Tests for MockRedis list operations """ def setUp(self): self.redis = MockRedis() self.redis.flushdb() def test_initially_empty(self): """ List is created empty. ...
39.457447
67
0.626854
4a20663196b45eb7269e894a64509fad42443ed9
1,849
py
Python
openpyxl/chart/tests/test_label.py
hfutxqd/openpyxl
50d6e37e0592aac63bc1ffeaf7b13e3b863bb066
[ "MIT" ]
null
null
null
openpyxl/chart/tests/test_label.py
hfutxqd/openpyxl
50d6e37e0592aac63bc1ffeaf7b13e3b863bb066
[ "MIT" ]
null
null
null
openpyxl/chart/tests/test_label.py
hfutxqd/openpyxl
50d6e37e0592aac63bc1ffeaf7b13e3b863bb066
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2019 openpyxl import pytest from openpyxl.xml.functions import tostring, fromstring from openpyxl.tests.helper import compare_xml @pytest.fixture def DataLabelList(): from ..label import DataLabelList return DataLabelList class TestDataLabeList: def test_ctor(self, DataLabelList)...
23.1125
55
0.572201
4a20667ce789ef9820d4dcf4abb7acb3071558bb
399
py
Python
educationsite/app1/migrations/0008_auto_20200909_1807.py
shreytrivedi002/new_ed_site_giglecos
9d49fc29dfab7cb3ca6c1cb9334c655c48ab7598
[ "MIT" ]
2
2020-09-23T17:42:40.000Z
2020-11-08T19:28:16.000Z
educationsite/app1/migrations/0008_auto_20200909_1807.py
shreytrivedi002/new_ed_site_giglecos
9d49fc29dfab7cb3ca6c1cb9334c655c48ab7598
[ "MIT" ]
null
null
null
educationsite/app1/migrations/0008_auto_20200909_1807.py
shreytrivedi002/new_ed_site_giglecos
9d49fc29dfab7cb3ca6c1cb9334c655c48ab7598
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-09 12:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app1', '0007_certificateissued'), ] operations = [ migrations.AlterField( model_name='certificateissued', name='dateIs...
21
54
0.614035
4a2066e60af288a2dbdab437c08744e5824be66e
4,686
py
Python
src/k8s-extension/azext_k8s_extension/vendored_sdks/v2020_07_01_preview/_source_control_configuration_client.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
src/k8s-extension/azext_k8s_extension/vendored_sdks/v2020_07_01_preview/_source_control_configuration_client.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/k8s-extension/azext_k8s_extension/vendored_sdks/v2020_07_01_preview/_source_control_configuration_client.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-03-10T22:13:02.000Z
2022-03-10T22:13:02.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 ...
45.057692
146
0.708493
4a20679a0e27fdaa0ee0be6366716c9214644f13
1,189
py
Python
examples/pylab_examples/system_monitor.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
3
2015-11-16T07:22:28.000Z
2016-11-11T17:55:14.000Z
examples/pylab_examples/system_monitor.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
null
null
null
examples/pylab_examples/system_monitor.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
3
2017-05-31T01:42:22.000Z
2020-06-23T13:57:49.000Z
#!/usr/bin/env python # -*- noplot -*- import time from pylab import * def get_memory(): "Simulate a function that returns system memory" return 100*(0.5+0.5*sin(0.5*pi*time.time())) def get_cpu(): "Simulate a function that returns cpu usage" return 100*(0.5+0.5*sin(0.2*pi*(time.time()-0.25))) def ge...
22.018519
65
0.662742
4a2067aef0caa8c6e5471d82a501395530918b0f
3,744
py
Python
scripts/analysis/gather_black_holes.py
brittonsmith/yt_p3bh
52dd594fb3ded4a88b2cb43ec18ab1c81e617baa
[ "BSD-3-Clause-Clear" ]
1
2017-11-07T01:49:22.000Z
2017-11-07T01:49:22.000Z
scripts/analysis/gather_black_holes.py
brittonsmith/yt_p3bh
52dd594fb3ded4a88b2cb43ec18ab1c81e617baa
[ "BSD-3-Clause-Clear" ]
null
null
null
scripts/analysis/gather_black_holes.py
brittonsmith/yt_p3bh
52dd594fb3ded4a88b2cb43ec18ab1c81e617baa
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Gather Pop III star particles and fields necessary for computing Bondi-Hoyle accretion rates. Usage: python gather_black_holes.py <simulation filename> Example: python gather_black_holes rs_normal_bg1.h5 """ from collections import defaultdict import numpy as np import os import sys import yt yt.enable_parallelism...
34.666667
103
0.576656
4a2067c2cbbb3bbec2e5393f15aad872af82bd09
4,283
py
Python
src/data/DataLoader.py
austinsimeone/handwritten-text-recognition
634f73e041d27196d6fbe1f950bd8af520ff872a
[ "MIT" ]
null
null
null
src/data/DataLoader.py
austinsimeone/handwritten-text-recognition
634f73e041d27196d6fbe1f950bd8af520ff872a
[ "MIT" ]
null
null
null
src/data/DataLoader.py
austinsimeone/handwritten-text-recognition
634f73e041d27196d6fbe1f950bd8af520ff872a
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function import numpy as np from data import preproc as pp import pandas as pd import os class Sample: "single sample from the dataset" def __init__(self, gtText, filePath): self.gtText = gtText self.filePath = filePa...
36.29661
128
0.608219
4a2067dbde4c48be365d48d7d6c83c39f1bbb5e8
1,283
py
Python
refbuka.py
gumblex/refine-buka
815afca8b0c0f2cea6b91ce095c815b157e0b165
[ "MIT" ]
49
2015-01-06T15:50:49.000Z
2020-12-06T05:39:12.000Z
refbuka.py
gumblex/refine-buka
815afca8b0c0f2cea6b91ce095c815b157e0b165
[ "MIT" ]
null
null
null
refbuka.py
gumblex/refine-buka
815afca8b0c0f2cea6b91ce095c815b157e0b165
[ "MIT" ]
13
2015-01-19T06:21:21.000Z
2021-08-03T08:22:15.000Z
import re import struct import os import sys import time import json USAGE = """ python refine.py INPUT_DIR OUTPUT_DIR """ def refine(file_name,output_dir): if not os.path.isdir(output_dir): print(USAGE) raise IOError('output dir `%s` not found' %output_dir) with open(file_name, 'rb') as f...
30.547619
81
0.597818
4a206836acc2080c7ec97e4e97e35cc7968730e5
9,517
py
Python
detecting-invisible-people/tools/convert_sort_output_to_topk_format.py
lv1turtle/Occlusion-object-tracking
bda349332ce904f5f08b694ea25e3e79abc997bc
[ "MIT" ]
26
2021-10-30T15:08:56.000Z
2022-03-31T14:10:13.000Z
detecting-invisible-people/tools/convert_sort_output_to_topk_format.py
lv1turtle/Occlusion-object-tracking
bda349332ce904f5f08b694ea25e3e79abc997bc
[ "MIT" ]
null
null
null
detecting-invisible-people/tools/convert_sort_output_to_topk_format.py
lv1turtle/Occlusion-object-tracking
bda349332ce904f5f08b694ea25e3e79abc997bc
[ "MIT" ]
4
2021-10-30T02:13:29.000Z
2022-03-24T14:54:16.000Z
import json import argparse import glob import cv2 import os import numpy as np import time from PIL import Image from scipy.stats import norm, chi2 COLORMAP = {i: (np.random.randint(0, 255), np.random.randint(0, 255), np.random.randint(0, 255)) for i in range(1,1000)} def plot...
37.616601
149
0.524955
4a206981c3c9a541b2ca41b8f6e46f39e99fdd69
1,327
py
Python
script/scaffold/templates/config_flow_discovery/integration/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
script/scaffold/templates/config_flow_discovery/integration/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
script/scaffold/templates/config_flow_discovery/integration/__init__.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""The NEW_NAME integration.""" import asyncio import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import DOMAIN CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA) # TODO List the platforms that you want to ...
26.54
80
0.68425
4a206a00bdba03d17dd833941e5acbf3d677937c
68,782
py
Python
python/ray/services.py
brechtmann/ray
0c76ebd676f794847ea990aecced22b88717d09e
[ "Apache-2.0" ]
null
null
null
python/ray/services.py
brechtmann/ray
0c76ebd676f794847ea990aecced22b88717d09e
[ "Apache-2.0" ]
null
null
null
python/ray/services.py
brechtmann/ray
0c76ebd676f794847ea990aecced22b88717d09e
[ "Apache-2.0" ]
null
null
null
import collections import errno import json import logging import multiprocessing import os import random import socket import subprocess import sys import time import redis import colorama # Ray modules import ray import ray.ray_constants as ray_constants import psutil resource = None if sys.platform != "win32": ...
40.246928
79
0.634919
4a206b6d7843f9c63f6faa412967bc7cb37f123f
4,186
py
Python
_lambda/ask_sdk_model/interfaces/display/text_content.py
desarroyo/alexa-skill-mi-abecedario
71fb9dc5a9ce2aeb7e336474d5162053e3af0369
[ "MIT" ]
null
null
null
_lambda/ask_sdk_model/interfaces/display/text_content.py
desarroyo/alexa-skill-mi-abecedario
71fb9dc5a9ce2aeb7e336474d5162053e3af0369
[ "MIT" ]
null
null
null
_lambda/ask_sdk_model/interfaces/display/text_content.py
desarroyo/alexa-skill-mi-abecedario
71fb9dc5a9ce2aeb7e336474d5162053e3af0369
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
34.595041
96
0.626374
4a206c70c96a29ca3840a9f096ba8676bd888a42
2,319
py
Python
kafka-gpb-tester/src/producer.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
kafka-gpb-tester/src/producer.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
kafka-gpb-tester/src/producer.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # #Copyright 2021 Broadband Forum # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or ...
33.128571
106
0.77749
4a206cde551ab32002750e9d4d559812c422b51f
1,985
py
Python
other/physical_input2.py
xandao6/clockworks-flyff-bots
94f8d74093dd4044f6a6b9f3d2642ee851dd4d21
[ "MIT" ]
null
null
null
other/physical_input2.py
xandao6/clockworks-flyff-bots
94f8d74093dd4044f6a6b9f3d2642ee851dd4d21
[ "MIT" ]
null
null
null
other/physical_input2.py
xandao6/clockworks-flyff-bots
94f8d74093dd4044f6a6b9f3d2642ee851dd4d21
[ "MIT" ]
null
null
null
import ctypes import time # Bunch of stuff so that the script can send keystrokes to game # SendInput = ctypes.windll.user32.SendInput # C struct redefinitions PUL = ctypes.POINTER(ctypes.c_ulong) class KeyBdInput(ctypes.Structure): _fields_ = [("wVk", ctypes.c_ushort), ("wScan", cty...
26.824324
75
0.571285
4a206d1d69701e5c0e25264f069989adfb874788
5,625
py
Python
examples/DeepWisdom/Auto_Tabular/model_lib/dnn_n.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
3
2020-12-15T02:40:43.000Z
2021-01-14T02:32:13.000Z
examples/DeepWisdom/Auto_Tabular/model_lib/dnn_n.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
null
null
null
examples/DeepWisdom/Auto_Tabular/model_lib/dnn_n.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
4
2021-01-07T05:41:38.000Z
2021-04-07T08:02:22.000Z
import numpy as np import tensorflow as tf from CONSTANT import * from utils.data_utils import ohe2cat from .meta_model import MetaModel from sklearn.metrics import roc_auc_score class DnnModel(MetaModel): def __init__(self): super(DnnModel, self).__init__() #clear_session() self.max_lengt...
35.828025
100
0.630933
4a206dd80d886558d2bd563face0e167d590e0bc
1,153
py
Python
cngi/vis/visjoin.py
FedeMPouzols/cngi_prototype
421a99c460f4092b79120f5bec122de7ce9b8b96
[ "Apache-2.0" ]
null
null
null
cngi/vis/visjoin.py
FedeMPouzols/cngi_prototype
421a99c460f4092b79120f5bec122de7ce9b8b96
[ "Apache-2.0" ]
null
null
null
cngi/vis/visjoin.py
FedeMPouzols/cngi_prototype
421a99c460f4092b79120f5bec122de7ce9b8b96
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 AUI, Inc. Washington DC, USA # # 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 ...
28.825
84
0.647875
4a206e8196d8db2270cb75c7990e5a6af0e7f850
5,239
py
Python
client/totp_enrollment/__init__.py
buzzdeee/king-phisher-plugins
32171113cbf4a3f08299f15b9bd1d24ae4e69b45
[ "BSD-3-Clause" ]
50
2016-05-03T00:35:58.000Z
2020-04-07T09:36:31.000Z
client/totp_enrollment/__init__.py
rrosajp/king-phisher-plugins
b16c9f55a45d653cc69ba822f08a6100e03df3d4
[ "BSD-3-Clause" ]
34
2016-05-17T23:34:13.000Z
2020-01-29T23:15:40.000Z
client/totp_enrollment/__init__.py
rrosajp/king-phisher-plugins
b16c9f55a45d653cc69ba822f08a6100e03df3d4
[ "BSD-3-Clause" ]
48
2016-05-11T15:17:34.000Z
2020-03-14T23:11:22.000Z
import functools import io import os import king_phisher.client.plugins as plugins import king_phisher.client.gui_utilities as gui_utilities from gi.repository import Gtk from gi.repository import GdkPixbuf import pyotp try: import qrcode except ImportError: has_qrcode = False else: has_qrcode = True try: impor...
35.639456
113
0.743653
4a206ea658de2f6db4da0fa6a37b72c3ea2a5141
2,156
py
Python
raining_simulation/raindrops.py
Rajeshree73/Python-Graphics-Projects
6e983162559392eac23e943f861b9920c006d6c6
[ "MIT" ]
null
null
null
raining_simulation/raindrops.py
Rajeshree73/Python-Graphics-Projects
6e983162559392eac23e943f861b9920c006d6c6
[ "MIT" ]
null
null
null
raining_simulation/raindrops.py
Rajeshree73/Python-Graphics-Projects
6e983162559392eac23e943f861b9920c006d6c6
[ "MIT" ]
null
null
null
from setup import * class Raindrop: def __init__(self, r, v_x, v_y ,x, y): self.r = r self.v_init = [v_x, v_y] self.x = x self.y = y self.g = 1 self.ground_height = 10 self.ground_level = int(SCREENSIZE[1]-self.ground_height) self.grounded = False def update(self): self.collision() self.x +=...
22.226804
101
0.655844
4a206eb0e05261e14961a2028c2724f3cc95eb90
817
py
Python
tests/basics/string_find.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
692
2016-12-19T23:25:35.000Z
2022-03-31T14:20:48.000Z
tests/basics/string_find.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
259
2016-12-25T06:38:22.000Z
2022-03-13T16:38:36.000Z
tests/basics/string_find.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
228
2016-12-19T05:03:30.000Z
2022-03-22T18:13:00.000Z
print("hello world".find("ll")) print("hello world".find("ll", None)) print("hello world".find("ll", 1)) print("hello world".find("ll", 1, None)) print("hello world".find("ll", None, None)) print("hello world".find("ll", 1, -1)) print("hello world".find("ll", 1, 1)) print("hello world".find("ll", 1, 2)) print("hello wo...
28.172414
43
0.598531
4a207055fcc05d82971679da2e9e1a5fe3838a66
999
py
Python
at/server/commands/at.py
elagheb/at_commands
51f1fa553b651b639aa3d1e1b3ac4ff07322f7a0
[ "BSD-2-Clause" ]
null
null
null
at/server/commands/at.py
elagheb/at_commands
51f1fa553b651b639aa3d1e1b3ac4ff07322f7a0
[ "BSD-2-Clause" ]
null
null
null
at/server/commands/at.py
elagheb/at_commands
51f1fa553b651b639aa3d1e1b3ac4ff07322f7a0
[ "BSD-2-Clause" ]
null
null
null
import abc import logging from .common.exceptions import ATCommandException logger = logging.getLogger() logger.addHandler(logging.NullHandler()) class AtCommand(metaclass=abc.ABCMeta): COMMAND = 'command' def __init__(self, serial_target, timeout): self.serial_target = serial_target self.ti...
31.21875
73
0.606607
4a207081326e6e74274fac0681e55f5bd1a923c5
2,618
bzl
Python
rules/app.bzl
tinyspeck/rules_ios
01c61778b24965510fe46a35f2e8492cf160d22c
[ "Apache-2.0" ]
146
2020-04-18T19:36:32.000Z
2022-03-27T09:59:27.000Z
rules/app.bzl
bazel-ios/rules_ios
3807b2011db427e9dbd89b063528da48c9d13ac3
[ "Apache-2.0" ]
225
2020-04-17T22:23:14.000Z
2022-03-31T16:40:55.000Z
rules/app.bzl
tinyspeck/rules_ios
01c61778b24965510fe46a35f2e8492cf160d22c
[ "Apache-2.0" ]
42
2020-05-01T20:55:13.000Z
2022-03-30T10:04:22.000Z
load("@build_bazel_rules_apple//apple:ios.bzl", rules_apple_ios_application = "ios_application") load("//rules:library.bzl", "apple_library") load("//rules:plists.bzl", "info_plists_by_setting") # We need to try and partition out arguments for obj_library / swift_library # from ios_application since this creates sourc...
40.90625
179
0.690985
4a2070decaa1ec0d044cfcb6a999ed79dbe64007
4,387
py
Python
src/detection/config/R50_FPN_DCN_test_static.py
inzva/Traffic-Anomaly-Detection
09bbfd55f5d375832afcc1994d3b549082830594
[ "MIT" ]
4
2020-05-31T13:19:58.000Z
2021-03-11T18:51:06.000Z
src/detection/config/R50_FPN_DCN_test_static.py
inzva/Traffic-Anomaly-Detection
09bbfd55f5d375832afcc1994d3b549082830594
[ "MIT" ]
null
null
null
src/detection/config/R50_FPN_DCN_test_static.py
inzva/Traffic-Anomaly-Detection
09bbfd55f5d375832afcc1994d3b549082830594
[ "MIT" ]
3
2020-05-31T13:19:58.000Z
2021-03-16T08:43:23.000Z
# model settings model = dict( type='FasterRCNN', pretrained='modelzoo://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch', dcn=dict( modulated=False, def...
28.861842
82
0.585138
4a20717d05bbba47c9686dc8ff863417b2a5e45b
1,528
py
Python
benchmarks/eq_design_bench.py
jatinchowdhury18/AudioDSPy
96ce0e223877cb5515f14da4f6d2ce8282d81f3c
[ "MIT" ]
37
2019-11-06T07:47:40.000Z
2022-03-07T10:50:45.000Z
benchmarks/eq_design_bench.py
jatinchowdhury18/AudioDSPy
96ce0e223877cb5515f14da4f6d2ce8282d81f3c
[ "MIT" ]
3
2019-10-22T03:24:09.000Z
2022-01-30T00:45:21.000Z
benchmarks/eq_design_bench.py
jatinchowdhury18/AudioDSPy
96ce0e223877cb5515f14da4f6d2ce8282d81f3c
[ "MIT" ]
3
2020-09-09T20:18:37.000Z
2022-03-17T00:48:05.000Z
import audio_dspy as adsp import numpy as np _num_ = 1000 _fc_ = 1000 _Q_ = 0.7071 _fs_ = 44100 _gain_ = 2 _N_ = 16 class EQTimeSuite: """ Benchmarkng Suite for EQ design functions """ def time_bell_filter(self): for _ in range(_num_): adsp.design_bell(_fc_, _Q_, _gain_, _fs_) ...
25.04918
63
0.603403
4a20736e8234ec27d65f4948991798e305f4a761
1,453
py
Python
ba3e-db-graph-kmers/db_graph_kmers.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
ba3e-db-graph-kmers/db_graph_kmers.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
ba3e-db-graph-kmers/db_graph_kmers.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
# Programming solution for: # Construct the De Bruijn Graph of a Collection of k-mers # http://rosalind.info/problems/ba3e/ # # Given an arbitrary collection of k-mers Patterns (where some k-mers may # appear multiple times), we define CompositionGraph(Patterns) as a graph with # |Patterns| isolated edges. Ev...
39.27027
82
0.679284
4a2074a6d1520b5c650567f40249b338adafbf07
141
py
Python
matfiz_tasks/Topic25_Sockets/T25.19_client.py
andriidem308/python_practice
85a0ebd6ecbecf63eaba170c8279f0a88600237a
[ "MIT" ]
2
2020-01-27T11:58:54.000Z
2020-03-30T10:54:08.000Z
matfiz_tasks/Topic25_Sockets/T25.19_client.py
andriidem308/python_practice
85a0ebd6ecbecf63eaba170c8279f0a88600237a
[ "MIT" ]
null
null
null
matfiz_tasks/Topic25_Sockets/T25.19_client.py
andriidem308/python_practice
85a0ebd6ecbecf63eaba170c8279f0a88600237a
[ "MIT" ]
null
null
null
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host, port = socket.gethostname(), 2519 sock.connect((host, port))
17.625
56
0.751773
4a20757b2391afc80bd5bd03017f6070e04e282a
558
py
Python
var/spack/repos/builtin/packages/py-hacking/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-hacking/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/py-hacking/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyHacking(PythonPackage): """OpenStack Hacking Guideline Enforcement.""" home...
31
95
0.749104
4a2075fa4be64cffb5448fd5b54479f0ec92e9dc
2,484
py
Python
src/controller/WEAP/ServeWaMDaMDataToWEAP/ServeWEAPData.py
WamdamProject/WaMDaM_Wizard
f8f5a830464f3c8f45e4eb0557833eefb267d7b2
[ "BSD-3-Clause" ]
null
null
null
src/controller/WEAP/ServeWaMDaMDataToWEAP/ServeWEAPData.py
WamdamProject/WaMDaM_Wizard
f8f5a830464f3c8f45e4eb0557833eefb267d7b2
[ "BSD-3-Clause" ]
3
2018-11-17T05:49:18.000Z
2020-12-31T15:57:14.000Z
src/controller/WEAP/ServeWaMDaMDataToWEAP/ServeWEAPData.py
WamdamProject/WaMDaM_Wizard
f8f5a830464f3c8f45e4eb0557833eefb267d7b2
[ "BSD-3-Clause" ]
null
null
null
import win32com.client from controller.ConnectDB_ParseExcel import DB_Setup from controller.ConnectDB_ParseExcel import SqlAlchemy as sq from sqlalchemy.orm import aliased # 1. Connect to WEAP # Function to create the connection with WEAP class WEAP_export(object): WEAP = None def __init__(self): s...
32.25974
126
0.732287
4a207663502acae1032c8425c88e538e39596bea
929
py
Python
test/test_contact_relations_tags.py
Pluxbox/radiomanager-python-client
a25450c079110fb12d8e5b00f8b96c2619ed6172
[ "MIT" ]
null
null
null
test/test_contact_relations_tags.py
Pluxbox/radiomanager-python-client
a25450c079110fb12d8e5b00f8b96c2619ed6172
[ "MIT" ]
1
2018-09-05T08:51:24.000Z
2018-09-06T14:56:30.000Z
test/test_contact_relations_tags.py
Pluxbox/radiomanager-python-client
a25450c079110fb12d8e5b00f8b96c2619ed6172
[ "MIT" ]
null
null
null
# coding: utf-8 """ RadioManager RadioManager # noqa: E501 OpenAPI spec version: 2.0 Contact: support@pluxbox.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import radiomanager_sdk from radiomanager_sdk.models.c...
22.658537
101
0.723358
4a2076ec4a10a6f13db74762f8d739a81c65a9a6
4,370
py
Python
docker/utils/socket.py
kennylajara/docker-py
a48a5a9647761406d66e8271f19fab7fa0c5f582
[ "Apache-2.0" ]
5,611
2015-01-02T16:46:16.000Z
2022-03-31T21:49:58.000Z
docker/utils/socket.py
sdrees/docker-py
8595cca8186b5d53c04ef71a1a3db86b7c53b012
[ "Apache-2.0" ]
2,176
2015-01-01T00:57:56.000Z
2022-03-31T13:21:54.000Z
docker/utils/socket.py
sdrees/docker-py
8595cca8186b5d53c04ef71a1a3db86b7c53b012
[ "Apache-2.0" ]
1,774
2015-01-05T12:49:03.000Z
2022-03-29T13:27:47.000Z
import errno import os import select import socket as pysocket import struct try: from ..transport import NpipeSocket except ImportError: NpipeSocket = type(None) STDOUT = 1 STDERR = 2 class SocketError(Exception): pass def read(socket, n=4096): """ Reads at most n bytes from socket """ ...
26.011905
79
0.596568
4a20783f754a1254fc51cec6c9dea2bb35c7ad12
213
py
Python
gaphor/SysML/blocks/tests/test_proxy_port.py
Texopolis/gaphor
3b190620075fd413258af1e7a007b4b2167a7564
[ "Apache-2.0" ]
867
2018-01-09T00:19:09.000Z
2022-03-31T02:49:23.000Z
gaphor/SysML/blocks/tests/test_proxy_port.py
burakozturk16/gaphor
86267a5200ac4439626d35d306dbb376c3800107
[ "Apache-2.0" ]
790
2018-01-13T23:47:07.000Z
2022-03-31T16:04:27.000Z
gaphor/SysML/blocks/tests/test_proxy_port.py
burakozturk16/gaphor
86267a5200ac4439626d35d306dbb376c3800107
[ "Apache-2.0" ]
117
2018-01-09T02:24:49.000Z
2022-03-23T08:07:42.000Z
from gaphas import Item from gaphor.SysML.blocks.proxyport import ProxyPortItem def test_proxy_port_item_conforms_to_item_protocol(diagram): item = ProxyPortItem(diagram) assert isinstance(item, Item)
21.3
60
0.812207
4a207953e7f6161c6d8c690e1991e2869676585e
64,985
py
Python
cinder/tests/unit/volume/test_connection.py
alexisries/openstack-cinder
7cc6e45c5ddb8bf771bdb01b867628e41761ae11
[ "Apache-2.0" ]
1
2018-10-23T17:00:53.000Z
2018-10-23T17:00:53.000Z
cinder/tests/unit/volume/test_connection.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/test_connection.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a ...
49.644767
79
0.567346
4a2079728adb3fa9196fe41997409575f0995409
10,797
py
Python
data_split_and_featured.py
trueto/albert_question_match
c56a5fcd43d9ffcd4d230d19a347a6d09d7b12f9
[ "Apache-2.0" ]
5
2019-12-12T06:17:31.000Z
2021-04-15T03:17:33.000Z
data_split_and_featured.py
trueto/albert_question_match
c56a5fcd43d9ffcd4d230d19a347a6d09d7b12f9
[ "Apache-2.0" ]
null
null
null
data_split_and_featured.py
trueto/albert_question_match
c56a5fcd43d9ffcd4d230d19a347a6d09d7b12f9
[ "Apache-2.0" ]
null
null
null
import re import os import logging import pandas as pd from difflib import SequenceMatcher from sklearn.model_selection import train_test_split logger = logging.getLogger(__name__) class DataProcess: def __init__(self, data_path: str, paper_dataset_path: str): self.data_...
40.590226
110
0.600815
4a2079fb797f7b38e097aa154424fa5b8104d74b
3,679
py
Python
adafruit_register/i2c_struct.py
dhalbert/Adafruit_CircuitPython_Register
f91a08d7fab35e23159c63947f2bce13181ed0a6
[ "MIT" ]
6
2018-12-04T02:53:20.000Z
2020-03-08T15:42:16.000Z
adafruit_register/i2c_struct.py
dhalbert/Adafruit_CircuitPython_Register
f91a08d7fab35e23159c63947f2bce13181ed0a6
[ "MIT" ]
null
null
null
adafruit_register/i2c_struct.py
dhalbert/Adafruit_CircuitPython_Register
f91a08d7fab35e23159c63947f2bce13181ed0a6
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2016 Adafruit Industries # # 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, cop...
39.138298
79
0.707801
4a207a24d8736f98436130024c6d124174368c32
1,470
py
Python
procedures/points_B_ICG_first_min_befor_max.py
k-cybulski/sigman-project
1f51e04dddb375eb58182664296b7b3f1db71756
[ "MIT" ]
1
2017-11-10T10:42:07.000Z
2017-11-10T10:42:07.000Z
procedures/points_B_ICG_first_min_befor_max.py
k-cybulski/sigman-project
1f51e04dddb375eb58182664296b7b3f1db71756
[ "MIT" ]
21
2017-12-28T13:39:55.000Z
2018-07-16T14:34:29.000Z
procedures/points_B_ICG_first_min_befor_max.py
k-cybulski/sigman-project
1f51e04dddb375eb58182664296b7b3f1db71756
[ "MIT" ]
1
2018-02-25T13:57:50.000Z
2018-02-25T13:57:50.000Z
import numpy as np from sigman.analyzer import InvalidArgumentError procedure_type = 'points' description = ( """Procedure detect point B in ICG signal. Algorithm detect first minimum before dz/dtmax. """) author = 'mzylinski' arguments = { } default_arguments = { } output_type = 'B' required_waves = ['Signal...
27.735849
90
0.637415
4a207c9ec2c7a9540734ff1d2215c7aa59eca527
3,877
py
Python
import_notes.py
kungfujam/mendeley-viz
4b6cb3f995a252f6658e0dedda83c751a5cf5146
[ "MIT" ]
2
2018-03-01T20:46:04.000Z
2018-06-05T13:27:42.000Z
import_notes.py
JamesOwers/mendeley-viz
4b6cb3f995a252f6658e0dedda83c751a5cf5146
[ "MIT" ]
null
null
null
import_notes.py
JamesOwers/mendeley-viz
4b6cb3f995a252f6658e0dedda83c751a5cf5146
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Reads a folder of .md files (with file name formatting of export_notes.pm) and rewrites the mendeley sqlite database notes table with the corresponding document_id notes """ from __future__ import print_function, division __author__ = "James Owers" __license__ = "MIT...
35.898148
78
0.649729
4a207d1fcf16be3c2d1af48e33d17b9426bae2c0
1,151
py
Python
sginnovate/Preprocessing_opt.py
wanderer799/Sputum
51471ea11d739e5ddeec4d11c5c4ae733b23ef92
[ "MIT" ]
null
null
null
sginnovate/Preprocessing_opt.py
wanderer799/Sputum
51471ea11d739e5ddeec4d11c5c4ae733b23ef92
[ "MIT" ]
null
null
null
sginnovate/Preprocessing_opt.py
wanderer799/Sputum
51471ea11d739e5ddeec4d11c5c4ae733b23ef92
[ "MIT" ]
null
null
null
import os import cv2 as cv import threading import numpy as np class PreprocessImages(): def crop_run(self,impath,imname,savedir,model,session): # print('impath',impath,imname) img = cv.imread(impath) img = cv.resize(img,(400,600)) print(img.shape) with session.as_default(): ...
34.878788
60
0.444831
4a207ef6213abbc73798d524c5f7e778bc46a079
10,863
py
Python
state_farm/state_farm.py
advnturecaptlst/kaggle_archive
8b64f15caeb73c9822cfe530b9ff0a1a0136da9c
[ "Apache-2.0" ]
null
null
null
state_farm/state_farm.py
advnturecaptlst/kaggle_archive
8b64f15caeb73c9822cfe530b9ff0a1a0136da9c
[ "Apache-2.0" ]
null
null
null
state_farm/state_farm.py
advnturecaptlst/kaggle_archive
8b64f15caeb73c9822cfe530b9ff0a1a0136da9c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 1 20:37:27 2016 @author: ianmurra """ import numpy as np np.random.seed(13) import os import glob import cv2 import math import pickle import datetime import pandas as pd import statistics from sklearn.cross_validation import train_test_split from sklearn.cross_valida...
33.118902
126
0.654055
4a207efbd122b977639c7b30dbb4df1649663827
4,144
py
Python
src/core/runtime/object/function.py
thomasmf/nomenine
ead48185b150fdc07a5019499511f696c5326d45
[ "MIT" ]
1
2015-10-21T14:31:10.000Z
2015-10-21T14:31:10.000Z
src/core/runtime/object/function.py
thomasmf/nomenine
ead48185b150fdc07a5019499511f696c5326d45
[ "MIT" ]
null
null
null
src/core/runtime/object/function.py
thomasmf/nomenine
ead48185b150fdc07a5019499511f696c5326d45
[ "MIT" ]
null
null
null
ROOT_SCOPE_METHOD( MD( 'Function', 'FUNCTION_FACTORY_single()' ), MC( ARG( CW( 'function' ), CC( 'STAR_new( CLAUSE_FACTORY_single() )', 'parameters' ), CG( 'LIST', 'phrase' ) ), """ $NOM( CONTEXT, $CA(UNION_new( $LISTNEW( nom_definition( $CA(WORD_new( "parameters" )), PARAM_parameters ), ...
34.533333
196
0.542471
4a20806a9e7bca88b2a7f3574b06b0f2ec1a2b7e
1,893
py
Python
parkings/api/enforcement/valid_permit_item.py
klemmari1/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
12
2016-11-29T15:13:10.000Z
2021-06-12T06:45:38.000Z
parkings/api/enforcement/valid_permit_item.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
154
2016-11-30T09:07:58.000Z
2022-02-12T08:29:36.000Z
parkings/api/enforcement/valid_permit_item.py
niuzhipeng123/parkkihubi
93218c6046c0910e8a4c723dc7128c6eec085b8c
[ "MIT" ]
15
2016-11-29T19:32:48.000Z
2022-01-05T11:31:39.000Z
import django_filters from django.utils.translation import gettext_lazy as _ from rest_framework import serializers, viewsets from ...models import PermitArea, PermitLookupItem from ...pagination import CursorPagination from .permissions import IsEnforcer class ValidPermitItemSerializer(serializers.ModelSerializer):...
33.210526
99
0.709456
4a2080816a1a83916eaef3e395fb19601160ab50
5,705
py
Python
cancergame/cancergame.py
hieumtran/cancergame
af129cd29eb61a8593410b9b8986f4bb17948235
[ "MIT" ]
1
2021-08-24T03:00:23.000Z
2021-08-24T03:00:23.000Z
cancergame/cancergame.py
hieumtran/cancergame
af129cd29eb61a8593410b9b8986f4bb17948235
[ "MIT" ]
null
null
null
cancergame/cancergame.py
hieumtran/cancergame
af129cd29eb61a8593410b9b8986f4bb17948235
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pandas as pd import time def init_cancerGDV( xd = 0.04, xg = 0.9, xv = 0.06, ba = 2.5, bv = 2, c = 1, n_neigh = 4, dt = 0.01, iter = 3000, rb = 10**(-1.5), fb = 10**(-1.5), sigma = 0.01, d = None, timeframe...
27.560386
123
0.537599
4a20813d1b71c796b4e0cd5f7309e8802add6acd
1,485
py
Python
Numerical_Methods_Physics/Halleys_Comet_1.py
Simba2805/Computational_Physics_Python
be687939c16a1d08066939830ac31ba666a3e1bb
[ "MIT" ]
null
null
null
Numerical_Methods_Physics/Halleys_Comet_1.py
Simba2805/Computational_Physics_Python
be687939c16a1d08066939830ac31ba666a3e1bb
[ "MIT" ]
null
null
null
Numerical_Methods_Physics/Halleys_Comet_1.py
Simba2805/Computational_Physics_Python
be687939c16a1d08066939830ac31ba666a3e1bb
[ "MIT" ]
null
null
null
## --------------The motion of Halley’s comet, which has a period of about 76 years------------------- import numpy as np import matplotlib.pyplot as plt m= 200 # reduced mass n = 20000 k= 39.5 h = 2/(n-1) h2 = h**2/2 # motion in xy-plane t = np.linspace(0, 2, n-1) # time interval x = np.zeros(n-1) ...
25.169492
103
0.523906
4a208184369354bbd18f7eab521fa9332ec8aac2
1,871
py
Python
tests/test_account.py
MatthiasLohr/bdtsim
f22a1207b206b35c8f0011be6991bc3163cdfca2
[ "Apache-2.0" ]
null
null
null
tests/test_account.py
MatthiasLohr/bdtsim
f22a1207b206b35c8f0011be6991bc3163cdfca2
[ "Apache-2.0" ]
null
null
null
tests/test_account.py
MatthiasLohr/bdtsim
f22a1207b206b35c8f0011be6991bc3163cdfca2
[ "Apache-2.0" ]
null
null
null
# This file is part of the Blockchain Data Trading Simulator # https://gitlab.com/MatthiasLohr/bdtsim # # Copyright 2020 Matthias Lohr <mail@mlohr.com> # # 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...
39.808511
102
0.728487
4a2081cfac55ad1134afcdea84f566b5d73d3249
514
py
Python
blog/admin.py
lingyan2017/blogproject
5cc907882ac48ea4b78ea14bb52e8a8c94fc653b
[ "MIT" ]
null
null
null
blog/admin.py
lingyan2017/blogproject
5cc907882ac48ea4b78ea14bb52e8a8c94fc653b
[ "MIT" ]
9
2021-03-19T11:20:50.000Z
2022-03-12T00:34:14.000Z
blog/admin.py
lingyan2017/blogproject
5cc907882ac48ea4b78ea14bb52e8a8c94fc653b
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from blog.models import Post, Category, Tag class PostAdmin(admin.ModelAdmin): list_display = ['title','created_time','modified_time','category','author'] fields = ['title','body','excerpt','category','tags'] def save_model(self, request, obj,...
32.125
79
0.72179
4a20823c953785effc9df6e874da73c48f75ebf8
47
py
Python
pysensors/classification/__init__.py
Jimmy-INL/pysensors
62b79a233a551ae01125e20e06fde0c96b4dffd2
[ "MIT" ]
43
2020-10-26T14:43:56.000Z
2022-03-03T16:03:15.000Z
pysensors/classification/__init__.py
Jimmy-INL/pysensors
62b79a233a551ae01125e20e06fde0c96b4dffd2
[ "MIT" ]
4
2020-11-10T11:15:15.000Z
2022-01-07T16:05:11.000Z
pysensors/classification/__init__.py
Jimmy-INL/pysensors
62b79a233a551ae01125e20e06fde0c96b4dffd2
[ "MIT" ]
13
2020-10-14T10:38:38.000Z
2022-01-03T09:05:15.000Z
from ._sspoc import SSPOC __all__ = ["SSPOC"]
11.75
25
0.702128
4a2082461d9f1bd71e34cc7ec278e54e16d785ca
11,710
py
Python
chatbot/bot.py
raf555/samantha-bot-line
6b790325f09879cc2fc6dd10c2379e16dd5488ce
[ "MIT" ]
null
null
null
chatbot/bot.py
raf555/samantha-bot-line
6b790325f09879cc2fc6dd10c2379e16dd5488ce
[ "MIT" ]
null
null
null
chatbot/bot.py
raf555/samantha-bot-line
6b790325f09879cc2fc6dd10c2379e16dd5488ce
[ "MIT" ]
null
null
null
import os import json from flask import request, abort from linebot import ( LineBotApi, WebhookHandler ) from linebot.models import ( MessageEvent, FollowEvent, UnfollowEvent, JoinEvent, PostbackEvent, TextMessage, TextSendMessage, FlexSendMessage, StickerSendMessage, SourceRoom, SourceGroup ) from...
45.387597
318
0.648249
4a2082b22ec187c28ce14419d398fd9badc165e7
3,729
py
Python
setup.py
CalebBell/chemicals
e3920ae917bf1944946aa95f5461a41bcdba6c63
[ "MIT" ]
76
2020-08-29T07:47:11.000Z
2022-03-27T03:16:46.000Z
setup.py
CalebBell/chemicals
e3920ae917bf1944946aa95f5461a41bcdba6c63
[ "MIT" ]
20
2020-08-31T04:44:53.000Z
2022-03-25T05:40:07.000Z
setup.py
CalebBell/chemicals
e3920ae917bf1944946aa95f5461a41bcdba6c63
[ "MIT" ]
13
2020-09-01T04:57:01.000Z
2022-02-23T03:36:58.000Z
# -*- coding: utf-8 -*- """Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017, 2018, 2019, 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
43.360465
95
0.700456
4a2082c96517cf878677bf1b4335049ec82c827c
22,354
py
Python
research/object_detection/models/keras_applications1/mobilenet_v2_test.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
1
2021-05-17T01:42:29.000Z
2021-05-17T01:42:29.000Z
research/object_detection/models/keras_applications1/mobilenet_v2_test.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
research/object_detection/models/keras_applications1/mobilenet_v2_test.py
jdavidagudelo/tensorflow-models
6f019beec73b01861363bf717706e27f4210b979
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
47.764957
84
0.346381
4a2083c5d68ac9ba81eac88580f8bc78e34a58a9
1,756
py
Python
benchmark/startPyquil2861.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2861.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2861.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=31 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += CNOT(0,3) # number=14 ...
25.085714
64
0.570615
4a2083f6e09b26dad980c7a505b192537fab90d6
2,219
py
Python
test/quantum_volume/test_qv.py
hodgestar/qiskit-ignis
0e511df442e864cd0e06efcdd1db7b03c011168b
[ "Apache-2.0" ]
1
2019-12-12T07:58:13.000Z
2019-12-12T07:58:13.000Z
test/quantum_volume/test_qv.py
hodgestar/qiskit-ignis
0e511df442e864cd0e06efcdd1db7b03c011168b
[ "Apache-2.0" ]
3
2020-11-06T16:54:48.000Z
2020-11-11T01:37:30.000Z
test/quantum_volume/test_qv.py
hodgestar/qiskit-ignis
0e511df442e864cd0e06efcdd1db7b03c011168b
[ "Apache-2.0" ]
2
2020-01-01T14:46:41.000Z
2020-01-17T16:06:29.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
29.197368
77
0.606129
4a2084006e8b61e01b3791ef9ad59181c01fe652
11,183
py
Python
Python/scrabble/Player.py
CNHume/Samples
2fdaa7a3193f19a882d0adebffaaf56af0984654
[ "MIT" ]
null
null
null
Python/scrabble/Player.py
CNHume/Samples
2fdaa7a3193f19a882d0adebffaaf56af0984654
[ "MIT" ]
null
null
null
Python/scrabble/Player.py
CNHume/Samples
2fdaa7a3193f19a882d0adebffaaf56af0984654
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2018, Christopher Hume. All rights reserved. # # You should have received a copy of the MIT License along with this program. # If not, see https://opensource.org/licenses/MIT. # # 2018-09-09 CNHume Created File # from operator import itemgetter import string import re from Boar...
29.198433
115
0.635429
4a2085abd13290838f53316ecda4b242db62488c
1,170
py
Python
airflow/operators/mysql_operator.py
dtardoin/airflow
4d7f413c7db3ffdb1236e7799e4fe647842e5dbd
[ "Apache-2.0" ]
1
2021-03-02T20:08:53.000Z
2021-03-02T20:08:53.000Z
airflow/operators/mysql_operator.py
dtardoin/airflow
4d7f413c7db3ffdb1236e7799e4fe647842e5dbd
[ "Apache-2.0" ]
null
null
null
airflow/operators/mysql_operator.py
dtardoin/airflow
4d7f413c7db3ffdb1236e7799e4fe647842e5dbd
[ "Apache-2.0" ]
1
2019-05-14T16:19:12.000Z
2019-05-14T16:19:12.000Z
import logging from airflow.hooks import MySqlHook from airflow.models import BaseOperator from airflow.utils import apply_defaults class MySqlOperator(BaseOperator): """ Executes sql code in a specific MySQL database :param mysql_conn_id: reference to a specific mysql database :type mysql_conn_id: ...
31.621622
72
0.678632
4a2085cdd79a3f15b282401bac7f383fc6083298
2,304
py
Python
tests/test_derive_adduct_from_name.py
adelabriere/matchms
a580539e6db3f4f00e12097983b85b2d494159ba
[ "Apache-2.0" ]
64
2020-06-22T14:59:21.000Z
2022-03-30T00:50:13.000Z
tests/test_derive_adduct_from_name.py
adelabriere/matchms
a580539e6db3f4f00e12097983b85b2d494159ba
[ "Apache-2.0" ]
561
2020-03-19T14:35:59.000Z
2022-03-29T10:11:12.000Z
tests/test_derive_adduct_from_name.py
adelabriere/matchms
a580539e6db3f4f00e12097983b85b2d494159ba
[ "Apache-2.0" ]
32
2020-05-06T07:35:59.000Z
2022-03-10T09:03:45.000Z
import numpy from matchms import Spectrum from matchms.filtering import derive_adduct_from_name def test_derive_adduct_from_name(): spectrum_in = Spectrum(mz=numpy.array([], dtype="float"), intensities=numpy.array([], dtype="float"), metadata={"compound_name":...
41.142857
107
0.65408
4a2086e58a509af6536a764a7ee169742c362e19
131
py
Python
recipes-support/pot-watcher/files/play-sound.py
masselstine/meta-alexa
bbb44fa29a73d1cc9670b24a031acfdcf100e8d1
[ "MIT" ]
null
null
null
recipes-support/pot-watcher/files/play-sound.py
masselstine/meta-alexa
bbb44fa29a73d1cc9670b24a031acfdcf100e8d1
[ "MIT" ]
null
null
null
recipes-support/pot-watcher/files/play-sound.py
masselstine/meta-alexa
bbb44fa29a73d1cc9670b24a031acfdcf100e8d1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pexpect pexpect.run("ssh 192.168.42.1 'aplay /root/beedoo.wav'", events={'(?i)password':'incendia\n'})
21.833333
94
0.687023
4a2086f31a9e260c95288e7661cd2f99d991ea97
13,919
py
Python
standard_train/lib/datasets/coco.py
Flsahkong/seeDiffDA
8c5219b1eb0edb69f24cff03dbbd1a66bdd6cc42
[ "MIT" ]
62
2018-10-27T02:44:46.000Z
2022-03-09T12:58:52.000Z
standard_train/lib/datasets/coco.py
Flsahkong/seeDiffDA
8c5219b1eb0edb69f24cff03dbbd1a66bdd6cc42
[ "MIT" ]
12
2018-11-16T11:22:40.000Z
2020-06-07T06:08:10.000Z
standard_train/lib/datasets/coco.py
Flsahkong/seeDiffDA
8c5219b1eb0edb69f24cff03dbbd1a66bdd6cc42
[ "MIT" ]
24
2018-10-27T02:44:29.000Z
2021-07-12T08:49:17.000Z
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future...
35.507653
88
0.60967
4a20870ec2cbe399a24f358af5587d35493686eb
4,432
py
Python
tokens.py
JeromeTan1997/PL0
59f5bdad7e474310d68f0d834a70937d8a7bb671
[ "MIT" ]
null
null
null
tokens.py
JeromeTan1997/PL0
59f5bdad7e474310d68f0d834a70937d8a7bb671
[ "MIT" ]
null
null
null
tokens.py
JeromeTan1997/PL0
59f5bdad7e474310d68f0d834a70937d8a7bb671
[ "MIT" ]
null
null
null
from enum import Enum class Word(Enum): BEGIN = 1 CALL = 2 CONST = 3 DO = 4 END = 5 IF = 6 ODD = 7 PROCEDURE = 8 READ = 9 THEN = 10 VAR = 11 WHILE = 12 WRITE = 13 def name(self): return self.value() + 'sym' def value(self): return Word._val...
22.16
114
0.595894
4a20873c8421cd04f111368ca48afb37d0dda212
3,712
py
Python
Lib/site-packages/pylint/extensions/no_self_use.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/extensions/no_self_use.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/extensions/no_self_use.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt from __future__ import annotations from typing import TYPE_CHECKING from astroid import nodes f...
32.849558
83
0.616649
4a20877c681b7f1d799aba239c1beaedcc487ccd
5,652
py
Python
Collections-a-installer/community-general-2.4.0/plugins/modules/pushbullet.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/pushbullet.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/pushbullet.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- author: "Willy Barro (@willybarro)" requi...
30.387097
134
0.64402
4a208a1e66581bb19ba9db6380a531af887bb7b5
22,240
py
Python
src/cryptography/hazmat/primitives/serialization/ssh.py
gorgiaxx/cryptography
ee511a8261a7b88c201736262c56048553eb593c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
4,492
2015-01-02T23:02:52.000Z
2022-03-31T12:59:57.000Z
src/cryptography/hazmat/primitives/serialization/ssh.py
gorgiaxx/cryptography
ee511a8261a7b88c201736262c56048553eb593c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
3,692
2015-01-01T03:16:56.000Z
2022-03-31T19:20:25.000Z
src/cryptography/hazmat/primitives/serialization/ssh.py
gorgiaxx/cryptography
ee511a8261a7b88c201736262c56048553eb593c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1,155
2015-01-09T00:48:05.000Z
2022-03-31T23:46:43.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import binascii import os import re import struct import typing from base64 import encodebytes as _base64_encode from cryptography import...
30.888889
79
0.650764
4a208a94b7e27fc2cb42d6c54a0a31df33014553
1,939
py
Python
setup.py
INCF/nineml-python
062a2ac8a9be97cee4dad02938e3858e051cf07c
[ "BSD-3-Clause" ]
6
2017-12-26T14:15:28.000Z
2021-10-10T22:45:51.000Z
setup.py
INCF/nineml-python
062a2ac8a9be97cee4dad02938e3858e051cf07c
[ "BSD-3-Clause" ]
25
2017-07-05T03:53:53.000Z
2021-01-19T14:14:05.000Z
setup.py
INCF/nineml-python
062a2ac8a9be97cee4dad02938e3858e051cf07c
[ "BSD-3-Clause" ]
5
2017-12-26T14:15:12.000Z
2021-10-10T22:45:39.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import os import sys PACKAGE_NAME = 'nineml' # Get version number sys.path.insert(0, os.path.join(os.path.dirname(__file__), PACKAGE_NAME)) from version import __version__ # @IgnorePep8 @UnresolvedImport sys.path.pop(0) setup( name=PACKAGE_NAME...
37.288462
77
0.566271
4a208ada36f1a83bd95eea5165b5cadf1ba4a075
1,024
py
Python
ctf/mixins.py
puerkito66/openCTF
207cf96e6539a0dbfa3f87f838975c5e5f91ca9e
[ "MIT" ]
null
null
null
ctf/mixins.py
puerkito66/openCTF
207cf96e6539a0dbfa3f87f838975c5e5f91ca9e
[ "MIT" ]
null
null
null
ctf/mixins.py
puerkito66/openCTF
207cf96e6539a0dbfa3f87f838975c5e5f91ca9e
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import UserPassesTestMixin from django.utils.translation import ugettext_lazy as _ class IsVerifiedMixin(UserPassesTestMixin): """Profile verification Mixin. Checks if a user has verified the registered email, so some actions can be enabled. """ permission_denied_mess...
25.6
87
0.708984
4a208bf00545f01cbde231e67e59546d3890d504
149
py
Python
example1/build.py
donutpy/example
df72e57856a57bead27f95eb6cee219f01e78b40
[ "MIT" ]
null
null
null
example1/build.py
donutpy/example
df72e57856a57bead27f95eb6cee219f01e78b40
[ "MIT" ]
null
null
null
example1/build.py
donutpy/example
df72e57856a57bead27f95eb6cee219f01e78b40
[ "MIT" ]
null
null
null
import donutpy as dpy dpy.initiate() dpy.buildPages() # Run this file with the argument --buildPages # Example: path/to/file/build.py --buildPages
18.625
46
0.751678
4a208dd87572f4a418a961cd329410a500608c4b
1,147
py
Python
experiments/tiered-meta-iNat/FRN/Conv-4/train.py
Jf-Chen/FRN-main
5b57b9e0d7368058a8e3ba41a53c460b54ab9b91
[ "MIT" ]
43
2021-04-27T23:42:35.000Z
2022-03-30T02:41:19.000Z
experiments/tiered-meta-iNat/FRN/Conv-4/train.py
Jf-Chen/FRN-main
5b57b9e0d7368058a8e3ba41a53c460b54ab9b91
[ "MIT" ]
7
2021-05-31T10:38:17.000Z
2022-01-06T05:20:08.000Z
experiments/tiered-meta-iNat/FRN/Conv-4/train.py
Jf-Chen/FRN-main
5b57b9e0d7368058a8e3ba41a53c460b54ab9b91
[ "MIT" ]
7
2021-05-18T00:37:46.000Z
2022-01-23T07:09:51.000Z
import os import sys import torch import yaml from functools import partial sys.path.append('../../../../') from trainers import trainer, frn_train from datasets import dataloaders from models.FRN import FRN args = trainer.train_parser() with open('../../../../config.yml', 'r') as f: temp = yaml.safe_load(f) data...
30.184211
89
0.666957
4a208e3cd7b75e5abd2c2165f964447283137193
7,971
py
Python
controllers/submit.py
NewGlobalStrategy/NetDecisionMaking
32ff3bd126c571526e9e4999c7f8859df84bfecf
[ "MIT" ]
1
2016-02-29T14:53:10.000Z
2016-02-29T14:53:10.000Z
controllers/submit.py
NewGlobalStrategy/NetDecisionMaking
32ff3bd126c571526e9e4999c7f8859df84bfecf
[ "MIT" ]
null
null
null
controllers/submit.py
NewGlobalStrategy/NetDecisionMaking
32ff3bd126c571526e9e4999c7f8859df84bfecf
[ "MIT" ]
null
null
null
# - Coding UTF8 - # # Networked Decision Making # Development Sites (source code): # http://code.google.com/p/global-decision-making-system/ # http://github.com/NewGlobalStrategy/NetDecisionMaking # # Demo Sites (Google App Engine) # http://netdecisionmaking.appspot.com # http://globaldecisionmaking.appspot.co...
40.055276
109
0.617488
4a208f2cc37bfe668828d8515a259b1b41ad33c5
2,952
py
Python
aylien_news_api/models/media_type.py
AYLIEN/aylien_newsapi_python
ab4e667e718e8f919b894d4e4ec76e5d37b2fe74
[ "Apache-2.0" ]
13
2016-04-30T12:08:24.000Z
2021-09-14T13:57:46.000Z
aylien_news_api/models/media_type.py
AYLIEN/aylien_newsapi_python
ab4e667e718e8f919b894d4e4ec76e5d37b2fe74
[ "Apache-2.0" ]
3
2016-09-02T08:22:28.000Z
2018-07-03T10:59:31.000Z
aylien_news_api/models/media_type.py
AYLIEN/aylien_newsapi_python
ab4e667e718e8f919b894d4e4ec76e5d37b2fe74
[ "Apache-2.0" ]
5
2016-12-20T08:17:47.000Z
2022-01-11T22:44:43.000Z
# coding: utf-8 """ AYLIEN News API The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client. # noqa: E501 The version of the OpenAPI document: ...
28.941176
235
0.58435
4a208fb8723f51326687cb86194156c2340db109
832
py
Python
molecool/functions.py
hxh5226/molecool
69bc49f7d051a485581a859db245c74dcbb4dcea
[ "BSD-3-Clause" ]
null
null
null
molecool/functions.py
hxh5226/molecool
69bc49f7d051a485581a859db245c74dcbb4dcea
[ "BSD-3-Clause" ]
null
null
null
molecool/functions.py
hxh5226/molecool
69bc49f7d051a485581a859db245c74dcbb4dcea
[ "BSD-3-Clause" ]
null
null
null
""" functions.py A Python package for analyzing and visualizing xyz files. Handles the primary functions The source code goes here """ def canvas(with_attribution=True): """ Placeholder function to show example docstring (NumPy format) Replace this function and doc string for your own project Para...
22.486486
65
0.674279
4a20901ab6b5fd3f9db53911bbfb9017a9be5882
4,889
py
Python
sdk/python/pulumi_azure_nextgen/apimanagement/v20170301/get_api_release.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/apimanagement/v20170301/get_api_release.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/apimanagement/v20170301/get_api_release.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
35.948529
142
0.652076
4a2090ea6e805107248f50a6982f841070f3d9a2
1,554
py
Python
old/ch3/simple_cbow.py
intlabSeJun/deep-learning2
bd02497adb627e1e07b4ed71044f675d2208ddb6
[ "MIT" ]
null
null
null
old/ch3/simple_cbow.py
intlabSeJun/deep-learning2
bd02497adb627e1e07b4ed71044f675d2208ddb6
[ "MIT" ]
null
null
null
old/ch3/simple_cbow.py
intlabSeJun/deep-learning2
bd02497adb627e1e07b4ed71044f675d2208ddb6
[ "MIT" ]
null
null
null
import sys sys.path.append('..') import numpy as np from common.layers import MatMul, SoftmaxWithLoss class SimpleCBOW: def __init__(self, vocab_size, hidden_size): V, H = vocab_size, hidden_size # 가중치 초기화 W_in = 0.01 * np.random.randn(V, H).astype('f') W_out = 0.01 * np.random.randn(H, V).astype('f') # 계...
30.470588
84
0.678893
4a2091d3f88f7984253c24295c8503b29f434cf1
1,068
py
Python
src/spaceone/config/info/domain_config_info.py
jihyungSong/config
c917c4c3cd27ee85d343d808967ae2da1638512d
[ "Apache-2.0" ]
null
null
null
src/spaceone/config/info/domain_config_info.py
jihyungSong/config
c917c4c3cd27ee85d343d808967ae2da1638512d
[ "Apache-2.0" ]
null
null
null
src/spaceone/config/info/domain_config_info.py
jihyungSong/config
c917c4c3cd27ee85d343d808967ae2da1638512d
[ "Apache-2.0" ]
null
null
null
import functools from spaceone.api.config.v1 import domain_config_pb2 from spaceone.core.pygrpc.message_type import * from spaceone.core import utils from spaceone.config.model.domain_config_model import DomainConfig __all__ = ['DomainConfigInfo', 'DomainConfigsInfo'] def DomainConfigInfo(domain_config_vo: DomainCon...
35.6
104
0.737828
4a209235300cd77b754f907836f692a89a589e67
905
py
Python
setup.py
kbrgl/scroller
7c7cb5a6f956072422a37404ac3386cf78faf987
[ "MIT" ]
34
2016-06-07T14:49:12.000Z
2019-08-23T22:48:26.000Z
setup.py
kbrgl/scroller
7c7cb5a6f956072422a37404ac3386cf78faf987
[ "MIT" ]
4
2016-06-12T00:33:09.000Z
2016-06-25T12:07:40.000Z
setup.py
kbrgl/scroller
7c7cb5a6f956072422a37404ac3386cf78faf987
[ "MIT" ]
3
2016-06-18T10:55:09.000Z
2020-10-20T00:02:14.000Z
import os from setuptools import setup, find_packages import config setup( name="scroller", version=config.version, author="Kabir Goel", author_email="kabirgoel.kg@gmail.com", description=config.description, license="MIT", py_modules=["scroller", "config"], keywords="animation utility ...
27.424242
61
0.605525
4a2093dae6d97d5297c09c9a45619ad52c5ae4e2
50,400
py
Python
tests/integration/api_service_test.py
mitar/docker-py
44034c4041dc4627941c11f7928058c80991f822
[ "Apache-2.0" ]
null
null
null
tests/integration/api_service_test.py
mitar/docker-py
44034c4041dc4627941c11f7928058c80991f822
[ "Apache-2.0" ]
null
null
null
tests/integration/api_service_test.py
mitar/docker-py
44034c4041dc4627941c11f7928058c80991f822
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import random import time import docker import six from ..helpers import ( force_leave_swarm, requires_api_version, requires_experimental ) from .base import BaseAPIIntegrationTest, BUSYBOX class ServiceTest(BaseAPIIntegrationTest): @classmethod def setup_class(cls): cli...
42.60355
79
0.62619
4a20948d1e8bd2f90e31bacf98147d3a165568b2
4,526
py
Python
mmpose/models/backbones/seresnet.py
chaowentao/mmpose
b528c60ef4fab56d35d1ed7e187023794639be26
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
mmpose/models/backbones/seresnet.py
chaowentao/mmpose
b528c60ef4fab56d35d1ed7e187023794639be26
[ "Apache-2.0" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
mmpose/models/backbones/seresnet.py
chaowentao/mmpose
b528c60ef4fab56d35d1ed7e187023794639be26
[ "Apache-2.0" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
import torch.utils.checkpoint as cp from ..registry import BACKBONES from .resnet import Bottleneck, ResLayer, ResNet from .utils.se_layer import SELayer class SEBottleneck(Bottleneck): """SEBottleneck block for SEResNet. Args: in_channels (int): The input channels of the SEBottleneck block. ...
36.208
79
0.602077
4a2094ccdaaf07899a5c48fa398a7eb09a6acb1a
25,378
py
Python
src/cogent3/evolve/fast_distance.py
GavinHuttley/cogent3
efb25e27000732294ae3471428dea351a531267b
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/evolve/fast_distance.py
GavinHuttley/cogent3
efb25e27000732294ae3471428dea351a531267b
[ "BSD-3-Clause" ]
9
2021-07-07T19:10:31.000Z
2022-01-23T08:31:30.000Z
src/cogent3/evolve/fast_distance.py
genomematt/cogent3
7594710560a148164d64fdb9231aefd3f5b33ee2
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict, namedtuple from numbers import Number import numpy from numpy import array, diag, dot, eye, float64, int32, log, sqrt, zeros from numpy.linalg import det, inv from cogent3 import DNA, RNA, get_moltype from cogent3.util.dict_array import DictArray from cogent3.util.misc import get...
30.68682
87
0.599929
4a2095b376a4e35729544bf3e95f58bdfa7cf3f3
971
py
Python
python/test/test_attachment_created_event.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
null
null
null
python/test/test_attachment_created_event.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
1
2020-08-20T17:31:43.000Z
2020-08-20T17:31:43.000Z
python/test/test_attachment_created_event.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
null
null
null
# coding: utf-8 """ Decision Lens API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import impor...
23.682927
119
0.719876
4a209695b9be53ddf31a7134d31a3f26a8b7a2a3
1,183
py
Python
plugins/urls/test_plugin.py
dkim286/Cardinal
716d38fae5c992315e8087de74ad0db2947d0d48
[ "MIT" ]
96
2015-01-24T00:00:45.000Z
2022-03-15T14:06:57.000Z
plugins/urls/test_plugin.py
dkim286/Cardinal
716d38fae5c992315e8087de74ad0db2947d0d48
[ "MIT" ]
166
2015-01-02T02:30:24.000Z
2022-03-24T20:03:55.000Z
plugins/urls/test_plugin.py
dkim286/Cardinal
716d38fae5c992315e8087de74ad0db2947d0d48
[ "MIT" ]
63
2015-02-13T06:46:01.000Z
2022-02-24T10:50:34.000Z
import re import pytest from . import plugin class TestURLRegex: @staticmethod def assertFindUrl(message, url): m = plugin.get_urls(message) assert len(m) == 1 assert m[0] == url @pytest.mark.parametrize("url,expected", [ ["http://tiny.cc/PiratesLive", "http://tiny.cc/Pi...
31.972973
85
0.602705
4a2096ecc7e1a006940ad53e8574834be62df043
2,867
py
Python
comment_parser/parsers/tests/go_parser_test.py
rhp94/comment_parser
f373a01b5023b20e7e73d05382b1e26f92e00e68
[ "MIT" ]
1
2018-04-01T16:08:30.000Z
2018-04-01T16:08:30.000Z
comment_parser/parsers/tests/go_parser_test.py
johnjchung/comment_parser
aeb892816f008fc7d74625d6b617a655581d4487
[ "MIT" ]
null
null
null
comment_parser/parsers/tests/go_parser_test.py
johnjchung/comment_parser
aeb892816f008fc7d74625d6b617a655581d4487
[ "MIT" ]
null
null
null
#!/usr/bin/python """Tests for comment_parser.parsers.go_parser.py""" from comment_parser.parsers import common as common from comment_parser.parsers import go_parser as go_parser import unittest import builtins from unittest import mock from io import StringIO class GoParserTest(unittest.TestCase): @mock.patch...
36.75641
75
0.67248
4a20971c77b0c59e80151e18031218d003ff2f2d
6,905
py
Python
apps/web/views.py
Anustup900/EvalAI
c7263300d1e80734551d6cd842b354ad664a8320
[ "BSD-3-Clause" ]
1
2020-10-17T20:35:10.000Z
2020-10-17T20:35:10.000Z
apps/web/views.py
Anustup900/EvalAI
c7263300d1e80734551d6cd842b354ad664a8320
[ "BSD-3-Clause" ]
65
2020-12-14T08:27:18.000Z
2022-03-26T21:12:42.000Z
apps/web/views.py
Anustup900/EvalAI
c7263300d1e80734551d6cd842b354ad664a8320
[ "BSD-3-Clause" ]
1
2021-02-13T17:47:16.000Z
2021-02-13T17:47:16.000Z
import logging import traceback from base.utils import send_slack_notification from django.contrib.auth.models import User from django.conf import settings from django.core.mail import EmailMessage from django.shortcuts import render from smtplib import SMTPException from .models import Subscribers, Team from .seriali...
34.873737
96
0.590007
4a20973928c4986eadc2c72a2c2d796628ef1126
3,425
py
Python
boxuegu/apps/users/adminx.py
boxuegushixun/boxuegu
d7d6d014bc85673d7db30936a3b1e07ba8b58d5d
[ "MIT" ]
1
2019-06-13T10:08:25.000Z
2019-06-13T10:08:25.000Z
boxuegu/apps/users/adminx.py
boxuegushixun/boxuegu
d7d6d014bc85673d7db30936a3b1e07ba8b58d5d
[ "MIT" ]
6
2020-06-05T21:36:10.000Z
2022-01-13T01:21:59.000Z
boxuegu/apps/users/adminx.py
boxuegushixun/boxuegu
d7d6d014bc85673d7db30936a3b1e07ba8b58d5d
[ "MIT" ]
null
null
null
# encoding: utf-8 from courses.models import Course, Video, Lesson, CourseResource import xadmin from django.contrib.auth.models import Group, Permission from operation.models import CourseComments, UserFavorite, UserMessage, UserCourse, UserAsk from organization.models import CityDict, Teacher, CourseOrg from xadmi...
37.228261
94
0.608759
4a20974424b5fc17dd43fd618bad75ba7910163f
11,102
py
Python
burger_war_dev/scripts/connech_main.py
Satori063/burger_war_dev
68d8be082278fd55f5f5f2c7d883a4a7213f0564
[ "BSD-3-Clause" ]
3
2022-01-23T02:03:14.000Z
2022-02-27T11:30:35.000Z
burger_war_dev/scripts/connech_main.py
YKKAP000/burger_war_dev
668ec011bfa7d18fcfb1a2f2c99743edcb18fa0b
[ "BSD-3-Clause" ]
1
2022-02-25T00:28:23.000Z
2022-02-25T00:28:23.000Z
burger_war_dev/scripts/connech_main.py
Satori063/burger_war_dev
68d8be082278fd55f5f5f2c7d883a4a7213f0564
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy import random import os import math import cv2 import tf import angles from geometry_msgs.msg import Twist, Pose, Point, Quaternion, PoseWithCovarianceStamped from sensor_msgs.msg import Image from sensor_msgs.msg import Imu from sensor_msgs.msg import LaserSc...
36.281046
105
0.618087
4a2099ae46c4c4ee15f7c4d1bad8d36f198ea4f6
1,759
py
Python
py12306/cluster/redis.py
Heliner/ticket_12306
28a97129dbc93eed2dd9e7922f8059ca63f123d6
[ "Apache-2.0" ]
4
2021-12-29T15:38:26.000Z
2022-01-07T09:19:02.000Z
py12306/cluster/redis.py
Heliner/py12306
28a97129dbc93eed2dd9e7922f8059ca63f123d6
[ "Apache-2.0" ]
null
null
null
py12306/cluster/redis.py
Heliner/py12306
28a97129dbc93eed2dd9e7922f8059ca63f123d6
[ "Apache-2.0" ]
1
2022-01-12T02:16:32.000Z
2022-01-12T02:16:32.000Z
import pickle from redis import Redis as PyRedis from py12306.helpers.func import * from py12306.inner_config import Config from py12306.log.redis_log import RedisLog @singleton class Redis(PyRedis): # session = None def __init__(self, *args): if Config.is_cluster_enabled(): args = { ...
30.327586
84
0.592382
4a209a71023b79c7878f660c7b753b5936fa5d63
8,532
py
Python
Cogs/setup.py
Code-Cecilia/BotMan.py
be0ed8c634f8aea6a8fd0b28875e5198047089ac
[ "MIT" ]
4
2021-07-10T10:31:05.000Z
2021-12-28T13:42:42.000Z
Cogs/setup.py
prakarsh17/BotMan.py
be0ed8c634f8aea6a8fd0b28875e5198047089ac
[ "MIT" ]
null
null
null
Cogs/setup.py
prakarsh17/BotMan.py
be0ed8c634f8aea6a8fd0b28875e5198047089ac
[ "MIT" ]
5
2021-07-11T10:50:21.000Z
2022-02-07T11:03:47.000Z
import json import os import discord from discord.ext import commands with open('config.json') as configFile: configs = json.load(configFile) prefix = configs.get('prefix') class Setup(commands.Cog, description='Used to set up the bot for welcome messages, mute/unmute etc.'): def __init__(self, bot): ...
50.188235
138
0.565752
4a209ab76059c48defe0f169d2e11a141cf1e1ae
2,799
py
Python
utils/examples/example_zw.py
shinji-s/scrapy-cluster
0153bf61f46068e61f76798147a850769a190b95
[ "MIT" ]
1,108
2015-04-15T16:02:26.000Z
2022-03-31T11:46:29.000Z
utils/examples/example_zw.py
shinji-s/scrapy-cluster
0153bf61f46068e61f76798147a850769a190b95
[ "MIT" ]
246
2015-07-08T18:37:12.000Z
2021-06-28T14:33:51.000Z
utils/examples/example_zw.py
shinji-s/scrapy-cluster
0153bf61f46068e61f76798147a850769a190b95
[ "MIT" ]
382
2015-04-20T07:16:05.000Z
2022-03-21T11:34:59.000Z
from scutils.zookeeper_watcher import ZookeeperWatcher from time import sleep import argparse parser = argparse.ArgumentParser( description="Zookeeper file watcher") parser.add_argument('-z', '--zoo-keeper', action='store', required=True, help="The Zookeeper connection <host>:<port>") p...
39.422535
83
0.606288
4a209b17a9567de17edcb72b30a340ba10b42c61
1,817
py
Python
flaskApp/evaluation/example.py
baldeosinghm/rely
a29288035267919c78a1e161ad9b7e789cc2362a
[ "MIT" ]
4
2020-02-12T20:46:37.000Z
2021-02-04T17:03:58.000Z
flaskApp/evaluation/example.py
baldeosinghm/rely
a29288035267919c78a1e161ad9b7e789cc2362a
[ "MIT" ]
1
2021-03-03T00:14:26.000Z
2021-06-11T19:05:05.000Z
flaskApp/evaluation/example.py
baldeosinghm/rely
a29288035267919c78a1e161ad9b7e789cc2362a
[ "MIT" ]
1
2020-11-30T06:48:31.000Z
2020-11-30T06:48:31.000Z
import pandas as pd import numpy as np # import matplotlib # matplotlib.use("TKagg") # import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split, cross_val_score, cross_val_predict from sklearn.linear_model import LinearRegression def predictPrice(stock, days): # make data frame df =...
49.108108
105
0.715465
4a209c9c82b72d0d12c1e148772db4912cd765dc
25,024
py
Python
graph_objs/scattergeo/marker/_line.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/scattergeo/marker/_line.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
graph_objs/scattergeo/marker/_line.py
wwwidonja/changed_plotly
1bda35a438539a97c84a3ab3952e95e8848467bd
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattergeo.marker" _path_str = "scattergeo.marker.line" _valid_props = { "autocolorsca...
37.857791
87
0.570133
4a209e9a7ed3e3ac43d4111e4b375ba9a2156522
763
py
Python
deepxde/nn/jax/nn.py
pescap/deepxde
8792af7a62dc89a08d1ad4e67fc6c2431422e4be
[ "Apache-2.0" ]
5
2019-02-08T02:48:00.000Z
2019-03-29T16:21:40.000Z
deepxde/nn/jax/nn.py
pescap/deepxde
8792af7a62dc89a08d1ad4e67fc6c2431422e4be
[ "Apache-2.0" ]
null
null
null
deepxde/nn/jax/nn.py
pescap/deepxde
8792af7a62dc89a08d1ad4e67fc6c2431422e4be
[ "Apache-2.0" ]
2
2019-02-08T18:15:47.000Z
2019-03-31T17:23:42.000Z
from flax import linen as nn class NN(nn.Module): """Base class for all neural network modules.""" # All sub-modules should have the following variables: # params: Any = None # _input_transform: Optional[Callable] = None # _output_transform: Optional[Callable] = None def apply_feature_transf...
33.173913
83
0.668414
4a209ea857bf745da397066c5bb4a51971cfa41f
126
py
Python
Project1/test_social.py
automationmaki/pytest_simple_examples
4cd5cdde2b0a359a4f14294ea9e7df2de949f309
[ "MIT" ]
null
null
null
Project1/test_social.py
automationmaki/pytest_simple_examples
4cd5cdde2b0a359a4f14294ea9e7df2de949f309
[ "MIT" ]
null
null
null
Project1/test_social.py
automationmaki/pytest_simple_examples
4cd5cdde2b0a359a4f14294ea9e7df2de949f309
[ "MIT" ]
null
null
null
import requests def test_twitter_is_present(): resp = requests.get("https://google.com") assert "google" in resp.text
25.2
45
0.722222
4a209ea9bcf74856dc7ed226e99b61cb9d7cd21c
16,530
py
Python
src/poliastro/neos/dastcom5.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
1
2019-04-12T12:28:37.000Z
2019-04-12T12:28:37.000Z
src/poliastro/neos/dastcom5.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
1
2018-02-22T08:06:06.000Z
2018-02-22T08:06:06.000Z
src/poliastro/neos/dastcom5.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
null
null
null
"""NEOs orbit from DASTCOM5 database. """ import os import re import urllib.request import zipfile import astropy.units as u import numpy as np import pandas as pd from astropy.time import Time from poliastro.bodies import Sun from poliastro.frames.ecliptic import HeliocentricEclipticJ2000 from poliastro.twobody.ang...
27.969543
86
0.514519
4a209f436dfa41fef225a73b6f87a3b34434dc27
912
py
Python
openslides_backend/action/speaker/create_update_delete.py
reiterl/openslides-backend
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
[ "MIT" ]
null
null
null
openslides_backend/action/speaker/create_update_delete.py
reiterl/openslides-backend
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
[ "MIT" ]
null
null
null
openslides_backend/action/speaker/create_update_delete.py
reiterl/openslides-backend
d36667f00087ae8baf25853d4cef18a5e6dc7b3b
[ "MIT" ]
null
null
null
from ...models.models import Speaker from ..create_action_with_inferred_meeting import CreateActionWithInferredMeeting from ..default_schema import DefaultSchema from ..generics import DeleteAction, UpdateAction from ..register import register_action @register_action("speaker.create") class SpeakerCreateAction(Create...
32.571429
81
0.776316
4a20a048388af1e7805b57058bf85b0ef0a2ed7c
1,575
py
Python
ScratchPaper/dpdp_competition/src/common/factory.py
123zhangzq/HW_DPDP
27e5e63bb96d0e8b8c5cef500262b267b25f9666
[ "MIT" ]
null
null
null
ScratchPaper/dpdp_competition/src/common/factory.py
123zhangzq/HW_DPDP
27e5e63bb96d0e8b8c5cef500262b267b25f9666
[ "MIT" ]
null
null
null
ScratchPaper/dpdp_competition/src/common/factory.py
123zhangzq/HW_DPDP
27e5e63bb96d0e8b8c5cef500262b267b25f9666
[ "MIT" ]
null
null
null
# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
46.323529
87
0.726984
4a20a19792ba932090b58074c9f19d9049e629b4
1,191
py
Python
train_dev_test.py
clulab/incivility
82d8e8164b81e9f4d5737520f2cbf308d3fcd033
[ "Apache-2.0" ]
1
2020-09-18T12:05:13.000Z
2020-09-18T12:05:13.000Z
train_dev_test.py
clulab/incivility
82d8e8164b81e9f4d5737520f2cbf308d3fcd033
[ "Apache-2.0" ]
null
null
null
train_dev_test.py
clulab/incivility
82d8e8164b81e9f4d5737520f2cbf308d3fcd033
[ "Apache-2.0" ]
null
null
null
import argparse import os import pandas as pd import sklearn.model_selection as ms if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("csv_path") parser.add_argument("--train-frac", type=float, default=0.8) args = parser.parse_args() with open(args.csv_path, encodi...
30.538462
76
0.643157
4a20a28073335112636f50bd7c823557f6ae17fb
667
py
Python
pkg/workloads/cortex/consts.py
gvvynplaine/cortex
aa3daf0d138a880df29a2c075af41176119da47f
[ "Apache-2.0" ]
1
2021-12-08T03:43:30.000Z
2021-12-08T03:43:30.000Z
pkg/workloads/cortex/consts.py
ourobouros/cortex
1b3aaf909816b93f6a6e3edd0da8c10891e05be9
[ "Apache-2.0" ]
null
null
null
pkg/workloads/cortex/consts.py
ourobouros/cortex
1b3aaf909816b93f6a6e3edd0da8c10891e05be9
[ "Apache-2.0" ]
1
2021-05-25T03:49:14.000Z
2021-05-25T03:49:14.000Z
# Copyright 2020 Cortex Labs, 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 wri...
39.235294
74
0.767616
4a20a2c071537d9d5ab73ccdd46557dc90f0a2a6
241
py
Python
helloworld_project/pages/views.py
helpthx/hello-jenkins
7cac1b93a769a79bbe12be26e8de9a15ab13e4eb
[ "MIT" ]
null
null
null
helloworld_project/pages/views.py
helpthx/hello-jenkins
7cac1b93a769a79bbe12be26e8de9a15ab13e4eb
[ "MIT" ]
7
2020-06-06T01:08:55.000Z
2022-02-10T12:48:39.000Z
helloworld_project/pages/views.py
helpthx/hello-jenkins
7cac1b93a769a79bbe12be26e8de9a15ab13e4eb
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from helloworld_project.settings import SECRET_WORD # Create your views here. def home_page_view(request): return HttpResponse('Hello, {0}!'.format(SECRET_WORD))
26.777778
58
0.804979
4a20a2f54f6e3cc02e877cc5d820125b9e8c5e0c
1,887
py
Python
lib/wwmgr/test_work_managers/test_futures.py
poharrison/westpa
8618ab598f9bb38a7bc1479932f5332b137dfcbc
[ "MIT" ]
140
2015-01-07T23:30:36.000Z
2022-03-28T17:15:30.000Z
lib/wwmgr/test_work_managers/test_futures.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
157
2015-01-03T03:38:36.000Z
2022-03-31T14:12:16.000Z
lib/wwmgr/test_work_managers/test_futures.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
56
2015-01-02T21:21:40.000Z
2022-03-03T16:27:54.000Z
from work_managers.serial import SerialWorkManager from nose.tools import assert_raises #@UnresolvedImport from .tsupport import * class TestWMFuture: def test_result(self): with SerialWorkManager() as work_manager: future = work_manager.submit(will_succeed) assert future.g...
35.603774
69
0.63275
4a20a3173f1b064f060ad6d1c2ac6ce3c36cd2d6
6,866
py
Python
modules/phrases/phrase_file_manager.py
naschorr/hawking
cdc98b7bc90c72d634f1fe877c34e7f9908ec4a8
[ "MIT" ]
21
2017-08-06T02:47:05.000Z
2022-03-13T17:39:00.000Z
modules/phrases/phrase_file_manager.py
naschorr/hawking
cdc98b7bc90c72d634f1fe877c34e7f9908ec4a8
[ "MIT" ]
87
2017-12-26T17:07:59.000Z
2022-03-11T01:31:48.000Z
modules/phrases/phrase_file_manager.py
naschorr/hawking
cdc98b7bc90c72d634f1fe877c34e7f9908ec4a8
[ "MIT" ]
7
2019-10-23T17:30:34.000Z
2022-03-31T05:56:43.000Z
import json import logging import os import re from pathlib import Path from typing import List from common import utilities from models.phrase import Phrase from models.phrase_group import PhraseGroup from models.phrase_encoding import PhraseEncoding from phrase_encoder_decoder import PhraseEncoderDecoder ## Config ...
40.869048
188
0.594232
4a20a47d066bbafd039c08c4eb57a47b622fbbae
740
py
Python
CobraWinLDTP/ldtp/client_exception.py
brendano86/cobra
6407c2911696b1c2a2b4501c118fff9931fa659e
[ "X11", "MIT" ]
72
2015-02-09T00:44:41.000Z
2021-12-01T21:56:15.000Z
CobraWinLDTP/ldtp/client_exception.py
brendano86/cobra
6407c2911696b1c2a2b4501c118fff9931fa659e
[ "X11", "MIT" ]
19
2015-06-03T09:31:18.000Z
2021-12-02T16:35:52.000Z
CobraWinLDTP/ldtp/client_exception.py
brendano86/cobra
6407c2911696b1c2a2b4501c118fff9931fa659e
[ "X11", "MIT" ]
37
2015-05-08T09:25:58.000Z
2021-03-10T10:24:58.000Z
""" LDTP v2 client exception @author: Eitan Isaacson <eitan@ascender.com> @author: Nagappan Alagappan <nagappan@gmail.com> @copyright: Copyright (c) 2009-13 Nagappan Alagappan @copyright: Copyright (c) 2009 Eitan Isaacson @license: LGPL http://ldtp.freedesktop.org This file may be distributed and/or modified under t...
28.461538
86
0.790541