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
16f194020c5bfe5120fe6934c8e293f46341da5f
3,145
py
Python
ebnn/links/__init__.py
sandy2008/binary-net-toolkit
c9807f60a9cff7b90319a576a27e77ca163cc2e1
[ "Unlicense" ]
2
2019-05-20T01:37:50.000Z
2020-07-16T08:50:26.000Z
ebnn/links/__init__.py
sandy2008/binary-net-toolkit
c9807f60a9cff7b90319a576a27e77ca163cc2e1
[ "Unlicense" ]
null
null
null
ebnn/links/__init__.py
sandy2008/binary-net-toolkit
c9807f60a9cff7b90319a576a27e77ca163cc2e1
[ "Unlicense" ]
null
null
null
import numpy as np from chainer import link import sys import os sys.path.append(os.path.abspath('~/binary-net-toolkit/ebnn/links')) class CLink(object): def generate_c(self): raise NotImplementedError( "Not implemented. This link cannot be exported as c.") def param_mem(self): ra...
34.944444
88
0.630843
ade1d5a9ce9f761bf0ef62688b54ed89b9f7edb4
1,140
py
Python
src/agents/portfolio_agent.py
ajwad-shaikh/FolioTrack
5e1fc06ec78274fc804e251517d181be0c1bcb58
[ "MIT" ]
null
null
null
src/agents/portfolio_agent.py
ajwad-shaikh/FolioTrack
5e1fc06ec78274fc804e251517d181be0c1bcb58
[ "MIT" ]
null
null
null
src/agents/portfolio_agent.py
ajwad-shaikh/FolioTrack
5e1fc06ec78274fc804e251517d181be0c1bcb58
[ "MIT" ]
null
null
null
from ..helpers.exchange import getLiveTicker from flask.json import jsonify from ..helpers.firebase import db from ..utils.constants import * def fetchPortfolioAgency(): securities = db.collection(PORTFOLIO).stream() res = {} for securityDoc in securities: security = securityDoc.to_dict() s...
30
75
0.648246
e4a977c32ad89f0734ba385e61f5e6b06a26da63
13,162
py
Python
components/drive.py
MizaGBF/MizaBOT
416043f3eef4365611ae2516293f741e27862623
[ "MIT" ]
19
2019-05-05T17:43:26.000Z
2022-03-25T12:25:22.000Z
components/drive.py
MizaGBF/MizaBOT
416043f3eef4365611ae2516293f741e27862623
[ "MIT" ]
12
2019-08-10T04:13:18.000Z
2021-12-13T13:34:11.000Z
components/drive.py
MizaGBF/MizaBOT
416043f3eef4365611ae2516293f741e27862623
[ "MIT" ]
12
2019-08-09T10:38:46.000Z
2022-01-20T21:20:44.000Z
from pydrive2.auth import GoogleAuth from pydrive2.drive import GoogleDrive import threading import json from datetime import datetime import multiprocessing from ctypes import c_int import io import gzip import os # -------------------------------------------------------------------------------------------...
33.662404
155
0.555159
a2bb96df039a39b017d313ced149ca9fac872b4f
320
py
Python
btools/building/floor/__init__.py
MCrafterzz/building_tool
e14c53e700a853190639fc41de09f1e4d7703ca0
[ "MIT" ]
1
2021-05-06T06:24:33.000Z
2021-05-06T06:24:33.000Z
btools/building/floor/__init__.py
MCrafterzz/building_tool
e14c53e700a853190639fc41de09f1e4d7703ca0
[ "MIT" ]
null
null
null
btools/building/floor/__init__.py
MCrafterzz/building_tool
e14c53e700a853190639fc41de09f1e4d7703ca0
[ "MIT" ]
null
null
null
import bpy from .floor_ops import BTOOLS_OT_add_floors from .floor_props import FloorProperty classes = (FloorProperty, BTOOLS_OT_add_floors) def register_floor(): for cls in classes: bpy.utils.register_class(cls) def unregister_floor(): for cls in classes: bpy.utils.unregister_class(cls)
18.823529
47
0.75
8d7b59298fae10674ea405bb36beaa0a3aca11b8
1,766
py
Python
scripts/cross.py
adumbidiot/pikadick-rs
da2610a36f6a137543e6261dfb43d3d6fd288138
[ "Apache-2.0", "MIT" ]
1
2020-12-18T03:15:57.000Z
2020-12-18T03:15:57.000Z
scripts/cross.py
adumbidiot/pikadick-rs
da2610a36f6a137543e6261dfb43d3d6fd288138
[ "Apache-2.0", "MIT" ]
null
null
null
scripts/cross.py
adumbidiot/pikadick-rs
da2610a36f6a137543e6261dfb43d3d6fd288138
[ "Apache-2.0", "MIT" ]
null
null
null
import os import subprocess import tomli ############## ### CONFIG ### ############## # Hardcode for now TARGET = "armv7-unknown-linux-gnueabihf" # Run 'strip' on the final binary USE_STRIP = True ################# ### INTERNALS ### ################# # Note: Ignores previously set RUSTFLAGS. Extend this script if ...
26.358209
86
0.679502
0edeb3b0abaad52e4390d389067d9e1209ada057
4,434
py
Python
sdk/python/pulumi_azure_nextgen/apimanagement/v20191201/get_api_issue_comment.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/apimanagement/v20191201/get_api_issue_comment.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/apimanagement/v20191201/get_api_issue_comment.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
35.190476
152
0.640731
d70051ac912aad60ed72b139ba7341e492824db8
4,657
py
Python
dejavu/database.py
ronaldomorita/recoaudio
825180fffc65aec466d4ffb7b51bf8a01f0c8ad3
[ "MIT" ]
null
null
null
dejavu/database.py
ronaldomorita/recoaudio
825180fffc65aec466d4ffb7b51bf8a01f0c8ad3
[ "MIT" ]
null
null
null
dejavu/database.py
ronaldomorita/recoaudio
825180fffc65aec466d4ffb7b51bf8a01f0c8ad3
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import import abc class Database(object): __metaclass__ = abc.ABCMeta FIELD_FILE_SHA1 = 'file_sha1' FIELD_SONG_ID = 'song_id' FIELD_SONGNAME = 'song_name' FIELD_OFFSET = 'offset' FIELD_HASH = 'hash' # Name of your Database subclass, this is...
24.510526
88
0.601245
7e36a6165c7ebec03d373e37d77cfa7ff90c2c1e
733
py
Python
integrationtest/vm/vm_offering/test_hotplugin_cpu_u15.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/vm_offering/test_hotplugin_cpu_u15.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/vm_offering/test_hotplugin_cpu_u15.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
''' @author: FangSun ''' import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import functools _config_ = { 'timeout' : 1000, 'noparallel' : True } test_stub = test_lib.lib_get_test_stub() test_obj_dict = test_state.TestStateDict() ''' def test() This ...
23.645161
59
0.626194
538124e3c638b1dce9c5eb099c6b55ce50d6939d
22
py
Python
index.py
lanboyao/text21
5bc3e3c42c6e15a548a22d9a709e95c1ec2e3ad3
[ "MIT" ]
null
null
null
index.py
lanboyao/text21
5bc3e3c42c6e15a548a22d9a709e95c1ec2e3ad3
[ "MIT" ]
null
null
null
index.py
lanboyao/text21
5bc3e3c42c6e15a548a22d9a709e95c1ec2e3ad3
[ "MIT" ]
null
null
null
num=10 num=29 num3=78
5.5
7
0.727273
ddbde61e33af393f6f3e027516adc90ad86d6d53
2,698
py
Python
brdashsite/batchrecords/views.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
brdashsite/batchrecords/views.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
brdashsite/batchrecords/views.py
JNDib/brdashproject
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, get_list_or_404, render from django.http import HttpResponse, HttpResponseRedirect from django.views.generic import View, ListView, CreateView, UpdateView, DetailView from django.urls import reverse_lazy from django.contrib.auth.decorators import login_required from djang...
28.4
105
0.779466
d2c7fc04fc5b3bbe3d11c5c8f3be0aa5471df163
12,267
py
Python
selfdrive/controls/lib/lateral_planner.py
hikee9123/openpilot_087
9d20a0eb525c58f3ac035164b27b7518e7494dbb
[ "MIT" ]
null
null
null
selfdrive/controls/lib/lateral_planner.py
hikee9123/openpilot_087
9d20a0eb525c58f3ac035164b27b7518e7494dbb
[ "MIT" ]
null
null
null
selfdrive/controls/lib/lateral_planner.py
hikee9123/openpilot_087
9d20a0eb525c58f3ac035164b27b7518e7494dbb
[ "MIT" ]
null
null
null
import os import math import numpy as np from common.realtime import sec_since_boot, DT_MDL from common.numpy_fast import interp from selfdrive.swaglog import cloudlog from selfdrive.controls.lib.lateral_mpc import libmpc_py from selfdrive.controls.lib.drive_helpers import CONTROL_N, MPC_COST_LAT, LAT_MPC_N, CAR_ROTATI...
43.042105
133
0.724546
1247f3be2c347dd824c2c315614bcf3450e253d8
1,179
py
Python
src/models/__init__.py
shkimturf/Tornado-MongoDB-WAS
bf4cf316dc12678b9780e374001d405935cbdbd5
[ "MIT" ]
null
null
null
src/models/__init__.py
shkimturf/Tornado-MongoDB-WAS
bf4cf316dc12678b9780e374001d405935cbdbd5
[ "MIT" ]
null
null
null
src/models/__init__.py
shkimturf/Tornado-MongoDB-WAS
bf4cf316dc12678b9780e374001d405935cbdbd5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2016. 5. 25. @author: Sunhong Kim ''' import sys def ensure_db_structure(hdapp): ''' With a given hdapp, this function will try to ensure every things are in working condition, such as ensuring appropriate indexes. ''' # Indexing collections from models.account.user import...
33.685714
96
0.777778
2b42f3c65e15a4fa0b1b9510cd2198f2921d4623
14,420
py
Python
corrscope/config.py
beetrootpaul/corrscope
79f443da068efe3d83b871f226ff8b59083bc8b7
[ "BSD-2-Clause" ]
140
2020-03-12T16:05:35.000Z
2022-03-31T04:21:24.000Z
corrscope/config.py
beetrootpaul/corrscope
79f443da068efe3d83b871f226ff8b59083bc8b7
[ "BSD-2-Clause" ]
90
2020-03-21T07:52:33.000Z
2022-03-29T01:52:47.000Z
corrscope/config.py
jimbo1qaz/ovgenpy
ca3d4ae61e66de2907fd01004afe23af8f5d374a
[ "BSD-2-Clause" ]
13
2020-04-20T14:51:33.000Z
2022-03-10T19:14:05.000Z
""" The most important class in this module is `DumpableAttrs`. See its docstring for details. """ import pickle import warnings from enum import Enum from io import StringIO, BytesIO from pathlib import Path from typing import ( ClassVar, TypeVar, Type, FrozenSet, Optional, TYPE_CHECKING, ...
29.072581
100
0.622954
ec6c329b0ea001de5d3acbd45cee74abad85bfa9
2,573
py
Python
hydra/version.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
hydra/version.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
hydra/version.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Source of truth for Hydra's version from textwrap import dedent from typing import Any, Optional from packaging.version import Version from . import __version__ from ._internal.deprecation_warning import deprecation_warning from .core.singleto...
31.765432
83
0.683638
c566800e90c0632ac9ff7f6610865d21e9c31b0b
489
py
Python
profiles/urls.py
ARAldhafeeri/linkedin-clone
feb101c4ee8e7168ad205c36aa6546896e916a8b
[ "MIT" ]
null
null
null
profiles/urls.py
ARAldhafeeri/linkedin-clone
feb101c4ee8e7168ad205c36aa6546896e916a8b
[ "MIT" ]
null
null
null
profiles/urls.py
ARAldhafeeri/linkedin-clone
feb101c4ee8e7168ad205c36aa6546896e916a8b
[ "MIT" ]
null
null
null
from django.urls import path from .views import AboutView, ExperienceView, ProfileView, SkillsView app_name = 'profiles' urlpatterns = [ path('profile/<slug:slug>/', ProfileView.as_view(), name='profile-view'), path('experience/<slug:slug>/', ExperienceView.as_view(), name='experience-view'...
28.764706
69
0.648262
a8b03f6090c96cf78c63e4ddcfc76e7cc8b0b4b7
1,728
py
Python
aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessageGetByMsgIdRequest.py
ankitdobhal/aliyun-openapi-python-sdk
991b1c2d91adc468480defc23ba790d4369cce7b
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessageGetByMsgIdRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessageGetByMsgIdRequest.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.56
74
0.759838
cda1af026d5d85f6e6f4197cde6db45a1ad12662
1,545
py
Python
examples/1d_reg/run.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
8
2021-04-04T15:23:05.000Z
2022-02-20T06:33:57.000Z
examples/1d_reg/run.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
null
null
null
examples/1d_reg/run.py
aspuru-guzik-group/gemini
441d0f6c8842d15d4f917423ab440c5d78433199
[ "MIT" ]
5
2021-04-04T15:23:27.000Z
2022-01-25T07:55:43.000Z
#!/usr/bin/env python import numpy as np from gemini import Gemini #=============================================================================== ''' Train Gemini on 1d regression example ''' #=============================================================================== # define the 1d surfaces def fast_func(x...
28.090909
80
0.639482
efa66d674bc298631f543f265735874fac8f4ca6
1,295
py
Python
app/server/module/tools/zip.py
SweetCase-Cobalto/MicroCloudChip-NATURAL
74dd2e9d423bd1f43b35f98fe1102364d9c08f46
[ "MIT" ]
null
null
null
app/server/module/tools/zip.py
SweetCase-Cobalto/MicroCloudChip-NATURAL
74dd2e9d423bd1f43b35f98fe1102364d9c08f46
[ "MIT" ]
null
null
null
app/server/module/tools/zip.py
SweetCase-Cobalto/MicroCloudChip-NATURAL
74dd2e9d423bd1f43b35f98fe1102364d9c08f46
[ "MIT" ]
null
null
null
import zipfile import os import stat def zip_multiple(__src_list: list[str], __dst: str) -> bool: """디렉토리 저장 __src_list: 압축 대상 파일들 __dst: 추출 파일 루트 """ ziped_file: zipfile.ZipFile = zipfile.ZipFile(__dst, 'w', zipfile.ZIP_DEFLATED) for src_object in __src_list: try: ...
30.833333
101
0.542857
0d5c7c4bda7c466056bc4138a99aeedd2f78b89d
11,998
py
Python
cove_iati/tests_functional.py
OpenDataServices/cove
af96e0bd16c79c39ad0cb11194e6222551c1be07
[ "MIT" ]
39
2015-05-21T17:03:55.000Z
2021-05-07T19:48:54.000Z
cove_iati/tests_functional.py
OpenDataServices/cove
af96e0bd16c79c39ad0cb11194e6222551c1be07
[ "MIT" ]
1,036
2015-04-29T10:44:18.000Z
2022-02-10T16:43:10.000Z
cove_iati/tests_functional.py
OpenDataServices/cove
af96e0bd16c79c39ad0cb11194e6222551c1be07
[ "MIT" ]
15
2015-12-17T15:23:45.000Z
2021-08-10T14:41:45.000Z
import os import time import pytest import requests from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.chrome.options import Options BROWSER = os.environ.get('BROWSER', 'ChromeHeadless') @pytest.fixture(scope="module") def browser(request): if BRO...
46.867188
202
0.692449
14a3fc5c15f88881f66817c747f8bd8341eb0da6
9,099
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_max31865.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_max31865.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_max31865.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2017 Tony DiCola for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_max31865` ==================================================== CircuitPython module for the MAX31865 platinum RTD temperature sensor. See examples/simpletest.py for an example of the usage. * Author(s):...
34.335849
95
0.65117
ee86b460006c269412e760437b3e4616b8e9f903
156
py
Python
test/test_login.py
bilimus/python_mantis
08c084a216b97d42ef9ae366a67e3a9bef332e89
[ "Apache-2.0" ]
null
null
null
test/test_login.py
bilimus/python_mantis
08c084a216b97d42ef9ae366a67e3a9bef332e89
[ "Apache-2.0" ]
null
null
null
test/test_login.py
bilimus/python_mantis
08c084a216b97d42ef9ae366a67e3a9bef332e89
[ "Apache-2.0" ]
null
null
null
import time def test_login(app): app.session.login("administrator", "root") time.sleep(2) assert app.session.is_logged_in_as("administrator")
19.5
55
0.717949
8a5b722c0ff62d7d5658735b322328b08cd90277
15,697
py
Python
src/scaffoldmaker/meshtypes/meshtype_2d_platehole1.py
haribalankumar/scaffoldmaker
3379eed2ef46fd5aa0d7f9fed4c5bc11fa1e0145
[ "Apache-2.0" ]
null
null
null
src/scaffoldmaker/meshtypes/meshtype_2d_platehole1.py
haribalankumar/scaffoldmaker
3379eed2ef46fd5aa0d7f9fed4c5bc11fa1e0145
[ "Apache-2.0" ]
null
null
null
src/scaffoldmaker/meshtypes/meshtype_2d_platehole1.py
haribalankumar/scaffoldmaker
3379eed2ef46fd5aa0d7f9fed4c5bc11fa1e0145
[ "Apache-2.0" ]
null
null
null
""" Generates a 2-D unit plate mesh with variable numbers of elements in 2 directions, and a hole through one axis. The mesh is designed to fit in with regular square meshes on two sides, and tube meshes at the hole; derivatives and element xi directions go around the hole. """ from __future__ import division import m...
48.447531
134
0.605466
51ce00c35fbd5b827fb8a1a2c73218db7b2ebb05
4,750
py
Python
neutron/common/config.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/common/config.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/common/config.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 VMware, 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 ...
31.456954
78
0.665053
b78c5343f1845b3cee1922ee3ecf33273cff0b45
6,112
py
Python
tutorial/plot_spectral_laws.py
parthe/scikit-rmt
fd1d48dd027e3ba5ca3fb3b355ca3de012407286
[ "BSD-3-Clause" ]
8
2021-05-06T18:34:19.000Z
2022-02-10T11:21:59.000Z
tutorial/plot_spectral_laws.py
parthe/scikit-rmt
fd1d48dd027e3ba5ca3fb3b355ca3de012407286
[ "BSD-3-Clause" ]
1
2022-02-02T19:48:36.000Z
2022-02-03T09:54:22.000Z
tutorial/plot_spectral_laws.py
parthe/scikit-rmt
fd1d48dd027e3ba5ca3fb3b355ca3de012407286
[ "BSD-3-Clause" ]
2
2021-06-17T03:09:14.000Z
2022-02-02T19:50:14.000Z
""" Analyzing spectral laws ======================= In this section, we will briefly explain what is the spectral distribution of a random matrix and how to plot it in order to study its properties. Most ensembles spectral distribution are explained through spectral laws, that are going to be detailed as well. """ ...
39.688312
78
0.610929
408f381fb3f3e17edc88a50f3e794bfd335fb4ee
2,006
py
Python
Eratosthenes/Program.py
HappyBearDay/exercices
f812e8f95d0dadb5d65b70a94e8cd2949a70938f
[ "MIT" ]
null
null
null
Eratosthenes/Program.py
HappyBearDay/exercices
f812e8f95d0dadb5d65b70a94e8cd2949a70938f
[ "MIT" ]
null
null
null
Eratosthenes/Program.py
HappyBearDay/exercices
f812e8f95d0dadb5d65b70a94e8cd2949a70938f
[ "MIT" ]
null
null
null
class program: """ /// /// This class generates prime numbers up to a user specified maximum. /// The algorithm used is the Sieve of Erastosthenes. /// """ def __init__(self, *args): self.AppHelper() class AppHelper: def __init__(self): M = 121 RR...
30.861538
88
0.293619
43f00f053ea1b0035d35abffe28c11da2fd5a957
1,585
py
Python
var/spack/repos/builtin/packages/ninja/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-08-20T06:55:11.000Z
2018-08-20T06:55:11.000Z
var/spack/repos/builtin/packages/ninja/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/ninja/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-12T19:27:17.000Z
2020-03-12T19:27:17.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Ninja(Package): """Ninja is a small build system with a focus on speed. It differs from ...
34.456522
79
0.666877
695ade28a67312869c35033d09aa66e16cac5346
5,954
py
Python
adeft/tests/test_classify.py
kkaris/adeft
d5b094873947f0c5614f87e5dac9c97d388f8ffd
[ "BSD-2-Clause" ]
18
2019-07-03T23:10:04.000Z
2022-03-31T15:21:02.000Z
adeft/tests/test_classify.py
kkaris/adeft
d5b094873947f0c5614f87e5dac9c97d388f8ffd
[ "BSD-2-Clause" ]
9
2019-06-26T01:18:02.000Z
2022-02-06T18:05:31.000Z
adeft/tests/test_classify.py
kkaris/adeft
d5b094873947f0c5614f87e5dac9c97d388f8ffd
[ "BSD-2-Clause" ]
8
2019-06-25T22:57:01.000Z
2021-03-29T11:17:44.000Z
import os import uuid import json import numpy as np from sklearn.metrics import f1_score from adeft.locations import TEST_RESOURCES_PATH from adeft.modeling.classify import AdeftClassifier, load_model # Get test model path so we can write a temporary file here TEST_MODEL_PATH = os.path.join(TEST_RESOURCES_PATH, 'te...
41.347222
78
0.66745
2cd504ebd0e349ea8bbd9fdb492b7ad1e64929f7
194
py
Python
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
32
2020-04-05T08:29:40.000Z
2022-01-08T03:10:00.000Z
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2021-06-02T04:09:11.000Z
2022-03-02T14:55:03.000Z
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2020-07-13T05:44:04.000Z
2021-03-03T07:07:58.000Z
import pymongo connection = pymongo.MongoClient("localhost", 27017) database = connection['mydb_01'] collection = database['mycol_01'] data = {'Name' : "Akshay"} collection.insert_one(data)
17.636364
52
0.742268
0e69060568a57df8b5ec6bc8e8b38dc18177e816
4,247
bzl
Python
antlir/bzl/target_tagger.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
antlir/bzl/target_tagger.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "MIT" ]
null
null
null
antlir/bzl/target_tagger.bzl
SaurabhAgarwala/antlir
d9513d35d3eaa9d28717a40057a14d099c6ec775
[ "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. """ Our continuous integration system might run different build steps in different sandboxes, so the intermediate outputs of `feature`s must b...
38.609091
87
0.701672
50101eea7e5545aac188d3a2d5abc2b7e4cd9f68
2,025
py
Python
COMTRIS/config.py
songyw0517/COMTRIS
37fa22fcb6958dca43e830a84b85d457d801d9a5
[ "MIT" ]
null
null
null
COMTRIS/config.py
songyw0517/COMTRIS
37fa22fcb6958dca43e830a84b85d457d801d9a5
[ "MIT" ]
null
null
null
COMTRIS/config.py
songyw0517/COMTRIS
37fa22fcb6958dca43e830a84b85d457d801d9a5
[ "MIT" ]
5
2021-01-17T14:28:31.000Z
2021-01-24T09:05:18.000Z
''' COMTRIS Application Config Setting ''' import os import sys from datetime import datetime from logging.config import dictConfig BASEDIR = os.path.abspath(os.path.dirname(__file__)) class Config: '''공통 Config''' # Authorization SECRET_KEY = os.environ['COMTRIS_SECRET_KEY'] ADMIN_ID = os.environ['...
22.5
92
0.527901
ffcc7c2902baa0fd72425b88092b085a5fd308c4
6,763
py
Python
meraki/aio/api/dashboard_branding_policies.py
NoFliesOnYou/dashboard-api-python
3185d0e8a9a38eba9127ac640dcbb02444e7adf2
[ "MIT" ]
null
null
null
meraki/aio/api/dashboard_branding_policies.py
NoFliesOnYou/dashboard-api-python
3185d0e8a9a38eba9127ac640dcbb02444e7adf2
[ "MIT" ]
3
2020-11-08T08:50:59.000Z
2021-12-13T20:47:15.000Z
flask/meraki/aio/api/dashboard_branding_policies.py
cyberdevnet/mer-hacker
a7dddd03c5b02a2f8c84d711b69868d2b94f1f99
[ "MIT" ]
null
null
null
class AsyncDashboardBrandingPolicies: def __init__(self, session): super().__init__() self._session = session async def getOrganizationBrandingPolicies(self, organizationId: str): """ **List the branding policies of an organization** https://developer.cisco.com/merak...
44.202614
174
0.666125
6add07d9963dbf5b6166d8019822d1b6b0c1a448
8,077
py
Python
contrib/devtools/update-translations.py
jazy510/BlockDX
211fd1194f8928e812510ab8bb5522c5a2d1b32c
[ "MIT" ]
1
2018-10-15T03:52:40.000Z
2018-10-15T03:52:40.000Z
contrib/devtools/update-translations.py
jazy510/BlockDX
211fd1194f8928e812510ab8bb5522c5a2d1b32c
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
jazy510/BlockDX
211fd1194f8928e812510ab8bb5522c5a2d1b32c
[ "MIT" ]
1
2021-03-10T02:44:42.000Z
2021-03-10T02:44:42.000Z
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the follo...
38.831731
124
0.636003
f4d710951c7807f5319913a827413b8393d3f260
506
py
Python
examples/test_usefixtures.py
dkao1978/SeleniumBase
4237ec5d550b9d5af655174a8313f732103c6ff1
[ "MIT" ]
1
2020-08-28T08:53:46.000Z
2020-08-28T08:53:46.000Z
examples/test_usefixtures.py
dkao1978/SeleniumBase
4237ec5d550b9d5af655174a8313f732103c6ff1
[ "MIT" ]
null
null
null
examples/test_usefixtures.py
dkao1978/SeleniumBase
4237ec5d550b9d5af655174a8313f732103c6ff1
[ "MIT" ]
null
null
null
import pytest @pytest.mark.usefixtures("sb") class Test_UseFixtures(): def test_usefixtures_on_class(self): sb = self.sb sb.open("https://google.com/ncr") sb.update_text('input[title="Search"]', 'SeleniumBase\n') sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]') s...
33.733333
67
0.644269
a5a45724e9e43a8272ac5ced86b6f43789fecd11
14,543
py
Python
molecule/core.py
gzm55/molecule
1d6ff8fe861fb5657c6f28c2f5918cce4f25adce
[ "MIT" ]
null
null
null
molecule/core.py
gzm55/molecule
1d6ff8fe861fb5657c6f28c2f5918cce4f25adce
[ "MIT" ]
null
null
null
molecule/core.py
gzm55/molecule
1d6ff8fe861fb5657c6f28c2f5918cce4f25adce
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2016 Cisco Systems, Inc. # # 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...
35.644608
79
0.605583
7a128bb4db624d663fff968bda842572d959ec17
13,058
py
Python
pirates/minigame/PotionBoardPiece.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/minigame/PotionBoardPiece.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/minigame/PotionBoardPiece.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.minigame.PotionBoardPiece from direct.interval.IntervalGlobal import Sequence, Func from direct.showbase.ShowBaseGlobal import *...
42.953947
231
0.596493
456c6bf2c074739d9008a7a7820e0d16a0ad13ae
4,750
py
Python
disnake/types/guild.py
Kraots/disnake
9eb9ab81915dae7249ffb2b757dd6dee6090341e
[ "MIT" ]
null
null
null
disnake/types/guild.py
Kraots/disnake
9eb9ab81915dae7249ffb2b757dd6dee6090341e
[ "MIT" ]
null
null
null
disnake/types/guild.py
Kraots/disnake
9eb9ab81915dae7249ffb2b757dd6dee6090341e
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
27.616279
75
0.754105
ec832c9a6b551de534c6e1c4096bfd9c6a74f92d
9,502
py
Python
scripts/osm-extract.py
opendataby/city-dashboard
cd70a46187f7f89c6a0f8b4f2f799f8ce61fceb5
[ "MIT" ]
11
2016-10-29T10:26:55.000Z
2022-01-26T15:29:08.000Z
scripts/osm-extract.py
opendataby/city-dashboard
cd70a46187f7f89c6a0f8b4f2f799f8ce61fceb5
[ "MIT" ]
71
2016-10-29T13:23:07.000Z
2020-09-04T15:31:42.000Z
scripts/osm-extract.py
opendataby/city-dashboard
cd70a46187f7f89c6a0f8b4f2f799f8ce61fceb5
[ "MIT" ]
5
2016-10-29T10:27:09.000Z
2020-04-02T15:49:49.000Z
import csv import os from new import cursor_wrap, dump, timing @timing @cursor_wrap def main(cursor): sql = """ SELECT 'n', obj.osm_id, obj.name, obj.tags->'amenity' AS amenity, city.tags->'name' AS city, dist.tags->'name' AS dist, obj.tags->'addr:street', obj.tags->'addr:housenumber', ...
44.820755
123
0.554304
5e7d4fe5e417efe02fe923799ab29e5625c1666c
1,589
py
Python
fileWriter/stream2bytes.py
SaschaAndresGrimm/EIGERStreamReceiver
86f8d97219710aec36ecc7ca73671fbe25d20397
[ "MIT" ]
null
null
null
fileWriter/stream2bytes.py
SaschaAndresGrimm/EIGERStreamReceiver
86f8d97219710aec36ecc7ca73671fbe25d20397
[ "MIT" ]
null
null
null
fileWriter/stream2bytes.py
SaschaAndresGrimm/EIGERStreamReceiver
86f8d97219710aec36ecc7ca73671fbe25d20397
[ "MIT" ]
null
null
null
""" Directly map received ZMQ frames to files without decoding. This interface is meant for performance testing. DISCLAIMER: This code is build for demonstration pupose only. It is not meant to be productive, nor efficient or complete. If you have any questions regarding the implementation of the EIGER stream interfa...
31.78
92
0.661422
84b7d0c999faddf75be0ce791ba3027adcab9722
779
py
Python
core/templatetags/custom_tags.py
AndrewADev/open-oni
8a3a2564659eaf22b2bb3ad3be62504dfc151897
[ "Apache-2.0" ]
41
2015-10-12T15:27:35.000Z
2021-11-19T02:20:38.000Z
core/templatetags/custom_tags.py
AndrewADev/open-oni
8a3a2564659eaf22b2bb3ad3be62504dfc151897
[ "Apache-2.0" ]
402
2015-07-23T21:17:57.000Z
2022-03-28T18:02:02.000Z
core/templatetags/custom_tags.py
AndrewADev/open-oni
8a3a2564659eaf22b2bb3ad3be62504dfc151897
[ "Apache-2.0" ]
23
2016-01-20T16:45:44.000Z
2021-12-21T00:23:40.000Z
from django import template register = template.Library() @register.simple_tag(takes_context=True) def remove_param(context, *args): """Remove keys from the GET object and return a new URL""" request = context["request"] params = request.GET.copy() for arg in args: if arg in params: ...
28.851852
75
0.661104
44a76ea21ae8484ac3308292f29a25895cd7c4c6
3,662
py
Python
littlemcmc/integration.py
eigenfoo/littlemcmc
2b5dd87972ce13b6d2898ced9b748cc9ce2643b6
[ "ECL-2.0", "Apache-2.0" ]
44
2019-12-15T01:53:42.000Z
2021-10-20T07:59:07.000Z
littlemcmc/integration.py
eigenfoo/pyhmc
2b5dd87972ce13b6d2898ced9b748cc9ce2643b6
[ "ECL-2.0", "Apache-2.0" ]
88
2019-12-16T17:44:46.000Z
2021-12-19T23:29:11.000Z
littlemcmc/integration.py
eigenfoo/pyhmc
2b5dd87972ce13b6d2898ced9b748cc9ce2643b6
[ "ECL-2.0", "Apache-2.0" ]
6
2020-02-07T05:13:06.000Z
2021-04-06T23:32:46.000Z
# Copyright 2019-2020 George Ho # # 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 ...
30.016393
79
0.614418
bcba8abfeb35b0a9d5122d39eacb3d2bd8b6d18c
788
py
Python
photospicker/event/end_filter_event.py
l-vo/photos-picker
6790e0411bb46e3206ca778dbd83ddd1d4f90f21
[ "MIT" ]
null
null
null
photospicker/event/end_filter_event.py
l-vo/photos-picker
6790e0411bb46e3206ca778dbd83ddd1d4f90f21
[ "MIT" ]
52
2018-08-31T05:57:04.000Z
2019-02-19T15:26:40.000Z
photospicker/event/end_filter_event.py
l-vo/photos-picker
6790e0411bb46e3206ca778dbd83ddd1d4f90f21
[ "MIT" ]
null
null
null
from photospicker.filter.abstract_filter import AbstractFilter # noqa class EndFilterEvent(object): """Event dispatched after a filter execution""" def __init__(self, photo_filter, filepath): """ Constructor :param AbstractFilter photo_filter: filter :param str filepath: fil...
24.625
70
0.61802
07e1babcbcfe156cc37eb4965367619e672e891b
469
py
Python
src/kgmk/io/pkl.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/io/pkl.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/io/pkl.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import pickle from . import ( Path_, ) from typing import ( Any, ) class Pkl: @staticmethod def dump( obj: Any, path: Path_, ) -> None: with open( file=path, mode='wb', ) as f: pickle.dump( obj=obj, file=f, ) @staticmethod def load( pat...
11.166667
24
0.471215
1b5b513ddd6a86661674ae323a4f047b43f43be6
2,348
py
Python
demo/htraf/serve.py
prometheusresearch/htsql
fd2dc19d145508d956ba50970abc76e7299669b0
[ "Apache-2.0" ]
15
2020-02-11T11:24:34.000Z
2022-03-03T20:46:34.000Z
demo/htraf/serve.py
prometheusresearch/htsql
fd2dc19d145508d956ba50970abc76e7299669b0
[ "Apache-2.0" ]
1
2020-02-13T14:08:34.000Z
2020-02-13T14:16:04.000Z
demo/htraf/serve.py
prometheusresearch/htsql
fd2dc19d145508d956ba50970abc76e7299669b0
[ "Apache-2.0" ]
2
2020-02-13T14:10:06.000Z
2021-02-25T04:36:05.000Z
import sys import os.path import mimetypes import wsgiref.simple_server, wsgiref.util from htsql import HTSQL class Application(object): static = 'static' prefix = '/@/' index = 'index.html' def __init__(self, htsql): self.htsql = htsql def __call__(self, environ, start_response): ...
32.164384
67
0.545571
a9772167326ad7c247e27405f8f6b7371632a5d0
171
py
Python
screenshot_manager/__init__.py
wkentaro/screenshot-manager
22950b1e5c0a6cad497f466af28fa50e089971e1
[ "MIT" ]
7
2018-10-25T09:17:51.000Z
2021-09-22T21:14:13.000Z
screenshot_manager/__init__.py
wkentaro/screenshot-manager
22950b1e5c0a6cad497f466af28fa50e089971e1
[ "MIT" ]
null
null
null
screenshot_manager/__init__.py
wkentaro/screenshot-manager
22950b1e5c0a6cad497f466af28fa50e089971e1
[ "MIT" ]
null
null
null
# flake8: noqa import pkg_resources __author__ = "Kentaro Wada <www.kentaro.wada@gmail.com>" __version__ = pkg_resources.get_distribution("screenshot-manager").version
21.375
74
0.795322
6a99925090252bb94590a6118003d3e13ee92e20
1,061
py
Python
neutron_lib/api/definitions/bgpvpn_stdattrs.py
rubasov/neutron-lib
8664953c5a17e8abf5c5a52832e63885108aa818
[ "Apache-2.0" ]
41
2015-12-02T17:54:03.000Z
2022-01-14T18:55:57.000Z
neutron_lib/api/definitions/bgpvpn_stdattrs.py
rubasov/neutron-lib
8664953c5a17e8abf5c5a52832e63885108aa818
[ "Apache-2.0" ]
null
null
null
neutron_lib/api/definitions/bgpvpn_stdattrs.py
rubasov/neutron-lib
8664953c5a17e8abf5c5a52832e63885108aa818
[ "Apache-2.0" ]
62
2016-02-16T12:55:18.000Z
2021-12-29T03:03:03.000Z
# Copyright 2018 Orange # 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 applic...
35.366667
78
0.754006
dbace2efe3c016f775f9486f69b7079156c27c6f
26,068
py
Python
fudge/vis/gnuplot/fudgeNdMultiPlotMisc.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
fudge/vis/gnuplot/fudgeNdMultiPlotMisc.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
fudge/vis/gnuplot/fudgeNdMultiPlotMisc.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> import sys import Gnuplot if( sys.version_info[0] == 2 ) : import Tkinter import tkSimpleDialog import tkFileDia...
38.335294
156
0.591185
1ec68a2799b3c28cedd42eed858223763ce9efe1
3,468
py
Python
pearson/client.py
kapi2289/pearson-api
96624731d61580e0452f0527566b11fb3ef5e485
[ "MIT" ]
null
null
null
pearson/client.py
kapi2289/pearson-api
96624731d61580e0452f0527566b11fb3ef5e485
[ "MIT" ]
null
null
null
pearson/client.py
kapi2289/pearson-api
96624731d61580e0452f0527566b11fb3ef5e485
[ "MIT" ]
null
null
null
import requests from .product import Product class Client: def __init__(self, username, password): self.session = requests.session() self.token = None self.user_id = None self.username = username self.password = password self.login() def _request(self, url, m...
38.966292
125
0.561707
222f22df5fe97a0e15ac2496418921f93748019a
7,958
py
Python
visualization/plot_items_wrapper.py
ucgmsim/visualization
80ebfd39e10a254017cea8e122c1d73b7194072e
[ "MIT" ]
2
2020-06-22T04:59:44.000Z
2020-08-05T17:42:48.000Z
visualization/plot_items_wrapper.py
ucgmsim/visualization
80ebfd39e10a254017cea8e122c1d73b7194072e
[ "MIT" ]
18
2018-07-26T05:07:04.000Z
2022-03-07T01:10:18.000Z
visualization/plot_items_wrapper.py
ucgmsim/visualization
80ebfd39e10a254017cea8e122c1d73b7194072e
[ "MIT" ]
null
null
null
"""Functions for plotting single or multiple csv files using the plot_items.py script Supports a global options dictionary, or individual option yaml files that have the same name as the input csv (except with extension .yaml) """ import os import glob import shutil import tempfile import subprocess import multiproce...
30.725869
88
0.597512
e4da3ad4ee573d2605b372cb6a6ee63af582778a
1,290
py
Python
datastage/web/tests/settings.py
mkozuharov/DataStage
a61e67c901c2b43afa0fec6a99ef72152391a55f
[ "MIT" ]
8
2015-02-25T10:58:52.000Z
2020-04-17T03:11:48.000Z
datastage/web/tests/settings.py
mkozuharov/DataStage
a61e67c901c2b43afa0fec6a99ef72152391a55f
[ "MIT" ]
null
null
null
datastage/web/tests/settings.py
mkozuharov/DataStage
a61e67c901c2b43afa0fec6a99ef72152391a55f
[ "MIT" ]
7
2015-02-25T10:58:54.000Z
2019-11-04T16:19:22.000Z
# --------------------------------------------------------------------- # # Copyright (c) 2012 University of Oxford # # 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, incl...
49.615385
72
0.688372
dfc2a07b0e7dce624cf564eec0ef03b59b49eebb
2,739
py
Python
KMeans.py
semihacmali/PaternRecognition
fab8f6afff1aad865e093a106d740b13e0751329
[ "Apache-2.0" ]
null
null
null
KMeans.py
semihacmali/PaternRecognition
fab8f6afff1aad865e093a106d740b13e0751329
[ "Apache-2.0" ]
null
null
null
KMeans.py
semihacmali/PaternRecognition
fab8f6afff1aad865e093a106d740b13e0751329
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import numpy as np import random import matplotlib.pyplot as plt # def inputData(column, row): # data = [[int((input("[" +str(r) +"] [" +str(c) +"] : "))) for c in range(column)] for r in range(row)] # return np.array...
26.592233
109
0.516247
ca8038e74569f22f5a0fbeb37d7186603855c935
2,263
py
Python
tests/test.py
1132719438/pynvx
0c16274cee66644cc2ec746e80abd31669a64ab2
[ "MIT" ]
10
2018-10-17T15:54:28.000Z
2020-08-07T07:24:12.000Z
tests/test.py
1132719438/pynvx
0c16274cee66644cc2ec746e80abd31669a64ab2
[ "MIT" ]
6
2018-12-20T00:03:00.000Z
2020-09-12T14:50:12.000Z
tests/test.py
1132719438/pynvx
0c16274cee66644cc2ec746e80abd31669a64ab2
[ "MIT" ]
2
2019-02-23T18:29:50.000Z
2019-02-24T23:15:39.000Z
from __future__ import print_function, absolute_import, division import sys import pynvx as m if sys.version_info[0] == 2: string_types = basestring integer_types = [int, long] else: string_types = str integer_types = [int] # test pynvx api def test_init(): v = m.cudaInit(ignore=True) assert...
19.850877
64
0.698188
af533a9f2dd8ef7a9b292758411d5fb5a2a6f633
1,060
py
Python
niyopolymers/niyopolymers/report/consolidated/consolidated.py
venku31/niyopolymers
f150ee591d2ea10720d8e98c5f6abf7c6e2edb2d
[ "MIT" ]
null
null
null
niyopolymers/niyopolymers/report/consolidated/consolidated.py
venku31/niyopolymers
f150ee591d2ea10720d8e98c5f6abf7c6e2edb2d
[ "MIT" ]
null
null
null
niyopolymers/niyopolymers/report/consolidated/consolidated.py
venku31/niyopolymers
f150ee591d2ea10720d8e98c5f6abf7c6e2edb2d
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Atriina and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json import yaml import ast def execute(filters=None): columns, data = [], [] columns = ['Employee:Link/Employee:300']+['Employee Name:Data:250']+['Reporting ...
31.176471
117
0.706604
9f4eda7b08ed98736cc778baf1914f0646e41331
2,068
py
Python
examples/03-en/03-parse.py
zvelo/pattern
331a278f63590c1c415f102f935c9d10b62b4a03
[ "BSD-3-Clause" ]
2
2015-12-08T15:59:25.000Z
2016-03-15T20:11:29.000Z
examples/03-en/03-parse.py
kkoch986/pattern
db807c888dcd15f515afe31753c9b0345a11b542
[ "BSD-3-Clause" ]
null
null
null
examples/03-en/03-parse.py
kkoch986/pattern
db807c888dcd15f515afe31753c9b0345a11b542
[ "BSD-3-Clause" ]
null
null
null
import os, sys; sys.path.insert(0, os.path.join("..", "..")) from pattern.en import parse, pprint, tag # The en module contains a fast regular expressions-based parser. # A parser identifies words in a sentence, word part-of-speech tags (e.g. noun, verb) # and groups of words that belong together (e.g. noun phrases)....
40.54902
85
0.698259
8e499a0c2bc157820f3e2f5a53e4d73eb0b69ed4
8,777
py
Python
posthog/demo.py
Algogator/posthog
764e10696b6ee9cba927b38e0789ed896f5d67dd
[ "MIT" ]
null
null
null
posthog/demo.py
Algogator/posthog
764e10696b6ee9cba927b38e0789ed896f5d67dd
[ "MIT" ]
null
null
null
posthog/demo.py
Algogator/posthog
764e10696b6ee9cba927b38e0789ed896f5d67dd
[ "MIT" ]
null
null
null
import json import random import secrets import uuid from pathlib import Path from typing import List from dateutil.relativedelta import relativedelta from django.http import HttpResponseNotFound, JsonResponse from django.utils.timezone import now from posthog.constants import TREND_FILTER_TYPE_ACTIONS from posthog.m...
40.447005
119
0.527971
ff4b59fbcff2427d23885c34df40447ab2eadab9
2,014
py
Python
src/screens/game.py
MartinKondor/leap-of-time
11e138ba9625adeb28b97cd457b57d4df88fa506
[ "BSD-3-Clause" ]
null
null
null
src/screens/game.py
MartinKondor/leap-of-time
11e138ba9625adeb28b97cd457b57d4df88fa506
[ "BSD-3-Clause" ]
null
null
null
src/screens/game.py
MartinKondor/leap-of-time
11e138ba9625adeb28b97cd457b57d4df88fa506
[ "BSD-3-Clause" ]
null
null
null
""" Game screen. """ import time from enum import Enum import pygame from src.gui.button import Button, ButtonState from src.screens.screen import Screen, Screens from src.config import CONFIG from src.gameplay.game_play import GamePlay class GameSubScreen(Enum): GAME = 0 IN_GAME_MENU = 1 class GameScree...
31.968254
110
0.678252
b0084e42af3e37b679de61c065afc9814b71328b
1,761
py
Python
os_vif/objects/fields.py
Sleepless-Poet/mergetest
c3577773608197e24fc51cc49592e9695a98685e
[ "Apache-2.0" ]
22
2016-01-17T08:18:51.000Z
2020-06-02T01:21:25.000Z
os_vif/objects/fields.py
Sleepless-Poet/mergetest
c3577773608197e24fc51cc49592e9695a98685e
[ "Apache-2.0" ]
null
null
null
os_vif/objects/fields.py
Sleepless-Poet/mergetest
c3577773608197e24fc51cc49592e9695a98685e
[ "Apache-2.0" ]
18
2016-01-26T10:12:13.000Z
2021-01-09T10:58:32.000Z
# Copyright 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
26.681818
78
0.71096
f5ee8aab56e3c9a8ac8efe3a23e8af63465563d5
850
py
Python
portal/jobs/migrations/0001_initial.py
privascope/privascope_portal
a580df8c94f68e69f96fe099b0032dc922227804
[ "Apache-2.0" ]
null
null
null
portal/jobs/migrations/0001_initial.py
privascope/privascope_portal
a580df8c94f68e69f96fe099b0032dc922227804
[ "Apache-2.0" ]
null
null
null
portal/jobs/migrations/0001_initial.py
privascope/privascope_portal
a580df8c94f68e69f96fe099b0032dc922227804
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-23 20:31 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto...
30.357143
114
0.557647
67dc82542a29906a026b5b133495a307d26d28b2
4,816
py
Python
waTool/__init__.py
wicknec/WalArt
b23488b4e421699155976d5e726d1c7a906c3243
[ "MIT" ]
2
2016-02-02T11:33:27.000Z
2020-07-28T13:28:25.000Z
waTool/__init__.py
wicknec/WalArt
b23488b4e421699155976d5e726d1c7a906c3243
[ "MIT" ]
null
null
null
waTool/__init__.py
wicknec/WalArt
b23488b4e421699155976d5e726d1c7a906c3243
[ "MIT" ]
null
null
null
''' waTool ============================= Walnut Artifacts Created by wicknec Tools that can be used by minions and of course, humans can also use them ''' ''' Revisions for package main file: ============================== 151102 minion 151110 *DontStop* for continuous running, *Stop* to clear all tasks 151111 *ref...
26.31694
94
0.559593
2ed6737ff536b7b18bbd870ac945fec3b285f779
1,636
py
Python
simple_block_chain.py
harriliu/blockchain
7fdb53677fef55c21edde84e85daec3cd3e10e3e
[ "MIT" ]
null
null
null
simple_block_chain.py
harriliu/blockchain
7fdb53677fef55c21edde84e85daec3cd3e10e3e
[ "MIT" ]
null
null
null
simple_block_chain.py
harriliu/blockchain
7fdb53677fef55c21edde84e85daec3cd3e10e3e
[ "MIT" ]
null
null
null
import hashlib import json from time import time class Blockchain(object): def __init__(self): self.chain = [] self.pending_transactions = [] self.new_block(previous_hash="harris bought 100 doge coin", proof=100) # function to create new block def new_block(self, proof, pr...
25.5625
78
0.625917
71151c8bb104e407d4fc188266f072556f5d5b67
7,772
py
Python
src/yolo_depth.py
sohn21c/objRecog
bb743b62e8b436727f540cee6d28240dc6629b75
[ "Unlicense" ]
null
null
null
src/yolo_depth.py
sohn21c/objRecog
bb743b62e8b436727f540cee6d28240dc6629b75
[ "Unlicense" ]
null
null
null
src/yolo_depth.py
sohn21c/objRecog
bb743b62e8b436727f540cee6d28240dc6629b75
[ "Unlicense" ]
null
null
null
#!usr/bin/env python3 """ yolo_depth.py Author: James Sohn """ # importing the necessary libraries import pyrealsense2 as rs import numpy as np import cv2 import argparse import imutils import time import matplotlib.pyplot as plt import os # global variable declarations # class definitions # function definitions ...
36.834123
151
0.641276
40a0787114473f93b815b2aa4228b2ded03ac5ee
3,790
py
Python
libra/libra.py
GiuseppeVadrucci/Libra
a12c8b4ab2e13e4a59e7bf6d7431e271c1dc03e8
[ "Apache-2.0" ]
2
2018-06-02T20:18:23.000Z
2018-06-02T20:18:27.000Z
libra/libra.py
GiuseppeVadrucci/Libra
a12c8b4ab2e13e4a59e7bf6d7431e271c1dc03e8
[ "Apache-2.0" ]
null
null
null
libra/libra.py
GiuseppeVadrucci/Libra
a12c8b4ab2e13e4a59e7bf6d7431e271c1dc03e8
[ "Apache-2.0" ]
null
null
null
#Main file, defining Libra, socket select server to accept requests #It must be optimized, this is naive import select, queue, math import socket, sys, random, client import threading, reques import time counter = 1 weight = 0 class Libra: def __init__(self): self._redirects = [] self.outputs = [] self....
30.32
141
0.53219
749e7d772bffd632ddec989857a0de2982409f20
5,455
py
Python
backend/backend/settings.py
anubhav06/connect
7f9b7558995eb33d8355b5c69734530ff4eb5573
[ "MIT" ]
null
null
null
backend/backend/settings.py
anubhav06/connect
7f9b7558995eb33d8355b5c69734530ff4eb5573
[ "MIT" ]
2
2021-12-12T11:42:30.000Z
2021-12-12T14:47:40.000Z
backend/backend/settings.py
anubhav06/connect
7f9b7558995eb33d8355b5c69734530ff4eb5573
[ "MIT" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os fro...
26.480583
107
0.713657
6a147367e5b810d2af94a5b6df591fb58bf1a210
42,235
py
Python
venv/lib/python2.7/site-packages/ansible/modules/network/nuage/nuage_vspk.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/nuage/nuage_vspk.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/network/nuage/nuage_vspk.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Nokia # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ...
41.325832
159
0.621025
e5d540fef4dd2c4742ddfcdd72b0341aadb930f8
506
py
Python
chainerex/__init__.py
corochann/chainerex
15efb34a8fa6afab1ce5ad52c3802960ab6d49c2
[ "MIT" ]
1
2018-08-30T08:59:50.000Z
2018-08-30T08:59:50.000Z
chainerex/__init__.py
corochann/chainerex
15efb34a8fa6afab1ce5ad52c3802960ab6d49c2
[ "MIT" ]
null
null
null
chainerex/__init__.py
corochann/chainerex
15efb34a8fa6afab1ce5ad52c3802960ab6d49c2
[ "MIT" ]
null
null
null
from chainerex import dataset # NOQA from chainerex import iterators # NOQA from chainerex import links # NOQA from chainerex import optimizers # NOQA from chainerex import training # NOQA from chainerex import utils # NOQA import logging DEBUG = True if DEBUG: logging.basicConfig(level=logging.DEBUG) # ---...
26.631579
61
0.768775
b75d16b1b191f065ea14162755708b7b86ef17d1
6,768
py
Python
database_delivery_sdk/model/easy_command/target_log_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
database_delivery_sdk/model/easy_command/target_log_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
database_delivery_sdk/model/easy_command/target_log_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: target_log.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 google.protobuf ...
46.675862
689
0.747931
83938892ba77a7054979c83f50733583ff8c6c44
782
py
Python
floreal/migrations/0023_auto_20200714_0750.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
6
2017-04-26T10:29:36.000Z
2022-03-22T20:35:23.000Z
floreal/migrations/0023_auto_20200714_0750.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
12
2018-07-23T22:32:39.000Z
2021-12-02T15:37:48.000Z
floreal/migrations/0023_auto_20200714_0750.py
fab13n/caracole
675b2c2cd32566208f7d917bc5e6088d3bce414e
[ "MIT" ]
7
2015-01-05T22:07:42.000Z
2020-03-20T10:41:18.000Z
# Generated by Django 3.0.4 on 2020-07-14 05:50 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), ('floreal', '0022_auto_202...
28.962963
136
0.65601
e685bf5faafebb4668ea9c576c8a4d860acd9197
1,621
py
Python
py-polars/tests/io/test_other.py
moritzwilksch/polars
7e206834923180f574945c569c8b21820bc02d8e
[ "MIT" ]
3
2022-03-06T12:45:47.000Z
2022-03-26T08:43:31.000Z
py-polars/tests/io/test_other.py
moritzwilksch/polars
7e206834923180f574945c569c8b21820bc02d8e
[ "MIT" ]
null
null
null
py-polars/tests/io/test_other.py
moritzwilksch/polars
7e206834923180f574945c569c8b21820bc02d8e
[ "MIT" ]
null
null
null
# flake8: noqa: W191,E101 import copy import polars as pl def test_copy() -> None: df = pl.DataFrame({"a": [1, 2], "b": ["a", None], "c": [True, False]}) assert copy.copy(df).frame_equal(df, True) assert copy.deepcopy(df).frame_equal(df, True) a = pl.Series("a", [1, 2]) assert copy.copy(a).serie...
26.145161
85
0.560765
28eaf18125ba35324d6cbe7dbc1771e8df691bf0
1,018
py
Python
src/sympais/tasks/sphere.py
ethanluoyc/sympais
68bc696434c86edb8457a3c74473c810b2c5c8f2
[ "MIT" ]
5
2021-06-04T23:24:41.000Z
2021-12-13T21:39:57.000Z
src/sympais/tasks/sphere.py
ethanluoyc/sympais
68bc696434c86edb8457a3c74473c810b2c5c8f2
[ "MIT" ]
24
2021-07-12T02:08:34.000Z
2021-12-20T02:14:54.000Z
src/sympais/tasks/sphere.py
ethanluoyc/sympais
68bc696434c86edb8457a3c74473c810b2c5c8f2
[ "MIT" ]
1
2021-07-31T10:34:19.000Z
2021-07-31T10:34:19.000Z
"""Benchmark task for testing constraint satisfaction with sphere.""" import sympy from sympais import distributions as dist from . import base class Sphere(base.Task): """Task for constraint satisfaction with spheres.""" def __init__(self, nd: int): """Construct a `Sphere` task. Args: nd: number...
32.83871
81
0.644401
adddc3a7a0f5ea2f283c1afb7f787a814e8e93e1
23,296
py
Python
lib/ReadsAPI/ReadsAPIServer.py
kbaseapps/ReadsAPI
2c773aefcb2ebb7ddcd536ac21c8b880050e6a0f
[ "MIT" ]
null
null
null
lib/ReadsAPI/ReadsAPIServer.py
kbaseapps/ReadsAPI
2c773aefcb2ebb7ddcd536ac21c8b880050e6a0f
[ "MIT" ]
1
2016-10-26T21:25:14.000Z
2016-11-09T18:12:22.000Z
lib/ReadsAPI/ReadsAPIServer.py
kbaseapps/ReadsAPI
2c773aefcb2ebb7ddcd536ac21c8b880050e6a0f
[ "MIT" ]
2
2016-10-20T18:10:54.000Z
2017-03-24T04:55:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from wsgiref.simple_server import make_server import sys import json import traceback import datetime from multiprocessing import Process from getopt import getopt, GetoptError from jsonrpcbase import JSONRPCService, InvalidParamsError, KeywordError,\ JSONRPCError, Inva...
37.036566
151
0.543355
0290e1bb007bf232ada7399baf1f4fb65a6db08a
295
py
Python
nevergrad/functions/rl/__init__.py
mathuvu/nevergrad
8e116190a8a29c238e655d728fc4816f7b4e0415
[ "MIT" ]
null
null
null
nevergrad/functions/rl/__init__.py
mathuvu/nevergrad
8e116190a8a29c238e655d728fc4816f7b4e0415
[ "MIT" ]
null
null
null
nevergrad/functions/rl/__init__.py
mathuvu/nevergrad
8e116190a8a29c238e655d728fc4816f7b4e0415
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from . import envs as envs from . import agents as agents from .base import EnvironmentRunner as EnvironmentRunner
32.777778
65
0.779661
11d66d03692940f8886572328df7388486a19570
1,211
py
Python
jianzhi_offer_33.py
JasonLeeSJTU/Algorithms_Python
cc18215b69c8c9d5f69d7d44a99938eb4e20f6fd
[ "MIT" ]
2
2019-05-01T08:25:50.000Z
2019-05-04T08:23:26.000Z
jianzhi_offer_33.py
JasonLeeSJTU/Algorithms_Python
cc18215b69c8c9d5f69d7d44a99938eb4e20f6fd
[ "MIT" ]
null
null
null
jianzhi_offer_33.py
JasonLeeSJTU/Algorithms_Python
cc18215b69c8c9d5f69d7d44a99938eb4e20f6fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 ''' @author: Jason Lee @license: (C) Copyright @ Jason Lee @contact: jiansenll@163.com @file: jianzhi_offer_33.py @time: 2019/5/3 16:15 @desc: ''' class Solution: def PrintMinNumber(self, numbers): temp = [] max_len = 0 for i in numbers: ...
22.425926
77
0.581338
1c865675848cd73bcf1a0680c52ff6d519ae8cb0
26,179
py
Python
mne/decoding/search_light.py
stevemats/mne-python
47051833f21bb372d60afc3adbf4305648ac7f69
[ "BSD-3-Clause" ]
2
2020-05-11T13:34:36.000Z
2020-05-28T19:43:21.000Z
mne/decoding/search_light.py
stevemats/mne-python
47051833f21bb372d60afc3adbf4305648ac7f69
[ "BSD-3-Clause" ]
8
2018-03-03T19:59:16.000Z
2020-10-14T11:00:33.000Z
mne/decoding/search_light.py
stevemats/mne-python
47051833f21bb372d60afc3adbf4305648ac7f69
[ "BSD-3-Clause" ]
4
2017-08-14T18:03:22.000Z
2021-03-04T06:55:29.000Z
# Author: Jean-Remi King <jeanremi.king@gmail.com> # # License: BSD-3-Clause import numpy as np from .mixin import TransformerMixin from .base import BaseEstimator, _check_estimator from ..fixes import _get_check_scoring from ..parallel import parallel_func from ..utils import (_validate_type, array_split_idx, Progre...
38.669129
114
0.60602
de454b26eb546fc0ab7d4922b048201cd36c90ef
1,509
py
Python
Pilot1/UnoMT/utils/data_processing/dataframe_scaling.py
CBIIT/NCI-DOE-Collab-Pilot1-Unified-Drug-Response-Predictor-Multi-tasking
93ac7706741a22ef091fae3bf555d7271fe27bee
[ "MIT" ]
51
2017-01-24T20:57:27.000Z
2022-02-15T00:33:45.000Z
Pilot1/UnoMT/utils/data_processing/dataframe_scaling.py
CBIIT/NCI-DOE-Collab-Pilot1-Unified-Drug-Response-Predictor-Multi-tasking
93ac7706741a22ef091fae3bf555d7271fe27bee
[ "MIT" ]
59
2017-08-21T22:19:44.000Z
2021-11-01T16:05:35.000Z
Pilot1/UnoMT/utils/data_processing/dataframe_scaling.py
CBIIT/NCI-DOE-Collab-Pilot1-Unified-Drug-Response-Predictor-Multi-tasking
93ac7706741a22ef091fae3bf555d7271fe27bee
[ "MIT" ]
90
2016-11-22T03:57:07.000Z
2022-01-11T04:43:23.000Z
""" File Name: UnoPytorch/dataframe_scaling.py Author: Xiaotian Duan (xduan7) Email: xduan7@uchicago.edu Date: 8/13/18 Python Version: 3.6.6 File Description: """ import logging import pandas as pd from sklearn.preprocessing import StandardSc...
28.471698
80
0.636183
06a074e36810b0f1be1470d091bf18ab121d61d8
5,449
py
Python
virtual/lib/python3.6/site-packages/flask_migrate/templates/flask-multidb/env.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
4
2020-01-20T06:46:33.000Z
2021-07-28T21:53:29.000Z
virtual/lib/python3.6/site-packages/flask_migrate/templates/flask-multidb/env.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
virtual/lib/python3.6/site-packages/flask_migrate/templates/flask-multidb/env.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
5
2019-08-15T09:20:23.000Z
2019-08-15T09:49:34.000Z
from __future__ import with_statement from alembic import context from sqlalchemy import engine_from_config, pool, MetaData from logging.config import fileConfig import logging USE_TWOPHASE = False # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context...
34.27044
77
0.629106
1fe11dee97e3a27426b1083dc6be17e97e54c436
10,761
py
Python
tests/scripts/thread-cert/pktverify/consts.py
akonarsnyker/openthread
7d75fc62e1a8dc48031433035af496127f74d4ba
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/pktverify/consts.py
akonarsnyker/openthread
7d75fc62e1a8dc48031433035af496127f74d4ba
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/pktverify/consts.py
akonarsnyker/openthread
7d75fc62e1a8dc48031433035af496127f74d4ba
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2019, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
27.105793
100
0.780597
eaa638c3ff716556ad186b02b1a1fbd8d7b46f32
257
py
Python
.test/qc_test/data/clean_read_names.py
snakemake-workflows/rad-seq-stacks
3a20c20f2d19396b14b9e01af66504020f257955
[ "MIT" ]
1
2018-08-08T06:33:11.000Z
2018-08-08T06:33:11.000Z
.test/qc_test/data/clean_read_names.py
snakemake-workflows/rad-seq-stacks
3a20c20f2d19396b14b9e01af66504020f257955
[ "MIT" ]
14
2019-01-24T10:20:15.000Z
2020-11-15T20:04:23.000Z
.test/qc_test/data/clean_read_names.py
koesterlab/rad-seq-stacks
3a20c20f2d19396b14b9e01af66504020f257955
[ "MIT" ]
2
2020-12-17T21:23:24.000Z
2022-01-15T12:22:17.000Z
import dinopy import sys in_fastq = dinopy.FastqReader(sys.stdin) with dinopy.FastqWriter(sys.stdout) as out_fastq: out_fastq.write_reads((read.sequence, read.name.split(b" ")[0], read.quality) for read in in_fastq.reads())
28.555556
82
0.680934
594c8216ae7cf92a44710d6c58d567b928880011
51,755
py
Python
openscraper/controller.py
thibault/OpenScraper
218aad63a71c8e653d5f23e598ce02654a820b4c
[ "MIT" ]
79
2018-03-07T11:15:37.000Z
2022-03-26T13:12:39.000Z
openscraper/controller.py
entrepreneur-interet-general/SocialConnect_openscrapper
7baa8a290f2ba35486ebd6517de87a8aca39bf43
[ "MIT" ]
62
2018-10-03T10:06:14.000Z
2022-03-02T14:54:30.000Z
openscraper/controller.py
entrepreneur-interet-general/SocialConnect_openscrapper
7baa8a290f2ba35486ebd6517de87a8aca39bf43
[ "MIT" ]
22
2018-03-08T10:20:13.000Z
2022-02-18T13:15:52.000Z
# -*- encoding: utf-8 -*- from tornado.log import enable_pretty_logging, LogFormatter, access_log, app_log, gen_log gen_log.info("--> importing .controller") # import base handler and some utils..; # controller being downhill from base_handler means that # doing so imports also many basic libs : pprint, math, fr...
29.829971
163
0.665598
53ad1064f4cc41f8ab588de8a053bf6745f357b9
1,050
py
Python
tests/test_youtube.py
RentFreeMedia/python-video-ids
077dffb9f26456e703fb4e396a81df883ae4d0e3
[ "MIT" ]
null
null
null
tests/test_youtube.py
RentFreeMedia/python-video-ids
077dffb9f26456e703fb4e396a81df883ae4d0e3
[ "MIT" ]
null
null
null
tests/test_youtube.py
RentFreeMedia/python-video-ids
077dffb9f26456e703fb4e396a81df883ae4d0e3
[ "MIT" ]
null
null
null
import unittest from videos_id.video_info import VideoInfo class YoutubeTest(unittest.TestCase): def setUp(self): self.video_info = VideoInfo() def tearDown(self): self.video_info = None def test_normal_url_correct(self): url = 'https://www.youtube.com/watch?v=gb5HmcdIHb8' ...
32.8125
62
0.691429
bca2a6591434034a7ad19d376839a8fd4e36984f
1,983
py
Python
Vision/classification/image/ViT/utils/numpy_data_utils.py
LiuHaolan/models
1639b3039237c3997c51ff87f0b6113bb2e8d236
[ "Apache-2.0" ]
43
2021-06-03T09:07:08.000Z
2022-03-31T15:21:48.000Z
Vision/classification/image/ViT/utils/numpy_data_utils.py
LiuHaolan/models
1639b3039237c3997c51ff87f0b6113bb2e8d236
[ "Apache-2.0" ]
64
2021-05-31T10:34:06.000Z
2022-01-17T03:44:58.000Z
Vision/classification/image/ViT/utils/numpy_data_utils.py
LiuHaolan/models
1639b3039237c3997c51ff87f0b6113bb2e8d236
[ "Apache-2.0" ]
37
2021-07-04T03:13:18.000Z
2022-03-25T07:30:47.000Z
from PIL import Image import numpy as np import os import random def load_image(image_path="data/fish.jpg", image_size=(224, 224)): rgb_mean = [123.68, 116.779, 103.939] rgb_std = [58.393, 57.12, 57.375] im = Image.open(image_path) im = im.resize(image_size) im = im.convert("RGB") im = np.arra...
31.983871
76
0.621785
4c416297170c1bbe365daf9698183567a40f44d7
734
py
Python
executing/__init__.py
15r10nk/executing
e679aacddcd906aa75c973491c6f40249262f88d
[ "MIT" ]
157
2019-07-03T13:40:40.000Z
2022-03-31T05:04:45.000Z
executing/__init__.py
15r10nk/executing
e679aacddcd906aa75c973491c6f40249262f88d
[ "MIT" ]
15
2019-11-06T18:15:33.000Z
2022-03-31T23:42:33.000Z
executing/__init__.py
15r10nk/executing
e679aacddcd906aa75c973491c6f40249262f88d
[ "MIT" ]
21
2019-07-03T15:29:16.000Z
2022-02-07T20:57:53.000Z
""" Get information about what a frame is currently doing. Typical usage: import executing node = executing.Source.executing(frame).node # node will be an AST node or None """ from collections import namedtuple _VersionInfo = namedtuple('VersionInfo', ('major', 'minor', 'micro')) from .executing import S...
28.230769
85
0.709809
36ac20fad671f3b476eed54d285de3ab73a8b6fb
2,389
py
Python
sovrin/agent/endpoint.py
sovrin-foundation/old-sovrin
d4e705054b7252c62fea00114060035c6eb314a4
[ "Apache-2.0" ]
3
2017-07-19T14:26:31.000Z
2020-05-16T16:09:37.000Z
sovrin/agent/endpoint.py
sovrin-foundation/old-sovrin
d4e705054b7252c62fea00114060035c6eb314a4
[ "Apache-2.0" ]
null
null
null
sovrin/agent/endpoint.py
sovrin-foundation/old-sovrin
d4e705054b7252c62fea00114060035c6eb314a4
[ "Apache-2.0" ]
3
2017-10-28T08:19:00.000Z
2021-06-06T10:48:55.000Z
from typing import Callable, Any, List from plenum.common.log import getlogger from plenum.common.raet import getHaFromLocalEstate from plenum.common.stacked import SimpleStack from plenum.common.types import HA from plenum.common.util import randomString from raet.raeting import AutoMode from raet.road.estating impor...
34.128571
78
0.603181
251c0732480ee9f31fcf68e28dfc8cea11224aca
3,677
py
Python
models.py
dculyba/boom-tic-tac-toe
19a1d29f0b3f745413e24928be174ac207cef57b
[ "Apache-2.0" ]
40
2015-02-09T04:54:03.000Z
2021-10-09T18:37:24.000Z
models.py
dculyba/boom-tic-tac-toe
19a1d29f0b3f745413e24928be174ac207cef57b
[ "Apache-2.0" ]
1
2017-03-28T20:05:58.000Z
2017-03-31T16:56:50.000Z
models.py
dculyba/boom-tic-tac-toe
19a1d29f0b3f745413e24928be174ac207cef57b
[ "Apache-2.0" ]
38
2015-01-19T10:02:44.000Z
2022-01-12T18:15:22.000Z
#!/usr/bin/python # Copyright (C) 2010-2013 Google 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 l...
34.364486
80
0.685069
472f12028eabaef0f46a3523891e75bfb6f20329
822
py
Python
web/api/migrations/0016_auto_20161204_1228.py
bounswe/bounswe2016group2
f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad
[ "Apache-2.0" ]
10
2016-02-10T13:57:10.000Z
2021-04-01T14:34:33.000Z
web/api/migrations/0016_auto_20161204_1228.py
bounswe/bounswe2016group2
f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad
[ "Apache-2.0" ]
203
2016-02-14T16:13:15.000Z
2016-12-23T21:27:08.000Z
web/api/migrations/0016_auto_20161204_1228.py
bounswe/bounswe2016group2
f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad
[ "Apache-2.0" ]
2
2017-05-10T18:41:28.000Z
2019-02-27T21:01:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-04 12:28 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0015_auto_20161204_...
29.357143
133
0.649635
9eb0b9549fd1470e05445f49972db350bd792e93
2,628
py
Python
v2.5.7/toontown/pets/PetNameGenerator.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/pets/PetNameGenerator.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/pets/PetNameGenerator.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
import random from toontown.toonbase import ToontownGlobals from toontown.toonbase import TTLocalizer import os from direct.showbase import AppRunnerGlobal from direct.directnotify import DirectNotifyGlobal from panda3d.core import * class PetNameGenerator: notify = DirectNotifyGlobal.directNotify.newCategory('Pet...
33.265823
141
0.582953
6e5449e46d7d3068cddbad331194ed4a1531ef69
55
py
Python
python/prob001.py
ChihoWon/Project-Euler
5b645248ce79c1d7546243a1e4edf4b3d8b915e8
[ "MIT" ]
2
2017-06-29T11:42:18.000Z
2019-04-07T23:20:31.000Z
python/prob001.py
ChihoWon/Project-Euler
5b645248ce79c1d7546243a1e4edf4b3d8b915e8
[ "MIT" ]
null
null
null
python/prob001.py
ChihoWon/Project-Euler
5b645248ce79c1d7546243a1e4edf4b3d8b915e8
[ "MIT" ]
null
null
null
sum(filter(lambda x:x%3==0 or x%5==0, range(1, 1000)))
27.5
54
0.618182
86444f033556d9c0fb5cfc42c995b69e5bc25cc0
53,736
py
Python
pytorch-frontend/torch/nn/modules/SimulatedConv.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
pytorch-frontend/torch/nn/modules/SimulatedConv.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
pytorch-frontend/torch/nn/modules/SimulatedConv.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
# coding=utf-8 import math import warnings import torch from torch import Tensor from torch.nn.parameter import Parameter from .. import functional as F from .. import init from .module import Module from .utils import _single, _pair, _triple, _reverse_repeat_tuple from ..common_types import _size_1_t, _size_2_t, _si...
47.935772
281
0.626414
3fcb6701904160ac802270b057ef8f1d1b084398
2,387
py
Python
calc/output.py
pshchelo/vampy
85555daf3a04bf36e81d6cd64f66bb1e4b341860
[ "BSD-3-Clause" ]
1
2021-04-19T09:48:04.000Z
2021-04-19T09:48:04.000Z
calc/output.py
pshchelo/vampy
85555daf3a04bf36e81d6cd64f66bb1e4b341860
[ "BSD-3-Clause" ]
null
null
null
calc/output.py
pshchelo/vampy
85555daf3a04bf36e81d6cd64f66bb1e4b341860
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ output of various data for VAMP project """ from numpy import ndarray class DataWriter(): def __init__(self, datadict, title='Data export file'): self.title=title self.data = datadict self.allfields = sorted(datadict.keys()) self.numparams= [] self....
33.152778
66
0.535819
92b0b8208ed8629bd577085dce32e80f2450a7d2
18,901
py
Python
netattack2.py
moyagrciga/netattack2
230b856129d80a5d9ef0a70241035405d86c66fd
[ "MIT" ]
374
2017-05-05T01:21:46.000Z
2022-03-29T10:55:22.000Z
netattack2.py
GradusXaker/netattack2
230b856129d80a5d9ef0a70241035405d86c66fd
[ "MIT" ]
33
2017-05-03T21:44:03.000Z
2022-02-23T16:02:37.000Z
netattack2.py
GradusXaker/netattack2
230b856129d80a5d9ef0a70241035405d86c66fd
[ "MIT" ]
133
2017-05-04T00:20:28.000Z
2022-03-17T06:56:48.000Z
#!/usr/bin/env python # imports that won't cause errors import sys import os import signal import subprocess from threading import Thread from time import sleep import datetime import logging logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # scapy, please shut up.. # terminal colors RED = "\033[1;31m" BL...
32.587931
140
0.572615
7687af23a8f28e7b28d1d5def48b9c41eb5f5a0e
6,611
py
Python
Examples/RegistrationITKv4/ImageRegistration5.py
arobert01/ITK
230d319fdeaa3877273fab5d409dd6c11f0a6874
[ "Apache-2.0" ]
945
2015-01-09T00:43:52.000Z
2022-03-30T08:23:02.000Z
Examples/RegistrationITKv4/ImageRegistration5.py
arobert01/ITK
230d319fdeaa3877273fab5d409dd6c11f0a6874
[ "Apache-2.0" ]
2,354
2015-02-04T21:54:21.000Z
2022-03-31T20:58:21.000Z
Examples/RegistrationITKv4/ImageRegistration5.py
arobert01/ITK
230d319fdeaa3877273fab5d409dd6c11f0a6874
[ "Apache-2.0" ]
566
2015-01-04T14:26:57.000Z
2022-03-18T20:33:18.000Z
# ========================================================================== # # Copyright NumFOCUS # # 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/...
27.777311
87
0.747845
74e1b7cd4c87a38976e3f2b71af1c9773c5810a0
4,183
py
Python
envs/FiniteMDP.py
amarildolikmeta/alphazero_singleplayer
06f62c82f428dbe82afab16c1955b82aeedd8737
[ "MIT" ]
null
null
null
envs/FiniteMDP.py
amarildolikmeta/alphazero_singleplayer
06f62c82f428dbe82afab16c1955b82aeedd8737
[ "MIT" ]
null
null
null
envs/FiniteMDP.py
amarildolikmeta/alphazero_singleplayer
06f62c82f428dbe82afab16c1955b82aeedd8737
[ "MIT" ]
null
null
null
from copy import copy import numpy as np import gym from gym.utils import seeding from gym import spaces as gym_spaces class MDPInfo: """ This class is used to store the information of the environment. """ def __init__(self, observation_space, action_space, gamma, horizon): """ Constr...
27.339869
81
0.569687
867e675b2651b5fd9d55d33eb032d5d3766071e6
737
py
Python
fml_manager/tests/test_fmlmananger.py
eliaskousk/KubeFATE
f0f87de46277938bebbc1453e0ef2be70497a9df
[ "Apache-2.0" ]
316
2019-09-24T09:14:09.000Z
2022-03-30T03:34:39.000Z
fml_manager/tests/test_fmlmananger.py
LaynePeng/KubeFATE
8593580b76ff8f5147bef694558629301b999edf
[ "Apache-2.0" ]
238
2019-10-11T08:32:04.000Z
2022-03-30T11:55:15.000Z
fml_manager/tests/test_fmlmananger.py
LaynePeng/KubeFATE
8593580b76ff8f5147bef694558629301b999edf
[ "Apache-2.0" ]
184
2019-09-20T07:54:04.000Z
2022-03-29T07:41:54.000Z
# Copyright 2019-2020 VMware, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, s...
40.944444
74
0.766621
cc1a9d29f7cc72ebd80e841f246c4c19dac8ce4d
3,542
py
Python
setup.py
decaz/webargs
cfe9c4aad5c86c82d0e829577ce23e96f3f2963d
[ "MIT" ]
null
null
null
setup.py
decaz/webargs
cfe9c4aad5c86c82d0e829577ce23e96f3f2963d
[ "MIT" ]
null
null
null
setup.py
decaz/webargs
cfe9c4aad5c86c82d0e829577ce23e96f3f2963d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import re from setuptools import setup, find_packages INSTALL_REQUIRES = ["marshmallow>=2.15.2"] if sys.version_info[0] < 3: INSTALL_REQUIRES.append("simplejson>=2.1.0") FRAMEWORKS = [ "Flask>=0.12.2", "Django>=1.11.16", "bottle>=0.12.13", "tornado>=4.5.2", "...
29.516667
125
0.573123
7e38cc9ec103c23ebad91b757bd9a90c2c1c739c
239
py
Python
config.py
yudus-labs/yfolio-backend
20511f518fffdb53ca60743575524b848e8c3286
[ "MIT" ]
null
null
null
config.py
yudus-labs/yfolio-backend
20511f518fffdb53ca60743575524b848e8c3286
[ "MIT" ]
null
null
null
config.py
yudus-labs/yfolio-backend
20511f518fffdb53ca60743575524b848e8c3286
[ "MIT" ]
null
null
null
import os.path as osp ABOUT = 'CoinKit' LOG_DIR = f'{osp.dirname(osp.abspath(__file__))}/.log' SERVER_LOG = f'{LOG_DIR}/server.log' LOG_LEVEL = 'INFO' MONGO_URI = 'mongodb://localhost:27017/' # MONGO_URI = 'mongodb://10.0.128.168:27017/'
26.555556
54
0.702929
5f0bf16794abbf6afb5ced4641d9af1534be5364
146
py
Python
cd.py
eleanormarie/library-mgmt
0aa0441a4296511e4fe42b3bfd2c68e9250202a8
[ "MIT" ]
null
null
null
cd.py
eleanormarie/library-mgmt
0aa0441a4296511e4fe42b3bfd2c68e9250202a8
[ "MIT" ]
null
null
null
cd.py
eleanormarie/library-mgmt
0aa0441a4296511e4fe42b3bfd2c68e9250202a8
[ "MIT" ]
null
null
null
from item import Item class CD(Item): def __init__(self): super().__init__() # TODO: Add CD properties # self.artist
18.25
33
0.589041
2a27942901fb267af187d545328e823879c25c20
7,021
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/aio/operations/_network_management_client_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/aio/operations/_network_management_client_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/aio/operations/_network_management_client_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.794326
221
0.686654
4607e112a45e6efb374f7dadcb4138c9f1fd7bd6
15,640
py
Python
ipyigv/options.py
harrouet/ipyigv
c241792c2db8bd7a750eb1b9f8e80130f03834f3
[ "BSD-3-Clause" ]
null
null
null
ipyigv/options.py
harrouet/ipyigv
c241792c2db8bd7a750eb1b9f8e80130f03834f3
[ "BSD-3-Clause" ]
null
null
null
ipyigv/options.py
harrouet/ipyigv
c241792c2db8bd7a750eb1b9f8e80130f03834f3
[ "BSD-3-Clause" ]
2
2020-11-12T09:18:47.000Z
2020-11-13T13:14:37.000Z
import os from urllib.parse import urlparse from traitlets import ( Float, Unicode, Int, Tuple, List, Instance, Bool, Dict, Enum, link, observe, default, validate, TraitError, Union, HasTraits, TraitType ) from ipywidgets import Widget, register, widget_serialization from ipywidgets.widgets.trait_types import...
41.706667
145
0.679604
d27778eedd9413a8bd48d784c3318d7ad7b823c6
22
py
Python
test.py
karthik-kaushik/Python-practice
a2fda91181aea2902f24339fa02d1e98ebaba475
[ "MIT" ]
null
null
null
test.py
karthik-kaushik/Python-practice
a2fda91181aea2902f24339fa02d1e98ebaba475
[ "MIT" ]
null
null
null
test.py
karthik-kaushik/Python-practice
a2fda91181aea2902f24339fa02d1e98ebaba475
[ "MIT" ]
null
null
null
print("hello world 2")
22
22
0.727273
fd1f410d8c2b486ac338c637194d79519b0b4c1c
5,404
py
Python
scripts/kilt/anserini_retriever.py
vjeronymo2/pyserini
441077bc3891a8db0e166382cf6c88ba051f289b
[ "Apache-2.0" ]
null
null
null
scripts/kilt/anserini_retriever.py
vjeronymo2/pyserini
441077bc3891a8db0e166382cf6c88ba051f289b
[ "Apache-2.0" ]
null
null
null
scripts/kilt/anserini_retriever.py
vjeronymo2/pyserini
441077bc3891a8db0e166382cf6c88ba051f289b
[ "Apache-2.0" ]
null
null
null
# # Pyserini: Reproducible IR research with sparse and dense representations # # 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...
31.418605
112
0.608993
330c19982829a42bf42101ce4f798c845c1651d0
1,002
py
Python
ccal/plot_and_save.py
alex-wenzel/ccal
74dfc604d93e6ce9e12f34a828b601618df51faa
[ "MIT" ]
null
null
null
ccal/plot_and_save.py
alex-wenzel/ccal
74dfc604d93e6ce9e12f34a828b601618df51faa
[ "MIT" ]
null
null
null
ccal/plot_and_save.py
alex-wenzel/ccal
74dfc604d93e6ce9e12f34a828b601618df51faa
[ "MIT" ]
null
null
null
from plotly.io import write_image from plotly.offline import iplot from plotly.offline import plot as offline_plot from plotly.plotly import plot as plotly_plot def plot_and_save(figure, html_file_path, plotly_html_file_path=None): if "layout" in figure: figure["layout"].update({"autosize": True, "hover...
25.692308
78
0.640719
e7fe18bb38c889c694d902c71b2ea102b9654cb7
10,825
py
Python
day_twelve/day_twelve_part_two_tests.py
pauldambra/adventofcode-2020
05bb7b7ca0a32e970f479d80c3e3d6ebdc53457c
[ "Unlicense" ]
null
null
null
day_twelve/day_twelve_part_two_tests.py
pauldambra/adventofcode-2020
05bb7b7ca0a32e970f479d80c3e3d6ebdc53457c
[ "Unlicense" ]
null
null
null
day_twelve/day_twelve_part_two_tests.py
pauldambra/adventofcode-2020
05bb7b7ca0a32e970f479d80c3e3d6ebdc53457c
[ "Unlicense" ]
null
null
null
import os from files.reader import get_puzzle_input_path import unittest import day_eleven.travel as travel class WaypointShip: turn_right_from = { 'east': 'south', 'south': 'west', 'west': 'north', 'north': 'east' } turn_left_from = { 'east': 'north', 'nort...
35.608553
79
0.572379