hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
f7fe2e12189f5c7bd5c301d8cd6a29b000ff6951
4,352
py
Python
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
1
2020-08-19T06:53:24.000Z
2020-08-19T06:53:24.000Z
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
null
null
null
origin_check.py
mikispag/OriginCheck
b3bda26c382cdbfd78bddc11d99d6e8723255599
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import concurrent.futures import logging import requests from sys import argv, exit from urllib.parse import urlparse logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) HEADERS = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537....
39.563636
143
0.584789
0
0
0
0
0
0
0
0
1,361
0.31273
f7ff07662b3e96ced8491b8279428f96107213e1
743
py
Python
orange3/Orange/preprocess/setup.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
orange3/Orange/preprocess/setup.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
orange3/Orange/preprocess/setup.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
# Author: Alexandre Gramfort <[email protected]> # License: BSD Style. import os import numpy def configuration(parent_package="", top_path=None): from numpy.distutils.misc_util import Configuration libraries = [] if os.name == "posix": libraries.append("m") config = Configuration...
24.766667
66
0.644684
0
0
0
0
0
0
0
0
147
0.197847
f7ff646590489831f35fa9fe7ca9c0fe9f2f76be
592
py
Python
ProjectEuler_plus/euler_042.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_042.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_042.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from math import sqrt # (n * (n + 1)) / 2 -> n ** 2 + n - (2 * x) # Solved with quadratic equation # https://en.wikipedia.org/wiki/Quadratic_equation for _ in range(int(input().strip())): t = int(input().strip()) d = (sqrt(4 * 2 * t + 1) - 1) if d.is_integer(): ...
21.925926
52
0.489865
0
0
0
0
0
0
0
0
151
0.255068
7900515320c3b3319c03f61841dc3f24a082e7f3
12,476
py
Python
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/lpb.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2017 Robbin Bouwmeester Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
36.162319
303
0.655579
10,074
0.80747
0
0
0
0
0
0
3,499
0.280458
79016946767147d0fbaeddece8c5f2511d1e6b1d
178
py
Python
floris/tools/optimization/scipy/__init__.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
91
2019-06-04T08:56:29.000Z
2022-03-13T17:39:22.000Z
floris/tools/optimization/scipy/__init__.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
224
2019-04-08T22:03:45.000Z
2022-03-31T17:56:09.000Z
floris/tools/optimization/scipy/__init__.py
eirikur16/flrs
c98604593753def05086b54ce82f5551f01d2529
[ "Apache-2.0" ]
97
2019-04-23T20:48:20.000Z
2022-03-29T08:17:02.000Z
from . import ( yaw, layout, base_COE, optimization, layout_height, power_density, yaw_wind_rose, power_density_1D, yaw_wind_rose_parallel, )
14.833333
27
0.651685
0
0
0
0
0
0
0
0
0
0
790266e9a7bcf554bd70851b9a13216ab9f797e3
11,530
py
Python
src/gdata/spreadsheets/data.py
Cloudlock/gdata-python3
a6481a13590bfa225f91a97b2185cca9aacd1403
[ "Apache-2.0" ]
19
2017-06-09T13:38:03.000Z
2020-12-12T07:45:48.000Z
src/gdata/spreadsheets/data.py
AlexxIT/gdata-python3
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
[ "Apache-1.1" ]
11
2017-07-22T07:09:54.000Z
2020-12-02T15:08:48.000Z
src/gdata/spreadsheets/data.py
AlexxIT/gdata-python3
5cc5a83a469d87f804d1fda8760ec76bcb6050c9
[ "Apache-1.1" ]
25
2017-07-03T11:30:39.000Z
2020-10-01T02:21:13.000Z
#!/usr/bin/env python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License 2.0; # This module is used for version 2 of the Google Data APIs. """Provides classes and constants for the XML in the Google Spreadsheets API. Documentation for the raw XML which these classes represent can be found he...
31.162162
82
0.674761
9,881
0.856982
0
0
0
0
0
0
6,827
0.592108
79028a174225260b671df8c8ac4560369e16c2c8
710
py
Python
tests/test_issues/test_member_example.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
3
2017-07-23T11:11:23.000Z
2020-11-30T15:36:51.000Z
tests/test_issues/test_member_example.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
15
2018-01-05T17:18:34.000Z
2021-12-13T17:40:25.000Z
tests/test_issues/test_member_example.py
hsolbrig/pyjsg
5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429
[ "CC0-1.0" ]
null
null
null
import unittest from pyjsg.validate_json import JSGPython class MemberExampleTestCase(unittest.TestCase): def test1(self): x = JSGPython('''doc { last_name : @string, # exactly one last name of type string first_name : @string+ # array or one or more first names ...
28.4
77
0.533803
599
0.843662
0
0
0
0
0
0
449
0.632394
7902cca06e3a841cee96255c053ca834cc5022f5
7,223
py
Python
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
1
2022-01-08T09:33:09.000Z
2022-01-08T09:33:09.000Z
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
null
null
null
src/pte/filetools/filefinder_abc.py
richardkoehler/pynm-decode
3120a410d79d3fce45d0f59025d68ba2d5e80d9e
[ "MIT" ]
null
null
null
"""Define abstract base classes to construct FileFinder classes.""" import os import shutil from abc import ABC, abstractmethod from dataclasses import dataclass, field from pathlib import Path from typing import Optional, Sequence, Union import mne_bids @dataclass class FileFinder(ABC): """Basic representation...
33.439815
79
0.56417
6,946
0.96165
0
0
5,624
0.778624
0
0
1,611
0.223038
790323f724e852cdcf7d4d9d3e4d89703473f768
3,725
py
Python
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
panel/routes/server.py
emilio2hd/pz-panel
6b53f465b2c041e963e2b75e48b1612549ad6fea
[ "MIT" ]
null
null
null
import glob import time from os import path from flask import Blueprint, jsonify, current_app, request, Response, json from flask_login import login_required from .. import pz_server_state from ..services.power_actions_service import is_valid_power_action, execute_action from ..services.server_options_service import ...
29.8
119
0.68698
0
0
948
0.254497
2,941
0.78953
0
0
542
0.145503
7903777a50ff41a94bed60837d113e3a3fca6cc0
23,095
py
Python
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
sub_models.py
tmartin2/EnsembleSplice-Inactive
a161ff007b47ceadd3a21376f2eac2971bb81d90
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) 2021 Trevor P. Martin. All rights reserved. # Distributed under the MIT License. # ----------------------------------------------------------------------------- from Data import encode_data # from utils import cross_validati...
34.781627
126
0.525352
7,716
0.334098
0
0
7,421
0.321325
0
0
11,801
0.510976
7903ec9c043049b9e677a2917e22d25071fe1f34
3,227
py
Python
tracportalopt/project/notification.py
isabella232/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
2
2015-01-19T05:53:30.000Z
2016-01-08T10:30:02.000Z
tracportalopt/project/notification.py
iij/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
1
2022-01-20T12:47:18.000Z
2022-01-20T12:47:18.000Z
tracportalopt/project/notification.py
isabella232/TracPortalPlugin
985581b16aad360cfc78d6b901c93fb922f7bc30
[ "MIT" ]
3
2016-12-08T02:25:36.000Z
2022-01-20T12:10:58.000Z
#! -*- coding: utf-8 -*- # # (C) 2013 Internet Initiative Japan Inc. # All rights reserved. # # Created on 2013/05/15 # @author: [email protected] """Notify project owner with email when the project created successfully.""" from pkg_resources import resource_filename from trac.config import Option, ListOption from tra...
37.523256
115
0.654478
2,675
0.828943
0
0
0
0
0
0
866
0.268361
790488091f13f4b2ff427e7b9bda7aa18b0d732c
1,391
py
Python
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2019-04-23T10:41:35.000Z
2019-10-27T05:14:42.000Z
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
null
null
null
misc/style/check-include-guard-convention.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2018-01-16T00:00:22.000Z
2019-11-01T23:35:01.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import glob import os.path import sys DIR = os.path.dirname(os.path.abspath(__file__)) REPO = os.path.dirname(os.path.dirname(DIR)) SRC_DIR = os.path.join(REPO, "src") def check_header_files(component): component_dir = os.path...
28.979167
90
0.591661
0
0
0
0
0
0
0
0
178
0.127965
7905a7207409a36e542edd41a689eb3240d45b7e
432
py
Python
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_7/fun_with_lists_length/length.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ def length(head) -> int: """ The method length, which accepts a linked list (head), and returns the length of the list. :param head: :return: """ i = 0 if head is Non...
18.782609
53
0.581019
0
0
0
0
0
0
0
0
256
0.592593
7907243674e9e866161964f1907b28118b6c5588
7,238
py
Python
test/functional/test_f_xcompat.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
95
2018-08-20T23:10:00.000Z
2022-02-17T02:54:32.000Z
test/functional/test_f_xcompat.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
220
2018-08-01T20:56:29.000Z
2022-03-28T18:12:35.000Z
test/functional/test_f_xcompat.py
farleyb-amazon/aws-encryption-sdk-python
7950abd73ee333407d2dadd02ef2d57c3df464cf
[ "Apache-2.0" ]
63
2018-08-01T19:37:33.000Z
2022-03-20T17:14:15.000Z
# Copyright 2017 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 "license" file accompa...
39.336957
116
0.678088
1,830
0.252832
0
0
1,567
0.216496
0
0
1,679
0.23197
7907463be0399381dbb251da2399a40b35f47313
986
py
Python
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
opatua/cookiecutter-flask-api
67e5a37ee2b8ca32823ac2f8051bab6653b3b44e
[ "MIT" ]
2
2019-04-06T05:08:15.000Z
2019-04-06T19:23:44.000Z
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
opatua/cookiecutter-flask-api
67e5a37ee2b8ca32823ac2f8051bab6653b3b44e
[ "MIT" ]
null
null
null
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
opatua/cookiecutter-flask-api
67e5a37ee2b8ca32823ac2f8051bab6653b3b44e
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api from flask_cors import CORS from flask_migrate import Migrate, MigrateCommand from flask_script import Manager from {{cookiecutter.app_name}}.config import app_config from {{cookiecutter.app_name}}.models import db, bcrypt from {{cookiecutter.app_name}}.resources i...
22.930233
63
0.704868
0
0
0
0
0
0
0
0
139
0.140974
79085a6c06f94f9781c1a341cbcc3d429b30a260
17,381
py
Python
docs/examples/Moving_Platform_Simulation.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
157
2019-04-14T20:43:11.000Z
2022-03-30T08:30:33.000Z
docs/examples/Moving_Platform_Simulation.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
364
2019-04-18T15:54:49.000Z
2022-03-31T09:50:02.000Z
docs/examples/Moving_Platform_Simulation.py
Red-Portal/Stone-Soup-1
267621c86161a839da9b144c2745d28d9166d903
[ "MIT" ]
86
2019-04-20T02:01:18.000Z
2022-03-28T01:03:11.000Z
#!/usr/bin/env python # coding: utf-8 """ Multi-Sensor Moving Platform Simulation Example =============================================== This example looks at how multiple sensors can be mounted on a single moving platform and exploiting a defined moving platform as a sensor target. """ # %% # Building a Simulated M...
44.452685
120
0.693976
0
0
0
0
0
0
0
0
9,924
0.570968
79093ae44bacb9494b8349f6098239d9b14a8d37
567
py
Python
Glyph-Builders/lowercase_from_upper.py
m4rc1e/mf-glyphs-scripts
c5ed026e5b72a886f1e574f85659cdcae041e66a
[ "MIT" ]
27
2015-09-01T00:19:34.000Z
2021-12-05T01:59:01.000Z
Glyph-Builders/lowercase_from_upper.py
m4rc1e/mf-glyphs-scripts
c5ed026e5b72a886f1e574f85659cdcae041e66a
[ "MIT" ]
26
2016-01-03T09:31:39.000Z
2018-06-01T18:05:58.000Z
Glyph-Builders/lowercase_from_upper.py
m4rc1e/mf-glyphs-scripts
c5ed026e5b72a886f1e574f85659cdcae041e66a
[ "MIT" ]
7
2016-01-03T07:09:04.000Z
2018-04-06T00:24:14.000Z
#MenuTitle: Generate lowercase from uppercase """ Generate lowercase a-z from uppercase A-Z TODO (M Foley) Generate all lowercase glyphs, not just a-z """ font = Glyphs.font glyphs = list('abcdefghijklmnopqrstuvwxyz') masters = font.masters for glyph_name in glyphs: glyph = GSGlyph(glyph_name) glyph.updateGl...
24.652174
58
0.714286
0
0
0
0
0
0
0
0
182
0.320988
7909cb31dce0f5d0d244a16c56e9e7a864d3c124
2,372
py
Python
src/gui/SubVision.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/SubVision.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
src/gui/SubVision.py
bochkovoi/AHP
b51dc598f8f7a65a2ade039d887dccfa6d070f1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from PyQt5 import QtWidgets, QtGui, QtCore import sys, os.path as op path1 = op.join( op.abspath(op.dirname(__file__)), '..', 'Structure') path2 = op.join( op.abspath(op.dirname(__file__)), '..') sys.path.append(path1) sys.path.append(path2) from Structure import * from V...
38.885246
85
0.643339
2,615
0.884941
0
0
0
0
0
0
1,343
0.454484
790a31602a2e6231958a1ed23fbe61a5ef5fd6fa
23
py
Python
examples/ndfd/ndfd.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
123
2015-01-12T06:43:22.000Z
2022-03-20T18:06:46.000Z
examples/ndfd/ndfd.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
103
2015-01-08T18:35:57.000Z
2022-01-18T01:44:14.000Z
examples/ndfd/ndfd.py
eLBati/pyxb
14737c23a125fd12c954823ad64fc4497816fae3
[ "Apache-2.0" ]
54
2015-02-15T17:12:00.000Z
2022-03-07T23:02:32.000Z
from raw.ndfd import *
11.5
22
0.73913
0
0
0
0
0
0
0
0
0
0
790a4f9b1ca5315576470030e7218150601d0818
56
py
Python
pandoc_mustache/__init__.py
copart/pandoc-mustache
f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa
[ "CC0-1.0" ]
43
2017-12-27T05:57:00.000Z
2022-03-18T10:07:28.000Z
pandoc_mustache/__init__.py
copart/pandoc-mustache
f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa
[ "CC0-1.0" ]
10
2018-02-07T11:20:37.000Z
2021-04-22T21:44:19.000Z
pandoc_mustache/__init__.py
copart/pandoc-mustache
f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa
[ "CC0-1.0" ]
8
2018-11-05T13:10:35.000Z
2021-08-30T18:14:02.000Z
from .version import __version__ import pandoc_mustache
18.666667
32
0.875
0
0
0
0
0
0
0
0
0
0
790a863e1b7c7976c78fdf15265431950cd90024
5,163
py
Python
espnet2/gan_tts/espnet_model.py
actboy/espnet
c0ca15e9da6e89ff6df5fe70ed08654deeca2ac0
[ "Apache-2.0" ]
null
null
null
espnet2/gan_tts/espnet_model.py
actboy/espnet
c0ca15e9da6e89ff6df5fe70ed08654deeca2ac0
[ "Apache-2.0" ]
1
2021-08-11T08:35:36.000Z
2021-08-13T07:12:47.000Z
espnet2/gan_tts/espnet_model.py
shirayu/espnet
66f0f8382b0e1195bed7c280c29711f8436b3db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Tomoki Hayashi # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """GAN-based TTS ESPnet model.""" from contextlib import contextmanager from distutils.version import LooseVersion from typing import Any from typing import Dict from typing import Optional import torch from typeguard import...
35.363014
81
0.627929
4,289
0.830719
49
0.009491
69
0.013364
0
0
1,996
0.386597
790b72b5977bc41bc1fa4f394888d33023e6e512
1,309
py
Python
array/bot/others/P_ex07.py
timkphd/examples
04c162ec890a1c9ba83498b275fbdc81a4704062
[ "Unlicense" ]
5
2020-11-01T00:29:22.000Z
2022-01-24T19:09:47.000Z
array/bot/others/P_ex07.py
timkphd/examples
04c162ec890a1c9ba83498b275fbdc81a4704062
[ "Unlicense" ]
1
2022-02-09T01:59:47.000Z
2022-02-09T01:59:47.000Z
array/bot/others/P_ex07.py
timkphd/examples
04c162ec890a1c9ba83498b275fbdc81a4704062
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # This program shows how to use MPI_Alltoall. Each processor # send/rec a different random number to/from other processors. # # numpy is required import numpy from numpy import * # mpi4py module from mpi4py import MPI import sys def myquit(mes): MPI.Finalize() print(mes) ...
20.453125
63
0.675325
0
0
0
0
0
0
0
0
815
0.622613
790c207725e1c54d9a32196cd02ceb7f9a4e7af7
18,376
py
Python
renderer/render_fmo.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
1
2022-03-14T12:46:38.000Z
2022-03-14T12:46:38.000Z
renderer/render_fmo.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
renderer/render_fmo.py
12564985/DeFMO
8ed9c2963678e2c59c7431ec8786302eea841572
[ "MIT" ]
null
null
null
""" render_fmo.py renders obj file to rgb image with fmo model Aviable function: - clear_mash: delete all the mesh in the secene - scene_setting_init: set scene configurations - node_setting_init: set node configurations - render: render rgb image for one obj file and one viewpoint - render_obj: wrapper function for r...
39.181237
200
0.619286
0
0
0
0
0
0
0
0
3,743
0.20369
790ca91d1e267c27a75b0c472c8aadefd871871f
11,385
py
Python
main.py
VV123/NLIDB_gradient
f42a6f383d2d4ac41c354cf55df2a21507577b02
[ "MIT" ]
null
null
null
main.py
VV123/NLIDB_gradient
f42a6f383d2d4ac41c354cf55df2a21507577b02
[ "MIT" ]
1
2021-01-11T03:42:43.000Z
2021-02-19T17:06:59.000Z
main.py
VV123/NLIDB_gradient
f42a6f383d2d4ac41c354cf55df2a21507577b02
[ "MIT" ]
null
null
null
# coding=utf-8 import sys import argparse import os from tensorflow.python.platform import gfile import numpy as np import tensorflow as tf from tensorflow.python.layers.core import Dense from utils.data_manager import load_data, load_data_one from collections import defaultdict from argparse import ArgumentParser fro...
33.683432
133
0.623188
100
0.008783
0
0
0
0
0
0
2,630
0.231006
790e259abafc3b78efd22c4e49725337604761c5
55
py
Python
src/__init__.py
codespacedot/CodeSpaceAPI
22b457088aa592c4fb9111718810075d2643d9ca
[ "Apache-2.0" ]
3
2021-07-05T17:28:14.000Z
2021-12-07T10:08:14.000Z
src/__init__.py
git-vish/CodeSpaceAPI
7ad4327e0eef3019098730358c4a23312bc85615
[ "Apache-2.0" ]
2
2021-07-29T13:55:15.000Z
2021-07-31T16:49:03.000Z
src/__init__.py
git-vish/CodeSpaceAPI
7ad4327e0eef3019098730358c4a23312bc85615
[ "Apache-2.0" ]
3
2021-07-01T16:32:20.000Z
2021-07-05T04:50:30.000Z
"""FastAPI Project for CodeSpace. https://csdot.ml """
13.75
33
0.690909
0
0
0
0
0
0
0
0
54
0.981818
790e708e4fd42df30662fd05e0fd27cb6d2b56ae
1,525
py
Python
gdsfactory/components/cdsem_straight.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
42
2020-05-25T09:33:45.000Z
2022-03-29T03:41:19.000Z
gdsfactory/components/cdsem_straight.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
133
2020-05-28T18:29:04.000Z
2022-03-31T22:21:42.000Z
gdsfactory/components/cdsem_straight.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
17
2020-06-30T07:07:50.000Z
2022-03-17T15:45:27.000Z
"""CD SEM structures.""" from functools import partial from typing import Optional, Tuple from gdsfactory.cell import cell from gdsfactory.component import Component from gdsfactory.components.straight import straight as straight_function from gdsfactory.components.text_rectangular import text_rectangular from gdsfact...
28.773585
76
0.685902
0
0
0
0
924
0.605902
0
0
274
0.179672
79107ce8bb54a81242a6381a90d895c5d61ecf37
10,057
py
Python
Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
null
null
null
Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
null
null
null
Examples/Tests/particle_fields_diags/analysis_particle_diags_impl.py
hklion/WarpX
3c2d0ee2815ab1df21b9f78d899fe7b1a9651758
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019-2022 Luca Fedeli, Yinjian Zhao, Hannah Klion # # This file is part of WarpX. # # License: BSD-3-Clause-LBNL # This script tests the reduced particle diagnostics. # The setup is a uniform plasma with electrons, protons and photons. # Various particle and field quantities are wri...
46.995327
126
0.645521
0
0
0
0
0
0
0
0
2,955
0.293825
7910b1ce3b116e87579add349dab0e8dadaa95e7
1,420
py
Python
predict.py
stonebegin/Promise12-3DUNet
d48d95ae7f2da98d068f84391dc547abd968981d
[ "MIT" ]
2
2020-12-20T12:35:24.000Z
2021-01-04T03:21:37.000Z
predict.py
stonebegin/Promise12-3DUNet
d48d95ae7f2da98d068f84391dc547abd968981d
[ "MIT" ]
1
2020-12-27T05:08:02.000Z
2020-12-27T08:08:50.000Z
predict.py
stonebegin/Promise12-3DUNet
d48d95ae7f2da98d068f84391dc547abd968981d
[ "MIT" ]
null
null
null
import importlib import os from datasets.hdf5 import get_test_loaders from unet3d import utils from unet3d.config import load_config from unet3d.model import get_model logger = utils.get_logger('UNet3DPredictor') def _get_predictor(model, loader, output_file, config): predictor_config = config.get('pr...
30.869565
84
0.687324
0
0
0
0
0
0
0
0
368
0.259155
7910bb4a1911643dedff502020dff254dc351cc8
9,248
py
Python
gitScrabber/scrabTasks/file/languageDetector.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/scrabTasks/file/languageDetector.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
gitScrabber/scrabTasks/file/languageDetector.py
Eyenseo/gitScrabber
e3f5ce1a7b034fa3e40a54577268228a3be2b141
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2017 Andreas Poppele Copyright (c) 2017 Roland Jaeger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
35.706564
79
0.561635
8,031
0.868404
0
0
0
0
0
0
4,436
0.479671
7911642cb8be401271e397388edbb0e1b9d4ae27
4,667
py
Python
VAE/full_model/model_training.py
youngmg1995/NES-Music-Maker
aeda10a541cfd439cfa46c45e63411e0d98e41c1
[ "MIT" ]
3
2020-06-26T22:02:35.000Z
2021-11-20T19:24:33.000Z
VAE/full_model/model_training.py
youngmg1995/NES-Music-Maker
aeda10a541cfd439cfa46c45e63411e0d98e41c1
[ "MIT" ]
null
null
null
VAE/full_model/model_training.py
youngmg1995/NES-Music-Maker
aeda10a541cfd439cfa46c45e63411e0d98e41c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Apr 1 17:14:19 2020 @author: Mitchell model_training.py ~~~~~~~~~~~~~~~~~ This file serves as a script for building and training our VAE model. To do so we used the VAE and DataSequence classes defined in the file `VAE.py`, as well as helper functions from the file `dataset...
31.748299
79
0.611099
0
0
0
0
0
0
0
0
2,270
0.486394
7911efa6a596e02ff81a8a1e7aa08e6a17b34751
721
py
Python
tests/validation/test_is_subnational1.py
StuartMacKay/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
9
2020-05-16T20:26:33.000Z
2021-11-02T06:24:46.000Z
tests/validation/test_is_subnational1.py
StuartMacKay/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
17
2019-06-22T09:41:22.000Z
2020-09-11T06:25:21.000Z
tests/validation/test_is_subnational1.py
ProjectBabbler/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
null
null
null
import unittest from ebird.api.validation import is_subnational1 class IsSubnational1Tests(unittest.TestCase): """Tests for the is_subnational1 validation function.""" def test_is_subnational1(self): self.assertTrue(is_subnational1("US-NV")) def test_invalid_code_is_not_subnational1(self): ...
30.041667
60
0.744799
652
0.9043
0
0
0
0
0
0
95
0.131761
7912e94c22f794944d84a76c7ea337e0f1d42d27
83
py
Python
maths2.py
tavleensasan/Tav
7d9d041cf0ed13c2fe581dc8e40c93721ae4de73
[ "MIT" ]
null
null
null
maths2.py
tavleensasan/Tav
7d9d041cf0ed13c2fe581dc8e40c93721ae4de73
[ "MIT" ]
null
null
null
maths2.py
tavleensasan/Tav
7d9d041cf0ed13c2fe581dc8e40c93721ae4de73
[ "MIT" ]
null
null
null
def multiple(first,second): return first * second def add(x,y): return x+y
16.6
27
0.662651
0
0
0
0
0
0
0
0
0
0
79135bcae4aa65725d47cfe68fe799e301d340b1
7,172
py
Python
backend/kale/tests/assets/kfp_dsl/simple_data_passing.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
502
2019-07-18T16:19:16.000Z
2022-03-30T19:45:31.000Z
backend/kale/tests/assets/kfp_dsl/simple_data_passing.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
189
2019-09-22T10:54:02.000Z
2022-03-28T13:46:31.000Z
backend/kale/tests/assets/kfp_dsl/simple_data_passing.py
brness/kale
d90310dbebc765c68915df0cf832a7a5d1ec1551
[ "Apache-2.0" ]
111
2019-09-25T20:28:47.000Z
2022-03-24T01:31:46.000Z
import json import kfp.dsl as _kfp_dsl import kfp.components as _kfp_components from collections import OrderedDict from kubernetes import client as k8s_client def step1(): from kale.common import mlmdutils as _kale_mlmdutils _kale_mlmdutils.init_metadata() from kale.marshal.decorator import marshal as...
34.480769
88
0.725739
0
0
0
0
4,808
0.670385
0
0
847
0.118098
791468fb9834f8a61e661025dfae37ea17e85be7
135
py
Python
note/urls.py
StevenYwch/CloudNote
c36efba53d83a040f4c9cff861d0df28d9db8f1b
[ "MIT" ]
null
null
null
note/urls.py
StevenYwch/CloudNote
c36efba53d83a040f4c9cff861d0df28d9db8f1b
[ "MIT" ]
null
null
null
note/urls.py
StevenYwch/CloudNote
c36efba53d83a040f4c9cff861d0df28d9db8f1b
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('list', views.list_view), path('add', views.add_view), ]
19.285714
34
0.681481
0
0
0
0
0
0
0
0
11
0.081481
791572847749537988baaf3cd53a31420b81f7a2
3,158
py
Python
roombapy/discovery.py
Erelen-Laiquendi/roombapy
104908ec040ebb72e16d3763741565eacc585801
[ "MIT" ]
17
2018-01-27T19:53:06.000Z
2022-03-16T07:29:13.000Z
roombapy/discovery.py
Erelen-Laiquendi/roombapy
104908ec040ebb72e16d3763741565eacc585801
[ "MIT" ]
78
2017-09-03T17:37:03.000Z
2022-03-30T10:41:55.000Z
roombapy/discovery.py
bdraco/Roomba980-Python
d25583a7b8cd6e65148caeebc6849e73dff645da
[ "MIT" ]
25
2017-09-03T13:43:21.000Z
2022-03-19T23:41:51.000Z
import json import logging import socket from roombapy.roomba_info import RoombaInfo class RoombaDiscovery: udp_bind_address = "" udp_address = "<broadcast>" udp_port = 5678 roomba_message = "irobotmcs" amount_of_broadcasted_messages = 5 server_socket = None log = None def __init__(s...
28.972477
79
0.594997
2,486
0.787207
0
0
0
0
0
0
251
0.079481
7915bd6303c3c35d054564976537a39f4bb990be
76
py
Python
nonbonded/cli/projects/__init__.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
5
2020-05-11T18:25:00.000Z
2022-01-27T10:55:09.000Z
nonbonded/cli/projects/__init__.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
88
2020-06-02T14:40:05.000Z
2022-03-02T09:20:39.000Z
nonbonded/cli/projects/__init__.py
SimonBoothroyd/nonbonded
3efbb7d943d936b47248975f9ad0d8a006ea8684
[ "MIT" ]
null
null
null
# from nonbonded.cli.project.project import project # # __all__ = [project]
19
51
0.75
0
0
0
0
0
0
0
0
73
0.960526
791688dbd138ffb5132f957ed4ac7f6e3567bcff
30,666
py
Python
pmaf/biome/essentials/_taxonomy.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/biome/essentials/_taxonomy.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/biome/essentials/_taxonomy.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.simplefilter("ignore", category=FutureWarning) from pmaf.biome.essentials._metakit import EssentialFeatureMetabase from pmaf.biome.essentials._base import EssentialBackboneBase from pmaf.internal._constants import ( AVAIL_TAXONOMY_NOTATIONS, jRegexGG, jRegexQIIME, BIOM_TAXONOMY...
37.081016
133
0.559903
29,908
0.975282
0
0
3,909
0.12747
0
0
8,318
0.271245
7916e1c58cd3262cc6b3f5abd2ae3b7c7603279e
9,607
py
Python
users_django/users/tests/test_views.py
r-o-main/users-exercise
ecd6e33308140f72cb6c446e0e7e93f327b57a97
[ "MIT" ]
null
null
null
users_django/users/tests/test_views.py
r-o-main/users-exercise
ecd6e33308140f72cb6c446e0e7e93f327b57a97
[ "MIT" ]
null
null
null
users_django/users/tests/test_views.py
r-o-main/users-exercise
ecd6e33308140f72cb6c446e0e7e93f327b57a97
[ "MIT" ]
null
null
null
from rest_framework.test import APIRequestFactory from rest_framework import status from django.test import TestCase from django.urls import reverse from ..models import User from ..serializer import UserSerializer from ..views import UserViewSet import ipapi class UsersApiRootTestCase(TestCase): def test_api_ro...
39.052846
108
0.65192
9,325
0.970646
0
0
0
0
0
0
1,835
0.191007
79181888e71b95f21231a74673bce1df5f5dad06
1,058
py
Python
jburt/mask.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
jburt/mask.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
jburt/mask.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
from typing import List import numpy as np def mask_nan(arrays: List[np.ndarray]) -> List[np.ndarray]: """ Drop indices from equal-sized arrays if the element at that index is NaN in any of the input arrays. Parameters ---------- arrays : List[np.ndarray] list of ndarrays containing ...
27.128205
79
0.581285
0
0
0
0
0
0
0
0
715
0.675803
7918bd9392635ed706771c33b08bee283e79ec85
838
py
Python
ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py
lennyAiko/LifeExpenses
ec345228bca00742b0b08cf3fc294dba6574b515
[ "MIT" ]
null
null
null
ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py
lennyAiko/LifeExpenses
ec345228bca00742b0b08cf3fc294dba6574b515
[ "MIT" ]
null
null
null
ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py
lennyAiko/LifeExpenses
ec345228bca00742b0b08cf3fc294dba6574b515
[ "MIT" ]
1
2020-09-01T15:38:19.000Z
2020-09-01T15:38:19.000Z
# Generated by Django 3.1.1 on 2020-09-08 18:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('grocery', '0003_auto_202...
31.037037
142
0.656325
679
0.810263
0
0
0
0
0
0
131
0.156325
7919878f4085d6d12cdcb153170df1fa3bde8e8d
1,035
py
Python
my_hello_world_app/web_api/router.py
gsjay980/data-science-IP
715550d1cbf67e552c0df533619460c0fee15b94
[ "MIT" ]
5
2020-05-26T09:33:54.000Z
2021-07-01T02:42:30.000Z
my_hello_world_app/web_api/router.py
gsjay980/data-science-IP
715550d1cbf67e552c0df533619460c0fee15b94
[ "MIT" ]
3
2019-12-26T17:34:24.000Z
2020-02-04T03:16:23.000Z
my_hello_world_app/web_api/router.py
gsjay980/data-science-IP
715550d1cbf67e552c0df533619460c0fee15b94
[ "MIT" ]
2
2021-12-17T00:46:03.000Z
2022-02-26T11:04:55.000Z
from os import getenv from typing import Optional, Dict from flask import Flask TestConfig = Optional[Dict[str, bool]] def create_app(test_config: TestConfig = None) -> Flask: """ App factory method to initialize the application with given configuration """ app: Flask = Flask(__name__) if test_config ...
32.34375
97
0.672464
0
0
0
0
629
0.607729
0
0
579
0.55942
791a179ef2265637a66974e7b35a3ad2c3c5a16a
10,666
py
Python
src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py
dcf21/4most-4gp
0421d76791315aa3ca8ff9e4bd2e37ad36c0141f
[ "MIT" ]
null
null
null
src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py
dcf21/4most-4gp
0421d76791315aa3ca8ff9e4bd2e37ad36c0141f
[ "MIT" ]
null
null
null
src/pythonModules/fourgp_rv/fourgp_rv/templates_resample.py
dcf21/4most-4gp
0421d76791315aa3ca8ff9e4bd2e37ad36c0141f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Code to take template spectra, used for RV fitting, and pass them through 4FS to resample them to 4MOST's resolution. It then further resamples each arm onto a fixed logarithmic stride. """ import argparse import hashlib import logging import numpy as np import os from os import path as os...
45.387234
127
0.603975
0
0
0
0
0
0
0
0
4,394
0.411963
791a74027f2dc3fbe44b27f9c9f0523352b4d029
149
py
Python
datahub/activity_feed/apps.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/activity_feed/apps.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/activity_feed/apps.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
from django.apps import AppConfig class ActivityFeedConfig(AppConfig): """App config for activity_feed.""" name = 'datahub.activity_feed'
18.625
39
0.738255
112
0.751678
0
0
0
0
0
0
58
0.389262
791aafa638d97478db2d6a462067e347380d5760
117
py
Python
ffmpeg_normalize/__init__.py
kostalski/ffmpeg-normalize
2c73f47ec4369de08c1e2051af490322084fd17b
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
ffmpeg_normalize/__init__.py
kostalski/ffmpeg-normalize
2c73f47ec4369de08c1e2051af490322084fd17b
[ "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
ffmpeg_normalize/__init__.py
kostalski/ffmpeg-normalize
2c73f47ec4369de08c1e2051af490322084fd17b
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
from ._ffmpeg_normalize import FFmpegNormalize from ._media_file import MediaFile from ._version import __version__
23.4
46
0.863248
0
0
0
0
0
0
0
0
0
0
791adee85a8db7759e5f3f2e7403b68b0df27e62
113
py
Python
__init__.py
nuxeo-cps/zope2--PortalTransforms
753f67202b016d0b07edd3bc65fd827cb39e50db
[ "BSD-3-Clause" ]
null
null
null
__init__.py
nuxeo-cps/zope2--PortalTransforms
753f67202b016d0b07edd3bc65fd827cb39e50db
[ "BSD-3-Clause" ]
null
null
null
__init__.py
nuxeo-cps/zope2--PortalTransforms
753f67202b016d0b07edd3bc65fd827cb39e50db
[ "BSD-3-Clause" ]
null
null
null
__revision__ = '$Id$' from utils import HAS_ZOPE if HAS_ZOPE: from Products.PortalTransforms.zope import *
16.142857
48
0.752212
0
0
0
0
0
0
0
0
6
0.053097
791be8749fa60c1fc2eb6569f7089a3ef2f48994
11,259
py
Python
SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
3
2019-11-12T07:55:51.000Z
2020-04-01T11:19:18.000Z
SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py
Natfan/funlittlethings
80d5378b45b5c0ead725942ee50403bd057514a6
[ "MIT" ]
2
2019-10-20T14:54:47.000Z
2020-06-11T07:29:37.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base....
29.551181
101
0.606981
10,859
0.964473
0
0
1,607
0.14273
0
0
6,033
0.535838
791c899515ab5ee22d19f49f98ec0553bac2d037
144
py
Python
app/donut.py
zaphodef/stockpile
f682c0d16a07ab281363c8031c611305934da46c
[ "Apache-2.0" ]
null
null
null
app/donut.py
zaphodef/stockpile
f682c0d16a07ab281363c8031c611305934da46c
[ "Apache-2.0" ]
null
null
null
app/donut.py
zaphodef/stockpile
f682c0d16a07ab281363c8031c611305934da46c
[ "Apache-2.0" ]
null
null
null
async def donut_handler(args): print('This is where we would configure things to properly handle a .donut file request.') return '', ''
36
94
0.708333
0
0
0
0
0
0
143
0.993056
87
0.604167
791fc2d140f54e02c2b4d1000be7565797957857
136
py
Python
gtf2bed/__init__.py
jvfe/gtf2bed
7ac21759498ca9495030982d2a11c2a63149a75c
[ "BSD-3-Clause" ]
1
2021-04-22T09:27:35.000Z
2021-04-22T09:27:35.000Z
gtf2bed/__init__.py
jvfe/gtf2bed
7ac21759498ca9495030982d2a11c2a63149a75c
[ "BSD-3-Clause" ]
null
null
null
gtf2bed/__init__.py
jvfe/gtf2bed
7ac21759498ca9495030982d2a11c2a63149a75c
[ "BSD-3-Clause" ]
null
null
null
"""Top-level package for gtf2bed.""" __author__ = """João Vitor F. Cavalcante""" __email__ = "[email protected]" __version__ = "0.1.0"
22.666667
43
0.683824
0
0
0
0
0
0
0
0
93
0.678832
79206dc12be47bbbc702eacb1b5f27bdf824bf1f
2,993
py
Python
fastapi_cloudauth/firebase.py
jleclanche/fastapi-cloudauth
9c098f91f46d9d927e1f10b82b80340951d0b1f2
[ "MIT" ]
null
null
null
fastapi_cloudauth/firebase.py
jleclanche/fastapi-cloudauth
9c098f91f46d9d927e1f10b82b80340951d0b1f2
[ "MIT" ]
null
null
null
fastapi_cloudauth/firebase.py
jleclanche/fastapi-cloudauth
9c098f91f46d9d927e1f10b82b80340951d0b1f2
[ "MIT" ]
null
null
null
from calendar import timegm from datetime import datetime from typing import Any, Dict from fastapi import HTTPException from pydantic import BaseModel, Field from starlette import status from .base import UserInfoAuth from .messages import NOT_VERIFIED from .verification import JWKS, ExtraVerifier class FirebaseCl...
36.060241
114
0.636151
2,682
0.896091
0
0
0
0
1,201
0.40127
959
0.320414
79222572360ae305c1ba2a36f8edf19a01cdcedf
2,410
py
Python
tests/instrumentation/sqlite_tests.py
dsanders11/opbeat_python
4bdfe494ed4dba12550dff86366b4402613bce92
[ "BSD-3-Clause" ]
99
2015-02-27T02:21:41.000Z
2021-02-09T15:13:25.000Z
tests/instrumentation/sqlite_tests.py
dsanders11/opbeat_python
4bdfe494ed4dba12550dff86366b4402613bce92
[ "BSD-3-Clause" ]
114
2015-01-16T15:06:49.000Z
2018-04-13T20:29:18.000Z
tests/instrumentation/sqlite_tests.py
dsanders11/opbeat_python
4bdfe494ed4dba12550dff86366b4402613bce92
[ "BSD-3-Clause" ]
51
2015-01-07T12:13:56.000Z
2019-05-06T14:16:35.000Z
import sqlite3 import mock import opbeat.instrumentation.control from tests.helpers import get_tempstoreclient from tests.utils.compat import TestCase class InstrumentSQLiteTest(TestCase): def setUp(self): self.client = get_tempstoreclient() opbeat.instrumentation.control.instrument() @mock...
38.253968
77
0.641494
2,254
0.93527
0
0
2,094
0.86888
0
0
719
0.29834
7922c3c12c906f5e3ff236bb30e73bcdb61a9ea9
477
py
Python
setup.py
samytessier/group_9_mlops
774f69354aeb5a9ddb59eb2cf5f8460832ab21b2
[ "MIT" ]
1
2022-01-20T02:18:16.000Z
2022-01-20T02:18:16.000Z
setup.py
samytessier/group_9_mlops
774f69354aeb5a9ddb59eb2cf5f8460832ab21b2
[ "MIT" ]
1
2022-01-08T17:18:04.000Z
2022-01-08T17:18:04.000Z
setup.py
samytessier/group_9_mlops
774f69354aeb5a9ddb59eb2cf5f8460832ab21b2
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='This MLOps project aims to use the Transformers framework from Hugging Face in order to tweak a pre-trained NLP model to accurately gauge the sentiment of an Amazon review (being able ...
43.363636
305
0.742138
0
0
0
0
0
0
0
0
323
0.677149
7923b39638368ab2ae741c772b643949cd865155
423
py
Python
gaphor/RAAML/stpa/connectors.py
Texopolis/gaphor
3b190620075fd413258af1e7a007b4b2167a7564
[ "Apache-2.0" ]
867
2018-01-09T00:19:09.000Z
2022-03-31T02:49:23.000Z
gaphor/RAAML/stpa/connectors.py
burakozturk16/gaphor
86267a5200ac4439626d35d306dbb376c3800107
[ "Apache-2.0" ]
790
2018-01-13T23:47:07.000Z
2022-03-31T16:04:27.000Z
gaphor/RAAML/stpa/connectors.py
burakozturk16/gaphor
86267a5200ac4439626d35d306dbb376c3800107
[ "Apache-2.0" ]
117
2018-01-09T02:24:49.000Z
2022-03-23T08:07:42.000Z
from gaphor.diagram.connectors import Connector from gaphor.diagram.presentation import Classified from gaphor.RAAML.raaml import RelevantTo from gaphor.RAAML.stpa import RelevantToItem from gaphor.SysML.requirements.connectors import DirectedRelationshipPropertyPathConnect @Connector.register(Classified, RelevantToI...
35.25
88
0.87234
97
0.229314
0
0
145
0.34279
0
0
0
0
7923c47de0831caf8141bfde82615c01392124f5
1,197
py
Python
voltagemetricspublisher/services/extractionService.py
SumudithaR/svc.voltage-metrics-publisher
4e0418c855920d3e984acf097681e2fc8c8ec081
[ "Apache-2.0" ]
null
null
null
voltagemetricspublisher/services/extractionService.py
SumudithaR/svc.voltage-metrics-publisher
4e0418c855920d3e984acf097681e2fc8c8ec081
[ "Apache-2.0" ]
null
null
null
voltagemetricspublisher/services/extractionService.py
SumudithaR/svc.voltage-metrics-publisher
4e0418c855920d3e984acf097681e2fc8c8ec081
[ "Apache-2.0" ]
null
null
null
from time import sleep from gpiozero import MCP3008 # Installed in GAM 13/09/2019. import time import gpiozero from ..models.rawMetricDto import RawMetricDto class ExtractionService(): def __init__(self): self.vref = 3.3 def getGpioValues(self): print("Getting GPIO Values."...
32.351351
71
0.622389
1,037
0.866332
0
0
0
0
0
0
118
0.09858
792592d09cfb1da8cbdd06e8e2cb4970a31ce4e6
553
py
Python
data_browser/migrations/0002_auto_20200331_1842.py
me2d09/django-data-browser
1108f714229aab8c30a27d93f264f2f26b8b0aee
[ "BSD-3-Clause" ]
null
null
null
data_browser/migrations/0002_auto_20200331_1842.py
me2d09/django-data-browser
1108f714229aab8c30a27d93f264f2f26b8b0aee
[ "BSD-3-Clause" ]
null
null
null
data_browser/migrations/0002_auto_20200331_1842.py
me2d09/django-data-browser
1108f714229aab8c30a27d93f264f2f26b8b0aee
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.13 on 2020-03-31 17:42 from django.db import migrations, models import data_browser.models class Migration(migrations.Migration): dependencies = [ ("data_browser", "0001_initial"), ] operations = [ migrations.AlterField( model_name="view", ...
21.269231
51
0.549729
431
0.779385
0
0
0
0
0
0
86
0.155515
7926794343cfee2a3a93c437f389f8d256dd16f9
320
py
Python
Community/get_audit_info/__init__.py
spenney-bc/gateway-workflows
0311a9224b2d53c01689eb6a9a0a593177abed63
[ "Apache-2.0" ]
43
2017-12-04T17:38:24.000Z
2021-12-29T09:17:17.000Z
Community/get_audit_info/__init__.py
spenney-bc/gateway-workflows
0311a9224b2d53c01689eb6a9a0a593177abed63
[ "Apache-2.0" ]
49
2017-12-07T21:02:29.000Z
2022-02-04T22:27:16.000Z
Community/get_audit_info/__init__.py
spenney-bc/gateway-workflows
0311a9224b2d53c01689eb6a9a0a593177abed63
[ "Apache-2.0" ]
82
2017-12-04T17:56:00.000Z
2021-12-29T09:17:21.000Z
# Copyright 2020 BlueCat Networks. All rights reserved. # -*- coding: utf-8 -*- type = 'ui' sub_pages = [ { 'name' : 'get_audit_info_page', 'title' : u'Get Audit Info', 'endpoint' : 'get_audit_info/get_audit_info_endpoint', 'description' : u'get_audit_info' }, ]
24.615385
65
0.56875
0
0
0
0
0
0
0
0
213
0.665625
79273775aa326888e7143a25472099fb24c7a2cc
548
py
Python
ALDS/ALDS1_10_A.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
1
2020-01-08T16:33:46.000Z
2020-01-08T16:33:46.000Z
ALDS/ALDS1_10_A.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
ALDS/ALDS1_10_A.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
import sys import io input_txt = """ 44 """ sys.stdin = io.StringIO(input_txt) tmp = input() # copy the below part and paste to the submission form. # ---------function------------ def fibonacci(n): if n <= 1: return 1 fib_array = [1] * 45 for i in range(2, n+1): fib_ar...
17.125
56
0.509124
0
0
0
0
0
0
0
0
132
0.240876
7927bbe2f2d0526128722c38428b7bbf96221e46
2,389
py
Python
armada/tests/unit/utils/test_lint.py
One-Fine-Day/armada
9cd71c8b55173a9c9c45bfb939d19277fabd902d
[ "Apache-2.0" ]
null
null
null
armada/tests/unit/utils/test_lint.py
One-Fine-Day/armada
9cd71c8b55173a9c9c45bfb939d19277fabd902d
[ "Apache-2.0" ]
null
null
null
armada/tests/unit/utils/test_lint.py
One-Fine-Day/armada
9cd71c8b55173a9c9c45bfb939d19277fabd902d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Armada 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 w...
29.8625
74
0.541231
1,744
0.730013
0
0
0
0
0
0
1,653
0.691921
7927d5d5ec363318061f6e9faac288240c333204
7,149
py
Python
mliv/dgps.py
microsoft/AdversarialGMM
7a5cd51353c8a81e16c01220b71f77e4e1102add
[ "MIT" ]
23
2020-12-01T22:55:40.000Z
2022-01-26T04:11:14.000Z
mliv/dgps.py
microsoft/AdversarialGMM
7a5cd51353c8a81e16c01220b71f77e4e1102add
[ "MIT" ]
null
null
null
mliv/dgps.py
microsoft/AdversarialGMM
7a5cd51353c8a81e16c01220b71f77e4e1102add
[ "MIT" ]
10
2020-12-05T17:12:49.000Z
2022-01-10T23:42:37.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import numpy as np # continuously differentiable fn_dict_cdiff = {'2dpoly': 1, 'sigmoid': 2, 'sin': 3, 'frequent_sin': 4, '3dpoly': 7, 'linear': 8} # continuous but not differentiable fn_dict_cont = {'abs': 0, '...
40.619318
136
0.527207
0
0
0
0
0
0
0
0
1,494
0.20898
7928e18542e9bd6bf82dff12dad8c28ca120e4fe
16,097
py
Python
tests/test_definitions/test_expectations_cfe.py
OmriBromberg/great_expectations
60eb81ebfb08fef5d37d55c316dc962928beb165
[ "Apache-2.0" ]
1
2021-11-09T05:07:43.000Z
2021-11-09T05:07:43.000Z
tests/test_definitions/test_expectations_cfe.py
OmriBromberg/great_expectations
60eb81ebfb08fef5d37d55c316dc962928beb165
[ "Apache-2.0" ]
1
2021-12-07T13:06:29.000Z
2021-12-07T13:06:29.000Z
tests/test_definitions/test_expectations_cfe.py
OmriBromberg/great_expectations
60eb81ebfb08fef5d37d55c316dc962928beb165
[ "Apache-2.0" ]
null
null
null
import glob import json import os import random import string import pandas as pd import pytest from great_expectations.execution_engine.pandas_batch_data import PandasBatchData from great_expectations.execution_engine.sparkdf_batch_data import SparkDFBatchData from great_expectations.execution_engine.sqlalchemy_batc...
48.927052
118
0.391067
0
0
0
0
801
0.049761
0
0
1,333
0.08281
792b96690a5711f347a2fe1364e3eef792d1ebea
1,393
py
Python
corehq/apps/commtrack/resources/v0_1.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/commtrack/resources/v0_1.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/commtrack/resources/v0_1.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from tastypie import fields from corehq.apps.api.resources.v0_1 import CustomResourceMeta, DomainAdminAuthentication from corehq.apps.products.models import Product from corehq.apps.api.util import get_object_or_not_exist from corehq.apps.api.resources import HqBaseResource """ Implementation of the CommCare Supply A...
36.657895
93
0.740847
987
0.708543
0
0
0
0
0
0
239
0.171572
792bbfea31e2c47d9dc8a86be0bf40d5cfa67a78
7,381
py
Python
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
import argparse import os import pathlib import cv2 import pickle import numpy as np from matplotlib import pyplot as plt from PIL import Image from numpy import genfromtxt def parse_command_line_options(print_options=False): parser = argparse.ArgumentParser() parser.add_argument("-n", type=int, default=-1)...
28.608527
98
0.605067
0
0
0
0
0
0
0
0
1,863
0.252405
792c98d61321846aacf5f5f89a160ce13339bfd4
940
py
Python
pyqt_sql_demo/syntax_highlighter/sql.py
nshiell/pyqt-sql-demo
9e64ba069de744f69c2ecc2eeddac5b0b9f0968a
[ "Unlicense" ]
18
2018-05-14T16:27:24.000Z
2022-02-24T06:47:45.000Z
pyqt_sql_demo/syntax_highlighter/sql.py
nshiell/pyqt-sql-demo
9e64ba069de744f69c2ecc2eeddac5b0b9f0968a
[ "Unlicense" ]
2
2020-09-11T07:56:05.000Z
2021-03-05T14:50:36.000Z
pyqt_sql_demo/syntax_highlighter/sql.py
nshiell/pyqt-sql-demo
9e64ba069de744f69c2ecc2eeddac5b0b9f0968a
[ "Unlicense" ]
9
2019-01-16T16:03:51.000Z
2021-03-14T01:01:55.000Z
from pygments import highlight as _highlight from pygments.lexers import SqlLexer from pygments.formatters import HtmlFormatter def style(): style = HtmlFormatter().get_style_defs() return style def highlight(text): # Generated HTML contains unnecessary newline at the end # before </pre> closing tag...
33.571429
76
0.738298
0
0
0
0
0
0
0
0
446
0.474468
792d78778cc9f57f44aeb718a24a94af2accc6bf
4,337
py
Python
raytracing.py
avigael/raytracing-example
e1e9448fdf371c401e9ada642fd0ca8ed2702609
[ "MIT" ]
null
null
null
raytracing.py
avigael/raytracing-example
e1e9448fdf371c401e9ada642fd0ca8ed2702609
[ "MIT" ]
null
null
null
raytracing.py
avigael/raytracing-example
e1e9448fdf371c401e9ada642fd0ca8ed2702609
[ "MIT" ]
null
null
null
'''2D Raytracing Example using Pygame''' import sys from math import pi, cos, sin import pygame # Constants SIZE = (600, 600) BORDERS = [[0, 0, SIZE[0], 0], [0, 0, 0, SIZE[1]], [0, SIZE[1], SIZE[0], SIZE[1]], [SIZE[0], 0, SIZE[0], SIZE[1]]] WHITE = (255, 255, 255) BLACK = (0, 0, 0) GREEN = (0, 255, 0) cla...
32.125926
78
0.512797
2,596
0.59857
0
0
0
0
0
0
480
0.110676
792f039bf3dcdae9faa7ebde493ddb3c49ba4954
3,041
py
Python
preprocessed_data/UCM/Code/global_histogram_stretching.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
preprocessed_data/UCM/Code/global_histogram_stretching.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
preprocessed_data/UCM/Code/global_histogram_stretching.py
SaiKrishna1207/Underwater-Image-Segmentation
78def27e577b10e6722c02807bdcfeb7ba53d760
[ "MIT" ]
null
null
null
import numpy as np def histogram_r(r_array,height, width): length = height * width R_rray = [] for i in range(height): for j in range(width): R_rray.append(r_array[i][j]) R_rray.sort() I_min = int(R_rray[int(length / 500)]) I_max = int(R_rray[-int(length / 500)]) array_G...
37.54321
95
0.560671
0
0
0
0
0
0
0
0
69
0.02269
792f0b4ef299a46239013a5b5a1e30079b053c00
1,854
py
Python
python/test/experimental/test_tb_graph_writer.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
2,792
2017-06-26T13:05:44.000Z
2022-03-28T07:55:26.000Z
python/test/experimental/test_tb_graph_writer.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
138
2017-06-27T07:04:44.000Z
2022-02-28T01:37:15.000Z
python/test/experimental/test_tb_graph_writer.py
daniel-falk/nnabla
3fe132ea52dc10521cc029a5d6ba8f565cf65ccf
[ "Apache-2.0" ]
380
2017-06-26T13:23:52.000Z
2022-03-25T16:51:30.000Z
# Copyright 2021 Sony 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.9
74
0.662891
0
0
0
0
0
0
0
0
744
0.401294
792f6c2ed852cae02d142182deaf73d1e0349382
1,328
py
Python
pokeman/coatings/resolver_attribute_methods/selective_consumer.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
pokeman/coatings/resolver_attribute_methods/selective_consumer.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
pokeman/coatings/resolver_attribute_methods/selective_consumer.py
wmarcuse/pokeman
5d654c227c456a065b2fea6a0d5827bff424c703
[ "BSD-3-Clause" ]
null
null
null
import json import logging LOGGER = logging.getLogger(__name__) def start(self): self.start_consuming() def on_message(self, channel, method, properties, body): """ Invoked by pika when a message is delivered from the AMQP broker. The channel is passed for convenience. The basic_deliver object tha...
31.619048
73
0.707831
0
0
0
0
0
0
0
0
784
0.590361
79346eb30e63c170afbf3ea69f6c87de3e761345
4,100
py
Python
mc-core/mc/data_gen/gnb_status_indication_pb2.py
copslock/o-ran_ric-app_mc
243f8671c28596b1dc70dd295029d6151c9dd778
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
mc-core/mc/data_gen/gnb_status_indication_pb2.py
copslock/o-ran_ric-app_mc
243f8671c28596b1dc70dd295029d6151c9dd778
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
mc-core/mc/data_gen/gnb_status_indication_pb2.py
copslock/o-ran_ric-app_mc
243f8671c28596b1dc70dd295029d6151c9dd778
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-07-07T06:43:16.000Z
2021-07-07T06:43:16.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: gnb_status_indication.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from googl...
35.652174
426
0.79439
0
0
0
0
0
0
0
0
1,420
0.346341
7934eac98ca8ffa62c49d783f06b030e9d1fdffb
902
py
Python
test_tflite_model.py
jh88/fbnet
5bd12ab8c7f6befc61efd8619d71e710db794c2b
[ "MIT" ]
6
2020-01-16T14:38:10.000Z
2021-01-24T15:49:11.000Z
test_tflite_model.py
jh88/fbnet
5bd12ab8c7f6befc61efd8619d71e710db794c2b
[ "MIT" ]
null
null
null
test_tflite_model.py
jh88/fbnet
5bd12ab8c7f6befc61efd8619d71e710db794c2b
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from time import perf_counter as timer def main(): x = np.load('data/cifar_test_x.npy') y = np.load('data/cifar_test_y.npy').flatten() interpreter = tf.lite.Interpreter(model_path='data/fbnet.tflite') interpreter.allocate_tensors() input_details = inter...
25.771429
80
0.649667
0
0
0
0
0
0
0
0
146
0.161863
7935bc304873f87a9dd8551b03972144b4f09bb2
582
py
Python
src/pymor/vectorarrays/constructions.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/vectorarrays/constructions.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/vectorarrays/constructions.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2016 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) def cat_arrays(vector_arrays): """Return a new |VectorArray| which a concatenation of the arr...
41.571429
92
0.74055
0
0
0
0
0
0
0
0
306
0.525773
7935f670a579e41f9498d1b3fe1e3afe2409108d
407
py
Python
swampytodo/urls.py
mrbaboon/swampytodo
096c39a57db0d8640e03262550dd1ed07191ecde
[ "MIT" ]
null
null
null
swampytodo/urls.py
mrbaboon/swampytodo
096c39a57db0d8640e03262550dd1ed07191ecde
[ "MIT" ]
2
2015-04-23T00:21:01.000Z
2015-04-23T00:29:23.000Z
swampytodo/urls.py
mrbaboon/swampytodo
096c39a57db0d8640e03262550dd1ed07191ecde
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'swampytodo.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^monitor', 'monitor.views.monitor_view', name='monitor'), url(r'^todo', inc...
29.071429
67
0.643735
0
0
0
0
0
0
0
0
186
0.457002
79371535785d9b4c1a14c7350dbe3a0fef48e07d
3,669
py
Python
src/pymor/playground/progressbar.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/playground/progressbar.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/playground/progressbar.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2016 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import sys ############################################################ # #...
35.970588
80
0.562006
2,978
0.811665
0
0
0
0
0
0
1,576
0.429545
79372371d63d8554463e6ea69f517b712b741c97
8,184
py
Python
toontown/minigame/TwoDBattleMgr.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/minigame/TwoDBattleMgr.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/minigame/TwoDBattleMgr.py
SuperM0use24/TT-CL-Edition
fdad8394f0656ae122b687d603f72afafd220c65
[ "MIT" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
from panda3d.core import * from direct.showbase.DirectObject import DirectObject from toontown.toonbase.ToonBaseGlobal import * from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import * from toontown.battle.BattleProps import * from toontown.battle import MovieUtil import math cla...
43.301587
454
0.660191
7,866
0.961144
0
0
0
0
0
0
276
0.033724
7937d7c40eebe24b6b2fbdc5b2fcb247cedd3bed
1,211
py
Python
lesson-12/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
lesson-12/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
lesson-12/ex1.py
alirsamar/intro-ml
36450b26b7ea09472ccdd2a0abce51b6c3889a20
[ "MIT" ]
null
null
null
# Explained Variance of Each PC #### Boilerplate ################################################################# print __doc__ from time import time import logging import pylab as pl import numpy as np from sklearn.cross_validation import train_test_split from sklearn.datasets import fetch_lfw_people from sklearn...
26.911111
90
0.720066
0
0
0
0
0
0
0
0
235
0.194055
793b2e2631986fe445d59015d41bd730fa29fbfa
352
py
Python
qt/__init__.py
popupcad/popupcad
d3da448260cd5cb9e05417b0a723d7f73ae4e06e
[ "MIT" ]
19
2015-08-01T22:13:39.000Z
2020-03-07T03:55:46.000Z
qt/__init__.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
106
2015-07-23T19:58:01.000Z
2019-05-14T03:46:08.000Z
qt/__init__.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
9
2015-10-04T23:38:41.000Z
2020-07-16T03:50:34.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes and CONTRIBUTORS Email: danaukes<at>asu.edu. Please see LICENSE for full license. """ import sys argv = [item.lower() for item in sys.argv] if 'qt4' in argv: loaded = 'PyQt4' elif 'qt5' in argv: loaded = 'PyQt5' elif 'pyside' in argv: loaded = 'PySi...
16
43
0.636364
0
0
0
0
0
0
0
0
186
0.528409
793db8fe0005397f1d556c93efea7bcd3624a441
3,941
py
Python
fast_carpenter/__main__.py
lgray/fast-carpenter
c33b83d16031e5ac4b857ac1a644433b6132bb05
[ "Apache-2.0" ]
null
null
null
fast_carpenter/__main__.py
lgray/fast-carpenter
c33b83d16031e5ac4b857ac1a644433b6132bb05
[ "Apache-2.0" ]
null
null
null
fast_carpenter/__main__.py
lgray/fast-carpenter
c33b83d16031e5ac4b857ac1a644433b6132bb05
[ "Apache-2.0" ]
null
null
null
""" Chop up those trees into nice little tables and dataframes """ from __future__ import print_function import sys from .help import help_stages import fast_flow.v1 as fast_flow import fast_curator import logging import atuproot.atuproot_main as atup from .event_builder import EventBuilder from atsge.build_parallel im...
39.019802
112
0.632073
321
0.081451
0
0
0
0
0
0
819
0.207815
793dc7d4ffbc96247a33db7d9520735900231242
1,283
py
Python
pictures/tests.py
FredAtei/Photo-app
5f9e72948af6a27b1c6c438fa22652c06fc4f6d4
[ "MIT" ]
null
null
null
pictures/tests.py
FredAtei/Photo-app
5f9e72948af6a27b1c6c438fa22652c06fc4f6d4
[ "MIT" ]
null
null
null
pictures/tests.py
FredAtei/Photo-app
5f9e72948af6a27b1c6c438fa22652c06fc4f6d4
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Image,Location,Category # Create your tests here. class CategoryTestClass(TestCase): def setUp(self): self.travel = Category(name='travel') def test_instance(self): self.assertTrue(isinstance(self.travel,Category)) def test_save_method...
31.292683
136
0.683554
1,168
0.910366
0
0
0
0
0
0
59
0.045986
793dd777651fda3f7f0226048a22a03099d8826c
2,110
py
Python
{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py
digitalashes/django2.0-template
4387c25fb94cbff4f201b279f2eefcb174658eff
[ "Apache-2.0" ]
1
2018-03-13T21:16:49.000Z
2018-03-13T21:16:49.000Z
{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py
digitalashes/django2.0-template
4387c25fb94cbff4f201b279f2eefcb174658eff
[ "Apache-2.0" ]
null
null
null
{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_')|lower }}/project/apps/users/views.py
digitalashes/django2.0-template
4387c25fb94cbff4f201b279f2eefcb174658eff
[ "Apache-2.0" ]
null
null
null
{%- if cookiecutter.use_allauth == "y" and cookiecutter.use_rest == "y" %} from django.contrib.auth import logout as auth_logout from django.core.exceptions import ObjectDoesNotExist from django.utils.translation import ugettext_lazy as _ from rest_auth.app_settings import create_token from rest_auth.registration.views...
27.763158
93
0.734597
1,289
0.6109
0
0
0
0
0
0
476
0.225592
793e098cac69c0e739d368a1fa2b5c6d69bbe98f
4,519
py
Python
pyperform/tools.py
timgates42/pyperform
97d87e8b9ddb35bd8f2a6782965fd7735ab0349f
[ "MIT" ]
250
2015-01-03T10:15:26.000Z
2022-03-31T19:43:37.000Z
pyperform/tools.py
timgates42/pyperform
97d87e8b9ddb35bd8f2a6782965fd7735ab0349f
[ "MIT" ]
4
2015-01-23T00:19:45.000Z
2015-10-29T17:17:46.000Z
pyperform/tools.py
timgates42/pyperform
97d87e8b9ddb35bd8f2a6782965fd7735ab0349f
[ "MIT" ]
14
2015-01-17T16:23:04.000Z
2021-07-15T10:59:53.000Z
__author__ = 'calvin' import re import sys from math import log10 if sys.version[0] == '3': pass else: range = xrange classdef_regex = re.compile(r"\S*def .*#!|class .*#!") tagged_line_regex = re.compile(r".*#!") def convert_time_units(t): """ Convert time in seconds into reasonable time units. """ ...
30.741497
107
0.548351
0
0
431
0.095375
0
0
0
0
849
0.187873
793e3ac3dcb05f0d0810a86209b05739d4ea782a
7,522
py
Python
dictify.py
Dharma-Sagar/dictify
c76713feaf45670b245ed7e7feb894c12dffb9cd
[ "Apache-2.0" ]
null
null
null
dictify.py
Dharma-Sagar/dictify
c76713feaf45670b245ed7e7feb894c12dffb9cd
[ "Apache-2.0" ]
null
null
null
dictify.py
Dharma-Sagar/dictify
c76713feaf45670b245ed7e7feb894c12dffb9cd
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from pathlib import Path import re import yaml import json from botok import Text import pyewts conv = pyewts.pyewts() def dictify_text(string, is_split=False, selection_yaml='data/dictionaries/dict_cats.yaml', expandable=True, mode='en_bo'): """ takes segmented text and...
37.237624
123
0.534964
0
0
0
0
0
0
0
0
1,822
0.238607
f700e260a7d6b3f4dc9cdfd4df281f246d308a20
2,504
py
Python
tests/test_validators.py
fakeezz/edipy
00c125621201e7290add135240c131c22feb3a72
[ "MIT" ]
1
2018-05-15T18:27:31.000Z
2018-05-15T18:27:31.000Z
tests/test_validators.py
fakeezz/edipy
00c125621201e7290add135240c131c22feb3a72
[ "MIT" ]
null
null
null
tests/test_validators.py
fakeezz/edipy
00c125621201e7290add135240c131c22feb3a72
[ "MIT" ]
2
2020-12-25T16:37:56.000Z
2021-06-22T13:13:18.000Z
# coding: utf-8 import pytest from edipy import fields, validators, exceptions @pytest.mark.parametrize('fixed_type, data', [ (fields.Integer(1, validators=[validators.Range(1, 5)]), '1'), (fields.Integer(1, validators=[validators.MaxValue(3)]), '2'), (fields.Integer(1, validators=[validators.MinValue(1...
33.837838
76
0.69369
0
0
0
0
2,244
0.896166
0
0
294
0.117412
f7013f89ddf7249cb8c21753c974a4e817c0eaa2
45,183
py
Python
archetypal/schedule.py
brunomarct/archetypal
ce8daf4e18ef3ec92967e5d6837b392199caf83b
[ "MIT" ]
null
null
null
archetypal/schedule.py
brunomarct/archetypal
ce8daf4e18ef3ec92967e5d6837b392199caf83b
[ "MIT" ]
null
null
null
archetypal/schedule.py
brunomarct/archetypal
ce8daf4e18ef3ec92967e5d6837b392199caf83b
[ "MIT" ]
null
null
null
################################################################################ # Module: schedule.py # Description: Functions for handling conversion of EnergyPlus schedule objects # License: MIT, see full license in LICENSE.txt # Web: https://github.com/samuelduchesne/archetypal #####################################...
39.808811
100
0.535799
43,146
0.954917
0
0
1,737
0.038444
0
0
9,992
0.221145
f7024605869dd7788905637cfccaa41707efb6c3
256
py
Python
data/scripts/reverse.py
levindu/OpenCC
345ea91303e5b3d9332dc51ea73370dac83e4c6b
[ "Apache-2.0" ]
43
2018-09-17T00:45:35.000Z
2021-11-14T23:56:45.000Z
data/scripts/reverse.py
levindu/OpenCC
345ea91303e5b3d9332dc51ea73370dac83e4c6b
[ "Apache-2.0" ]
7
2019-11-26T10:48:14.000Z
2021-06-13T04:49:58.000Z
data/scripts/reverse.py
levindu/OpenCC
345ea91303e5b3d9332dc51ea73370dac83e4c6b
[ "Apache-2.0" ]
6
2018-09-17T02:09:59.000Z
2020-08-15T13:57:44.000Z
#!/usr/bin/env python #coding: utf-8 import sys from common import reverse_items if len(sys.argv) != 3: print("Reverse key and value of all pairs") print(("Usage: ", sys.argv[0], "[input] [output]")) exit(1) reverse_items(sys.argv[1], sys.argv[2])
21.333333
53
0.671875
0
0
0
0
0
0
0
0
98
0.382813
f703531b591af3d5317bed220eaa477c0403e4d5
2,576
py
Python
stock_predictions/web/template.py
abakhru/stock_prediction
bfb4483ac888bc67e2a8928fdf037d23acbf48f9
[ "MIT" ]
1
2020-07-14T09:05:56.000Z
2020-07-14T09:05:56.000Z
stock_predictions/web/template.py
abakhru/stock_prediction
bfb4483ac888bc67e2a8928fdf037d23acbf48f9
[ "MIT" ]
null
null
null
stock_predictions/web/template.py
abakhru/stock_prediction
bfb4483ac888bc67e2a8928fdf037d23acbf48f9
[ "MIT" ]
null
null
null
template = """<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title of the document</title> <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.min.css"> <style> .tradingvi...
24.533333
195
0.572593
0
0
0
0
0
0
0
0
2,564
0.995342
f704431757b191fd6a6405e1724d23679ca1b2f0
1,173
py
Python
script/app/agg.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/app/agg.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
script/app/agg.py
Intelligent-Systems-Lab/ISL-BCFL
42ceb86708a76e28b31c22b33c15ee9a6a745ec7
[ "Apache-2.0" ]
null
null
null
import os # import torch import argparse import base64 import sys import io import torch import torch.nn as nn from torchvision import transforms from torch.utils.data import DataLoader from torch.utils.data.sampler import SubsetRandomSampler def fullmodel2base64(model): buffer = io.BytesIO() torch.save(mode...
19.55
56
0.734868
0
0
0
0
0
0
0
0
73
0.062234
f70474925eb078c598d03d4255e4e76e7b6c9361
420
py
Python
examples/function_examples/bpod_info.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
1
2021-01-18T08:18:22.000Z
2021-01-18T08:18:22.000Z
examples/function_examples/bpod_info.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
1
2020-09-18T20:46:11.000Z
2020-12-29T14:55:20.000Z
examples/function_examples/bpod_info.py
ckarageorgkaneen/pybpod-api
ebccef800ae1abf3b6a643ff33166fab2096c780
[ "MIT" ]
3
2020-09-12T15:32:11.000Z
2022-03-11T23:08:03.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- """ Get hardware info from Bpod """ from pybpodapi.protocol import Bpod from confapp import conf my_bpod = Bpod() my_bpod.close() print("Target Bpod firmware version: ", conf.TARGET_BPOD_FIRMWARE_VERSION) print("Firmware version (read from device): ", my_bpod.hardware....
21
81
0.742857
0
0
0
0
0
0
0
0
192
0.457143
f704c0f9b4488488f3aae9f679bb84275d8e52d4
11,405
py
Python
src/core/src/core_logic/PackageFilter.py
Azure/LinuxPatchExtension
6af622afb4298805bdf47328d6bc66a785f7166b
[ "Apache-2.0" ]
4
2020-06-01T14:36:30.000Z
2021-08-24T16:55:50.000Z
src/core/src/core_logic/PackageFilter.py
Azure/LinuxPatchExtension
6af622afb4298805bdf47328d6bc66a785f7166b
[ "Apache-2.0" ]
34
2020-09-11T17:20:42.000Z
2022-03-28T14:08:44.000Z
src/core/src/core_logic/PackageFilter.py
Azure/LinuxPatchExtension
6af622afb4298805bdf47328d6bc66a785f7166b
[ "Apache-2.0" ]
1
2020-12-28T10:13:20.000Z
2020-12-28T10:13:20.000Z
# Copyright 2020 Microsoft 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...
65.924855
216
0.728979
10,703
0.938448
0
0
615
0.053924
0
0
3,198
0.280403
f70920a45d8b352e57cdd5c4ba4ed7a956b3f421
4,150
py
Python
pyesgf/util.py
ggarcias/esgf-pyclient-cmip6
9e7975d2e676ed2c4001edb4e25c9c20cc16b7af
[ "BSD-3-Clause" ]
17
2016-09-07T02:55:30.000Z
2022-03-10T15:34:53.000Z
pyesgf/util.py
ggarcias/esgf-pyclient-cmip6
9e7975d2e676ed2c4001edb4e25c9c20cc16b7af
[ "BSD-3-Clause" ]
61
2015-05-27T08:10:46.000Z
2022-03-17T12:36:45.000Z
pyesgf/util.py
ggarcias/esgf-pyclient-cmip6
9e7975d2e676ed2c4001edb4e25c9c20cc16b7af
[ "BSD-3-Clause" ]
22
2015-10-27T11:21:05.000Z
2022-01-12T08:26:16.000Z
""" Utility functions using the pyesgf package. """ import sys from urllib.parse import quote_plus def ats_url(base_url): """ Return the URL for the ESGF SAML AttributeService """ # Strip '/' from url as necessary base_url = base_url.rstrip('/') return '/'.join([base_url, ...
30.291971
78
0.576867
0
0
0
0
0
0
0
0
1,875
0.451807
f709b6ad81d25a0c074deaa1308cf04158654f02
1,373
py
Python
tests/book/ch05/classify_name.py
TITC/pyhanlp
ad062f358805da5bf97f78d9f37f441c06ae4d19
[ "Apache-2.0" ]
null
null
null
tests/book/ch05/classify_name.py
TITC/pyhanlp
ad062f358805da5bf97f78d9f37f441c06ae4d19
[ "Apache-2.0" ]
null
null
null
tests/book/ch05/classify_name.py
TITC/pyhanlp
ad062f358805da5bf97f78d9f37f441c06ae4d19
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author:hankcs # Date: 2018-06-21 19:46 # 《自然语言处理入门》5.3 基于感知机的人名性别分类 # 配套书籍:http://nlp.hankcs.com/book.php # 讨论答疑:https://bbs.hankcs.com/ import sys,os# environment, adjust the priority sys.path.insert(0,os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))...
38.138889
112
0.718864
0
0
0
0
0
0
0
0
692
0.452583
f70b82a64651b669501101e2383b4a201ac4b9ba
5,305
py
Python
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
tests/test_content_download.py
easydo-cn/edo_client
775f185c54f2eeda6a7dd6482de8228ca9ad89b0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import io import os import shutil import tempfile import unittest from edo_client import WoClient class ContentApi_DownloadTestCase(unittest.TestCase): ''' - Basically this is to ensure all the facilities related to HTTP range headers are working properly; ''' @classmethod ...
32.746914
106
0.590575
5,525
0.979089
0
0
701
0.124225
0
0
1,443
0.255715
f70e1eec634ed0c89cd786687c6b726187e816d5
11,426
py
Python
src/train.py
Gordonbuck/ml-oov-we
ce28cd8b556a16125ba36cd41781a3e60bb26422
[ "MIT" ]
null
null
null
src/train.py
Gordonbuck/ml-oov-we
ce28cd8b556a16125ba36cd41781a3e60bb26422
[ "MIT" ]
null
null
null
src/train.py
Gordonbuck/ml-oov-we
ce28cd8b556a16125ba36cd41781a3e60bb26422
[ "MIT" ]
null
null
null
import higher from leap import Leap import numpy as np import os import torch import torch.nn as nn import gc def train(model, source_corpus, char2idx, args, device): model = model.to(device) optimizer = torch.optim.Adam(model.parameters(), lr=args.lr_init) lr_scheduler = torch.optim.lr_scheduler.ReduceLR...
52.412844
120
0.591896
0
0
0
0
0
0
0
0
399
0.03492
f70e20602d9329f0b785241b32a1ae744bf6d702
119
py
Python
number reverser.py
Jayapraveen34/crazy-lover
be5bd897c40c31b3e5e6eafe3b6436cb3d888efe
[ "BSD-2-Clause" ]
null
null
null
number reverser.py
Jayapraveen34/crazy-lover
be5bd897c40c31b3e5e6eafe3b6436cb3d888efe
[ "BSD-2-Clause" ]
null
null
null
number reverser.py
Jayapraveen34/crazy-lover
be5bd897c40c31b3e5e6eafe3b6436cb3d888efe
[ "BSD-2-Clause" ]
null
null
null
a = str(input('Enter the number you want to reverse:')) b = (a[::-1]) c = int(b) print('the reversed number is',c)
23.8
56
0.605042
0
0
0
0
0
0
0
0
63
0.529412
f70ec64b9e31daafd1fb2f1ca0a900fb5ba86171
3,473
py
Python
pyexcel_xls/xlsw.py
pyexcel/pyexcel-xls
995cfd273d5360947a528ff3a1ed3f9e52a429ad
[ "BSD-3-Clause" ]
40
2016-05-18T20:09:39.000Z
2022-02-09T06:39:41.000Z
pyexcel_xls/xlsw.py
wenxuefeng3930/pyexcel-xls
995cfd273d5360947a528ff3a1ed3f9e52a429ad
[ "BSD-3-Clause" ]
46
2016-02-01T22:12:31.000Z
2021-10-07T18:57:05.000Z
pyexcel_xls/xlsw.py
wenxuefeng3930/pyexcel-xls
995cfd273d5360947a528ff3a1ed3f9e52a429ad
[ "BSD-3-Clause" ]
24
2016-01-29T12:26:27.000Z
2021-10-31T15:37:15.000Z
""" pyexcel_xlsw ~~~~~~~~~~~~~~~~~~~ The lower level xls file format handler using xlwt :copyright: (c) 2016-2021 by Onni Software Ltd :license: New BSD License """ import datetime import xlrd from xlwt import XFStyle, Workbook from pyexcel_io import constants from pyexcel_io.plugin_api import IW...
31.008929
78
0.589692
2,866
0.825223
0
0
0
0
0
0
464
0.133602
f70ef0f412e5276c5b8da11a1ad63834bedea5f9
593
py
Python
venv/lib/python3.6/site-packages/gensim/__init__.py
bopopescu/wired_cli
844b5c2bf32c95ad2974663f0501a85ff6134bd4
[ "MIT" ]
2
2021-06-09T20:55:17.000Z
2021-11-03T03:07:37.000Z
venv/lib/python3.6/site-packages/gensim/__init__.py
bopopescu/wired_cli
844b5c2bf32c95ad2974663f0501a85ff6134bd4
[ "MIT" ]
4
2020-07-26T02:10:42.000Z
2021-03-31T18:48:58.000Z
venv/lib/python3.6/site-packages/gensim/__init__.py
bopopescu/wired_cli
844b5c2bf32c95ad2974663f0501a85ff6134bd4
[ "MIT" ]
1
2020-07-25T23:57:23.000Z
2020-07-25T23:57:23.000Z
"""This package contains interfaces and functionality to compute pair-wise document similarities within a corpus of documents. """ from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils # noqa:F401 import logging __version__ = '3.5.0' class NullHandler(logging.Handler...
28.238095
114
0.726813
153
0.25801
0
0
0
0
0
0
271
0.456998
f70efa147c6f9c7ee90e557fe0740d068a1ce522
213
py
Python
tests/test_ai.py
divanorama/katrain
dc22aa88526fb6446f908259f06020d649a2d0a9
[ "MIT" ]
null
null
null
tests/test_ai.py
divanorama/katrain
dc22aa88526fb6446f908259f06020d649a2d0a9
[ "MIT" ]
null
null
null
tests/test_ai.py
divanorama/katrain
dc22aa88526fb6446f908259f06020d649a2d0a9
[ "MIT" ]
null
null
null
import pytest from katrain.core.constants import AI_STRATEGIES_RECOMMENDED_ORDER, AI_STRATEGIES class TestAI: def test_order(self): assert set(AI_STRATEGIES_RECOMMENDED_ORDER) == set(AI_STRATEGIES)
23.666667
81
0.798122
113
0.530516
0
0
0
0
0
0
0
0
f70fbb21c94acb9d07d8e2e1ca75454e92d0eaf5
28,076
py
Python
game_client.py
wenlianglaw/Tetris-in-Python
d4f0a22c4827e7eeb44c55def3f024e0c6932ebe
[ "MIT" ]
1
2021-06-25T20:43:19.000Z
2021-06-25T20:43:19.000Z
game_client.py
wenlianglaw/Tetris-in-Python
d4f0a22c4827e7eeb44c55def3f024e0c6932ebe
[ "MIT" ]
null
null
null
game_client.py
wenlianglaw/Tetris-in-Python
d4f0a22c4827e7eeb44c55def3f024e0c6932ebe
[ "MIT" ]
null
null
null
# This file defines the back end of the Tetris game # # GameState is the base class of GameClient. # # GameClient.Run() will start two threads: # - _ProcessActions: Process the action list every x seconds # - _AutoDrop: Auto drops the current piece. # # GameClient: # - current piece # - held piece # - piece list...
32.799065
123
0.63036
25,737
0.91669
0
0
0
0
0
0
6,960
0.247899
f711bbbc339573d1744df69fd2b79a94a7b3f1b9
2,615
py
Python
gateway/builders/authorization_builder.py
TarlanPayments/gw-python-client
a0dd5292c877ab06bf549693a1bfc9fb06ef9d19
[ "MIT" ]
null
null
null
gateway/builders/authorization_builder.py
TarlanPayments/gw-python-client
a0dd5292c877ab06bf549693a1bfc9fb06ef9d19
[ "MIT" ]
null
null
null
gateway/builders/authorization_builder.py
TarlanPayments/gw-python-client
a0dd5292c877ab06bf549693a1bfc9fb06ef9d19
[ "MIT" ]
null
null
null
# The MIT License # # Copyright (c) 2017 Tarlan Payments. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
41.507937
120
0.728489
1,497
0.572467
0
0
0
0
0
0
1,501
0.573996
f712616c7f9dabddbf70b11e2c6cc653c11f9e33
1,931
py
Python
cas9/score.py
cangtu/cot
2ecbe83fe7bb3538f80692fc4412830f6c976558
[ "MIT" ]
1
2018-07-11T06:12:51.000Z
2018-07-11T06:12:51.000Z
cas9/score.py
cangtu/cot
2ecbe83fe7bb3538f80692fc4412830f6c976558
[ "MIT" ]
null
null
null
cas9/score.py
cangtu/cot
2ecbe83fe7bb3538f80692fc4412830f6c976558
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright @ 0x6c78. # # 16-10-20 下午1:27 [email protected] # # Distributed under terms of the MIT License from operator import mul from itertools import combinations class Score(object): def __init__(self): """ 张峰实验室通过实验获得的每个位置错配的特异性,具体参考网页: http://crispr.mit.edu/...
26.094595
88
0.518384
2,034
0.910882
0
0
1,208
0.540976
0
0
912
0.408419
f71362b0a4e90908b800515208bd4b73487ecd9e
1,823
py
Python
RiotGames/API/Match.py
Timohiho/RiotGames
f75256cca1b5c224393dca99296a6163b70b335f
[ "MIT" ]
2
2021-05-05T12:33:51.000Z
2021-12-15T13:08:44.000Z
RiotGames/API/Match.py
Timohiho/RiotGames
f75256cca1b5c224393dca99296a6163b70b335f
[ "MIT" ]
null
null
null
RiotGames/API/Match.py
Timohiho/RiotGames
f75256cca1b5c224393dca99296a6163b70b335f
[ "MIT" ]
null
null
null
# Copyright (c) 2021. # The copyright lies with Timo Hirsch-Hoffmann, the further use is only permitted with reference to source import urllib.request from RiotGames.API.RiotApi import RiotApi class Match(RiotApi): __timeline_by_match_id_url: str = "https://{}.api.riotgames.com/lol/match/v4/timelines/by-matc...
28.936508
114
0.580362
1,622
0.889742
0
0
0
0
0
0
949
0.52057
f714e5ccca4b369e0fbd09fb0a4e6218788b9ed7
3,513
py
Python
google_or_tools/coloring_ip_sat.py
tias/hakank
87b7f180c9393afce440864eb9e5fb119bdec1a4
[ "MIT" ]
279
2015-01-10T09:55:35.000Z
2022-03-28T02:34:03.000Z
google_or_tools/coloring_ip_sat.py
tias/hakank
87b7f180c9393afce440864eb9e5fb119bdec1a4
[ "MIT" ]
10
2017-10-05T15:48:50.000Z
2021-09-20T12:06:52.000Z
google_or_tools/coloring_ip_sat.py
tias/hakank
87b7f180c9393afce440864eb9e5fb119bdec1a4
[ "MIT" ]
83
2015-01-20T03:44:00.000Z
2022-03-13T23:53:06.000Z
# Copyright 2021 Hakan Kjellerstrand [email protected] # # 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 ...
27.232558
78
0.63507
0
0
0
0
0
0
0
0
2,124
0.604611
f715d5acbe3a069259390dee428b7666dca26c08
9,706
py
Python
src/intermediate_representation/sem_utils.py
ckosten/ValueNet4SPARQL
de320a2f0e1a4c5a6c0e5cc79057dda9901046e8
[ "Apache-2.0" ]
null
null
null
src/intermediate_representation/sem_utils.py
ckosten/ValueNet4SPARQL
de320a2f0e1a4c5a6c0e5cc79057dda9901046e8
[ "Apache-2.0" ]
null
null
null
src/intermediate_representation/sem_utils.py
ckosten/ValueNet4SPARQL
de320a2f0e1a4c5a6c0e5cc79057dda9901046e8
[ "Apache-2.0" ]
1
2021-09-23T13:02:45.000Z
2021-09-23T13:02:45.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # -*- coding: utf-8 -*- """ # @Time : 2019/5/27 # @Author : Jiaqi&Zecheng # @File : sem_utils.py # @Software: PyCharm """ import os import json import re as regex import spacy from nltk.stem import WordNetLemmatizer wordnet_lemmatizer =...
46.888889
117
0.474861
0
0
0
0
0
0
0
0
1,390
0.14321