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
50df08a12307e6c91bb8b243c362903f8e5a3f99
86,246
py
Python
env/lib/python3.6/site-packages/matplotlib/ticker.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
env/lib/python3.6/site-packages/matplotlib/ticker.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
4
2021-06-08T20:08:26.000Z
2022-03-11T23:54:16.000Z
env/lib/python3.6/site-packages/matplotlib/ticker.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
4
2018-05-19T11:31:20.000Z
2018-07-01T20:58:29.000Z
""" Tick locating and formatting ============================ This module contains classes to support completely configurable tick locating and formatting. Although the locators know nothing about major or minor ticks, they are used by the Axis class to support major and minor tick locating and formatting. Generic tic...
32.943468
79
0.556745
17111432226dd73d653390de29656f4d3d8a9a11
2,882
py
Python
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
3
2021-03-10T20:03:42.000Z
2022-03-18T17:10:04.000Z
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
14
2020-12-28T22:32:07.000Z
2022-03-17T15:33:04.000Z
tools/optimization/driver/ask_tell_parallel_driver.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
8
2021-01-19T02:39:01.000Z
2022-01-31T18:04:39.000Z
import multiprocessing from typing import ( Callable, Tuple, ) from ..data_logging.data_recorder import DataRecorder from ..driver.ask_tell_driver import AskTellDriver from ..optimizer.ask_tell_optimizer import AskTellOptimizer from .ask_tell_parallel_driver_fns import * class AskTellParallelDriver(AskTe...
32.022222
116
0.611381
43a6ecf674359595b5a197b8dc4d0046f0f82491
404
py
Python
betterbay/migrations/0006_auto_20210215_1817.py
acj3rd/bba
d9e2aa9cb1242d8686f9aa3b63b166e47b6e709d
[ "MIT" ]
null
null
null
betterbay/migrations/0006_auto_20210215_1817.py
acj3rd/bba
d9e2aa9cb1242d8686f9aa3b63b166e47b6e709d
[ "MIT" ]
null
null
null
betterbay/migrations/0006_auto_20210215_1817.py
acj3rd/bba
d9e2aa9cb1242d8686f9aa3b63b166e47b6e709d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.12 on 2021-02-15 18:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('betterbay', '0005_auto_20210215_1630'), ] operations = [ migrations.RemoveField( model_name='event', name='calendar', ...
19.238095
49
0.571782
4c883ee65dd8e9d8bc9812fa7d5b31dcb3ad3365
700
py
Python
user_manager/oauth/api/__init__.py
voegtlel/auth-manager-backend
20d40de0abc9deeb3fcddd892ffe2e635301917a
[ "MIT" ]
null
null
null
user_manager/oauth/api/__init__.py
voegtlel/auth-manager-backend
20d40de0abc9deeb3fcddd892ffe2e635301917a
[ "MIT" ]
null
null
null
user_manager/oauth/api/__init__.py
voegtlel/auth-manager-backend
20d40de0abc9deeb3fcddd892ffe2e635301917a
[ "MIT" ]
null
null
null
from fastapi import APIRouter from . import ( authorize, end_session, login_status, picture, token, userinfo, well_known, ext_card_auth, ext_profiles, ext_mail, ext_mailing_list, ) router = APIRouter() router.include_router(authorize.router) router.include_router(end_sessio...
24.137931
46
0.798571
aa3b28645ffd0cb0d066a3f23b1e5e783a621220
3,528
py
Python
youbot_flexbe_states/src/youbot_flexbe_states/execute_arm_trajectory_state.py
FlexBE/youbot_behaviors
6f7a0330d6a9e883fc0a3dff22f44422e2379274
[ "BSD-3-Clause" ]
6
2015-11-17T15:59:38.000Z
2019-12-04T02:24:30.000Z
youbot_flexbe_states/src/youbot_flexbe_states/execute_arm_trajectory_state.py
FlexBE/youbot_behaviors
6f7a0330d6a9e883fc0a3dff22f44422e2379274
[ "BSD-3-Clause" ]
null
null
null
youbot_flexbe_states/src/youbot_flexbe_states/execute_arm_trajectory_state.py
FlexBE/youbot_behaviors
6f7a0330d6a9e883fc0a3dff22f44422e2379274
[ "BSD-3-Clause" ]
2
2018-05-09T13:01:30.000Z
2022-03-30T10:16:15.000Z
#!/usr/bin/env python import rospy import math import actionlib from flexbe_core import EventState, Logger from flexbe_core.proxy import ProxyActionClient from control_msgs.msg import * from trajectory_msgs.msg import * """ Created on 11/17/2015 @author: Spyros Maniatopoulos """ class ExecuteTrajectoryState(Event...
33.923077
120
0.602891
d58d996085acd3997ac5116c247cbe26dea3cb97
511
py
Python
q2_sourmash/_types.py
dib-lab/q2-sourmash
144585574928594e273760a5421fabeac618c59b
[ "BSD-3-Clause" ]
3
2018-09-27T21:36:07.000Z
2018-10-02T02:17:33.000Z
q2_sourmash/_types.py
gregcaporaso/q2-sourmash
c6e6a9abe505da3cefc83c075bcbd4166a989f40
[ "BSD-3-Clause" ]
4
2018-09-27T14:20:52.000Z
2018-10-19T05:35:24.000Z
q2_sourmash/_types.py
gregcaporaso/q2-sourmash
c6e6a9abe505da3cefc83c075bcbd4166a989f40
[ "BSD-3-Clause" ]
2
2018-09-27T21:15:31.000Z
2020-09-22T19:31:34.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2018, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
39.307692
78
0.545988
9480ac1542d3456c55db06a7e6d7b3b6f1a308b7
600
py
Python
tools/add_table_frames_to_h5py.py
KI-cker/Ki-cker
b48ae75bfeea970940ad657c73d71438531259c6
[ "Apache-2.0" ]
null
null
null
tools/add_table_frames_to_h5py.py
KI-cker/Ki-cker
b48ae75bfeea970940ad657c73d71438531259c6
[ "Apache-2.0" ]
14
2018-02-21T17:58:33.000Z
2022-03-11T23:16:09.000Z
tools/add_table_frames_to_h5py.py
KI-cker/Ki-cker
b48ae75bfeea970940ad657c73d71438531259c6
[ "Apache-2.0" ]
1
2018-02-22T09:28:26.000Z
2018-02-22T09:28:26.000Z
import argparse from kicker.train import Parser, Converter def add_table_frames(filename): p = Parser(filename) for g in p.file: print("Processing {}".format(g)) if 'table_frames_encoded' not in p.file[g]: c = Converter(p, g) p.file[g]['table_frames_encoded'] = c.get...
20.689655
76
0.638333
c50579f573700381ad255eb3c0367c98c3893ce2
13,044
py
Python
examples/wmt/input_pipeline.py
navjotts/flax
5ffd0006701e4b162ae906c4f089553600d3114c
[ "Apache-2.0" ]
2,249
2020-03-08T12:13:08.000Z
2022-03-31T10:25:13.000Z
examples/wmt/input_pipeline.py
navjotts/flax
5ffd0006701e4b162ae906c4f089553600d3114c
[ "Apache-2.0" ]
1,338
2020-03-06T16:56:34.000Z
2022-03-31T13:46:49.000Z
examples/wmt/input_pipeline.py
navjotts/flax
5ffd0006701e4b162ae906c4f089553600d3114c
[ "Apache-2.0" ]
343
2020-03-06T16:35:39.000Z
2022-03-27T17:31:45.000Z
# Copyright 2021 The Flax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.784
80
0.652407
c261a5cd629fe82dd8b49d86b9eb5f0de091f332
18,406
py
Python
models/siso_regression_tut.py
kyeongsoo/dnn-based_indoor_localization
39e6a60fbd5095b714f6e158f1b933acc435a982
[ "MIT" ]
13
2018-02-08T13:32:20.000Z
2022-02-06T14:27:34.000Z
models/siso_regression_tut.py
kyeongsoo/dnn-based_indoor_localization
39e6a60fbd5095b714f6e158f1b933acc435a982
[ "MIT" ]
null
null
null
models/siso_regression_tut.py
kyeongsoo/dnn-based_indoor_localization
39e6a60fbd5095b714f6e158f1b933acc435a982
[ "MIT" ]
6
2018-09-24T21:52:56.000Z
2021-05-11T03:13:43.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ## # @file siso_regression_tut.py # @author Kyeong Soo (Joseph) Kim <kyeongsoo.kim@gmail.com> # @date 2018-08-23 # # @brief A scalable indoor localization system based on Wi-Fi fingerprinting # using three-dimensional regression of location coordiates with...
38.995763
241
0.609801
3a4b3ac0c4f1113a5cc0cc1defb10e460e3def7c
1,973
py
Python
python/GafferImageUI/ImageTransformUI.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferImageUI/ImageTransformUI.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferImageUI/ImageTransformUI.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2014, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
48.121951
133
0.696908
dd2f9f1106b7fa4ea914e7b1c127be8e7c189b12
15,556
py
Python
tests/tacacs/test_authorization.py
amulyan7/sonic-mgmt
b673fe4d830f064ae6f937c514215a7a7d0c7f33
[ "Apache-2.0" ]
null
null
null
tests/tacacs/test_authorization.py
amulyan7/sonic-mgmt
b673fe4d830f064ae6f937c514215a7a7d0c7f33
[ "Apache-2.0" ]
null
null
null
tests/tacacs/test_authorization.py
amulyan7/sonic-mgmt
b673fe4d830f064ae6f937c514215a7a7d0c7f33
[ "Apache-2.0" ]
null
null
null
import logging import paramiko import pytest from .utils import stop_tacacs_server, start_tacacs_server, per_command_check_skip_versions, remove_all_tacacs_server from tests.common.helpers.assertions import pytest_assert from tests.common.utilities import skip_release pytestmark = [ pytest.mark.disable_loganalyze...
44.701149
189
0.732708
4978dcd52b85f27088f2e0dc1ab1cee199d7bf2e
2,220
py
Python
barcode/itf.py
timgates42/python-barcode
5fc5608ad78d72f12bb8310124211030ba1af368
[ "MIT" ]
null
null
null
barcode/itf.py
timgates42/python-barcode
5fc5608ad78d72f12bb8310124211030ba1af368
[ "MIT" ]
null
null
null
barcode/itf.py
timgates42/python-barcode
5fc5608ad78d72f12bb8310124211030ba1af368
[ "MIT" ]
null
null
null
"""Module: barcode.itf :Provided barcodes: Interleaved 2 of 5 """ __docformat__ = "restructuredtext en" from barcode.base import Barcode from barcode.charsets import itf from barcode.errors import IllegalCharacterError MIN_SIZE = 0.2 MIN_QUIET_ZONE = 6.4 class ITF(Barcode): """Initializes a new ITF instance. ...
28.831169
77
0.548649
a113e73caa08e33cdf4368bc8dc29abe2d521cea
303
py
Python
python/5_kyu/not_very_secure.py
CommonLouis/CodeWars_Solutions
f325c12effbd361905027864848e06ce07ec941e
[ "MIT" ]
null
null
null
python/5_kyu/not_very_secure.py
CommonLouis/CodeWars_Solutions
f325c12effbd361905027864848e06ce07ec941e
[ "MIT" ]
null
null
null
python/5_kyu/not_very_secure.py
CommonLouis/CodeWars_Solutions
f325c12effbd361905027864848e06ce07ec941e
[ "MIT" ]
null
null
null
""" Michael Persico Oct.17, 2021 Not very secure https://www.codewars.com/kata/526dbd6c8c0eb53254000110 """ def alphanumeric(password): return all(char.isalnum() for char in password) and len(password) > 0 if __name__ == "__main__": print(alphanumeric("iW4l0fXC95JHZDurmMBnCKai8pIQ")) # True
23.307692
73
0.742574
3ce50354072877b26ad4d0f6b79f71b9b46ec973
240
py
Python
Code/generics/functions.py
Den1k22/python-lessons
cc898284e4d9b233dc023fbdae6ac41cf184ab02
[ "MIT" ]
null
null
null
Code/generics/functions.py
Den1k22/python-lessons
cc898284e4d9b233dc023fbdae6ac41cf184ab02
[ "MIT" ]
null
null
null
Code/generics/functions.py
Den1k22/python-lessons
cc898284e4d9b233dc023fbdae6ac41cf184ab02
[ "MIT" ]
null
null
null
def add_numbers(number1, number2): return number1 + number2 def subtract_numbers(number1, number2): return number1 - number2 print(add_numbers(7,2)) print(add_numbers(9,9)) print(subtract_numbers(7,2)) print(subtract_numbers(9,9))
17.142857
39
0.7625
c491560ac267167a9f5b169bd4dbf7242df1ea3b
2,864
py
Python
functionaltests/api/v2/clients/zone_client.py
cneill/designate-testing
7bf320062d85a12bff2aee8d26c133941a289fc4
[ "Apache-2.0" ]
null
null
null
functionaltests/api/v2/clients/zone_client.py
cneill/designate-testing
7bf320062d85a12bff2aee8d26c133941a289fc4
[ "Apache-2.0" ]
null
null
null
functionaltests/api/v2/clients/zone_client.py
cneill/designate-testing
7bf320062d85a12bff2aee8d26c133941a289fc4
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
34.506024
75
0.682612
91ef6268771cbc8cc507c440985a83acdead2b4b
4,965
py
Python
main.py
jackarailo/chatbot
729bfb0a9051d8681f6458c21f8aa923e5138ff0
[ "Apache-2.0" ]
null
null
null
main.py
jackarailo/chatbot
729bfb0a9051d8681f6458c21f8aa923e5138ff0
[ "Apache-2.0" ]
null
null
null
main.py
jackarailo/chatbot
729bfb0a9051d8681f6458c21f8aa923e5138ff0
[ "Apache-2.0" ]
null
null
null
import os import argparse import torch import model import data import train import query parser = argparse.ArgumentParser( description=r"""Chatbot influenced by the tutorial on https://pytorch.org/tutorials/beginner/chatbot_tutorial.html and pytorch official examples on gihub"""...
42.076271
82
0.635247
772524f960459b6bffacd94f88ae40a6879eaf13
5,358
py
Python
menu_module.py
helliio/Reddit-image-extractor
8dad611267b4efef3094a5f8bbf6ff9601031c65
[ "MIT" ]
1
2017-12-14T19:21:05.000Z
2017-12-14T19:21:05.000Z
menu_module.py
helliio/Reddit-image-extractor
8dad611267b4efef3094a5f8bbf6ff9601031c65
[ "MIT" ]
null
null
null
menu_module.py
helliio/Reddit-image-extractor
8dad611267b4efef3094a5f8bbf6ff9601031c65
[ "MIT" ]
null
null
null
import config def run_menu(): print("--------------------------------------------------") print("Welcome to Reddit image extractor version 1.2.4") print("--------------------------------------------------" + "\n") prompt_subreddits() prompt_sort_type() prompt_down_limit() def prompt_subreddits...
32.472727
117
0.522583
64323f8778839fe16fe92bdd24ef5ef34a9b7fe1
11,764
py
Python
houdini/handlers/redemption/code.py
EmperorBale/houdini
e501bfc9aa9493919d8c581e467f378109045db1
[ "MIT" ]
1
2020-09-30T06:42:15.000Z
2020-09-30T06:42:15.000Z
houdini/handlers/redemption/code.py
EmperorBale/houdini
e501bfc9aa9493919d8c581e467f378109045db1
[ "MIT" ]
null
null
null
houdini/handlers/redemption/code.py
EmperorBale/houdini
e501bfc9aa9493919d8c581e467f378109045db1
[ "MIT" ]
3
2020-09-30T12:15:02.000Z
2021-11-11T09:20:36.000Z
import random from datetime import datetime from houdini import handlers from houdini.constants import ClientType from houdini.data import db from houdini.data.igloo import Furniture, Igloo from houdini.data.item import Item from houdini.data.redemption import PenguinRedemptionCode, RedemptionAwardCard, \ Redempti...
43.25
120
0.663295
5931a24e15b2402e07e774c1e78b03374cddfdce
18,750
py
Python
research/cognitive_planning/train_supervised_active_vision.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
research/cognitive_planning/train_supervised_active_vision.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
research/cognitive_planning/train_supervised_active_vision.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# 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 applicab...
37.202381
86
0.69472
dc5bf0d0d67b8a2609ff9a657aee5448be9b74ff
4,452
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/notification/jabber.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/modules/notification/jabber.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/modules/notification/jabber.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2015, Brian Coca <bcoca@ansible.com> # 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 ANSIBLE_METADATA = {'metadata_version': '1.1', ...
26.819277
103
0.635445
214b560b2adf814b9c77eca9f83ab4f69820b1c4
465
py
Python
output/models/ms_data/datatypes/facets/non_negative_integer/non_negative_integer_enumeration002_xsd/non_negative_integer_enumeration002.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/datatypes/facets/non_negative_integer/non_negative_integer_enumeration002_xsd/non_negative_integer_enumeration002.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/datatypes/facets/non_negative_integer/non_negative_integer_enumeration002_xsd/non_negative_integer_enumeration002.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import Optional class FooTypeFoo(Enum): VALUE_456 = 456 @dataclass class FooType: class Meta: name = "fooType" foo: Optional[FooTypeFoo] = field( default=None, metadata={ "type": "Element", ...
16.034483
40
0.576344
de65350b35c7d70502c7f3847464dbfd2f2cc51c
2,343
py
Python
Aula60/ForTwo/r2/viagem.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula60/ForTwo/r2/viagem.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula60/ForTwo/r2/viagem.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
from Aula60.ForTwo.r2.embarque import embarque from Aula60.ForTwo.r2.desembarque import desembarque from Aula60.ForTwo.r2.terminal import Terminal from Aula60.ForTwo.r2.aviao import Aviao from Aula60.ForTwo.r2.local import Local from Aula60.ForTwo.r2.fortwo import Fortwo terminal = {'descricao':'terminal', 'pessoas':...
36.609375
152
0.6449
66bed836a247ec18237483abf4d32a49d5842fec
16,519
py
Python
model/encModel.py
gyeongmoon/CNN-DM
5b71307fa41096bc439d480283c0c4c0200164be
[ "MIT" ]
2
2021-05-31T04:43:12.000Z
2021-10-06T07:48:21.000Z
model/encModel.py
gyeongmoon/CNN-DM
5b71307fa41096bc439d480283c0c4c0200164be
[ "MIT" ]
null
null
null
model/encModel.py
gyeongmoon/CNN-DM
5b71307fa41096bc439d480283c0c4c0200164be
[ "MIT" ]
null
null
null
import time import torch import torch.nn as nn import torch.nn.init as init import torch.optim as optim from torch.autograd import Variable from model import utils from model import LwFLoss from torchvision import models ##################################################### # Defining the Encoder-based Lifelong Learn...
38.595794
124
0.578364
8ce9989276e53e1f6eb922bf24976ad3a1fc40ef
6,693
py
Python
intersight/models/hyperflex_hx_link_dt_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/hyperflex_hx_link_dt_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/hyperflex_hx_link_dt_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen...
32.490291
1,052
0.606156
03fdbd91531e502712981b4aa7051af11c5e07b2
3,773
py
Python
tools/OneToOne.py
klocey/SADModels
330bf1591c66bcb097bd2ca91c497be0394b734d
[ "MIT" ]
null
null
null
tools/OneToOne.py
klocey/SADModels
330bf1591c66bcb097bd2ca91c497be0394b734d
[ "MIT" ]
null
null
null
tools/OneToOne.py
klocey/SADModels
330bf1591c66bcb097bd2ca91c497be0394b734d
[ "MIT" ]
null
null
null
from __future__ import division import sys import os mydir = os.path.expanduser("~/GitHub/SADModels") sys.path.append(mydir) import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.axes_grid.inset_locator import inset_axes sys.path.append(mydir + "/tools/macroecotools") import macroecotools """ Func...
33.990991
142
0.631593
096ade25f0b2facba785f7f34bd396987e916a41
845
py
Python
strukdat_4.py
rpurnama/pycodes
bc507d9b6eab30e39d69946ee07eebcd538546af
[ "Unlicense" ]
1
2020-07-25T16:57:57.000Z
2020-07-25T16:57:57.000Z
strukdat_4.py
itbj/PyCodes
6a3f3a6d4e70882e00991493839a6af0fabeaab4
[ "Unlicense" ]
null
null
null
strukdat_4.py
itbj/PyCodes
6a3f3a6d4e70882e00991493839a6af0fabeaab4
[ "Unlicense" ]
1
2020-07-25T16:58:27.000Z
2020-07-25T16:58:27.000Z
#Contoh List contoh_list=['Windows', 'Ubuntu', 'FreeBSD', 'Solaris', 'DOS'] #Contoh Tuple contoh_tuple=(0,1,2,3,4,5,6,7,8,9) #Contoh Dictionary contoh_dict={'nama':'John Doe', 'position':'CEO', 'DoB':'19-Nov-1976', 'phone':'+6212345678', 'email':'jdoe@abc.def'} #Cara Menambahkan List print "Isi ...
22.837838
62
0.697041
637189b7b842c7d42123cb2c1585d559a27222d0
2,351
py
Python
src/bag/layout/routing/__init__.py
Partmedia/bag
f4f871df66a75152980568967ff1d798ec446843
[ "Apache-2.0", "BSD-3-Clause" ]
32
2019-05-16T19:25:00.000Z
2021-12-07T20:12:13.000Z
src/bag/layout/routing/__init__.py
Partmedia/bag
f4f871df66a75152980568967ff1d798ec446843
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-01-07T03:08:33.000Z
2021-01-07T03:08:33.000Z
src/bag/layout/routing/__init__.py
Partmedia/bag
f4f871df66a75152980568967ff1d798ec446843
[ "Apache-2.0", "BSD-3-Clause" ]
11
2019-07-23T17:37:48.000Z
2021-10-19T15:24:33.000Z
# SPDX-License-Identifier: BSD-3-Clause AND Apache-2.0 # Copyright 2018 Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code...
47.979592
80
0.780944
72b70031452cc7c80c2251b43fbc800daae9709a
2,928
py
Python
data/evaluation/cran/loader.py
SSK-14/Covid19-Search-Engine
2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6
[ "Apache-2.0" ]
1
2020-06-14T16:52:55.000Z
2020-06-14T16:52:55.000Z
data/evaluation/cran/loader.py
SSK-14/Covid19-Search-Engine
2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6
[ "Apache-2.0" ]
1
2020-05-06T14:28:10.000Z
2020-05-06T14:28:10.000Z
data/evaluation/cran/loader.py
SSK-14/Covid19-Search-Engine
2a9e0066e766d8a356a2c4a1ebd51c0aeb3cd4b6
[ "Apache-2.0" ]
null
null
null
# loader.py for cran import os import re from collections import defaultdict from nltk.tokenize import word_tokenize from data.template import Dataset, Document, Query, Text class CranDataset(Dataset): def __init__(self, base_path): self.base_path = base_path self.documents = None self.q...
31.148936
91
0.527322
88fd63ef7dfb1607e3a59b21e5bfb8ed8c3cf806
491
py
Python
raiden/tests/benchmark/merkle_tree_speed.py
jurajpetrik/raiden
e1a9201f5e09da804e589137d5a415a3870fa508
[ "MIT" ]
1
2018-07-04T05:42:19.000Z
2018-07-04T05:42:19.000Z
raiden/tests/benchmark/merkle_tree_speed.py
jurajpetrik/raiden
e1a9201f5e09da804e589137d5a415a3870fa508
[ "MIT" ]
null
null
null
raiden/tests/benchmark/merkle_tree_speed.py
jurajpetrik/raiden
e1a9201f5e09da804e589137d5a415a3870fa508
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time from raiden.mtree import Merkletree from raiden.utils import keccak def do_test_speed(rounds=100, num_hashes=1000): values = [ keccak(str(i)) for i in range(num_hashes) ] start_time = time.time() for __ in range(rounds): Merkletree(values)....
19.64
69
0.649695
1adc4f0ad06469e32be80a8f0ea75fe593d8670f
1,589
py
Python
src/common/node.py
gruyaume/my-blockchain
283f5ef0c8c09eff0478dfead3950c720cda2882
[ "Apache-2.0" ]
4
2021-11-14T17:16:03.000Z
2022-03-17T21:01:42.000Z
src/common/node.py
gruyaume/my-blockchain
283f5ef0c8c09eff0478dfead3950c720cda2882
[ "Apache-2.0" ]
null
null
null
src/common/node.py
gruyaume/my-blockchain
283f5ef0c8c09eff0478dfead3950c720cda2882
[ "Apache-2.0" ]
5
2021-07-30T14:27:37.000Z
2021-12-15T12:08:46.000Z
import requests class Node: def __init__(self, hostname: str): self.hostname = hostname self.base_url = f"http://{hostname}/" def __eq__(self, other): return self.hostname == other.hostname @property def dict(self): return { "hostname": self.hostname ...
29.425926
76
0.619887
20511b38961cd484a66c90a49cb2e94444a6a68c
1,375
py
Python
rgb_to_hsi_hsi_to_rgb/rgb_to_hsi.py
servercalap/img_processing
8a24547135f417143b24ce4292ca59452ce89c82
[ "MIT" ]
null
null
null
rgb_to_hsi_hsi_to_rgb/rgb_to_hsi.py
servercalap/img_processing
8a24547135f417143b24ce4292ca59452ce89c82
[ "MIT" ]
null
null
null
rgb_to_hsi_hsi_to_rgb/rgb_to_hsi.py
servercalap/img_processing
8a24547135f417143b24ce4292ca59452ce89c82
[ "MIT" ]
null
null
null
import cv2 import numpy as np import math def RGB_TO_HSI(img): #load im with 32 bit with np.errstate(divide='ignore', invalid='ignore'): bgr = np.float32(img)/255 blue = bgr[:,:,0] green = bgr[:,:,1] red = bgr[:,:,2] #Calculate Intensity def calc_intensity(red,blue,...
23.706897
121
0.517091
4e1310d422be84b8f3cfd9059149bae33615794a
952
py
Python
pir-logger.py
jspan/youthere
6419e0b524ff01c94b9f0b1f497d651ae8d33be9
[ "MIT" ]
1
2016-04-13T05:05:45.000Z
2016-04-13T05:05:45.000Z
pir-logger.py
jspan/youthere
6419e0b524ff01c94b9f0b1f497d651ae8d33be9
[ "MIT" ]
null
null
null
pir-logger.py
jspan/youthere
6419e0b524ff01c94b9f0b1f497d651ae8d33be9
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Read arduino serial port and log to file ''' import datetime import logging import serial import sys import time SERIAL_DEV = '/dev/ttyUSB0' CHECK_PERIOD_SEC = 1 def get_timestamp(): return datetime.datetime.now().strftime('%Y-%m-%dT%H:%M:%S') def main(): if len(sys.argv) != 2: ...
21.636364
84
0.611345
8b948f9090f7c55d4817ad5966defb62912b33f7
7,148
py
Python
deephar/data/human36m.py
steuwe/deephar
85efc43b7c166339f9655cf322a40dde242bad27
[ "MIT" ]
343
2018-07-18T10:39:30.000Z
2022-03-30T02:32:06.000Z
deephar/data/human36m.py
steuwe/deephar
85efc43b7c166339f9655cf322a40dde242bad27
[ "MIT" ]
47
2018-09-03T03:35:13.000Z
2021-11-15T02:09:15.000Z
deephar/data/human36m.py
thejumboroar/deep-human-action-recognition
c0fa2245d4e716837efead5cc304a5b6e2c2df55
[ "MIT" ]
83
2018-10-15T08:36:12.000Z
2022-03-05T05:51:16.000Z
import os import numpy as np import scipy.io as sio from PIL import Image from deephar.data.datasets import get_clip_frame_index from deephar.utils import * ACTION_LABELS = None def load_h36m_mat_annotation(filename): mat = sio.loadmat(filename, struct_as_record=False, squeeze_me=True) # Respect the order ...
35.039216
80
0.576245
a2a2f078eeff0e22917edb8e868ca538906eb6d1
423
py
Python
celebclassifier/celebclassifier/wsgi.py
EyeSlash1998/Hackathon-2k19
96bbe7b2fe71a19b195c0a43d43f3b587418e5f9
[ "MIT" ]
1
2020-03-14T15:24:27.000Z
2020-03-14T15:24:27.000Z
celebclassifier/celebclassifier/wsgi.py
EyeSlash1998/Hackathon-2k19-Celeb-Classifier-
96bbe7b2fe71a19b195c0a43d43f3b587418e5f9
[ "MIT" ]
null
null
null
celebclassifier/celebclassifier/wsgi.py
EyeSlash1998/Hackathon-2k19-Celeb-Classifier-
96bbe7b2fe71a19b195c0a43d43f3b587418e5f9
[ "MIT" ]
null
null
null
""" WSGI config for celebclassifier project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.set...
24.882353
79
0.763593
2e9f2095748a7605db4fe41ee18b102312fe672b
11,579
py
Python
keystone/tests/ksfixtures/hacking.py
BMDan/keystone
39de8b0a0a34c1645b607449fc1247d5cc11d89d
[ "Apache-2.0" ]
null
null
null
keystone/tests/ksfixtures/hacking.py
BMDan/keystone
39de8b0a0a34c1645b607449fc1247d5cc11d89d
[ "Apache-2.0" ]
null
null
null
keystone/tests/ksfixtures/hacking.py
BMDan/keystone
39de8b0a0a34c1645b607449fc1247d5cc11d89d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
30.075325
77
0.397098
0b2935cd79e5f5ef0bb6b74f87cbb95d7f12c665
1,320
py
Python
src/ripVT/transforms/from_behavorial_file_downloaed.py
nkrios/ripVT
db083e6cd6afd541329e3efc856330f93b11c287
[ "MIT" ]
20
2019-01-14T09:40:37.000Z
2020-06-01T22:19:04.000Z
src/ripVT/transforms/from_behavorial_file_downloaed.py
nkrios/ripVT
db083e6cd6afd541329e3efc856330f93b11c287
[ "MIT" ]
null
null
null
src/ripVT/transforms/from_behavorial_file_downloaed.py
nkrios/ripVT
db083e6cd6afd541329e3efc856330f93b11c287
[ "MIT" ]
10
2019-01-14T09:56:50.000Z
2020-06-01T22:19:05.000Z
#!/usr/bin/env python from canari.maltego.entities import Person from canari.maltego.utils import debug, progress from canari.framework import configure #, superuser from common.entities import Filename,vtfilereport from common.ripVT import * import ast __author__ = '@matonis' __copyright__ = 'Copyright 2015, Ripvt P...
29.333333
67
0.665909
036afb7002d847e9ca98905d8e17710b294e3eed
1,304
py
Python
stickybeak/vendored/pip/_internal/utils/encoding.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
stickybeak/vendored/pip/_internal/utils/encoding.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
stickybeak/vendored/pip/_internal/utils/encoding.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
1
2022-01-01T15:14:42.000Z
2022-01-01T15:14:42.000Z
import codecs import locale import re import sys from stickybeak.vendored.pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import List, Tuple, Text BOMS = [ (codecs.BOM_UTF8, 'utf-8'), (codecs.BOM_UTF16, 'utf-16'), (codecs.BOM_UTF16_BE, 'utf-16-be'), (codecs...
31.047619
77
0.648773
22388c00e44e64ae0046e34f7a617775fd8a8c45
1,639
py
Python
run_describe_cloudwatch.py
HardBoiledSmith/johanna
0443a9040f0248f0a800c9d4b062e375f997bb6f
[ "MIT" ]
64
2016-11-03T11:20:25.000Z
2021-05-24T03:08:57.000Z
run_describe_cloudwatch.py
HardBoiledSmith/johanna
0443a9040f0248f0a800c9d4b062e375f997bb6f
[ "MIT" ]
69
2016-11-03T14:09:35.000Z
2022-02-07T12:52:05.000Z
run_describe_cloudwatch.py
HardBoiledSmith/johanna
0443a9040f0248f0a800c9d4b062e375f997bb6f
[ "MIT" ]
19
2016-11-03T11:04:51.000Z
2020-06-12T10:40:57.000Z
#!/usr/bin/env python3 from env import env from run_common import AWSCli aws_cli = AWSCli() def describe_cloudwatch_dashboard(): if not env.get('cloudwatch'): return False if not env['cloudwatch'].get('DASHBOARDS'): return False d_set = set() dashboards_list = env['cloudwatch']['DAS...
22.148649
79
0.600366
f800904aa9501a9db5c84018ea2ccbdd381cc5c7
6,370
py
Python
examples/process_script.py
DynamicGravitySystems/DGP
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
[ "Apache-2.0" ]
7
2017-08-15T21:51:40.000Z
2020-10-28T00:40:23.000Z
examples/process_script.py
DynamicGravitySystems/DGP
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
[ "Apache-2.0" ]
63
2017-08-11T15:12:03.000Z
2020-05-23T19:03:46.000Z
examples/process_script.py
DynamicGravitySystems/DGP
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
[ "Apache-2.0" ]
4
2018-03-29T21:30:26.000Z
2020-10-27T20:15:23.000Z
import os from datetime import datetime from dgp.lib.gravity_ingestor import read_at1a from dgp.lib.trajectory_ingestor import import_trajectory from dgp.lib.etc import align_frames from dgp.lib.transform.transform_graphs import AirbornePost from dgp.lib.transform.filters import detrend from dgp.lib.plots import times...
44.545455
113
0.694035
eae240dad8858e7d5be2c527adb06ad56aad7607
13,214
py
Python
inference-engine/ie_bridges/python/tests/test_IECore.py
akhakimova/openvino
3a588476cd7a34bdc8ad02b85c14dc939747a282
[ "Apache-2.0" ]
1
2020-09-28T08:56:20.000Z
2020-09-28T08:56:20.000Z
inference-engine/ie_bridges/python/tests/test_IECore.py
akhakimova/openvino
3a588476cd7a34bdc8ad02b85c14dc939747a282
[ "Apache-2.0" ]
34
2020-11-20T15:19:18.000Z
2022-02-21T13:13:48.000Z
inference-engine/ie_bridges/python/tests/test_IECore.py
sbalandi/openvino
519951a4a9f979c1b04529dda821111c56113716
[ "Apache-2.0" ]
1
2019-09-03T08:35:20.000Z
2019-09-03T08:35:20.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os import pytest from sys import platform from pathlib import Path from threading import Event, Thread from time import sleep, time from queue import Queue from openvino.inference_engine import IENetwork, IECore, ExecutableNetwor...
40.533742
119
0.665582
9a4ddebf6c17b941a96e4f15869203cfc646dfb6
1,374
py
Python
dizoo/box2d/lunarlander/config/lunarlander_sql_config.py
sailxjx/DI-engine
c6763f8e2ba885a2a02f611195a1b5f8b50bff00
[ "Apache-2.0" ]
null
null
null
dizoo/box2d/lunarlander/config/lunarlander_sql_config.py
sailxjx/DI-engine
c6763f8e2ba885a2a02f611195a1b5f8b50bff00
[ "Apache-2.0" ]
null
null
null
dizoo/box2d/lunarlander/config/lunarlander_sql_config.py
sailxjx/DI-engine
c6763f8e2ba885a2a02f611195a1b5f8b50bff00
[ "Apache-2.0" ]
null
null
null
from easydict import EasyDict lunarlander_sql_config = dict( exp_name='lunarlander_sql', env=dict( collector_env_num=8, evaluator_env_num=5, n_evaluator_episode=5, stop_value=200, ), policy=dict( cuda=False, model=dict( obs_shape=8, ...
29.869565
112
0.612082
0a526faa16bfc9ef0284ddec4e63448f0e6934e1
1,550
py
Python
python/aghast/aghast_generated/UnweightedCounts.py
HDembinski/aghast
f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95
[ "BSD-3-Clause" ]
18
2019-04-15T14:39:35.000Z
2021-12-21T15:01:02.000Z
python/aghast/aghast_generated/UnweightedCounts.py
HDembinski/aghast
f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95
[ "BSD-3-Clause" ]
27
2019-04-12T20:24:00.000Z
2021-12-03T08:51:56.000Z
python/aghast/aghast_generated/UnweightedCounts.py
diana-hep/stagg
ed97e9abc870e729d300622253aa7e9c870f77ec
[ "BSD-3-Clause" ]
11
2019-04-15T14:41:00.000Z
2021-11-16T13:28:10.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: aghast_generated import flatbuffers # ///////////////////////////////////////////////// distributions class UnweightedCounts(object): __slots__ = ["_tab"] @classmethod def GetRootAsUnweightedCounts(cls, buf, offset): ...
27.192982
88
0.656129
746cf7e166b9381af2d77e3081bcd8235a0943c5
2,351
py
Python
Oscleton.py
ArthurVimond/oscleton-midi-remote-script
c475de8f2f13cb309bbb957584611037e97cd621
[ "Apache-2.0" ]
null
null
null
Oscleton.py
ArthurVimond/oscleton-midi-remote-script
c475de8f2f13cb309bbb957584611037e97cd621
[ "Apache-2.0" ]
1
2020-08-17T23:25:30.000Z
2020-08-17T23:25:30.000Z
Oscleton.py
ArthurVimond/oscleton-midi-remote-script
c475de8f2f13cb309bbb957584611037e97cd621
[ "Apache-2.0" ]
null
null
null
from __future__ import with_statement from _Framework.ControlSurface import ControlSurface from OscletonApplicationComponent import OscletonApplicationComponent from OscletonSessionComponent import OscletonSessionComponent from OscletonMixerComponent import OscletonMixerComponent from OscletonTransportComponent import...
35.621212
89
0.695023
0ff167a2d80ac9d5dfae89ae8a21525c9d0d418b
2,992
py
Python
backdrop/core/log_handler.py
alphagov/backdrop
1256e5075d7e5a0e41afb0f0913a5f2c4bdb9ad8
[ "MIT" ]
9
2015-10-20T04:36:48.000Z
2020-09-08T18:47:01.000Z
backdrop/core/log_handler.py
alphagov/backdrop
1256e5075d7e5a0e41afb0f0913a5f2c4bdb9ad8
[ "MIT" ]
31
2015-01-11T11:57:05.000Z
2021-03-24T10:52:33.000Z
backdrop/core/log_handler.py
alphagov/backdrop
1256e5075d7e5a0e41afb0f0913a5f2c4bdb9ad8
[ "MIT" ]
4
2015-01-25T09:06:45.000Z
2021-04-10T20:27:36.000Z
from logging import FileHandler from logging.handlers import RotatingFileHandler from logstash_formatter import LogstashFormatter import logging from flask import request class RequestIdFilter(logging.Filter): def filter(self, record): try: record.govuk_request_id = request.headers.get('Govuk...
32.879121
79
0.671457
03ff6e412ab2880612fc746f501fcd457a0edcd5
1,016
py
Python
base/run_cherrypy.py
daavelino/vulnerability-catalog
61e0db9cc4656a16847ec635a4cac3e9a6c67dd4
[ "MIT" ]
12
2018-01-09T18:03:41.000Z
2021-02-04T08:21:43.000Z
base/run_cherrypy.py
daavelino/vulnerability-catalog
61e0db9cc4656a16847ec635a4cac3e9a6c67dd4
[ "MIT" ]
21
2018-01-13T21:23:22.000Z
2021-04-08T18:28:05.000Z
base/run_cherrypy.py
daavelino/vulnerability-catalog
61e0db9cc4656a16847ec635a4cac3e9a6c67dd4
[ "MIT" ]
7
2017-08-29T10:27:19.000Z
2021-11-09T00:37:03.000Z
from base.wsgi import application import cherrypy import sys if __name__ == '__main__': hostname = "0.0.0.0" port = 8000 if len(sys.argv) == 2: tmp = sys.argv[1].split(":") if len(tmp) == 2: hostname = tmp[0] port = int(tmp[1]) # Mount the application ...
21.166667
58
0.624016
8367602ea21c7ddda93f6d7b069a0adc21d713e8
4,177
py
Python
src/python/consts.py
yotamfr/prot2vec
eaee36f9e3929054b1c324acd053a52d0e7be2bd
[ "MIT" ]
8
2017-10-01T14:34:25.000Z
2021-04-27T13:18:00.000Z
src/python/consts.py
yotamfr/prot2vec
eaee36f9e3929054b1c324acd053a52d0e7be2bd
[ "MIT" ]
1
2020-01-23T17:17:18.000Z
2020-01-23T17:17:18.000Z
src/python/consts.py
yotamfr/prot2vec
eaee36f9e3929054b1c324acd053a52d0e7be2bd
[ "MIT" ]
1
2018-05-04T04:54:32.000Z
2018-05-04T04:54:32.000Z
from datetime import datetime from Bio.SubsMat import MatrixInfo exp_codes = ["EXP", "IDA", "IPI", "IMP", "IGI", "IEP"] + ["TAS", "IC"] t0 = datetime(2014, 1, 1, 0, 0) t1 = datetime(2014, 9, 1, 0, 0) cafa2_cutoff = datetime(2014, 1, 1, 0, 0) cafa3_cutoff = datetime(2017, 2, 2, 0, 0) TODAY = today_cutoff = datetime....
39.037383
118
0.325832
bca8dfc706fb8d2d8606f241fcafd1792bd72636
5,354
py
Python
ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
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...
37.704225
129
0.637467
5fe0f928786c7ace660177eb7dc03026b45ae957
459
py
Python
data/scripts/templates/object/tangible/component/vehicle/shared_fuel_a.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/component/vehicle/shared_fuel_a.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/component/vehicle/shared_fuel_a.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/component/vehicle/shared_fuel_a.iff" result.attribute_template_id =...
27
72
0.732026
961eaf63f2d03e4af09e62ace49966d3ab113229
6,216
py
Python
Max2SAT_quantum/adiabatic/calculate_time_to_99_doubling.py
puyamirkarimi/quantum-walks
eb41146cc22e32b2f4d5a6119cc892f45062764c
[ "MIT" ]
4
2020-02-11T16:55:39.000Z
2021-05-01T07:50:43.000Z
Max2SAT_quantum/adiabatic/calculate_time_to_99_doubling.py
puyamirkarimi/quantum-walks
eb41146cc22e32b2f4d5a6119cc892f45062764c
[ "MIT" ]
1
2020-02-11T17:03:54.000Z
2020-02-16T09:47:47.000Z
Max2SAT_quantum/adiabatic/calculate_time_to_99_doubling.py
puyamirkarimi/quantum-walks
eb41146cc22e32b2f4d5a6119cc892f45062764c
[ "MIT" ]
1
2020-03-11T12:00:12.000Z
2020-03-11T12:00:12.000Z
import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm from scipy.linalg import expm from scipy import sparse from scipy.sparse.linalg import expm_multiply from scipy.sparse.linalg import eigsh from scipy.special import comb import time def get_2sat_formula(instance_name): out = np.loadtxt(...
29.884615
114
0.564189
399d8edea2c6b954d07c7896150c2b40b01e8dfe
583
py
Python
ex.py
turutle/labLP-6
7bbf67624514b501dfeb390f2409f86290e6d3a8
[ "MIT" ]
null
null
null
ex.py
turutle/labLP-6
7bbf67624514b501dfeb390f2409f86290e6d3a8
[ "MIT" ]
null
null
null
ex.py
turutle/labLP-6
7bbf67624514b501dfeb390f2409f86290e6d3a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def benchmark(func): import time def wrapper(*args, **kwargs): start = time.time() return_value = func(*args, **kwargs) end = time.time() print('[*] Время выполнения: {} секунд.'.format(end-start)) ...
18.21875
67
0.578045
184908c358ac1ce8e8460192d52049642e467370
59,495
py
Python
pyscf/pbc/cc/kccsd_uhf.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
1
2021-01-24T13:35:42.000Z
2021-01-24T13:35:42.000Z
pyscf/pbc/cc/kccsd_uhf.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/pbc/cc/kccsd_uhf.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. 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 # # U...
45.800616
120
0.608354
2ea945829dbd0f950943c3200bb362b0095dcb82
5,361
py
Python
oauth_dropins/reddit.py
ravenscroftj/oauth-dropins
59cc4bfc8157142249c5eb561b1f665da560e6c1
[ "Unlicense" ]
null
null
null
oauth_dropins/reddit.py
ravenscroftj/oauth-dropins
59cc4bfc8157142249c5eb561b1f665da560e6c1
[ "Unlicense" ]
null
null
null
oauth_dropins/reddit.py
ravenscroftj/oauth-dropins
59cc4bfc8157142249c5eb561b1f665da560e6c1
[ "Unlicense" ]
null
null
null
"""reddit OAuth drop-in. reddit API docs: https://github.com/reddit-archive/reddit/wiki/API https://www.reddit.com/dev/api https://www.reddit.com/prefs/apps praw API docs: https://praw.readthedocs.io/en/v3.6.0/pages/oauth.html """ import logging import urllib.parse from flask import request from google.cloud import ...
32.101796
99
0.684574
d6b9f9292621585da0c4a1efdf1ad875bc29fd9a
24,226
py
Python
tests/test_modeling_gptj.py
Sanger2000/transformers
5de2046e12cffa5a0381219363cd521e8fe1a2bb
[ "Apache-2.0" ]
2
2022-02-19T07:02:52.000Z
2022-02-19T07:02:55.000Z
tests/test_modeling_gptj.py
Sanger2000/transformers
5de2046e12cffa5a0381219363cd521e8fe1a2bb
[ "Apache-2.0" ]
1
2022-02-17T12:40:59.000Z
2022-02-17T12:40:59.000Z
tests/test_modeling_gptj.py
Sanger2000/transformers
5de2046e12cffa5a0381219363cd521e8fe1a2bb
[ "Apache-2.0" ]
1
2022-02-20T11:47:53.000Z
2022-02-20T11:47:53.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Team. 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 requir...
42.501754
139
0.689672
6b07f1f42e3b96b78e95b2e0fbd0268fe16986ab
4,736
py
Python
venv/lib/python3.8/site-packages/vsts/graph/v4_1/models/graph_scope.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/graph/v4_1/models/graph_scope.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/graph/v4_1/models/graph_scope.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
71.757576
288
0.675887
395f8faa2b8b9ce6494f589cb6344b95ed463932
991
py
Python
pyemto/examples/B2_Cr.py
hitliaomq/pyemto
334903fbe626fa8b9f7e1f7a089b7c0e30edba46
[ "MIT" ]
11
2018-04-10T02:01:12.000Z
2021-12-10T06:44:54.000Z
pyemto/examples/B2_Cr.py
hitliaomq/pyemto
334903fbe626fa8b9f7e1f7a089b7c0e30edba46
[ "MIT" ]
null
null
null
pyemto/examples/B2_Cr.py
hitliaomq/pyemto
334903fbe626fa8b9f7e1f7a089b7c0e30edba46
[ "MIT" ]
2
2020-02-01T19:59:50.000Z
2020-04-07T20:53:40.000Z
from pyemto.examples.emto_input_generator import * import numpy as np folder = os.getcwd() # Get current working directory. emtopath = folder+"/Cr_B2_antiferro" # Folder where the calculations will be performed. latpath = emtopath prims = np.array([[1.0,0.0,0.0], [0.0,1.0,0.0], ...
28.314286
88
0.586276
c8a1283989797dbf53efc59d97b5ab6ed1fe2159
833
py
Python
digsby/src/gui/uberwidgets/autoheightstatictext.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/gui/uberwidgets/autoheightstatictext.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/gui/uberwidgets/autoheightstatictext.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
import wx from gui.textutil import Wrap class AutoHeightStaticText(wx.StaticText): ''' Extension of wxStaticText that handels wrapping automatically figures out it's minheight from the contained text ''' def __init__(self, parent, id, label, pos = wx.DefaultPosition, size = wx.DefaultSize, style = 0,...
32.038462
123
0.654262
6d9fcc5389e49251c518451ecbe8680da84ccca6
504
py
Python
src/app/main.py
qooba/ainewface
a6b1ad86957304ac5b3452bb084a14256fb080f6
[ "MIT" ]
null
null
null
src/app/main.py
qooba/ainewface
a6b1ad86957304ac5b3452bb084a14256fb080f6
[ "MIT" ]
null
null
null
src/app/main.py
qooba/ainewface
a6b1ad86957304ac5b3452bb084a14256fb080f6
[ "MIT" ]
null
null
null
from fastapi import FastAPI, Request from fastapi.responses import HTMLResponse, FileResponse from fastapi.staticfiles import StaticFiles from common import Bootstapper from routers import face app = FastAPI() container=Bootstapper().bootstrap() #app.mount("/static", StaticFiles(directory="static"), name="static") #@...
31.5
69
0.787698
7adddf67c3851b37d6d266d38170977ad763a71d
16,341
py
Python
customScrape.py
jacobchh/CourseNotifier
6f25ec9840d516f2e5094d16ef8267e58038c260
[ "MIT" ]
1
2020-08-04T05:10:59.000Z
2020-08-04T05:10:59.000Z
customScrape.py
jacobchh/CourseNotifier
6f25ec9840d516f2e5094d16ef8267e58038c260
[ "MIT" ]
2
2020-09-09T03:28:51.000Z
2021-08-01T02:14:11.000Z
customScrape.py
jacobchh/CourseNotifier
6f25ec9840d516f2e5094d16ef8267e58038c260
[ "MIT" ]
null
null
null
import requests import pandas as pd import time as t from datetime import datetime, time from bs4 import BeautifulSoup import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from dotenv import load_dotenv import os TIMETABLE_URL = 'https://studentservices.uwo.ca/secure/timet...
45.773109
260
0.624197
c40ce854706859f944849edeac5d9e57d2aa3d82
29,678
py
Python
test/unit/common/ring/test_utils.py
kevin-wyx/swift
d46b0f29f9e023249b582bfa1fbf80cb8f577182
[ "Apache-2.0" ]
null
null
null
test/unit/common/ring/test_utils.py
kevin-wyx/swift
d46b0f29f9e023249b582bfa1fbf80cb8f577182
[ "Apache-2.0" ]
null
null
null
test/unit/common/ring/test_utils.py
kevin-wyx/swift
d46b0f29f9e023249b582bfa1fbf80cb8f577182
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
42.640805
76
0.4969
c1b245dc6aed99ea16e44575069a11542b0c4eca
45,635
py
Python
api/viz.py
mariokart345/air-bnb-solo
efcd46781fb78cc80f47020f03077131f27c1f8d
[ "MIT" ]
null
null
null
api/viz.py
mariokart345/air-bnb-solo
efcd46781fb78cc80f47020f03077131f27c1f8d
[ "MIT" ]
null
null
null
api/viz.py
mariokart345/air-bnb-solo
efcd46781fb78cc80f47020f03077131f27c1f8d
[ "MIT" ]
null
null
null
import os from fastapi import APIRouter import plotly.express as px import pandas as pd from joblib import load import dotenv router = APIRouter() dotenv.load_dotenv(dotenv.find_dotenv()) MAPBOX_KEY = os.getenv('MAPBOX_KEY') @router.get('/visualize', name='Plotly Map Box', summary='Uses a knn model to ge...
101.636971
150
0.327599
ec17db7c2044e8a815dc6122efe9817e9fa550bc
253
py
Python
more/colander/app.py
morepath/more.colander
fa5b2f07aa78e73c39064ed7cb197e7731474381
[ "BSD-3-Clause" ]
null
null
null
more/colander/app.py
morepath/more.colander
fa5b2f07aa78e73c39064ed7cb197e7731474381
[ "BSD-3-Clause" ]
null
null
null
more/colander/app.py
morepath/more.colander
fa5b2f07aa78e73c39064ed7cb197e7731474381
[ "BSD-3-Clause" ]
null
null
null
import morepath from .errors import Error class App(morepath.App): pass @App.json(model=Error) def validation_error_default(self, request): @request.after def adjust_status(response): response.status = 422 return self.errors
16.866667
44
0.719368
d333b612022285ccd03d69bec00c01dda636884a
6,916
py
Python
sdks/python/http_client/v1/polyaxon_sdk/models/v1_interval_schedule.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_interval_schedule.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_interval_schedule.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, 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 ...
27.444444
93
0.593696
b6887134c248a8e17421ebed181ac559df386e02
7,676
py
Python
cmk.py
patricia-cahill/CPU-Manager-for-Kubernetes
1a9f09bd95789d83aa111bdbed9109f94f5772e9
[ "Apache-2.0" ]
null
null
null
cmk.py
patricia-cahill/CPU-Manager-for-Kubernetes
1a9f09bd95789d83aa111bdbed9109f94f5772e9
[ "Apache-2.0" ]
null
null
null
cmk.py
patricia-cahill/CPU-Manager-for-Kubernetes
1a9f09bd95789d83aa111bdbed9109f94f5772e9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
45.152941
85
0.517327
2078f335884a3423e5e2336bb13366ea472fd306
5,435
py
Python
plasmapy/atomic/tests/test_nuclear.py
HaraldNordgren/PlasmaPy
62589c37109dbdd0f8c00b5b92042d7a460d4db5
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-04-10T06:00:46.000Z
2019-04-10T06:00:46.000Z
plasmapy/atomic/tests/test_nuclear.py
HaraldNordgren/PlasmaPy
62589c37109dbdd0f8c00b5b92042d7a460d4db5
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/atomic/tests/test_nuclear.py
HaraldNordgren/PlasmaPy
62589c37109dbdd0f8c00b5b92042d7a460d4db5
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from astropy import units as u import numpy as np from ..nuclear import nuclear_binding_energy, nuclear_reaction_energy from ...utils import ( InvalidParticleError, AtomicError, run_test, run_test_equivalent_calls, ) import pytest test_nuclear_table = [ [nuclear_binding_energy, 'p', {}, 0 * u.J], ...
42.795276
99
0.658142
529dfb711d1334b0ae293d022968a8a0a65a75ac
1,464
py
Python
flaski/apps/external.py
mpg-age-bioinformatics/flaski
f56e00dd80d8706ecb8593ba6585a97eed881896
[ "MIT" ]
9
2020-08-03T01:22:59.000Z
2022-03-03T02:02:04.000Z
flaski/apps/external.py
mpg-age-bioinformatics/flaski
f56e00dd80d8706ecb8593ba6585a97eed881896
[ "MIT" ]
79
2020-06-03T06:34:46.000Z
2021-09-22T13:31:43.000Z
flaski/apps/external.py
mpg-age-bioinformatics/flaski
f56e00dd80d8706ecb8593ba6585a97eed881896
[ "MIT" ]
5
2020-10-05T10:20:23.000Z
2022-03-01T14:23:12.000Z
########################################################################### # # example of Apps imported as plugin through docker-compose.yml mapping # # external.py (this file): # # from flaski.apps.routes import histogram # EXTERNAL_APPS=[{ "name":"Histogram", "id":'histogram_more',"link":'histogram' ,"java":"javascr...
43.058824
185
0.653005
792a52171a25f68262fbc5274d9cd48feb449ad3
40,398
py
Python
rbtools/clients/tfs.py
torcolvin/rbtools
3fbea5f57d0768488f56f398a174056e837f51b1
[ "MIT" ]
null
null
null
rbtools/clients/tfs.py
torcolvin/rbtools
3fbea5f57d0768488f56f398a174056e837f51b1
[ "MIT" ]
null
null
null
rbtools/clients/tfs.py
torcolvin/rbtools
3fbea5f57d0768488f56f398a174056e837f51b1
[ "MIT" ]
null
null
null
"""A client for Team Foundation Server.""" from __future__ import unicode_literals import logging import os import re import sys import tempfile import xml.etree.ElementTree as ET from six.moves.urllib.parse import unquote from rbtools.clients import RepositoryInfo, SCMClient from rbtools.clients.errors import (Inv...
35.718833
82
0.542626
0b0d6f760e2e70def6963f184b8121db80c63bda
294
py
Python
eval.py
MoonBlvd/pytorch-i3d
3804ab2e1df018619cd12342dff7976bb302058e
[ "Apache-2.0" ]
null
null
null
eval.py
MoonBlvd/pytorch-i3d
3804ab2e1df018619cd12342dff7976bb302058e
[ "Apache-2.0" ]
null
null
null
eval.py
MoonBlvd/pytorch-i3d
3804ab2e1df018619cd12342dff7976bb302058e
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append('..') from evaluation.eval_detection import ANETdetection evaluator = ANETdetection(ground_truth_filename='A3D_i3d_label.json', prediction_filename='tmp', subset='val', check_status=False)
36.75
69
0.602041
e51629d83366ea77fd8af04f9275d77a9159411e
7,796
py
Python
tensorflow_estimator/python/estimator/head/base_head_test.py
ziky90/estimator
825c02ce244ce21ec4f01360dfdf90cbf92f6bde
[ "Apache-2.0" ]
null
null
null
tensorflow_estimator/python/estimator/head/base_head_test.py
ziky90/estimator
825c02ce244ce21ec4f01360dfdf90cbf92f6bde
[ "Apache-2.0" ]
null
null
null
tensorflow_estimator/python/estimator/head/base_head_test.py
ziky90/estimator
825c02ce244ce21ec4f01360dfdf90cbf92f6bde
[ "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...
34.343612
80
0.697922
1becdf29e21ac472f8b631985003d04825eb3396
164
py
Python
barrelseq/version.py
BeckResearchLab/barrelseq
044b9f69f10b4b0413231d821ea80af1c7c31544
[ "MIT" ]
1
2021-11-27T08:35:15.000Z
2021-11-27T08:35:15.000Z
barrelseq/version.py
BeckResearchLab/barrelseq
044b9f69f10b4b0413231d821ea80af1c7c31544
[ "MIT" ]
5
2018-09-19T21:50:01.000Z
2019-07-16T22:14:52.000Z
barrelseq/version.py
BeckResearchLab/barrelseq
044b9f69f10b4b0413231d821ea80af1c7c31544
[ "MIT" ]
null
null
null
_version_major = 0 _version_minor = 1 _version_build = 0 _version = [ _version_major, _version_minor, _version_build ] __version__ = '.'.join(map(str, _version))
20.5
61
0.756098
f7cd64b134db5195f529bca36236f27c45b48559
489
py
Python
gpio/sound.py
mc-b/iotkitmp
a526617c3f5347d1ae607063ae8c759a46b4715d
[ "MIT" ]
null
null
null
gpio/sound.py
mc-b/iotkitmp
a526617c3f5347d1ae607063ae8c759a46b4715d
[ "MIT" ]
null
null
null
gpio/sound.py
mc-b/iotkitmp
a526617c3f5347d1ae607063ae8c759a46b4715d
[ "MIT" ]
1
2022-03-04T09:38:26.000Z
2022-03-04T09:38:26.000Z
import time, math, machine from lib.config import * def pulse(l, t): for i in range(20): l.duty(int(math.sin(i / 10 * math.pi) * 500 + 500)) time.sleep_ms(t) buzzer = machine.Pin(DEFAULT_IOTKIT_BUZZER) while True: try: p = machine.PWM(buzzer, freq=3969, duty=50 ) time.sleep( 0...
19.56
59
0.566462
14d8ffbaf9e801f7090959f4f9c3db571019c1a7
23,061
py
Python
tests/grid/test_create_network.py
schmidtjonathan/landlab
b5fd0f84090002c2f888efbc8be01661729e980d
[ "MIT" ]
1
2022-01-07T02:36:07.000Z
2022-01-07T02:36:07.000Z
tests/grid/test_create_network.py
schmidtjonathan/landlab
b5fd0f84090002c2f888efbc8be01661729e980d
[ "MIT" ]
null
null
null
tests/grid/test_create_network.py
schmidtjonathan/landlab
b5fd0f84090002c2f888efbc8be01661729e980d
[ "MIT" ]
2
2019-08-19T08:58:10.000Z
2022-01-07T02:36:01.000Z
import hypothesis.extra.numpy as hynp import numpy as np import pytest from hypothesis import given, settings from hypothesis.strategies import composite, floats, integers, lists from numpy.testing import assert_array_equal from landlab import RasterModelGrid from landlab.grid.create_network import ( _reduce_to_fe...
30.584881
87
0.644074
559fd239ecd87013b8f1ed1dc65567d8b8da3956
1,699
py
Python
final/170401074/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
1
2021-05-04T21:46:08.000Z
2021-05-04T21:46:08.000Z
final/170401074/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
final/170401074/client.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
#Batuhan :OZALP - 170401074 import socket import time import os import datetime import subprocess import shlex from decimal import Decimal ip = input("Server ip adresini girin >>") port = 142 buffer = 1024 def main(): try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((ip, port)...
24.271429
87
0.597999
069e9ff4aba4ac69a6ad153238a3b656eed65f07
934
py
Python
compare/copy_missing_lfw.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
compare/copy_missing_lfw.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
compare/copy_missing_lfw.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from shutil import copyfile LFW_DIR = "../datasets/lfw" COPY_DIR = "result/lfw_fill" DEST_DIR = COPY_DIR + "_full" FILE_EXT = ".png" if not os.path.exists(DEST_DIR): os.mkdir(DEST_DIR) dirList = os.listdir(LFW_DIR) for index, dirName in enumerate(dirList): print("processing {...
38.916667
87
0.663812
50fe4fdd07c23db786bb34df2caa835524976823
1,425
py
Python
pastepwn/analyzers/logicalanalyzers/tests/logicalbaseanalyzer_test.py
robotboyfriend/pastepwn
ca6dd87afd053b5032857eb0615a947c3b9dfad9
[ "MIT" ]
113
2018-09-06T22:14:52.000Z
2022-02-17T01:32:29.000Z
pastepwn/analyzers/logicalanalyzers/tests/logicalbaseanalyzer_test.py
robotboyfriend/pastepwn
ca6dd87afd053b5032857eb0615a947c3b9dfad9
[ "MIT" ]
199
2018-09-15T22:17:58.000Z
2022-01-23T23:45:09.000Z
pastepwn/analyzers/logicalanalyzers/tests/logicalbaseanalyzer_test.py
robotboyfriend/pastepwn
ca6dd87afd053b5032857eb0615a947c3b9dfad9
[ "MIT" ]
88
2018-09-09T13:02:06.000Z
2022-01-23T22:56:09.000Z
# -*- coding: utf-8 -*- import unittest from unittest import mock from pastepwn.actions.basicaction import BasicAction from pastepwn.analyzers.logicalanalyzers import LogicalBaseAnalyzer class TestLogicalBaseAnalyzer(unittest.TestCase): def setUp(self): self.paste = mock.Mock() def test_exception(se...
33.139535
104
0.690526
90eaa0b4cc8e0205269965981644f6e790efe5f8
9,069
py
Python
common/api/views.py
AdamCottrill/fwsb_common
f888747e26fd2cd9c581ec86c16c3722e503a4dd
[ "MIT" ]
null
null
null
common/api/views.py
AdamCottrill/fwsb_common
f888747e26fd2cd9c581ec86c16c3722e503a4dd
[ "MIT" ]
null
null
null
common/api/views.py
AdamCottrill/fwsb_common
f888747e26fd2cd9c581ec86c16c3722e503a4dd
[ "MIT" ]
null
null
null
"""Views for the api for our common models The veiws in this file should all be publicly available as readonly. """ from rest_framework import viewsets, status, generics from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticatedOrReadOnly, AllowAny from ...
29.160772
103
0.663138
3fc6623f3b22674c370601fe1833ce77b1c4b1c4
26,433
py
Python
SRC/engine/IO/GUI/meshparamwidgets.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
SRC/engine/IO/GUI/meshparamwidgets.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
SRC/engine/IO/GUI/meshparamwidgets.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
41.89065
119
0.630538
51f6543a413edc1c3f4074ad94867a3838939d40
2,439
py
Python
connect4/Connect4Players.py
user01/alpha-zero-general
7edf122015e02a2e78168ac9f6eaa5c5e20600cc
[ "MIT" ]
2,836
2017-12-18T02:11:38.000Z
2022-03-30T09:07:15.000Z
connect4/Connect4Players.py
user01/alpha-zero-general
7edf122015e02a2e78168ac9f6eaa5c5e20600cc
[ "MIT" ]
212
2017-12-28T06:47:57.000Z
2022-01-06T20:22:26.000Z
connect4/Connect4Players.py
user01/alpha-zero-general
7edf122015e02a2e78168ac9f6eaa5c5e20600cc
[ "MIT" ]
892
2017-12-18T08:56:45.000Z
2022-03-29T23:00:45.000Z
import numpy as np class RandomPlayer(): def __init__(self, game): self.game = game def play(self, board): a = np.random.randint(self.game.getActionSize()) valids = self.game.getValidMoves(board, 1) while valids[a] != 1: a = np.random.randint(self.game.getActionSiz...
37.523077
114
0.621976
3ef16c812607e628552fee3773ff284e49010be7
743
py
Python
distributed/tests/test_sizeof.py
ogrisel/distributed
bf0b861881e55be740b1987c1e9d69f90328b2b4
[ "BSD-3-Clause" ]
1
2016-07-21T04:03:22.000Z
2016-07-21T04:03:22.000Z
distributed/tests/test_sizeof.py
minrk/distributed
6da80822c75a069c14c55297cf9fc798416d3cd4
[ "BSD-3-Clause" ]
null
null
null
distributed/tests/test_sizeof.py
minrk/distributed
6da80822c75a069c14c55297cf9fc798416d3cd4
[ "BSD-3-Clause" ]
1
2019-11-12T19:17:22.000Z
2019-11-12T19:17:22.000Z
import sys import pytest from distributed.sizeof import sizeof def test_base(): assert sizeof(1) == sys.getsizeof(1) def test_containers(): assert sizeof([1, 2, [3]]) > (sys.getsizeof(3) * 3 + sys.getsizeof([])) def test_numpy(): np = pytest.importorskip('numpy') assert sizeof(np.empty(1000, dty...
23.967742
76
0.592194
212a6ec44d957649c5a42fe5d328daa329318fea
7,187
py
Python
modin/backends/pyarrow/query_compiler.py
xrmx/modin
7f19fa2200993a0b8f009b6b603afb4a4022cec8
[ "Apache-2.0" ]
null
null
null
modin/backends/pyarrow/query_compiler.py
xrmx/modin
7f19fa2200993a0b8f009b6b603afb4a4022cec8
[ "Apache-2.0" ]
null
null
null
modin/backends/pyarrow/query_compiler.py
xrmx/modin
7f19fa2200993a0b8f009b6b603afb4a4022cec8
[ "Apache-2.0" ]
null
null
null
from modin.backends.pandas.query_compiler import PandasQueryCompiler import pyarrow as pa import pandas from pandas.core.computation.expr import Expr from pandas.core.computation.scope import Scope from pandas.core.computation.ops import UnaryOp, BinOp, Term, MathCall, Constant class FakeSeries: def __in...
38.433155
89
0.54362
579182bcdd9d6fa5156445b464011a1a97ef2a71
3,080
py
Python
Lib/site-packages/tensorflow_probability/python/experimental/inference_gym/targets/ground_truth/_numpy/german_credit_numeric_logistic_regression.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow_probability/python/experimental/inference_gym/targets/ground_truth/_numpy/german_credit_numeric_logistic_regression.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow_probability/python/experimental/inference_gym/targets/ground_truth/_numpy/german_credit_numeric_logistic_regression.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# Lint as: python2, python3 # Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
27.256637
78
0.707468
284d53ea4fb1bd840c65a484a6f5f705aa7f15ad
546
py
Python
manage.py
LeeSinLiang/budget_project
8684fe64640e900f48f042172aebe604fd94d061
[ "MIT" ]
null
null
null
manage.py
LeeSinLiang/budget_project
8684fe64640e900f48f042172aebe604fd94d061
[ "MIT" ]
6
2019-01-22T03:54:53.000Z
2019-01-25T04:49:18.000Z
manage.py
joyliao07/budget_tool
a20974f47d5bfa8ef2ef285f57c7e1aafde42f29
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'budget_project.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Djang...
34.125
78
0.690476
d4322d26eeebe679eb8137d6b3b652448d23d604
69
py
Python
aib/releases.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
3
2015-02-25T19:44:43.000Z
2020-12-18T05:49:09.000Z
aib/releases.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
1
2019-11-20T12:31:34.000Z
2019-11-20T12:31:35.000Z
aib/releases.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
1
2020-06-07T06:25:19.000Z
2020-06-07T06:25:19.000Z
program_version_info = (0, 1, 1) datamodel_version_info = (0, 1, 11)
23
35
0.710145
52c803e542178f1c0d423ca8cf9d0aa762ef584f
36,317
py
Python
python/ccxt/kuna.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
python/ccxt/kuna.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
python/ccxt/kuna.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import InsufficientFunds from ...
43.286055
212
0.459372
10ccd2fcdf6883a985844a6176f6c907bbbc7a50
368
py
Python
lims/addressbook/serializers.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
12
2017-03-01T10:39:36.000Z
2022-01-04T06:17:19.000Z
lims/addressbook/serializers.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
29
2017-04-25T14:05:08.000Z
2021-06-21T14:41:53.000Z
lims/addressbook/serializers.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
4
2017-10-11T16:22:53.000Z
2021-02-23T15:45:21.000Z
from django.contrib.auth.models import User from rest_framework import serializers from .models import Address class AddressSerializer(serializers.ModelSerializer): user = serializers.SlugRelatedField(queryset=User.objects.all(), slug_field='username') class Meta: ...
26.285714
68
0.673913
d398f8db92fc5d3154bab08187e3c155a8023778
2,244
py
Python
tests/test_plots.py
jwise77/ytree
8bd905bb0995383c1285aeba586d41859f494a9b
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_plots.py
jwise77/ytree
8bd905bb0995383c1285aeba586d41859f494a9b
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_plots.py
jwise77/ytree
8bd905bb0995383c1285aeba586d41859f494a9b
[ "BSD-3-Clause-Clear" ]
null
null
null
""" tests for plotting """ #----------------------------------------------------------------------------- # Copyright (c) ytree development team. All rights reserved. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #------...
25.793103
78
0.543672
8b32b5ad3d4bc0615f42aa3b3ebd30ae2aec93c9
2,519
py
Python
docs/conf.py
fighterpoul/gitflow_linter
f856284b2545a7b307d158fcc524bc047884c0a0
[ "MIT" ]
null
null
null
docs/conf.py
fighterpoul/gitflow_linter
f856284b2545a7b307d158fcc524bc047884c0a0
[ "MIT" ]
null
null
null
docs/conf.py
fighterpoul/gitflow_linter
f856284b2545a7b307d158fcc524bc047884c0a0
[ "MIT" ]
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: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.506849
79
0.674474
5269ad9515b35d968279819f2e0a951dc0da6ea4
367
py
Python
django_project/MVC/models.py
GudniNatan/Super_Duper_Ultra_Lokaverkefni
7360c65c854154cb86d8f2e8a0da93e753562de2
[ "MIT" ]
null
null
null
django_project/MVC/models.py
GudniNatan/Super_Duper_Ultra_Lokaverkefni
7360c65c854154cb86d8f2e8a0da93e753562de2
[ "MIT" ]
4
2017-12-03T00:09:11.000Z
2017-12-03T00:21:11.000Z
django_project/MVC/models.py
GudniNatan/Super_Duper_Ultra_Lokaverkefni
7360c65c854154cb86d8f2e8a0da93e753562de2
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Book(models.Model): book_title = models.CharField(max_length=255) book_author = models.CharField(max_length=255) book_publisher = models.CharField(max_length=255) book_year = models.PositiveIntegerField() def __str__(self): retu...
33.363636
59
0.73297
a8e7565e8810f2f462f5b807e2a222bb271a5501
19,753
py
Python
localstack/services/dynamodb/dynamodb_listener.py
nghiadhd/localstack
4b932c5b0e2203d064e7e4577562cf88c42c5e38
[ "Apache-2.0" ]
null
null
null
localstack/services/dynamodb/dynamodb_listener.py
nghiadhd/localstack
4b932c5b0e2203d064e7e4577562cf88c42c5e38
[ "Apache-2.0" ]
null
null
null
localstack/services/dynamodb/dynamodb_listener.py
nghiadhd/localstack
4b932c5b0e2203d064e7e4577562cf88c42c5e38
[ "Apache-2.0" ]
6
2019-07-10T10:27:54.000Z
2021-04-08T09:59:54.000Z
import re import json import random import logging import threading from binascii import crc32 from requests.models import Response from localstack import config from localstack.utils.aws import aws_stack from localstack.utils.common import to_bytes, to_str, clone from localstack.utils.analytics import event_publisher ...
46.259953
120
0.602896
5c08db5b485aec0384444dc9182f9abe85f788a6
4,175
py
Python
argo/workflows/client/models/v1alpha1_workflow_suspend_request.py
zgs225/argo-client-python
2e49a0df9b4f8fc9e90f7808caf22819ff54166c
[ "Apache-2.0" ]
75
2020-03-17T03:55:23.000Z
2021-11-08T09:38:37.000Z
argo/workflows/client/models/v1alpha1_workflow_suspend_request.py
zgs225/argo-client-python
2e49a0df9b4f8fc9e90f7808caf22819ff54166c
[ "Apache-2.0" ]
24
2020-04-18T13:02:36.000Z
2021-10-20T09:01:23.000Z
argo/workflows/client/models/v1alpha1_workflow_suspend_request.py
zgs225/argo-client-python
2e49a0df9b4f8fc9e90f7808caf22819ff54166c
[ "Apache-2.0" ]
26
2020-04-18T12:56:28.000Z
2022-01-05T04:47:30.000Z
# coding: utf-8 """ Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: v2.12.2 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 ...
28.401361
134
0.590898
3b3ee7273f931160b42a4c424d5caf48b8593fc2
7,416
py
Python
demo.py
khoroo/deep-text-recognition-benchmark
6089c4035c5b8136c2f055126e5dd43a121501d9
[ "Apache-2.0" ]
null
null
null
demo.py
khoroo/deep-text-recognition-benchmark
6089c4035c5b8136c2f055126e5dd43a121501d9
[ "Apache-2.0" ]
null
null
null
demo.py
khoroo/deep-text-recognition-benchmark
6089c4035c5b8136c2f055126e5dd43a121501d9
[ "Apache-2.0" ]
null
null
null
import string import argparse import torch import torch.backends.cudnn as cudnn import torch.utils.data import torch.nn.functional as F from utils import CTCLabelConverter, AttnLabelConverter from dataset import RawDataset, AlignCollate, MapDataset from model import Model device = torch.device('cuda' if to...
49.112583
121
0.637136
0f551643679cc8978bac3675840778ee4675d6f0
674
py
Python
p099.py
yehnan/project_euler_python
9c8a50e992b71c1c313b08a16ea24298ce5cf020
[ "MIT" ]
1
2017-03-29T19:30:32.000Z
2017-03-29T19:30:32.000Z
p099.py
yehnan/project_euler_python
9c8a50e992b71c1c313b08a16ea24298ce5cf020
[ "MIT" ]
null
null
null
p099.py
yehnan/project_euler_python
9c8a50e992b71c1c313b08a16ea24298ce5cf020
[ "MIT" ]
1
2018-10-29T02:40:06.000Z
2018-10-29T02:40:06.000Z
# Problem 99: Largest exponential # https://projecteuler.net/problem=99 from io import open from math import log def main(filename): be_max_log = 0 base_max = 0 exp_max = 0 line_number_max = 0 with open(filename, 'r', encoding='ascii') as fin: for ln, line in enumerate(fin)...
24.071429
55
0.529674
53bae094d5ed5fd85cfb2c93fb76d460728cd05c
819
py
Python
Retos/POO/ponencia.py
juanpanu/Juan_DS_Path
24e71616dae692e931e95cd3815ca88fa9b8a46a
[ "MIT" ]
null
null
null
Retos/POO/ponencia.py
juanpanu/Juan_DS_Path
24e71616dae692e931e95cd3815ca88fa9b8a46a
[ "MIT" ]
null
null
null
Retos/POO/ponencia.py
juanpanu/Juan_DS_Path
24e71616dae692e931e95cd3815ca88fa9b8a46a
[ "MIT" ]
null
null
null
class Ponencia(Contribucion): """Clase que representa la Ponencia""" def __init__(self,id, titulo, idAutor,calificacion,fecha,eje): super().__init__(self, id, titulo, idAutor,calificacion) self.fechaPublicacion = fecha self.ejeTematico = eje #fechaPublicacion Getter function @p...
30.333333
66
0.704518
01a6b10c283e8104c742016a4bb590f43f2272d2
7,888
py
Python
getearnings.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
getearnings.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
getearnings.py
peterfabakker/zipline-utils
07ad6f56910b7c34c2cb45442b282213eae0efc6
[ "MIT" ]
null
null
null
""" getearnings.py Created by Peter Bakker on 2017-10-26. Copyright (c) 20188 unhedged. All rights reserved. """ import sys import os import pandas as pd import numpy as np import datetime from shutil import copy from yahoo_earnings_calendar import YahooEarningsCalendar from zipline.data import bundles as bundles_mo...
61.625
3,643
0.595208
f884dee2754ed402b80b4844d7b32bdccabbb6dd
1,851
py
Python
moviepy/audio/fx/audio_delay.py
va6996/moviepy
60b95c37816413da6bf304e85f8c0ba8e2d2c6e7
[ "MIT" ]
null
null
null
moviepy/audio/fx/audio_delay.py
va6996/moviepy
60b95c37816413da6bf304e85f8c0ba8e2d2c6e7
[ "MIT" ]
null
null
null
moviepy/audio/fx/audio_delay.py
va6996/moviepy
60b95c37816413da6bf304e85f8c0ba8e2d2c6e7
[ "MIT" ]
null
null
null
import cupy as np from moviepy.audio.AudioClip import CompositeAudioClip from moviepy.audio.fx.multiply_volume import multiply_volume from moviepy.decorators import audio_video_fx @audio_video_fx def audio_delay(clip, offset=0.2, n_repeats=8, decay=1): """Repeats audio certain number of times at constant interva...
32.473684
84
0.627769
457494f7343d316dedff69acf430cc877e8c9155
1,125
py
Python
configs/localization/bsn/bsn_pgm_800x100_activitynet_feature_train_with_label.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
null
null
null
configs/localization/bsn/bsn_pgm_800x100_activitynet_feature_train_with_label.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
null
null
null
configs/localization/bsn/bsn_pgm_800x100_activitynet_feature_train_with_label.py
Naoki-Wake/mmaction2
a2032605db82509744a18d993c94a06feb1efd15
[ "Apache-2.0" ]
null
null
null
# dataset settings dataset_type = 'ActivityNetDataset' data_root = '/dataset/maction_feat_with_label/'#'/dataset/activitynet/maction_feat/' data_root_val = '/dataset/maction_feat_with_label/' ann_file_train = '/dataset/annotation/anet_anno_train.json' ann_file_val = '/dataset/annotation/anet_anno_test.json' ann_file_te...
33.088235
84
0.784
181efe6d0c9e71e1321dfd460411a6154bfe1a71
4,021
py
Python
kplr/ld.py
danielrios12/kplr---acesso-a-dados-do-kepler
4c6a823ad6a88ccd2d5cf8d9eed912a1e57489a2
[ "MIT" ]
35
2015-01-21T22:38:12.000Z
2020-08-05T21:15:19.000Z
kplr/ld.py
danielrios12/kplr---acesso-a-dados-do-kepler
4c6a823ad6a88ccd2d5cf8d9eed912a1e57489a2
[ "MIT" ]
12
2015-03-17T18:54:15.000Z
2021-08-06T18:19:13.000Z
kplr/ld.py
danielrios12/kplr---acesso-a-dados-do-kepler
4c6a823ad6a88ccd2d5cf8d9eed912a1e57489a2
[ "MIT" ]
17
2015-02-11T19:49:00.000Z
2019-10-15T18:06:28.000Z
# -*- coding: utf-8 -*- from __future__ import (division, print_function, absolute_import, unicode_literals) __all__ = ["get_quad_coeffs"] import os import shutil import sqlite3 import logging from tempfile import NamedTemporaryFile from six.moves import urllib from .config import KPLR_ROOT...
30.007463
79
0.625964
e2729f8616eb04affdf06b927d1b22df1aef29d8
2,653
py
Python
demos/HFL/example/oneflow/bert_client.py
monadyn/fedlearn-algo
c4459d421139b0bb765527d636fff123bf17bda4
[ "Apache-2.0" ]
86
2021-07-20T01:54:21.000Z
2021-10-06T04:02:40.000Z
demos/HFL/example/oneflow/bert_client.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
5
2021-07-23T21:22:16.000Z
2021-09-12T15:48:35.000Z
demos/HFL/example/oneflow/bert_client.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
28
2021-07-20T07:15:33.000Z
2021-08-22T20:04:57.000Z
# Copyright 2021 Fedlearn authors. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
28.223404
98
0.636638
00690a13d7ca916d3fa16960c3dc38758db94bfa
18,707
py
Python
ruruki/entities.py
terence-bigtt/ruruki
4c02cb1277e08fa55bf4b5b23f68e66385c76995
[ "Apache-2.0" ]
90
2016-02-17T06:51:26.000Z
2022-01-23T15:16:21.000Z
ruruki/entities.py
terence-bigtt/ruruki
4c02cb1277e08fa55bf4b5b23f68e66385c76995
[ "Apache-2.0" ]
49
2016-02-17T05:10:19.000Z
2017-05-20T04:45:11.000Z
ruruki/entities.py
otherJL0/ruruki
4c02cb1277e08fa55bf4b5b23f68e66385c76995
[ "Apache-2.0" ]
25
2016-02-17T06:45:01.000Z
2022-02-26T11:39:10.000Z
""" Entities """ from ruruki import interfaces class Entity(interfaces.IEntity): """ Base class for containing the common methods used for the other entities like vertices and edges. .. note:: See :class:`~.IEntity` for doco. .. note:: The properties can be accessed as if they ...
31.760611
96
0.602234
e2bbac35647499a885278b21858940077cca3af5
3,466
py
Python
azuresite/settings.py
baronnavy/djangoapp
641868e74c27f430df3d8bdd5788c17915f86580
[ "MIT" ]
null
null
null
azuresite/settings.py
baronnavy/djangoapp
641868e74c27f430df3d8bdd5788c17915f86580
[ "MIT" ]
null
null
null
azuresite/settings.py
baronnavy/djangoapp
641868e74c27f430df3d8bdd5788c17915f86580
[ "MIT" ]
null
null
null
""" Django settings for azuresite project. Generated by 'django-admin startproject' using Django 2.1.2. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
26.257576
91
0.678015
5eca414b16b8dd26e80a2feb5bc457ead64b1bce
1,696
py
Python
divmachines/demo/classifiers/mf/movielens.py
DanielMorales9/FactorizationPyTorch
50f0644fdb4a903550fb3f1ba78fb9fb8649ceb1
[ "MIT" ]
4
2017-12-14T22:34:35.000Z
2019-07-12T17:18:34.000Z
divmachines/demo/classifiers/mf/movielens.py
DanielMorales9/FactorizationPyTorch
50f0644fdb4a903550fb3f1ba78fb9fb8649ceb1
[ "MIT" ]
null
null
null
divmachines/demo/classifiers/mf/movielens.py
DanielMorales9/FactorizationPyTorch
50f0644fdb4a903550fb3f1ba78fb9fb8649ceb1
[ "MIT" ]
1
2017-12-14T22:35:00.000Z
2017-12-14T22:35:00.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd from divmachines.classifiers import MF from divmachines.logging import TrainingLogger as TLogger cols = ['user', 'item', 'rating', 'timestamp'] train = pd.read_csv('../../../../data/ua.base', delimiter='\t', names=cols) # map_user = train.groupby(...
27.803279
80
0.618514