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
bb7c04ae2fc3b615c29c541ca3d198bb728ce9a1
2,868
py
Python
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/resources/types/customer_user_access_invitation.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/resources/types/customer_user_access_invitation.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/resources/types/customer_user_access_invitation.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.590909
114
0.667364
4ba49027a7617d6b4fbc25d3f36287d7f9952deb
3,074
py
Python
app.py
codernayeem/web-directories-discoverer
7513a59fbe33f4e0a377e2d37f67ae7d0ce4c308
[ "MIT" ]
1
2020-07-10T08:44:14.000Z
2020-07-10T08:44:14.000Z
app.py
codernayeem/web-directories-discoverer
7513a59fbe33f4e0a377e2d37f67ae7d0ce4c308
[ "MIT" ]
null
null
null
app.py
codernayeem/web-directories-discoverer
7513a59fbe33f4e0a377e2d37f67ae7d0ce4c308
[ "MIT" ]
null
null
null
import requests from os.path import join file_type_dict = { '1': 'dir_', '2': 'file_', '3': 'file_php_', '4': '(dir-file) ' } word_type_dict = { '1': 'all', '2': 'common', '3': 'crazy', '4': 'extra' } def get_ans(qs): while True: ans = input(qs) if ans.l...
27.945455
105
0.420299
8066c88d80723199425abc63c47807e5ee992971
561
py
Python
tests/test_priority.py
StefanBRas/todoist-taskwarrior
08dc877452d621a7c1ec3ed13de06d4c1fedb266
[ "MIT" ]
null
null
null
tests/test_priority.py
StefanBRas/todoist-taskwarrior
08dc877452d621a7c1ec3ed13de06d4c1fedb266
[ "MIT" ]
1
2021-03-11T04:56:02.000Z
2021-03-11T21:42:33.000Z
tests/test_priority.py
StefanBRas/todoist-taskwarrior
08dc877452d621a7c1ec3ed13de06d4c1fedb266
[ "MIT" ]
null
null
null
""" Priority Tests Test conversions between Todoist and Taskwarrior priorities. """ import pytest from todoist_taskwarrior import utils def test_priorities(): assert utils.ti_priority_to_tw(1) == None assert utils.ti_priority_to_tw(2) == 'L' assert utils.ti_priority_to_tw(3) == 'M' assert utils.ti_pr...
26.714286
60
0.709447
4b1951d9df2bda9a58b71890e7633aae9b44c161
6,676
py
Python
train.py
ycheng42/nerf_pl
a9e66a851907069f22423ca6ea4581e1657f9572
[ "MIT" ]
null
null
null
train.py
ycheng42/nerf_pl
a9e66a851907069f22423ca6ea4581e1657f9572
[ "MIT" ]
null
null
null
train.py
ycheng42/nerf_pl
a9e66a851907069f22423ca6ea4581e1657f9572
[ "MIT" ]
null
null
null
import os, sys from opt import get_opts import torch from collections import defaultdict from torch.utils.data import DataLoader from datasets import dataset_dict # models from models.nerf import Embedding, NeRF from models.rendering import render_rays # optimizer, scheduler, visualization from utils import * # los...
36.480874
92
0.546585
e9ce08531942bd2a91b23ef305616808f5160fa7
17,821
py
Python
sdk/python/pulumi_aws/appmesh/virtual_node.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/appmesh/virtual_node.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/appmesh/virtual_node.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Virtua...
65.040146
298
0.663319
f684aeb34dd6cf55e4aa35a12a26645851d03c3d
2,631
py
Python
sdk/core/azure-core/setup.py
cicovica/azure-sdk-for-python
cd8bed878f8a11d081358bf67400fb01031582b6
[ "MIT" ]
null
null
null
sdk/core/azure-core/setup.py
cicovica/azure-sdk-for-python
cd8bed878f8a11d081358bf67400fb01031582b6
[ "MIT" ]
null
null
null
sdk/core/azure-core/setup.py
cicovica/azure-sdk-for-python
cd8bed878f8a11d081358bf67400fb01031582b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
33.730769
88
0.596351
8d9ca0dff8f6497ba3d17a72fede976aaabfe8d6
6,995
py
Python
dynehr/model.py
jacobdeasy/dynamic-ehr
b01d5cd17b577c457a050daedc765939eaa114dc
[ "MIT" ]
2
2020-10-12T13:50:42.000Z
2021-05-18T07:03:31.000Z
dynehr/model.py
jacobdeasy/dynamic-ehr
b01d5cd17b577c457a050daedc765939eaa114dc
[ "MIT" ]
null
null
null
dynehr/model.py
jacobdeasy/dynamic-ehr
b01d5cd17b577c457a050daedc765939eaa114dc
[ "MIT" ]
1
2020-09-23T22:21:55.000Z
2020-09-23T22:21:55.000Z
"""Module containing the main model class.""" import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from math import e, pi from scipy.stats import truncnorm from torch.nn import Parameter from torch import tensor, Tensor from dynehr.lstms import LSTM from utils.helpers import get_devi...
27.53937
89
0.551108
a57a80f93dd8f40618eec2970a25c217a7264d8b
44
py
Python
source/pyzzle/recon/__init__.py
blackslender/x
5bd6b36fe01af7ecb1506e7f8e90ebc69b31780d
[ "MIT" ]
null
null
null
source/pyzzle/recon/__init__.py
blackslender/x
5bd6b36fe01af7ecb1506e7f8e90ebc69b31780d
[ "MIT" ]
null
null
null
source/pyzzle/recon/__init__.py
blackslender/x
5bd6b36fe01af7ecb1506e7f8e90ebc69b31780d
[ "MIT" ]
null
null
null
from .recon import init_recon_job, ReconJob
22
43
0.840909
28f34718b303b8e2eb1591dd3a0693cbcde10a59
810
py
Python
db.py
kamwithak/learn-complexity.herokuapp.com
b6db945553016dfe95cb35afda37abb90a298fd4
[ "MIT" ]
null
null
null
db.py
kamwithak/learn-complexity.herokuapp.com
b6db945553016dfe95cb35afda37abb90a298fd4
[ "MIT" ]
null
null
null
db.py
kamwithak/learn-complexity.herokuapp.com
b6db945553016dfe95cb35afda37abb90a298fd4
[ "MIT" ]
null
null
null
import sqlite3 import click from flask import current_app, g from flask.cli import with_appcontext def get_db(): if "db" not in g: g.db = sqlite3.connect( "sqlite_db", detect_types=sqlite3.PARSE_DECLTYPES ) g.db.row_factory = sqlite3.Row return g.db def close_db(e=None): ...
21.891892
61
0.660494
2c14c7da4e954f22f53925a63fd27b60f942ace3
3,066
py
Python
y2018/day04/day04.py
ammarnajjar/adventofcode
d8c6416cdad9ca4a254c4888422fa3ce29524685
[ "MIT" ]
null
null
null
y2018/day04/day04.py
ammarnajjar/adventofcode
d8c6416cdad9ca4a254c4888422fa3ce29524685
[ "MIT" ]
7
2019-11-20T10:04:49.000Z
2022-03-18T00:19:12.000Z
y2018/day04/day04.py
ammarnajjar/adventofcode
d8c6416cdad9ca4a254c4888422fa3ce29524685
[ "MIT" ]
null
null
null
import os from collections import defaultdict from datetime import datetime from typing import Dict from typing import List from typing import Tuple def order_chronologically(data_list: List[str]) -> List[str]: return sorted( data_list, key=lambda x: datetime.strptime(x[1:17], '%Y-%m-%d %H:%M'), ...
30.66
79
0.632094
ab32be4d92578608d6f0a15a7632f037b3f2fc2d
3,374
py
Python
src/Atlas/heli_opt_complex.py
swryan/Atlas
c5e8800d326d6442ceb4d0ab7910bbbda2ce4838
[ "Apache-2.0" ]
null
null
null
src/Atlas/heli_opt_complex.py
swryan/Atlas
c5e8800d326d6442ceb4d0ab7910bbbda2ce4838
[ "Apache-2.0" ]
null
null
null
src/Atlas/heli_opt_complex.py
swryan/Atlas
c5e8800d326d6442ceb4d0ab7910bbbda2ce4838
[ "Apache-2.0" ]
null
null
null
from openmdao.main.api import Assembly, set_as_top from openmdao.lib.datatypes.api import Float from openmdao.lib.drivers.api import SLSQPdriver try: from pyopt_driver import pyopt_driver except ImportError: pyopt_driver = None from openmdao.util.log import enable_trace # , disable_trace from numpy import p...
29.596491
70
0.645821
98d06a5c783c7c3ae6a4de2c0c452b279dffb9aa
804
py
Python
netbeans/assignee/total_bugs.py
imlegend19/MDSN-DevRank
bb1b71f72d2fb97044a62e8e0152dadb88de6411
[ "MIT" ]
null
null
null
netbeans/assignee/total_bugs.py
imlegend19/MDSN-DevRank
bb1b71f72d2fb97044a62e8e0152dadb88de6411
[ "MIT" ]
null
null
null
netbeans/assignee/total_bugs.py
imlegend19/MDSN-DevRank
bb1b71f72d2fb97044a62e8e0152dadb88de6411
[ "MIT" ]
null
null
null
import pickle from local_settings_netbeans import db with db: cur = db.cursor() cur.execute( "SELECT DISTINCT assigned_to FROM test_bugs_fixed_closed " "WHERE assigned_to IN (SELECT who FROM test_longdescs_fixed_closed) and year(creation_ts) between 2002 and 2005") assignees = [] for ...
28.714286
156
0.685323
6155a812936aaa5ac0d2d7e9cd44ac93367b3481
4,592
py
Python
meta.py
Maxence-Labesse/MLKit
7f8d92b5d3e025dc3719c3bbaf1f2e55afda5107
[ "MIT" ]
1
2022-01-11T14:13:22.000Z
2022-01-11T14:13:22.000Z
meta.py
Maxence-Labesse/MLKit
7f8d92b5d3e025dc3719c3bbaf1f2e55afda5107
[ "MIT" ]
null
null
null
meta.py
Maxence-Labesse/MLKit
7f8d92b5d3e025dc3719c3bbaf1f2e55afda5107
[ "MIT" ]
1
2020-07-10T09:51:22.000Z
2020-07-10T09:51:22.000Z
# Import from time import time from datetime import date from AutoMxL import * import pandas as pd from AutoMxL.Utils.Display import print_title1, print_dict from AutoMxL.Utils.Utils import random_from_dict from data.data_config import d_files from AutoMxL.param_config import n_epoch, learning_rate, batch_size, crit, o...
40.280702
119
0.609538
b4704990b1c826d80f70149ea10bb6e92b530ce0
11,193
py
Python
src/core/bamnet/ent_modules.py
siyangZhao/BAMnet
4c6222610c120a4a114daf40938219ea0ca57dc6
[ "Apache-2.0" ]
170
2019-03-06T16:08:22.000Z
2022-03-16T09:09:31.000Z
src/core/bamnet/ent_modules.py
YL1113/BAMnet
2f73e1c96dbc1643f1b37e3b5589ee8d9916a8e3
[ "Apache-2.0" ]
11
2019-05-24T06:19:03.000Z
2021-11-26T19:08:34.000Z
src/core/bamnet/ent_modules.py
YL1113/BAMnet
2f73e1c96dbc1643f1b37e3b5589ee8d9916a8e3
[ "Apache-2.0" ]
37
2019-06-03T02:49:15.000Z
2021-12-03T17:55:03.000Z
''' Created on Sep, 2018 @author: hugo ''' import numpy as np import torch import torch.nn as nn from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence import torch.nn.functional as F from .modules import SeqEncoder, SelfAttention_CoAtt, Attention from .utils import to_cuda INF = 1e20 VERY_SMALL...
49.746667
219
0.642902
54bf56cbaa6500439e9e26a8b685b6dd52abaaad
1,204
py
Python
scanner/plugins/cms/qibocms/qibocms_js_f_id_sqli.py
UgOrange/onlinetools
06205282965395e37fb3a7fed806682196ad9ccc
[ "MIT" ]
1,207
2018-01-31T06:36:34.000Z
2022-03-31T07:35:35.000Z
scanner/plugins/cms/qibocms/qibocms_js_f_id_sqli.py
UgOrange/onlinetools
06205282965395e37fb3a7fed806682196ad9ccc
[ "MIT" ]
21
2018-07-30T03:01:49.000Z
2022-03-28T08:20:39.000Z
scanner/plugins/cms/qibocms/qibocms_js_f_id_sqli.py
UgOrange/onlinetools
06205282965395e37fb3a7fed806682196ad9ccc
[ "MIT" ]
310
2018-02-22T01:23:20.000Z
2022-03-28T08:51:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: qibocms news/js.php文件参数f_idSQL注入 referer: http://www.wooyun.org/bugs/wooyun-2014-075317 author: Lucifer description: 文件/news/js.php中,参数f_id存在SQL注入。 ''' import sys import requests class qibocms_js_f_id_sqli_BaseVerify: def __init__(self, url): self.u...
34.4
223
0.647841
e3b1b536afba592a87c99ccbe30574f382de6676
1,771
py
Python
gbpservice/neutron/services/grouppolicy/drivers/extensions/aim_mapping_extension_driver.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
gbpservice/neutron/services/grouppolicy/drivers/extensions/aim_mapping_extension_driver.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
gbpservice/neutron/services/grouppolicy/drivers/extensions/aim_mapping_extension_driver.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.42
78
0.728402
5bedb0b5d6e4acbb2c6e26d715ba802d2ea48d64
4,580
py
Python
tomato.py
au5ton/tomato
324701c1ca89eaf51d1bea8156f7db7334a36211
[ "MIT" ]
null
null
null
tomato.py
au5ton/tomato
324701c1ca89eaf51d1bea8156f7db7334a36211
[ "MIT" ]
null
null
null
tomato.py
au5ton/tomato
324701c1ca89eaf51d1bea8156f7db7334a36211
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) import requests import os import os.path import re import argparse from time import sleep from selenium import webdriver import selenium.webdriver.support.ui as ui from selenium.webdriver.common.keys import Keys import platfor...
39.482759
143
0.74083
7a45211e8925177a09c3c169308916367f818d58
3,197
py
Python
tests/test_namespace.py
digitalsatori/cubes
140133e8c2e3f2ff60631cc3ebc9966d16c1655e
[ "MIT" ]
1,020
2015-01-02T03:05:26.000Z
2022-02-12T18:48:51.000Z
tests/test_namespace.py
zshwuhan/cubes
6d83f04acb34eeb0b904dd1af0e97eda6621bf6c
[ "MIT" ]
259
2015-01-02T22:35:14.000Z
2021-09-02T04:20:41.000Z
tests/test_namespace.py
zshwuhan/cubes
6d83f04acb34eeb0b904dd1af0e97eda6621bf6c
[ "MIT" ]
288
2015-01-08T00:42:26.000Z
2022-03-31T17:25:10.000Z
import unittest from cubes.namespace import Namespace # from .common import CubesTestCaseBase class NamespaceTestCase(unittest.TestCase): def test_create(self): ns = Namespace() ns.create_namespace("slicer") self.assertIn("slicer", ns.namespaces) self.assertIsInstance(ns.namespaces[...
37.174419
81
0.639037
72c3f60d99675915eb1fefadad0b7de2d22445e6
15,203
py
Python
platform/windows/detect.py
ericmccarthy7/godot
42f04cbc1a59772a5f7eca9c6847fa349b23a70e
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
5
2018-08-18T15:06:49.000Z
2021-12-12T10:16:09.000Z
platform/windows/detect.py
ericmccarthy7/godot
42f04cbc1a59772a5f7eca9c6847fa349b23a70e
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
18
2018-08-18T16:27:27.000Z
2021-12-12T13:31:33.000Z
platform/windows/detect.py
ericmccarthy7/godot
42f04cbc1a59772a5f7eca9c6847fa349b23a70e
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
1
2020-08-13T18:03:24.000Z
2020-08-13T18:03:24.000Z
import methods import os def is_active(): return True def get_name(): return "Windows" def can_build(): if (os.name == "nt"): # Building natively on Windows # If VCINSTALLDIR is set in the OS environ, use traditional Godot logic to set up MSVC if (os.getenv("VCINSTALLDIR")): # ...
39.284238
330
0.60021
f8c0dcbe0db7df65069f175537bc73babfc15c04
2,751
py
Python
src/medford.py
infispiel/MEDFORD
a5f1523be53690aa20dae19add44c27ad1a254a4
[ "MIT" ]
3
2021-02-24T17:10:10.000Z
2021-05-07T15:32:16.000Z
src/medford.py
infispiel/MEDFORD
a5f1523be53690aa20dae19add44c27ad1a254a4
[ "MIT" ]
4
2021-10-08T17:03:26.000Z
2022-01-21T14:43:19.000Z
src/medford.py
infispiel/MEDFORD
a5f1523be53690aa20dae19add44c27ad1a254a4
[ "MIT" ]
null
null
null
from medford_detailparser import * from medford_detail import * from medford_models import BCODMO, Entity from medford_BagIt import runBagitMode, BagIt import json import argparse from enum import Enum, auto class MFDMode(Enum) : OTHER = 'OTHER' BCODMO = 'BCODMO' BAGIT = 'BAGIT' def __str__(self): ...
36.68
200
0.668121
629b50479c0720022e4fb0097f8e9a3847140505
710
py
Python
autograder-master/setup.py
Diana1320622/AILabs
315a6f4b8f8dd60e4f53d348e06e23b4d827d179
[ "MIT" ]
null
null
null
autograder-master/setup.py
Diana1320622/AILabs
315a6f4b8f8dd60e4f53d348e06e23b4d827d179
[ "MIT" ]
null
null
null
autograder-master/setup.py
Diana1320622/AILabs
315a6f4b8f8dd60e4f53d348e06e23b4d827d179
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='autograder', version='0.1', description='Autograder for programming projects', url='http://github.com/rhomeister/autograder', author='Ruben Stranders', author_email='r.stranders@gmail.com', license='MIT', packages=['autogr...
26.296296
58
0.508451
a3c1fa0b66007b2ddfb9e06b74406802018a8fea
227
py
Python
jp.atcoder/abc215/abc215_c/30948214.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc215/abc215_c/30948214.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc215/abc215_c/30948214.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import itertools def main() -> None: s, k = input().split() k = int(k) a = sorted(set(map(lambda x: "".join(x), itertools.permutations(s)))) print(a[k - 1]) if __name__ == "__main__": main()
17.461538
74
0.528634
116b69777cb64b4639ff188121fd40ee95abb685
16,195
py
Python
magenta/models/rl_tuner/note_rnn_loader.py
jopdorp/classical-polyphony-rnn
8fcdce4c974b1c5a463cbd30ea85bdf98d4f8bde
[ "Apache-2.0" ]
null
null
null
magenta/models/rl_tuner/note_rnn_loader.py
jopdorp/classical-polyphony-rnn
8fcdce4c974b1c5a463cbd30ea85bdf98d4f8bde
[ "Apache-2.0" ]
null
null
null
magenta/models/rl_tuner/note_rnn_loader.py
jopdorp/classical-polyphony-rnn
8fcdce4c974b1c5a463cbd30ea85bdf98d4f8bde
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
38.467933
80
0.656314
24a8501ada933104d79b8353d10158cd47023268
2,085
py
Python
openstack/compute/v2/server_diagnostics.py
NeCTAR-RC/openstacksdk
60a24f6c4717a1f9a0e545c9a07e68afaedc5a27
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
openstack/compute/v2/server_diagnostics.py
NeCTAR-RC/openstacksdk
60a24f6c4717a1f9a0e545c9a07e68afaedc5a27
[ "Apache-2.0" ]
5
2018-05-25T16:54:23.000Z
2021-11-21T02:27:16.000Z
openstack/compute/v2/server_diagnostics.py
NeCTAR-RC/openstacksdk
60a24f6c4717a1f9a0e545c9a07e68afaedc5a27
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.000Z
# 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...
39.339623
75
0.716067
3ec2f6763150555ec93e7b60b2f171cc50d2b4cd
2,167
py
Python
example/tests/test_performance.py
morenoh149/django-rest-framework-json-api
aea98ccc4f7bb9bad25d43d5631641b3671de53b
[ "BSD-2-Clause" ]
null
null
null
example/tests/test_performance.py
morenoh149/django-rest-framework-json-api
aea98ccc4f7bb9bad25d43d5631641b3671de53b
[ "BSD-2-Clause" ]
null
null
null
example/tests/test_performance.py
morenoh149/django-rest-framework-json-api
aea98ccc4f7bb9bad25d43d5631641b3671de53b
[ "BSD-2-Clause" ]
2
2019-05-15T12:04:16.000Z
2019-05-21T09:37:38.000Z
from django.utils import timezone from rest_framework.test import APITestCase from example.factories import CommentFactory from example.models import Author, Blog, Comment, Entry class PerformanceTestCase(APITestCase): def setUp(self): self.author = Author.objects.create(name='Super powerful superhero', ...
37.362069
99
0.624827
7cb3823a5a44579c9b4f754a8e29cc336df1a879
157
py
Python
spladder/__init__.py
ratschlab/spladder
8175c054a9b8fe7ae509f34fe5fb4d90a8cbe151
[ "BSD-3-Clause" ]
96
2015-03-27T01:06:09.000Z
2022-03-20T05:56:54.000Z
spladder/__init__.py
ratschlab/spladder
8175c054a9b8fe7ae509f34fe5fb4d90a8cbe151
[ "BSD-3-Clause" ]
160
2015-01-20T20:45:48.000Z
2022-03-31T14:48:05.000Z
spladder/__init__.py
ratschlab/spladder
8175c054a9b8fe7ae509f34fe5fb4d90a8cbe151
[ "BSD-3-Clause" ]
42
2015-03-27T20:49:15.000Z
2021-12-21T12:39:42.000Z
# -*- coding: utf-8 -*- """Top-level package for spladder.""" __author__ = """Andre Kahles""" __email__ = 'andre.kahles@inf.ethz.ch' __version__ = '2.4.4'
19.625
38
0.636943
a87bf86f38b9e0fb3529ea16a67b83d398ec10d7
1,117
py
Python
api/waitlist/xup_history.py
AdoEditor/tdf-waitlist
9ed20497c23a2d70ffa90819d01358828c35a55e
[ "MIT" ]
null
null
null
api/waitlist/xup_history.py
AdoEditor/tdf-waitlist
9ed20497c23a2d70ffa90819d01358828c35a55e
[ "MIT" ]
null
null
null
api/waitlist/xup_history.py
AdoEditor/tdf-waitlist
9ed20497c23a2d70ffa90819d01358828c35a55e
[ "MIT" ]
null
null
null
from flask import Blueprint, g from . import auth from .webutil import ViewReturn from .data.database import FitHistory, Fitting, ImplantSet from .data.evedb import name_of bp = Blueprint("xup_history", __name__) @bp.route("/api/history/xup") @auth.login_required @auth.select_character(override_permission="fit-histo...
28.641026
82
0.566697
f4c51804368cebee872b808f6237eca9c94a8edd
18,454
py
Python
sdks/python/apache_beam/coders/coders_test_common.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
2
2020-06-25T00:47:43.000Z
2020-08-24T14:25:13.000Z
sdks/python/apache_beam/coders/coders_test_common.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
10
2017-07-20T13:38:13.000Z
2017-08-03T15:49:24.000Z
sdks/python/apache_beam/coders/coders_test_common.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
2
2020-06-22T11:17:44.000Z
2020-11-04T04:11:59.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
37.815574
80
0.647231
0d0034660c9ff9a2a0fbc2ade1e8e796b7ed5175
2,592
py
Python
cinderella/parsers/post.py
benkajaja/Cinderella
64bf42e69583192ffa716a0e67c54c945aa5f6de
[ "Apache-2.0" ]
null
null
null
cinderella/parsers/post.py
benkajaja/Cinderella
64bf42e69583192ffa716a0e67c54c945aa5f6de
[ "Apache-2.0" ]
null
null
null
cinderella/parsers/post.py
benkajaja/Cinderella
64bf42e69583192ffa716a0e67c54c945aa5f6de
[ "Apache-2.0" ]
null
null
null
import pandas as pd from datetime import datetime from decimal import Decimal from cinderella.datatypes import Transactions, StatementCategory from cinderella.parsers.base import StatementParser class TaiwanPost(StatementParser): identifier = "post" def __init__(self): super().__init__() sel...
36.507042
89
0.596451
23eb25b1d1dcca9122e3d933482f6078cc50832a
5,276
py
Python
lib/nms/setup_linux.py
ZucchiniTang/Deformable-ConvNets
e91c3aee8284abefbe87007d41fa0c801e179bd5
[ "MIT" ]
null
null
null
lib/nms/setup_linux.py
ZucchiniTang/Deformable-ConvNets
e91c3aee8284abefbe87007d41fa0c801e179bd5
[ "MIT" ]
null
null
null
lib/nms/setup_linux.py
ZucchiniTang/Deformable-ConvNets
e91c3aee8284abefbe87007d41fa0c801e179bd5
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Deformable Convolutional Networks # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Modified from py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn) # -------------------------------------------------------...
36.895105
90
0.625284
a2c9fa875fc1b309f173e2162ae7985e5f2f42c7
2,939
py
Python
bot.py
blbudima/tilt-bot
9b0e15724216bc03c7ddc2b2313382c8f733fd47
[ "MIT" ]
null
null
null
bot.py
blbudima/tilt-bot
9b0e15724216bc03c7ddc2b2313382c8f733fd47
[ "MIT" ]
null
null
null
bot.py
blbudima/tilt-bot
9b0e15724216bc03c7ddc2b2313382c8f733fd47
[ "MIT" ]
null
null
null
# DON'T FORGET TO ENABLE THE VIRTUAL ENVIRONMENT VIA: # .\bot-env\Scripts\activate.bat # DON'T FORGET TO RESET RIOT API TOKEN # https://developer.riotgames.com/ # SET THE TOKEN AS AN ENVIRONMENT VARIABLE NAMED "RIOT_API_KEY" # ON WINDOWS, RUN BOT THROUGH POWERSHELL VIA: py -3 bot.py import discord import config imp...
31.602151
110
0.695475
d1f0c2a30f76dccb8376ef866e6e2746a6fd0fb0
2,558
py
Python
caffe/python/caffe/test/test_adaptive_weighting_loss_layer.py
gvvynplaine/training_toolbox_caffe
789ff8ddf6031802e51e45f6ad80c549079dc9df
[ "Apache-2.0" ]
3
2021-07-21T10:39:48.000Z
2021-09-21T20:49:07.000Z
caffe/python/caffe/test/test_adaptive_weighting_loss_layer.py
gvvynplaine/training_toolbox_caffe
789ff8ddf6031802e51e45f6ad80c549079dc9df
[ "Apache-2.0" ]
null
null
null
caffe/python/caffe/test/test_adaptive_weighting_loss_layer.py
gvvynplaine/training_toolbox_caffe
789ff8ddf6031802e51e45f6ad80c549079dc9df
[ "Apache-2.0" ]
2
2020-12-07T03:16:05.000Z
2021-03-23T00:57:15.000Z
# pylint: skip-file """ Copyright (c) 2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
39.96875
101
0.605942
11c298662f8c621d5ab79b85c56500d0bebafd62
546
py
Python
setup.py
knavsaria/dynodoc
f0594990b447022ab8ba8c0d305f7ea982708860
[ "MIT" ]
null
null
null
setup.py
knavsaria/dynodoc
f0594990b447022ab8ba8c0d305f7ea982708860
[ "MIT" ]
null
null
null
setup.py
knavsaria/dynodoc
f0594990b447022ab8ba8c0d305f7ea982708860
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup ( name="dynodoc", version="0.1", description='DynamoDB CLI tool that uses the document interface', url='http://github.com/knavsaria/dynodoc', download_url='https://github.com/knavsaria/dynodoc/archive/0.1.tar.gz', author='Keeran Navsaria', a...
27.3
75
0.653846
8ed566be899f197058bf112a94e07e9853974bbf
40,989
py
Python
VyPR/Specifications/constraints.py
SNTSVV/VyPR-iCFTL
8e6b170821fb4dc1278094d2ed270e5fd619c193
[ "Apache-2.0" ]
null
null
null
VyPR/Specifications/constraints.py
SNTSVV/VyPR-iCFTL
8e6b170821fb4dc1278094d2ed270e5fd619c193
[ "Apache-2.0" ]
null
null
null
VyPR/Specifications/constraints.py
SNTSVV/VyPR-iCFTL
8e6b170821fb4dc1278094d2ed270e5fd619c193
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2021 University of Luxembourg Developed by Dr. Joshua Heneage Dawes. Module containing classes to represent constraints used in an iCFTL specification. For example, in the specification forall q in changes(x) : q(x) < 10 q(x) < 10 is a constraint and is represented using the classes in this modul...
36.761435
133
0.679914
bc7b9a85b2d135cd2e20ca08de73e01787e1e93d
1,822
py
Python
flax/types/unfinished_block.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
174
2021-06-16T17:49:22.000Z
2022-03-17T03:03:17.000Z
flax/types/unfinished_block.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
49
2021-06-17T14:10:53.000Z
2022-01-31T11:04:21.000Z
flax/types/unfinished_block.py
ReadyNeutron/shitcoin-blockchain
80add4e545ad22a317244f7fd958d118a5a75c5d
[ "Apache-2.0" ]
80
2021-06-17T14:23:31.000Z
2022-02-24T05:52:47.000Z
from dataclasses import dataclass from typing import List, Optional from flax.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from flax.types.blockchain_format.program import SerializedProgram from flax.types.blockchain_format.reward_chain_block import RewardChainBlockUnfinish...
42.372093
104
0.791438
978bfe491872bcb47a45b6f8ee73fcf16e77b300
2,979
py
Python
ocean_lib/web3_internal/transactions.py
oceanprotocol/ocean.py
0daa7bf22e53a9a13efa2400d16e1991731cfd2c
[ "Apache-2.0" ]
89
2020-10-27T08:50:47.000Z
2022-03-21T08:42:23.000Z
ocean_lib/web3_internal/transactions.py
biroedonker/ocean.py
68d38cfe6001f07e5102669630c383f5d659a9a8
[ "Apache-2.0" ]
480
2020-10-30T07:56:39.000Z
2022-03-31T20:01:27.000Z
ocean_lib/web3_internal/transactions.py
biroedonker/ocean.py
68d38cfe6001f07e5102669630c383f5d659a9a8
[ "Apache-2.0" ]
50
2020-11-07T15:01:02.000Z
2022-03-06T05:49:54.000Z
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # from typing import Optional, Union from enforce_typing import enforce_types from eth_account.messages import SignableMessage from ocean_lib.web3_internal.constants import BLOCK_NUMBER_POLL_INTERVAL from ocean_lib.web3_internal.wallet ...
32.736264
86
0.732796
52ea2c63bf9729a6da8b9a2828cb094225e7649f
11,786
py
Python
tests/test_kdb.py
ghaughian/kdb-doc-manager
989e21e9a1be80b1cc991d2dbb453e30ad20db70
[ "Apache-2.0" ]
1
2019-05-02T14:40:15.000Z
2019-05-02T14:40:15.000Z
tests/test_kdb.py
ghaughian/kdb-doc-manager
989e21e9a1be80b1cc991d2dbb453e30ad20db70
[ "Apache-2.0" ]
null
null
null
tests/test_kdb.py
ghaughian/kdb-doc-manager
989e21e9a1be80b1cc991d2dbb453e30ad20db70
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # Copyright 2013-2014 MongoDB, 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 ...
38.769737
484
0.583828
8bd91b71a6ad82c010f685fba40d3e4db4a40478
23,287
py
Python
python/cudf/cudf/dataframe/index.py
okoskinen/cudf
289fc3e29ba0c58fada3a3e998bd193bbca47edd
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/dataframe/index.py
okoskinen/cudf
289fc3e29ba0c58fada3a3e998bd193bbca47edd
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/dataframe/index.py
okoskinen/cudf
289fc3e29ba0c58fada3a3e998bd193bbca47edd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. from __future__ import division, print_function import pickle from copy import copy, deepcopy import numpy as np import pandas as pd from numba.cuda.cudadrv.devicearray import DeviceNDArray import nvstrings from librmm_cffi import librmm as rmm import cudf import cudf.bind...
27.989183
80
0.594366
f43bec8358669f7090ff3ebc99c1b92215e56635
2,084
py
Python
example/example/settings.py
TargetHolding/django-ladon
3e454e4e3a6487a5a90fe35894b9a1fe7e4c47d5
[ "MIT" ]
2
2015-10-20T05:54:49.000Z
2017-03-22T17:39:28.000Z
example/example/settings.py
TargetHolding/django-ladon
3e454e4e3a6487a5a90fe35894b9a1fe7e4c47d5
[ "MIT" ]
null
null
null
example/example/settings.py
TargetHolding/django-ladon
3e454e4e3a6487a5a90fe35894b9a1fe7e4c47d5
[ "MIT" ]
null
null
null
""" Django settings for example project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) im...
23.954023
71
0.732726
ca6bb02550ea56037df04acfd6ec66d59d777f85
2,154
py
Python
potterscript/spells.py
madreains/OrkoHunter
ab8b9e3e9323a4a26a12f6d057f953f9a685f724
[ "MIT" ]
16
2016-05-09T06:24:38.000Z
2021-06-29T02:28:05.000Z
potterscript/spells.py
madreains/OrkoHunter
ab8b9e3e9323a4a26a12f6d057f953f9a685f724
[ "MIT" ]
3
2016-05-09T20:50:36.000Z
2017-05-29T11:02:19.000Z
potterscript/spells.py
madreains/OrkoHunter
ab8b9e3e9323a4a26a12f6d057f953f9a685f724
[ "MIT" ]
3
2016-05-09T20:03:05.000Z
2020-11-23T08:29:00.000Z
import random def gen_random(): index = random.randint(0, len(spells) - 1) return spells[index] spells = ('Accio', 'Aguamenti', 'Alohomora', 'Anapneo', 'Aparecium', 'Avada Kedavra', 'Avis', 'Capacious Extremis', 'Cave Inimicum', ...
23.16129
46
0.41922
45ca45d9bf7d8bf00fa945c0610794f4e0248b95
4,806
py
Python
flask/testsuite/signals.py
coolinzhong/flask
29f3a1ac237f75ca9f330a3c285a5a4d12b0dadb
[ "BSD-3-Clause" ]
33
2015-03-17T16:04:16.000Z
2020-10-26T06:12:30.000Z
flask/testsuite/signals.py
tladudtn/flask
35f106643c41387a4304b4fe95729c678f429c23
[ "BSD-3-Clause" ]
19
2015-03-03T07:56:39.000Z
2020-01-22T15:06:38.000Z
flask/testsuite/signals.py
tladudtn/flask
35f106643c41387a4304b4fe95729c678f429c23
[ "BSD-3-Clause" ]
64
2015-01-19T06:06:00.000Z
2022-01-20T01:09:35.000Z
# -*- coding: utf-8 -*- """ flask.testsuite.signals ~~~~~~~~~~~~~~~~~~~~~~~ Signalling. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import flask import unittest from flask.testsuite import FlaskTestCase class SignalsTestCase(FlaskTestCase): def ...
31.207792
76
0.584062
72eb32c963e2a6ca7f62d4f356945631ea7c35e6
1,803
py
Python
example/autoEncoder/python_example.py
Tyill/skynet
1a34fc27b523345603d4fb88570f44fbbbef1b80
[ "MIT" ]
64
2018-10-14T16:36:05.000Z
2021-03-22T10:20:07.000Z
example/autoEncoder/python_example.py
Tyill/sunnet
1a34fc27b523345603d4fb88570f44fbbbef1b80
[ "MIT" ]
4
2018-10-15T05:52:01.000Z
2020-04-01T14:41:54.000Z
example/autoEncoder/python_example.py
Tyill/sunnet
1a34fc27b523345603d4fb88570f44fbbbef1b80
[ "MIT" ]
20
2018-10-14T18:29:15.000Z
2020-10-22T23:03:59.000Z
import os from libsunnetimport* import numpy as np import imageio import random import ctypes import datetime # create net net = snNet.Net() net.addNode('In', snOperator.Input(), 'FC1') \ .addNode('FC1', snOperator.FullyConnected(256), 'FC2') \ .addNode('FC2', snOperator.FullyConnected(128), 'FC3') \ .addN...
26.910448
93
0.632834
6ac715cf3ad5a38eceb0a835c2fb44d490a5d142
8,019
py
Python
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/corpus/reader/senseval.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/corpus/reader/senseval.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/corpus/reader/senseval.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Natural Language Toolkit: Senseval 2 Corpus Reader # # Copyright (C) 2001-2015 NLTK Project # Author: Trevor Cohn <tacohn@cs.mu.oz.au> # Steven Bird <stevenbird1@gmail.com> (modifications) # URL: <http://nltk.org/> # For license information, see LICENSE.TXT """ Read from the Senseval 2 Corpus. SE...
39.69802
79
0.509914
40b1b5e9b413934848b6a1a2dbe2f3280fee6a35
1,984
py
Python
battery/batteryestimator.py
zoltantorok/solaredge
673fc87896be70cf7f63f63be1e2049b1b8d0de3
[ "MIT" ]
1
2020-04-18T05:43:49.000Z
2020-04-18T05:43:49.000Z
battery/batteryestimator.py
zoltantorok/solaredge
673fc87896be70cf7f63f63be1e2049b1b8d0de3
[ "MIT" ]
null
null
null
battery/batteryestimator.py
zoltantorok/solaredge
673fc87896be70cf7f63f63be1e2049b1b8d0de3
[ "MIT" ]
null
null
null
''' Created on 29.10.2019 @author: Zoli ''' class BatteryEstimator(object): ''' classdocs ''' def __init__(self, battery): ''' Constructor ''' self.battery = battery def accumulateFeedInEnergy(self, energy, energyTypes): ''' Accumulate energy ...
30.060606
146
0.558468
f2e193cf858b8a2abe9dd33769ab88a7b497ef63
22,384
py
Python
venv/Lib/site-packages/sklearn/dummy.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/dummy.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/sklearn/dummy.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
# Author: Mathieu Blondel <mathieu@mblondel.org> # Arnaud Joly <a.joly@ulg.ac.be> # Maheshakya Wijewardena <maheshakya.10@cse.mrt.ac.lk> # License: BSD 3 clause import warnings import numpy as np import scipy.sparse as sp from .base import BaseEstimator, ClassifierMixin, RegressorMixin from ...
37.059603
80
0.55973
f8cb5b3354a489560ff3e30d1a77f32bcea571a9
23
py
Python
cycontext/_version.py
medspacy/cycontext
791f14bc611b20b59833b406e5106d6fe014830d
[ "MIT" ]
6
2020-05-08T20:04:31.000Z
2021-04-29T13:24:34.000Z
cycontext/_version.py
medspacy/cycontext
791f14bc611b20b59833b406e5106d6fe014830d
[ "MIT" ]
7
2020-03-19T15:58:27.000Z
2020-10-06T21:56:24.000Z
cycontext/_version.py
medspacy/cycontext
791f14bc611b20b59833b406e5106d6fe014830d
[ "MIT" ]
2
2020-04-26T00:51:43.000Z
2020-07-09T18:30:53.000Z
__version__ = '1.0.3.3'
23
23
0.652174
6be09ef9a92e8f214574be637a297138a85bd1e1
1,103
py
Python
6_google_trace/ann/keras_first_network.py
nguyenthieu95/machine_learning
40595a003815445a7a9fef7e8925f71d19f8fa30
[ "MIT" ]
1
2017-12-30T20:10:07.000Z
2017-12-30T20:10:07.000Z
6_google_trace/ann/keras_first_network.py
ThieuNv/machine_learning
40595a003815445a7a9fef7e8925f71d19f8fa30
[ "MIT" ]
null
null
null
6_google_trace/ann/keras_first_network.py
ThieuNv/machine_learning
40595a003815445a7a9fef7e8925f71d19f8fa30
[ "MIT" ]
1
2019-12-23T15:30:16.000Z
2019-12-23T15:30:16.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Nov 17 09:33:25 2017 @author: thieunv keras_first_network.py """ from keras.models import Sequential from keras.layers import Dense import numpy # fix random seed for reproducibility numpy.random.seed(7) # load pima indians dataset dataset = numpy....
23.468085
85
0.708069
90ef1f7b80198de847ff458ae8af12366f12c532
41
py
Python
utils/mappings/__init__.py
SoulSen/CTSearcher
23f7fdef97f51e3f4592b92a2d3b1c365c0f547d
[ "MIT" ]
null
null
null
utils/mappings/__init__.py
SoulSen/CTSearcher
23f7fdef97f51e3f4592b92a2d3b1c365c0f547d
[ "MIT" ]
null
null
null
utils/mappings/__init__.py
SoulSen/CTSearcher
23f7fdef97f51e3f4592b92a2d3b1c365c0f547d
[ "MIT" ]
null
null
null
from .MappingViewer import MappingViewer
20.5
40
0.878049
f39c53e1265eb41535b088b1d9958c37721b1521
5,089
py
Python
deslib/tests/dcs/test_mcb.py
Autumnn/DESlib
1dd461e6ac2bf55760751fa4e158a4113344b278
[ "BSD-3-Clause" ]
null
null
null
deslib/tests/dcs/test_mcb.py
Autumnn/DESlib
1dd461e6ac2bf55760751fa4e158a4113344b278
[ "BSD-3-Clause" ]
null
null
null
deslib/tests/dcs/test_mcb.py
Autumnn/DESlib
1dd461e6ac2bf55760751fa4e158a4113344b278
[ "BSD-3-Clause" ]
null
null
null
import pytest from sklearn.linear_model import Perceptron from deslib.dcs.mcb import MCB from deslib.tests.examples_test import * # ex1 the similarity will always be 100% bks_dsel_ex1 = np.hstack((np.hstack((np.zeros((15, 1)), np.ones((15, 1)))), np.zeros((15, 1)))) # Change a bit to check if the filtering by similar...
40.712
109
0.683828
92019c04a196901100f4c287608f011b2e9edb8d
2,750
py
Python
bash/collect_stats_eud.py
coastalcph/HIT-SCIR-CoNLL2019
60258a81a2db91ca012be4486ea8475376756374
[ "Apache-2.0" ]
5
2020-05-27T14:18:50.000Z
2021-05-28T05:07:19.000Z
bash/collect_stats_eud.py
coastalcph/HIT-SCIR-CoNLL2019
60258a81a2db91ca012be4486ea8475376756374
[ "Apache-2.0" ]
1
2020-05-25T13:56:00.000Z
2020-05-25T13:56:00.000Z
bash/collect_stats_eud.py
coastalcph/HIT-SCIR-CoNLL2019
60258a81a2db91ca012be4486ea8475376756374
[ "Apache-2.0" ]
1
2020-06-02T16:50:04.000Z
2020-06-02T16:50:04.000Z
import os,sys #run: # python collect_stats_eud.py data_dir # where data dir contains the UD directory eud_dir=sys.argv[1] langs = os.listdir(eud_dir) stats={} bins = [(1,5),(5,10),(10,20), (20,50),(50,100),(100,500),(500,1000)] bins_dict = {} for abin in bins: bins_dict[str(abin)] = list(range(abin[0],abin[1])) ...
35.714286
77
0.525091
ee4409881f109f2078c315f82a984364e2f71744
280
py
Python
src/main.py
JackEMiller/ClubForum
0ee68bb3aa453433f460257e07bfcf85f0f908de
[ "MIT" ]
null
null
null
src/main.py
JackEMiller/ClubForum
0ee68bb3aa453433f460257e07bfcf85f0f908de
[ "MIT" ]
null
null
null
src/main.py
JackEMiller/ClubForum
0ee68bb3aa453433f460257e07bfcf85f0f908de
[ "MIT" ]
null
null
null
from models import create_app try: import views except: from src import views app = create_app() app.register_blueprint(views.app) if __name__ == "__main__": app = create_app() app.register_blueprint(views.app) app.run(host='0.0.0.0',port=5000,debug=True)
17.5
48
0.703571
d7ddeefe068337bfebf42642d4bfcd045ee1877d
1,409
py
Python
src/web/schools/migrations/0004_auto_20160508_1059.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
5
2018-03-08T17:22:27.000Z
2018-03-11T14:20:53.000Z
src/web/schools/migrations/0004_auto_20160508_1059.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
263
2018-03-08T18:05:12.000Z
2022-03-11T23:26:20.000Z
src/web/schools/migrations/0004_auto_20160508_1059.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
6
2018-03-12T19:48:19.000Z
2022-01-14T04:58:52.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('schools', '0003_school_full_name'), ] operations = [ migrations.CreateModel( name='Parallel', fields...
37.078947
178
0.609652
eb81aadbfa75a952cb906b080db0d00248015c5f
4,317
py
Python
pychip/disassembler/disassembler.py
krskibin/pyChip8
517f4514fb49242acd8fb089c7de0ed62252d422
[ "MIT" ]
3
2018-10-16T09:51:24.000Z
2020-08-02T14:33:35.000Z
pychip/disassembler/disassembler.py
krskibin/pyChip8
517f4514fb49242acd8fb089c7de0ed62252d422
[ "MIT" ]
null
null
null
pychip/disassembler/disassembler.py
krskibin/pyChip8
517f4514fb49242acd8fb089c7de0ed62252d422
[ "MIT" ]
null
null
null
from .opcode_table import OPCODE_TABLE class Disassembler: def __init__(self, memory): self.memory: bytearray = memory self.pc: int = 0x0 self.args_func_table: dict = { 0x0000: self.get_nnn_args, 0x00E0: self.get_no_args, 0x00EE: self.get_no_args, ...
29.772414
84
0.560111
96fb82e8f8a5019f93643d2bbc8a45fef61cd199
21,869
py
Python
atak.py
F-Society-Freaks/atak-layer7
96d087e8bf75271fe2a9faae60d23ed9938c9c4f
[ "MIT" ]
1
2020-07-12T12:57:10.000Z
2020-07-12T12:57:10.000Z
atak.py
AtakBey/atak-layer7
96d087e8bf75271fe2a9faae60d23ed9938c9c4f
[ "MIT" ]
null
null
null
atak.py
AtakBey/atak-layer7
96d087e8bf75271fe2a9faae60d23ed9938c9c4f
[ "MIT" ]
2
2020-07-08T20:23:18.000Z
2020-07-12T12:57:12.000Z
#!/usr/bin/env python from multiprocessing import Process, Manager import urlparse, ssl import sys, getopt, random, time if sys.version_info < (3,0): import httplib HTTPCLIENT = httplib else: import http.client HTTPCLIENT = http.client DEBUG = True METHOD_GET = "\x67\x65\x74" METHOD_POST = "\x70\x6...
47.853392
611
0.618684
70048c27efd972e782d65da69997646b698672e8
1,435
py
Python
privex/coin_handlers/base/exceptions.py
Privex/python-coinhandlers
b24c0c3f7d81cedefd52a5837a371cfef2f83e97
[ "X11" ]
2
2019-10-25T13:58:10.000Z
2020-02-13T16:34:05.000Z
privex/coin_handlers/base/exceptions.py
Privex/python-coinhandlers
b24c0c3f7d81cedefd52a5837a371cfef2f83e97
[ "X11" ]
null
null
null
privex/coin_handlers/base/exceptions.py
Privex/python-coinhandlers
b24c0c3f7d81cedefd52a5837a371cfef2f83e97
[ "X11" ]
null
null
null
class CoinHandlerException(Exception): """Base exception for all Coin handler exceptions to inherit""" pass class HandlerNotFound(CoinHandlerException): """A requested handler does not exist""" pass class TokenNotFound(CoinHandlerException): """The token/coin requested doesn't exist""" pass ...
27.596154
116
0.738676
beb0d54a24bb5aa31c5ddd6adaf0d401adb67f72
102
py
Python
src/fundraising/apps.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
src/fundraising/apps.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
7
2021-03-19T10:46:09.000Z
2022-03-12T00:28:55.000Z
src/fundraising/apps.py
earth-emoji/love
3617bd47c396803c411e136b3e1de87c18e03890
[ "BSD-2-Clause" ]
null
null
null
from django.apps import AppConfig class FundraisingConfig(AppConfig): name = 'fundraising'
17
36
0.735294
37d857b538c521d0d52bf2601e367fa120f1b39b
1,271
py
Python
plugins/cisco_umbrella_investigate/komand_cisco_umbrella_investigate/actions/samples/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/cisco_umbrella_investigate/komand_cisco_umbrella_investigate/actions/samples/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/cisco_umbrella_investigate/komand_cisco_umbrella_investigate/actions/samples/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import SamplesInput, SamplesOutput, Input # Custom imports below from komand.exceptions import PluginException class Samples(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="samples", description="Return all samples associa...
27.042553
105
0.559402
481722a8b6edc9b4e2364a38d91cb07ba902f886
226,420
py
Python
delphi/translators/for2py/rectify.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
25
2018-03-03T11:57:57.000Z
2022-01-16T21:19:54.000Z
delphi/translators/for2py/rectify.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
385
2018-02-21T16:52:06.000Z
2022-02-17T07:44:56.000Z
delphi/translators/for2py/rectify.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
19
2018-03-20T01:08:11.000Z
2021-09-29T01:04:49.000Z
""" The purpose of this module is to do all the clean up for translate.py. This (rectify.py) module contains functions that receive OFP generated XML as an input. Then, the functions removes any unnecessary elements and refactor randomly structured (nested) elements into a correct structure. The output file will be app...
40.388869
145
0.493026
8b98168c036790f54815ab801947e54f490fb585
896
py
Python
twisted/python/logger/test/test_levels.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
twisted/python/logger/test/test_levels.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
twisted/python/logger/test/test_levels.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for L{twisted.python.logger._levels}. """ from twisted.trial import unittest from .._levels import InvalidLogLevelError from .._levels import LogLevel class LogLevelTests(unittest.TestCase): """ Tests for L{LogLevel}. ...
22.974359
75
0.628348
b27a074872adfa7fb1c466bd946d8075231d04f5
1,387
py
Python
app/models_tests.py
codingbreak/account-sharing-proxy-server
e572da9ac867897079479ce97daeee14ae373ab5
[ "MIT" ]
3
2021-09-15T16:15:54.000Z
2022-01-25T05:38:53.000Z
app/models_tests.py
codingbreak/account-sharing-proxy-server
e572da9ac867897079479ce97daeee14ae373ab5
[ "MIT" ]
5
2021-12-28T11:53:17.000Z
2022-01-21T14:40:19.000Z
app/models_tests.py
codingbreak/account-sharing-proxy-server
e572da9ac867897079479ce97daeee14ae373ab5
[ "MIT" ]
null
null
null
from flask import g from database import db, User, Credential, Shared_User def test_create_user_account(test_app): with test_app.app_context(): guest = User(username="guest", email="guest@example.com") db.session.add(guest) db.session.commit() assert User.query.filter_by(username...
29.510638
85
0.695746
3bb437602dc7c8e6cfc2c0f5eeb123b76da38cb9
3,226
py
Python
src/transformers/data/metrics/__init__.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
77
2020-11-12T18:40:25.000Z
2022-03-27T06:41:30.000Z
src/transformers/data/metrics/__init__.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
7
2021-03-11T14:00:58.000Z
2022-01-18T05:51:22.000Z
src/transformers/data/metrics/__init__.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
23
2020-12-08T12:42:24.000Z
2022-02-11T13:55:24.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
35.844444
91
0.626162
804fd0aea8c6d20186d32c73162f2e762b1045ef
1,398
py
Python
setup.py
RyanCPeters/backup
4dc19602989fe7dc49ca409d786fc833d1fcabf9
[ "Apache-2.0" ]
69
2016-06-29T16:13:55.000Z
2022-03-21T06:38:37.000Z
setup.py
RyanCPeters/backup
4dc19602989fe7dc49ca409d786fc833d1fcabf9
[ "Apache-2.0" ]
237
2016-09-28T02:12:34.000Z
2022-03-25T13:32:23.000Z
setup.py
RyanCPeters/backup
4dc19602989fe7dc49ca409d786fc833d1fcabf9
[ "Apache-2.0" ]
45
2017-01-04T21:20:27.000Z
2021-12-29T10:42:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages del os.link with open("README.rst") as readme_file: readme = readme_file.read() with open("HISTORY.rst") as history_file: history = history_file.read() with open("requirements.txt") as f: requirements = f...
30.391304
79
0.670243
c0f40a57317e3250eccda478b01aab549f3a23c1
33,332
py
Python
environ/test.py
kaiman1234/django-environ
e01b362be2a0de0685458c19a5b62491c8a35cb9
[ "MIT" ]
1
2021-12-30T16:24:34.000Z
2021-12-30T16:24:34.000Z
environ/test.py
kaiman1234/django-environ
e01b362be2a0de0685458c19a5b62491c8a35cb9
[ "MIT" ]
null
null
null
environ/test.py
kaiman1234/django-environ
e01b362be2a0de0685458c19a5b62491c8a35cb9
[ "MIT" ]
null
null
null
import os import sys import unittest import warnings from urllib.parse import quote from .compat import json, DJANGO_POSTGRES, ImproperlyConfigured, REDIS_DRIVER from environ import Env, Path class BaseTests(unittest.TestCase): URL = 'http://www.google.com/' POSTGRES = 'postgres://uf07k1:wegauwhg@ec2-107-2...
42.515306
124
0.644336
8097626df0018611c330c7e639defdf02c5cce45
26,863
py
Python
pottery/redlock.py
brainix/pottery
53897a8275400dc6a0c30b12fda9b57ad3037dbb
[ "Apache-2.0" ]
625
2015-06-11T06:53:37.000Z
2022-03-29T16:30:08.000Z
pottery/redlock.py
brainix/pottery
53897a8275400dc6a0c30b12fda9b57ad3037dbb
[ "Apache-2.0" ]
612
2015-06-12T05:39:32.000Z
2022-03-16T00:06:58.000Z
pottery/redlock.py
brainix/pottery
53897a8275400dc6a0c30b12fda9b57ad3037dbb
[ "Apache-2.0" ]
30
2017-01-29T12:00:39.000Z
2022-03-13T11:39:49.000Z
# --------------------------------------------------------------------------- # # redlock.py # # # # Copyright © 2015-2021, Rajiv Bakulesh Shah, original author. # ...
35.533069
95
0.543126
bb2c9c4cb8053b03187c6144b05bb06ef20b1282
889
py
Python
DynamoDB/MoviesItemOps02.py
Kunal-Karnik/content-lambda-boto3
0bde85c1bc036c8000505ff9969be5f7666a12c2
[ "MIT" ]
null
null
null
DynamoDB/MoviesItemOps02.py
Kunal-Karnik/content-lambda-boto3
0bde85c1bc036c8000505ff9969be5f7666a12c2
[ "MIT" ]
null
null
null
DynamoDB/MoviesItemOps02.py
Kunal-Karnik/content-lambda-boto3
0bde85c1bc036c8000505ff9969be5f7666a12c2
[ "MIT" ]
null
null
null
import decimal import json import boto3 from boto3.dynamodb.conditions import Attr, Key from botocore.exceptions import ClientError class DecimalEncoder(json.JSONEncoder): '''Helper class to convert a DynamoDB item to JSON''' def default(self, o): if isinstance(o, decimal.Decimal): if o ...
21.682927
57
0.618673
0ad4c7eb478daa3e4754cf2533e374f319e53646
3,255
py
Python
python/app/plugins/http/Kibana/CVE_2019_7609.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/http/Kibana/CVE_2019_7609.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/http/Kibana/CVE_2019_7609.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import re import time import random import binascii from app.lib.utils.request import request from app.lib.utils.common import get_capta, get_useragent class CVE_2019_7609_BaseVerify: def __init__(self, url): self.info = { 'name': 'CVE-2019-7609漏洞', 'descript...
31.601942
133
0.523195
3f605e0167fa7674531f5baa4bab8a1a92cf35f9
698
py
Python
devilry/devilry_group/migrations/0010_auto_20160107_1106.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/devilry_group/migrations/0010_auto_20160107_1106.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/devilry_group/migrations/0010_auto_20160107_1106.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('devilry_group', '0009_auto_20160107_1100'), ] operations = [ migrations.RemoveField( model_name='groupcomment', name='part_of_grading', ...
22.516129
53
0.563037
e62ed4a3b12dc58192b5c34c93e9ad3810332e6a
3,896
py
Python
custom_components/powercalc/const.py
alanpaone/homeassistant-powercalc
dbf67b730a72b8ddc3e60659089368c112b62dd3
[ "MIT" ]
null
null
null
custom_components/powercalc/const.py
alanpaone/homeassistant-powercalc
dbf67b730a72b8ddc3e60659089368c112b62dd3
[ "MIT" ]
null
null
null
custom_components/powercalc/const.py
alanpaone/homeassistant-powercalc
dbf67b730a72b8ddc3e60659089368c112b62dd3
[ "MIT" ]
null
null
null
"""The Powercalc constants.""" DOMAIN = "powercalc" DOMAIN_CONFIG = "config" DATA_CALCULATOR_FACTORY = "calculator_factory" DATA_CONFIGURED_ENTITIES = "configured_entities" DATA_DISCOVERED_ENTITIES = "discovered_entities" DUMMY_ENTITY_ID = "dummy" CONF_AREA = "area" CONF_CALIBRATE = "calibrate" CONF_CREATE_GROUP = ...
31.419355
60
0.717659
b6df24e95eaabe066ddb1c2138e75e986ff553f7
2,328
py
Python
skgenome/rangelabel.py
jeremy9959/cnvkit
b839a2b323113a7d318d216f61a0ed6657c70ed4
[ "Apache-2.0" ]
null
null
null
skgenome/rangelabel.py
jeremy9959/cnvkit
b839a2b323113a7d318d216f61a0ed6657c70ed4
[ "Apache-2.0" ]
null
null
null
skgenome/rangelabel.py
jeremy9959/cnvkit
b839a2b323113a7d318d216f61a0ed6657c70ed4
[ "Apache-2.0" ]
null
null
null
"""Handle text genomic ranges as named tuples. A range specification should look like ``chromosome:start-end``, e.g. ``chr1:1234-5678``, with 1-indexed integer coordinates. We also allow ``chr1:1234-`` or ``chr1:-5678``, where missing start becomes 0 and missing end becomes None. """ from __future__ import absolute_im...
33.257143
80
0.616409
75d1297dc218895001206f58719403f4321c8ae6
1,331
py
Python
pystiche/papers/gatys_ecker_bethge_2015/utils.py
jbueltemeier/pystiche
0d0707121e63c4355303446e62a4894e86a7b763
[ "BSD-3-Clause" ]
null
null
null
pystiche/papers/gatys_ecker_bethge_2015/utils.py
jbueltemeier/pystiche
0d0707121e63c4355303446e62a4894e86a7b763
[ "BSD-3-Clause" ]
null
null
null
pystiche/papers/gatys_ecker_bethge_2015/utils.py
jbueltemeier/pystiche
0d0707121e63c4355303446e62a4894e86a7b763
[ "BSD-3-Clause" ]
null
null
null
import torch from torch import nn, optim from torch.optim.optimizer import Optimizer import pystiche from pystiche.enc import MultiLayerEncoder, vgg19_multi_layer_encoder from pystiche.image import CaffePostprocessing, CaffePreprocessing __all__ = [ "gatys_ecker_bethge_2015_preprocessor", "gatys_ecker_bethge_...
30.25
78
0.764838
33e918040726dff7342fb8a041d7d911842d41f8
577
py
Python
controleur/actionsCases/ActionsCasesUnJoueur.py
JordanSamhi/BricksBreaker
e2efb28e5ec43056e9665479920523576c692a6b
[ "MIT" ]
null
null
null
controleur/actionsCases/ActionsCasesUnJoueur.py
JordanSamhi/BricksBreaker
e2efb28e5ec43056e9665479920523576c692a6b
[ "MIT" ]
null
null
null
controleur/actionsCases/ActionsCasesUnJoueur.py
JordanSamhi/BricksBreaker
e2efb28e5ec43056e9665479920523576c692a6b
[ "MIT" ]
null
null
null
from controleur.actionsCases.ActionsCases import ActionCases class ActionsCasesUnJoueur(ActionCases): def __init__(self, mode, app): ActionCases.__init__(self, mode, app) def detruireCases(self): if len(self._semblables) >= self.LIMITE_NOMBRE_CASES and not self.semblablesSontDet...
38.466667
100
0.637782
1e705887dc3d45232139301b9f3b04e044df1279
10,475
py
Python
test/functional/listtransactions.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
test/functional/listtransactions.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
test/functional/listtransactions.py
aixinwang/Gfc
4a7fdac234f5f51055e471e77aaff62cfa4c6eab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The GFC coin bt developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listtransactions API.""" from test_framework.test_framework import BitcoinTestFramework from t...
50.360577
113
0.600764
c6f1fc9e1937519053a4eb16de238db84bda6e70
5,946
py
Python
tests/unit/test_filters.py
Dithn/warehouse
953b77ecfc7dade203db423307539ea9d6115657
[ "Apache-2.0" ]
2
2021-10-11T21:52:57.000Z
2021-11-17T10:29:15.000Z
tests/unit/test_filters.py
Dithn/warehouse
953b77ecfc7dade203db423307539ea9d6115657
[ "Apache-2.0" ]
85
2022-02-14T04:38:24.000Z
2022-03-31T04:42:30.000Z
tests/unit/test_filters.py
Dithn/warehouse
953b77ecfc7dade203db423307539ea9d6115657
[ "Apache-2.0" ]
1
2020-12-01T21:12:24.000Z
2020-12-01T21:12:24.000Z
# 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 the Li...
28.180095
86
0.568954
c1147746aa6d8e6306419e65f58906a35e32e752
785
py
Python
modules/voteban/consts.py
Kylmakalle/assistant-bot
71c0f488a3dfb370ef2a87bbba83862b061c772a
[ "MIT" ]
4
2020-02-05T14:05:08.000Z
2021-09-12T17:43:04.000Z
modules/voteban/consts.py
Kylmakalle/assistant-bot
71c0f488a3dfb370ef2a87bbba83862b061c772a
[ "MIT" ]
6
2019-03-20T07:42:26.000Z
2022-01-06T17:56:47.000Z
modules/voteban/consts.py
Kylmakalle/assistant-bot
71c0f488a3dfb370ef2a87bbba83862b061c772a
[ "MIT" ]
5
2019-06-22T06:32:41.000Z
2022-01-02T16:10:51.000Z
from aiogram.utils.callback_data import CallbackData import random voter = CallbackData('voter', 'chat_id', 'user_id') from modules.captcha_button.consts import LogEvents class LogEvents(LogEvents): UNMEDIA = 'unmedia' VOTEBAN = 'voteban' BAN = 'BAN' TEMPBAN = 'TEMPBAN' KICK = 'KICK' ADMIN_REP...
24.53125
60
0.689172
81e3b02ed34e17640e60f38b1f16c4743b8de174
408
py
Python
astoria/consumers/astctl/usercode/__init__.py
sedders123/astoria
d1e9603b10d765aed4c1237e79b5ab48a9af1d83
[ "MIT" ]
1
2021-02-03T02:54:54.000Z
2021-02-03T02:54:54.000Z
astoria/consumers/astctl/usercode/__init__.py
sedders123/astoria
d1e9603b10d765aed4c1237e79b5ab48a9af1d83
[ "MIT" ]
72
2020-12-15T18:29:18.000Z
2022-03-08T09:42:53.000Z
astoria/astctl/usercode/__init__.py
trickeydan/astoria
ef08ed4be4d5997751846b0cadce9aa8261ae151
[ "MIT" ]
2
2022-02-05T23:00:51.000Z
2022-03-09T21:40:49.000Z
"""Commands to interact with usercode.""" import click from .kill import kill from .log import log from .restart import restart from .show import show from .trigger import trigger @click.group("usercode") def usercode() -> None: """Interact with Usercode.""" usercode.add_command(kill) usercode.add_command(log)...
19.428571
41
0.769608
a77057856425bd6bf62713853236f5dbe0558c67
418
py
Python
tests/test_beholder.py
mickevi/beholder
b6ca4cbecca1540d65a62fd7d2ae8c86412ae88d
[ "0BSD" ]
null
null
null
tests/test_beholder.py
mickevi/beholder
b6ca4cbecca1540d65a62fd7d2ae8c86412ae88d
[ "0BSD" ]
null
null
null
tests/test_beholder.py
mickevi/beholder
b6ca4cbecca1540d65a62fd7d2ae8c86412ae88d
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_beholder ---------------------------------- Tests for `beholder` module. """ import unittest from beholder import beholder class TestBeholder(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_000_someth...
13.483871
38
0.58134
57a22ac01f3dcabedf7a4d50e4f3c04be8df3f1b
39
py
Python
blog/__init__.py
EvaZogg/DjangoTranslationWebsite
3946c052547deed216332cb316f48fc70c09ff22
[ "BSD-2-Clause" ]
null
null
null
blog/__init__.py
EvaZogg/DjangoTranslationWebsite
3946c052547deed216332cb316f48fc70c09ff22
[ "BSD-2-Clause" ]
null
null
null
blog/__init__.py
EvaZogg/DjangoTranslationWebsite
3946c052547deed216332cb316f48fc70c09ff22
[ "BSD-2-Clause" ]
null
null
null
def blog_view(request): return None
19.5
23
0.74359
2fb85a9bc16cdfc1624ed7d0262a4bb36446266f
1,232
py
Python
tensorflow_toolkit/image_retrieval/image_retrieval/frames_provider.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
256
2020-09-09T03:27:57.000Z
2022-03-30T10:06:06.000Z
tensorflow_toolkit/image_retrieval/image_retrieval/frames_provider.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
604
2020-09-08T12:29:49.000Z
2022-03-31T21:51:08.000Z
tensorflow_toolkit/image_retrieval/image_retrieval/frames_provider.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
160
2020-09-09T14:06:07.000Z
2022-03-30T14:50:48.000Z
""" Copyright (c) 2019 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 applicable law or agreed to in wri...
30.8
86
0.691558
6c848c6c86c3c2dcc68bd1365293553e5b2aeb40
1,837
py
Python
examples/ex/ex_sim.py
tonyduan/gp-lib
8febaab91cad8b6435791fa5f0673b0c033c0101
[ "MIT" ]
4
2019-05-02T21:31:48.000Z
2021-10-03T03:23:46.000Z
examples/ex/ex_sim.py
tonyduan/gaussian-processes
8febaab91cad8b6435791fa5f0673b0c033c0101
[ "MIT" ]
null
null
null
examples/ex/ex_sim.py
tonyduan/gaussian-processes
8febaab91cad8b6435791fa5f0673b0c033c0101
[ "MIT" ]
1
2021-10-03T03:23:53.000Z
2021-10-03T03:23:53.000Z
import numpy as np from argparse import ArgumentParser from sklearn.datasets import load_breast_cancer, load_iris, load_boston, load_wine from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score, roc_auc_score from gp_lib.gp import ConstantMeanGP from gp_lib.kernels import * if __nam...
36.019608
86
0.665759
0830520b537b0ee0b5347d7d3dcf8e988eb302ec
377,923
py
Python
torch/_torch_docs.py
you74674/pytorch
06838ce8b16b2cc2f9e903f3ebdd46659a0e66bb
[ "Intel" ]
1
2022-01-20T03:49:23.000Z
2022-01-20T03:49:23.000Z
torch/_torch_docs.py
you74674/pytorch
06838ce8b16b2cc2f9e903f3ebdd46659a0e66bb
[ "Intel" ]
1
2021-08-20T20:09:02.000Z
2021-08-20T20:12:59.000Z
torch/_torch_docs.py
you74674/pytorch
06838ce8b16b2cc2f9e903f3ebdd46659a0e66bb
[ "Intel" ]
null
null
null
# -*- coding: utf-8 -*- """Adds docstrings to functions defined in the torch._C""" import re import torch._C from torch._C import _add_docstr as add_docstr def parse_kwargs(desc): """Maps a description of args to a dictionary of {argname: description}. Input: (' weight (Tensor): a weight tensor\n...
31.774256
132
0.622418
45fbad5188b1cfd2518a807e6444f61981addf51
2,201
py
Python
diagnostics/ito_diagonal.py
emaballarin/torchsde
83373b30c9bd447ec32a8c286c42a4cf5e9753a6
[ "Apache-2.0" ]
984
2020-07-06T23:15:17.000Z
2022-03-31T10:09:49.000Z
diagnostics/ito_diagonal.py
GabrielNobis/torchsde
53038a3efcd77f6c9f3cfd0310700a59be5d5d2d
[ "Apache-2.0" ]
95
2020-07-11T10:53:02.000Z
2022-03-30T21:33:56.000Z
diagnostics/ito_diagonal.py
GabrielNobis/torchsde
53038a3efcd77f6c9f3cfd0310700a59be5d5d2d
[ "Apache-2.0" ]
117
2020-07-07T20:05:05.000Z
2022-03-20T21:30:23.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.948276
90
0.711949
dc954d0946f47b289e79e76910312bb1c47bbefd
135
py
Python
mayan/apps/document_comments/tests/literals.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/document_comments/tests/literals.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
7
2020-06-06T00:01:04.000Z
2022-01-13T01:47:17.000Z
mayan/apps/document_comments/tests/literals.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals TEST_COMMENT_TEXT = 'test comment text' TEST_COMMENT_TEXT_EDITED = 'test comment text edited'
27
53
0.837037
c0e102fd1d14ca6e810bffc24ee261696ea4d72f
7,537
py
Python
src/plugins/createSystems/createSystems/__init__.py
umesh-timalsina/molsim-specification
9bc5bde5185260eee9592b3efb9fb9148eef85bc
[ "MIT" ]
null
null
null
src/plugins/createSystems/createSystems/__init__.py
umesh-timalsina/molsim-specification
9bc5bde5185260eee9592b3efb9fb9148eef85bc
[ "MIT" ]
7
2020-10-13T19:50:43.000Z
2020-10-15T05:22:00.000Z
src/plugins/createSystems/createSystems/__init__.py
umesh-timalsina/webgme-molsim
9bc5bde5185260eee9592b3efb9fb9148eef85bc
[ "MIT" ]
null
null
null
""" This is where the implementation of the plugin code goes. The createSystems-class is imported from both run_plugin.py and run_debug.py """ import sys import json import logging from .gmso_systems import GMSOSystems from webgme_bindings import PluginBase # Setup a logger logger = logging.getLogger('createSystems'...
34.573394
110
0.532042
e9b47d7a88c576faa5e502c2cbff443c76d7688b
323
py
Python
app.py
brayton-anderson/loanapp_python_backend
d76406459b76be09541fccea805ec57a3a14dd36
[ "MIT" ]
null
null
null
app.py
brayton-anderson/loanapp_python_backend
d76406459b76be09541fccea805ec57a3a14dd36
[ "MIT" ]
null
null
null
app.py
brayton-anderson/loanapp_python_backend
d76406459b76be09541fccea805ec57a3a14dd36
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request import time app = Flask(__name__) @app.route("/loans", method=["POST"]) # responce def response(): query = dict(request.form)['query'] result = query + " " + time.ctime() return jsonify({"response": result}) if __name__ == "__main__": app.run(host="0.0.0.0"...
19
41
0.637771
1a42a49302e54a2093eefe2b7226982a2bc67688
13,920
py
Python
parlai/tasks/squad/agents.py
Saraharas/ParlAI
9cb89024a5852e68c81466a70f16f692de8cff97
[ "MIT" ]
1
2020-12-22T23:20:05.000Z
2020-12-22T23:20:05.000Z
parlai/tasks/squad/agents.py
Saraharas/ParlAI
9cb89024a5852e68c81466a70f16f692de8cff97
[ "MIT" ]
null
null
null
parlai/tasks/squad/agents.py
Saraharas/ParlAI
9cb89024a5852e68c81466a70f16f692de8cff97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import json import os from parlai.core.message import Message from parlai.core.opt import Opt from parlai.c...
34.8
88
0.602874
002c5a90899ee455debe44ddf682e52a2558eee3
4,113
py
Python
Homework/Dijkstra.py
RobinYaoWenbin/python-
9607219b8d057ab896ecae5326daadd7dcfb6112
[ "MIT" ]
12
2020-09-28T03:25:03.000Z
2022-03-20T07:44:09.000Z
Homework/Dijkstra.py
RobinYaoWenbin/python-
9607219b8d057ab896ecae5326daadd7dcfb6112
[ "MIT" ]
null
null
null
Homework/Dijkstra.py
RobinYaoWenbin/python-
9607219b8d057ab896ecae5326daadd7dcfb6112
[ "MIT" ]
21
2020-03-19T00:44:35.000Z
2022-01-30T03:46:18.000Z
# -*- coding: utf-8 -*- """ Created on Fri Sep 27 13:08:39 2019 @author: wenbin """ """ this program is the algotithm of dijkstra 注意:本代码的中的节点就是list数组的index,为了和python保持一致,因此下标从0开始,若题目为从1开始,则可将父节点的下标+1 """ class Dijkstra(): def __init__(self , AdjacencyMatrix , StartVertex): self.AdjMat = Adj...
50.777778
151
0.52565
c693cf454d68a6f6c5193c68e4b2ebb6b0a9ddc1
328
py
Python
Python/Finding the percentage/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
2
2019-08-07T19:58:20.000Z
2019-08-27T00:06:09.000Z
Python/Finding the percentage/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
1
2020-06-11T19:09:48.000Z
2020-06-11T19:09:48.000Z
Python/Finding the percentage/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
7
2019-08-27T00:06:11.000Z
2021-12-11T10:01:45.000Z
#author SANKALP SAXENA n = int(input()) marks = [] maxmarks = 0 index = 0 for i in range(0, n): string = input().split(" ") marks.append((float(string[1]) + float(string[2]) + float(string[3]))/3) name = input() for i in range(0, n): if name in string: index = i; print("%.2f"%marks[i...
16.4
76
0.560976
71f915eb02a4207f5a15932865d641d55b8dc9b3
1,892
py
Python
docs/hydro_tests/run_kelvin_helmholtz.py
henrywatkins/gawain
c556be20242249504fc0e04a5d3b7168a8369043
[ "MIT" ]
1
2021-11-20T06:16:13.000Z
2021-11-20T06:16:13.000Z
docs/hydro_tests/run_kelvin_helmholtz.py
henrywatkins/gawain
c556be20242249504fc0e04a5d3b7168a8369043
[ "MIT" ]
null
null
null
docs/hydro_tests/run_kelvin_helmholtz.py
henrywatkins/gawain
c556be20242249504fc0e04a5d3b7168a8369043
[ "MIT" ]
null
null
null
"""Kelvin-Helmholtz instability test script """ import numpy as np from gawain.main import run_gawain run_name = "kelvin_helmholtz" output_dir = "." cfl = 0.5 with_mhd = False t_max = 5.0 # "euler", integrator = "euler" # "base", "lax-wendroff", "lax-friedrichs", "hll" fluxer = "hll" ##########...
23.949367
83
0.554968
0ef2ce10e562c530cb7f2924e64ba78081e40847
313
py
Python
modutec/config/docs.py
Momscode-Technologies/modutec
4b747283d7d7524ef78747dc06deb0a368838c14
[ "MIT" ]
null
null
null
modutec/config/docs.py
Momscode-Technologies/modutec
4b747283d7d7524ef78747dc06deb0a368838c14
[ "MIT" ]
null
null
null
modutec/config/docs.py
Momscode-Technologies/modutec
4b747283d7d7524ef78747dc06deb0a368838c14
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/modutec" # docs_base_url = "https://[org_name].github.io/modutec" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Modutec"
26.083333
68
0.722045
172c38eb796a1b2dd83e2e62803c0038d2c0e2d5
8,041
py
Python
custom_components/keba/__init__.py
dannerph/homeassistant-keba
1b8cae2efabb80dab940306fe303e33e84fafd10
[ "Apache-2.0" ]
3
2022-01-13T22:31:55.000Z
2022-02-17T19:02:27.000Z
custom_components/keba/__init__.py
dannerph/homeassistant-keba
1b8cae2efabb80dab940306fe303e33e84fafd10
[ "Apache-2.0" ]
4
2022-01-15T12:29:29.000Z
2022-01-16T14:30:40.000Z
custom_components/keba/__init__.py
dannerph/homeassistant-keba
1b8cae2efabb80dab940306fe303e33e84fafd10
[ "Apache-2.0" ]
null
null
null
"""Support for KEBA charging stations.""" from __future__ import annotations import logging from keba_kecontact.connection import KebaKeContact, SetupError from keba_kecontact.wallbox import Wallbox from homeassistant.components.notify import DOMAIN as NOTIFY_DOMAIN from homeassistant.config_entries import SOURCE_IM...
34.659483
88
0.667703
f3aad57b78e6490e3cdf0f8b22cd5dfda5cccae3
2,245
py
Python
setup.py
bliptrip/python-fooster-cron
a7d818023f693ad4d614826ebb88d25bcc055b6d
[ "MIT" ]
null
null
null
setup.py
bliptrip/python-fooster-cron
a7d818023f693ad4d614826ebb88d25bcc055b6d
[ "MIT" ]
null
null
null
setup.py
bliptrip/python-fooster-cron
a7d818023f693ad4d614826ebb88d25bcc055b6d
[ "MIT" ]
1
2021-02-24T15:34:12.000Z
2021-02-24T15:34:12.000Z
#!/usr/bin/env python3 import os import re from setuptools import setup, find_packages version = None def find(haystack, *needles): regexes = [(index, re.compile(r'^{}\s*=\s*[\'"]([^\'"]*)[\'"]$'.format(needle))) for index, needle in enumerate(needles)] values = ['' for needle in needles] for line in ...
30.753425
125
0.6
9d60a3f07aa515baaee669fd9255d8f3b73c4244
23,153
py
Python
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/pre_paid_server.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class PrePaidServer: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is j...
34.921569
659
0.640997
8de0329cabd5381847968b902106f09429be5fd6
1,715
py
Python
allpairspy/pairs_storage.py
pavelicii/allpairspy
bfba15ff92de53c5e96edde77be39228b785af83
[ "MIT" ]
184
2017-05-08T01:06:58.000Z
2022-03-25T06:36:40.000Z
allpairspy/pairs_storage.py
zgq346712481/allpairspy
e15ac03234e41f420a90767763f4cc0ae14d575e
[ "MIT" ]
10
2017-07-04T15:19:54.000Z
2022-03-20T10:21:43.000Z
allpairspy/pairs_storage.py
zgq346712481/allpairspy
e15ac03234e41f420a90767763f4cc0ae14d575e
[ "MIT" ]
37
2018-06-07T14:20:31.000Z
2022-03-12T01:38:30.000Z
from itertools import combinations class Node: @property def id(self): return self.__node_id @property def counter(self): return self.__counter def __init__(self, node_id): self.__node_id = node_id self.__counter = 0 self.in_ = set() self.out = set...
23.175676
69
0.587172
a1b8a52a7bdbb8c1f5b121abedceed4f8c6b3a5e
1,195
py
Python
setup.py
huashen218/pytorch-ialgebra
f498fb2c91c5a48204c66ad5e6dc118cbec69641
[ "MIT" ]
2
2021-02-01T20:07:13.000Z
2021-02-10T17:15:45.000Z
setup.py
huashen218/pytorch-ialgebra
f498fb2c91c5a48204c66ad5e6dc118cbec69641
[ "MIT" ]
null
null
null
setup.py
huashen218/pytorch-ialgebra
f498fb2c91c5a48204c66ad5e6dc118cbec69641
[ "MIT" ]
null
null
null
"""A setuptools based setup module.""" from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='pytorch-ialgebra', version=open('VERSION').readline()...
25.425532
71
0.593305
2f5ddb06afc557aacab032eacb19924df4aa74da
5,542
py
Python
tallyarbiter-ws281xlistener.py
5pm-HDH/TallyArbiter-WS28xxListener
6a6a5cd0718aa3add5b58299d9f95d1a99eb92ad
[ "MIT" ]
null
null
null
tallyarbiter-ws281xlistener.py
5pm-HDH/TallyArbiter-WS28xxListener
6a6a5cd0718aa3add5b58299d9f95d1a99eb92ad
[ "MIT" ]
null
null
null
tallyarbiter-ws281xlistener.py
5pm-HDH/TallyArbiter-WS28xxListener
6a6a5cd0718aa3add5b58299d9f95d1a99eb92ad
[ "MIT" ]
null
null
null
## Tally Arbiter Python Listener from signal import signal, SIGINT from sys import exit import sys import time from rpi_ws281x import PixelStrip, Color import socketio import json device_states = [] bus_options = [] mode_preview = False mode_program = False if len(sys.argv) > 1: configFileName = sys.argv[1] else...
27.300493
125
0.628834
6a635aecb7c44bde0c9cd46f75fa322a4715d38c
741
py
Python
python/Basic-Algorith-Scripting/whereDoIBelong.py
stricoff92/freecodecamp-challenges
5f0012fc27edfe7d4855269e18c1b9bb82fe1f4a
[ "MIT" ]
null
null
null
python/Basic-Algorith-Scripting/whereDoIBelong.py
stricoff92/freecodecamp-challenges
5f0012fc27edfe7d4855269e18c1b9bb82fe1f4a
[ "MIT" ]
1
2018-09-28T01:34:46.000Z
2018-09-28T01:34:46.000Z
python/Basic-Algorith-Scripting/whereDoIBelong.py
stricoff92/freecodecamp-challenges
5f0012fc27edfe7d4855269e18c1b9bb82fe1f4a
[ "MIT" ]
null
null
null
''' Return the lowest index at which a value (second argument) should be inserted into an array (first argument) once it has been sorted. The returned value should be a number. For example, getIndexToIns([1,2,3,4], 1.5) should return 1 because it is greater than 1 (index 0), but less than 2 (index 1). Likewise, ge...
33.681818
182
0.707152
ea7f608ce9bf16bf51c10a9d7349923bb6cc9fe1
312
py
Python
ex035.py
Roninho514/Treinamento-Python
fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6
[ "MIT" ]
null
null
null
ex035.py
Roninho514/Treinamento-Python
fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6
[ "MIT" ]
null
null
null
ex035.py
Roninho514/Treinamento-Python
fc6ad0b64fb3dc3cfa5381f8fc53b5b3243a7ff6
[ "MIT" ]
null
null
null
r1 = float(input('Digite o primeiro segmento:')) r2 = float(input('Digite o segundo segmento:')) r3 = float(input('Digite o terceiro segmento:')) if r1 < r2 + r3 and r2 < r1+r3 and r3 < r1+r2: print('Esses segmentos podem formar um triângulo') else: print('Esses segmentos não podem formar um triângulo')
44.571429
58
0.701923
0cee405d5798c41a7202eef2675d23b80c544f14
45,597
py
Python
fairseq/data/multilingual/multilingual_data_manager.py
ahmetustun/fairseq
5ec791d95476beaa1513da14efa9035337bf6a15
[ "MIT" ]
null
null
null
fairseq/data/multilingual/multilingual_data_manager.py
ahmetustun/fairseq
5ec791d95476beaa1513da14efa9035337bf6a15
[ "MIT" ]
null
null
null
fairseq/data/multilingual/multilingual_data_manager.py
ahmetustun/fairseq
5ec791d95476beaa1513da14efa9035337bf6a15
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools import json import logging import math import os from collections import OrderedDict, defaultdict from fairseq import utils ...
39.40968
124
0.578042
cc1a6301ec39e8ec211d53d7903565ef8684873e
3,454
py
Python
tensorflow/contrib/training/__init__.py
shaulr/tensorflow
27a98083a6c16f263d668271889863596efbeb84
[ "Apache-2.0" ]
2
2020-05-04T03:59:25.000Z
2021-07-16T03:09:22.000Z
tensorflow/contrib/training/__init__.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/training/__init__.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
1
2022-01-22T05:39:49.000Z
2022-01-22T05:39:49.000Z
# Copyright 2016 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.315068
90
0.819629
f118a84e8a92532d986fee0db8524cfe8653b87f
1,180
py
Python
legacy_code/main.py
rmalik/dspillini
1975043075198192396970e62284179d7a6c7098
[ "Apache-2.0" ]
1
2016-05-08T18:55:44.000Z
2016-05-08T18:55:44.000Z
legacy_code/main.py
rmalik/dspillini
1975043075198192396970e62284179d7a6c7098
[ "Apache-2.0" ]
null
null
null
legacy_code/main.py
rmalik/dspillini
1975043075198192396970e62284179d7a6c7098
[ "Apache-2.0" ]
null
null
null
import logging, os, sys # Google App Engine imports. from google.appengine.ext.webapp import util # Remove the standard version of Django. for k in [k for k in sys.modules if k.startswith('django')]: del sys.modules[k] # Force sys.path to have our own directory first, in case we want to import # from it. sys.path....
26.818182
75
0.761017