hexsha stringlengths 40 40 | size int64 1 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 239 | max_stars_repo_name stringlengths 5 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 239 | max_issues_repo_name stringlengths 5 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 239 | max_forks_repo_name stringlengths 5 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.03M | avg_line_length float64 1 958k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7971433afa76a052379cfaf09de8607ae5af5ac6 | 1,568 | py | Python | plotly/validators/heatmapgl/_hoverlabel.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 1 | 2018-07-16T01:51:47.000Z | 2018-07-16T01:51:47.000Z | plotly/validators/heatmapgl/_hoverlabel.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | null | null | null | plotly/validators/heatmapgl/_hoverlabel.py | faezs/plotly.py | 6009b5b9c746e5d2a2849ad255a4eb234b551ed7 | [
"MIT"
] | 1 | 2019-02-18T04:12:56.000Z | 2019-02-18T04:12:56.000Z | import _plotly_utils.basevalidators
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name='hoverlabel', parent_name='heatmapgl', **kwargs
):
super(HoverlabelValidator, self).__init__(
plotly_name=plotly_name,
parent_... | 37.333333 | 74 | 0.555485 |
79714431d510dd6ba39b65c29a1b809ed50f4b4b | 5,519 | py | Python | main.py | alwaysai/coco-to-pascal-voc | 216622b36c861f95c8da8672180b6903105e4e09 | [
"MIT"
] | null | null | null | main.py | alwaysai/coco-to-pascal-voc | 216622b36c861f95c8da8672180b6903105e4e09 | [
"MIT"
] | null | null | null | main.py | alwaysai/coco-to-pascal-voc | 216622b36c861f95c8da8672180b6903105e4e09 | [
"MIT"
] | null | null | null | import os
import shutil
import json
import glob
import re
import cv2
import imgaug.augmenters as iaa
from imgaug.augmentables.bbs import BoundingBox, BoundingBoxesOnImage
import xml.etree.ElementTree as ET
from templates import xml_template, object_template
# Edit these
COCO_DATA_IMAGES = "./coco/images"
COCO_DATA_AN... | 35.152866 | 105 | 0.612249 |
797144400c3d2a722fc979180b9b48f5038a4d52 | 3,360 | py | Python | serializer.py | harbi-eng/Pycross | 4030081dafa8181deeeb5aaf2edbc802d90c9466 | [
"MIT"
] | 1 | 2021-07-04T19:17:44.000Z | 2021-07-04T19:17:44.000Z | serializer.py | harbi-eng/Pycross | 4030081dafa8181deeeb5aaf2edbc802d90c9466 | [
"MIT"
] | null | null | null | serializer.py | harbi-eng/Pycross | 4030081dafa8181deeeb5aaf2edbc802d90c9466 | [
"MIT"
] | null | null | null | """
meaning sign
None 'ᐰ'
bool 'ᐱ'
int 'ᐲ'
float 'ᐳ'
str 'ᐴ'
' 'ᐿ'
_object 'ᐵ'
, 'ᐶ'
{ 'ᐷ'
} 'ᐸ'
[ 'ᐹ'
] 'ᐺ'
( 'ᐻ'
) 'ᐼ'
: 'ᐽ'
"""
# coding=utf-8
replacment = ['None', 'bool', 'int', 'float', 'str', '\"', '_object', ',', '{', '}', '[', ']', '(... | 22.4 | 109 | 0.536607 |
797144509b4f21309c067c878def17a999a9b77c | 2,438 | py | Python | src/dataset/character_analysis.py | alexameen/artist-lyric-gen | 0372ec2e9f06783f7eca3490e4199c2fe4fc3044 | [
"MIT"
] | null | null | null | src/dataset/character_analysis.py | alexameen/artist-lyric-gen | 0372ec2e9f06783f7eca3490e4199c2fe4fc3044 | [
"MIT"
] | null | null | null | src/dataset/character_analysis.py | alexameen/artist-lyric-gen | 0372ec2e9f06783f7eca3490e4199c2fe4fc3044 | [
"MIT"
] | 1 | 2021-01-01T07:38:59.000Z | 2021-01-01T07:38:59.000Z | import argparse
import json
import datetime
import time
import re
from tqdm import tqdm
from dataset_utils import loop_and_process, name_to_file_name, read_list_from_file
from get_songs import raw_songs_dir
# parser = argparse.ArgumentParser()
# parser.add_argument("--dir_path", type=str, help="Directory will all file... | 42.034483 | 116 | 0.582445 |
7971453c7c380b8443ccbaa9ed86a090235dfa2f | 3,451 | py | Python | weather_api/project/settings.py | kucera-lukas/weather-api | 53458f403e6b1cd70f2b0e4879a4b8d0500a3709 | [
"MIT"
] | null | null | null | weather_api/project/settings.py | kucera-lukas/weather-api | 53458f403e6b1cd70f2b0e4879a4b8d0500a3709 | [
"MIT"
] | 1 | 2021-08-20T16:03:56.000Z | 2021-08-20T16:03:56.000Z | weather_api/project/settings.py | kucera-lukas/weather-api | 53458f403e6b1cd70f2b0e4879a4b8d0500a3709 | [
"MIT"
] | null | null | null | """
Django settings for weather_api project.
Generated by 'django-admin startproject' using Django 3.2.4.
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 o... | 25.562963 | 91 | 0.717473 |
797145787a12000db5a662d04c0528458431f3b8 | 4,998 | py | Python | lib/lv_utils.py | cuteribs2/lv_binding_micropython | 9d50d2c1e74c245cf8ad47f74e78ddca83d5276a | [
"MIT"
] | null | null | null | lib/lv_utils.py | cuteribs2/lv_binding_micropython | 9d50d2c1e74c245cf8ad47f74e78ddca83d5276a | [
"MIT"
] | null | null | null | lib/lv_utils.py | cuteribs2/lv_binding_micropython | 9d50d2c1e74c245cf8ad47f74e78ddca83d5276a | [
"MIT"
] | null | null | null | ##############################################################################
# Event Loop module: advancing tick count and scheduling lvgl task handler.
# Import after lvgl module.
# This should be imported and used by display driver.
# Display driver should first check if an event loop is already running.
#
# Usage ... | 31.043478 | 134 | 0.601641 |
7971460678456627351c1b5f54d61f68780f05ac | 886 | py | Python | tests/integration/dashboard/nav_tests.py | DrOctogon/unwash_ecom | f78fc87f5dbca86a483ca9cfa7fb6f302d15b741 | [
"BSD-3-Clause"
] | 2 | 2015-12-11T00:19:15.000Z | 2021-11-14T19:44:42.000Z | tests/integration/dashboard/nav_tests.py | DrOctogon/unwash_ecom | f78fc87f5dbca86a483ca9cfa7fb6f302d15b741 | [
"BSD-3-Clause"
] | 1 | 2021-12-13T20:48:46.000Z | 2021-12-13T20:48:46.000Z | tests/integration/dashboard/nav_tests.py | DrOctogon/unwash_ecom | f78fc87f5dbca86a483ca9cfa7fb6f302d15b741 | [
"BSD-3-Clause"
] | 2 | 2018-12-27T09:42:38.000Z | 2018-12-27T10:21:07.000Z | from django.test import TestCase
from oscar.apps.dashboard.menu import get_nodes
from oscar.core.compat import get_user_model
User = get_user_model()
class TestCategory(TestCase):
def setUp(self):
self.staff_user = User.objects.create_user('staff', 'staff@example.com',
... | 28.580645 | 80 | 0.569977 |
79714648fe909d1ef23cf1429aeb6aaa8d22155b | 2,938 | py | Python | home/forms.py | kana-shimmichi/Weeet | 4e332107748cbf63b6c109d3e5ce968a42ed10c3 | [
"BSD-3-Clause"
] | null | null | null | home/forms.py | kana-shimmichi/Weeet | 4e332107748cbf63b6c109d3e5ce968a42ed10c3 | [
"BSD-3-Clause"
] | 9 | 2021-03-19T00:17:56.000Z | 2022-03-12T00:17:14.000Z | home/forms.py | kana-shimmichi/Weeet | 4e332107748cbf63b6c109d3e5ce968a42ed10c3 | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from .models import MakerProfile,BuyerProfile,MstLang,MstSkill,Contact,Order,OrderMessage
from register.models import User
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = ('last_name', 'first_name')
class MakerProfileForm(forms.ModelForm):
clas... | 29.676768 | 97 | 0.573179 |
7971466e84c6522c2fefcfdb1d6c2016fccd8568 | 1,924 | py | Python | scripts/Old/8mer.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 2 | 2021-08-22T14:40:18.000Z | 2021-12-07T02:46:00.000Z | scripts/Old/8mer.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 9 | 2021-03-31T20:18:21.000Z | 2022-03-12T00:52:47.000Z | scripts/Old/8mer.py | always-newbie161/pyprobml | eb70c84f9618d68235ef9ba7da147c009b2e4a80 | [
"MIT"
] | 1 | 2021-06-21T01:18:07.000Z | 2021-06-21T01:18:07.000Z | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
DEFAULT_SITES = ['HOXC4_REF_R2', 'CRX_REF_R1']
def load_data(file_name, normalize=False):
#Function to load the data source file
data = pd.read_csv(file_name, sep=',')
data = data.iloc[:, 1:] # Remove index column
assert data['seq'].nuni... | 24.05 | 74 | 0.653846 |
79714a6e453fe93a4c0853645c600cd9c331e2bc | 6,102 | py | Python | sdk/python/pulumi_azure_nextgen/costmanagement/v20191101/get_export.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_nextgen/costmanagement/v20191101/get_export.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_nextgen/costmanagement/v20191101/get_export.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # 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
from... | 38.620253 | 1,093 | 0.662242 |
79714b517c29e4b95db9df9773d051ea87357022 | 5,746 | py | Python | adbc/config.py | aleontiev/apg | c6a10a9b0a576913c63ed4f093e2a0fa7469af87 | [
"MIT"
] | 2 | 2020-07-17T16:33:42.000Z | 2020-07-21T04:48:38.000Z | adbc/config.py | aleontiev/apg | c6a10a9b0a576913c63ed4f093e2a0fa7469af87 | [
"MIT"
] | null | null | null | adbc/config.py | aleontiev/apg | c6a10a9b0a576913c63ed4f093e2a0fa7469af87 | [
"MIT"
] | null | null | null | from adbc.template import resolve_template
from yaml import safe_load as load
from adbc.vault import vault
import copy
import os
def get_initial_context(vault=True, env=True, context=None):
"""Return context of available services, such as Vault"""
initial = {}
if vault:
# vault should receive the ... | 28.166667 | 86 | 0.568743 |
79714c9d82c48bacce62788d60c2bbe19a0ad35d | 6,985 | py | Python | Script/Scene_Script.py | sagarchotalia/Pick-and-Place-Robot-Eklavya | 79005767e457018a2cbf397b7bd4887c009fb6c9 | [
"Unlicense",
"MIT"
] | 10 | 2021-10-31T16:18:52.000Z | 2022-03-24T01:48:00.000Z | Script/Scene_Script.py | sagarchotalia/Pick-and-Place-Robot-Eklavya | 79005767e457018a2cbf397b7bd4887c009fb6c9 | [
"Unlicense",
"MIT"
] | null | null | null | Script/Scene_Script.py | sagarchotalia/Pick-and-Place-Robot-Eklavya | 79005767e457018a2cbf397b7bd4887c009fb6c9 | [
"Unlicense",
"MIT"
] | 2 | 2021-12-08T13:58:47.000Z | 2022-01-04T08:22:36.000Z | # -*- coding: utf-8 -*-
# importing modules
import time
import numpy as np
import cv2
from zmqRemoteApi import RemoteAPIClient
from bp3d import Bin, Item, bp3D
# connecting via ZMQ Api at port 23000
client = RemoteAPIClient('localhost',23000)
# getting simulation handles
sim = client.getObject('sim')
simIK = client.ge... | 42.333333 | 130 | 0.768218 |
79714d58c2d29ef94bb70b241575f1b57495a306 | 2,227 | py | Python | aeropy/filehandling/paraview.py | SchetininVitaliy/AeroPy | 65a4c68fafcbd0bd04ee70ffa9d4a98302a45c6b | [
"MIT"
] | null | null | null | aeropy/filehandling/paraview.py | SchetininVitaliy/AeroPy | 65a4c68fafcbd0bd04ee70ffa9d4a98302a45c6b | [
"MIT"
] | null | null | null | aeropy/filehandling/paraview.py | SchetininVitaliy/AeroPy | 65a4c68fafcbd0bd04ee70ffa9d4a98302a45c6b | [
"MIT"
] | null | null | null | #### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
network_number = 2
filename = 'test_network'
directory = 'C:\\Users\\leal26\\Documents\\GitHub\\AeroPy\\aeropy\\CST\\'
# get active view
renderVi... | 42.826923 | 126 | 0.780871 |
79714d657f71fe8aa8e844d2348959a0b0565439 | 670 | py | Python | sympy/physics/quantum/tests/test_shor.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/physics/quantum/tests/test_shor.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/physics/quantum/tests/test_shor.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | from sympy.testing.pytest import XFAIL
from sympy.physics.quantum.qapply import qapply
from sympy.physics.quantum.qubit import Qubit
from sympy.physics.quantum.shor import CMod, getr
@XFAIL
def test_CMod():
assert qapply(CMod(4, 2, 2) * Qubit(0, 0, 1, 0, 0, 0, 0, 0)) == Qubit(
0, 0, 1, 0, 0, 0, 0, 0
... | 29.130435 | 85 | 0.580597 |
79714f2b77f32d347c0dfd87687c233212d78808 | 3,712 | py | Python | tests/build/scipy/scipy/interpolate/tests/test_ndgriddata.py | crougeux/-a-i_v1.6.3_modif | b499a812e79f335d082d3f9b1070e0465ad67bab | [
"BSD-3-Clause"
] | 26 | 2018-02-14T23:52:58.000Z | 2021-08-16T13:50:03.000Z | tests/build/scipy/scipy/interpolate/tests/test_ndgriddata.py | crougeux/-a-i_v1.6.3_modif | b499a812e79f335d082d3f9b1070e0465ad67bab | [
"BSD-3-Clause"
] | null | null | null | tests/build/scipy/scipy/interpolate/tests/test_ndgriddata.py | crougeux/-a-i_v1.6.3_modif | b499a812e79f335d082d3f9b1070e0465ad67bab | [
"BSD-3-Clause"
] | 10 | 2018-08-13T19:38:39.000Z | 2020-04-19T03:02:00.000Z | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import assert_equal, assert_array_equal, assert_allclose, \
run_module_suite
from scipy.interpolate import griddata
class TestGriddata(object):
def test_fill_value(self):
x = [(0,0), (0,1), (1,... | 38.268041 | 79 | 0.499192 |
7971506444cd67a90c7b1aeceb3c1adb24f0ee84 | 14,377 | py | Python | pypact/input/inputdata.py | dvp2015/pypact | a4f7835a017a2be46be529a5e43f883a52cb27bc | [
"Apache-2.0"
] | 18 | 2018-01-22T14:00:18.000Z | 2022-03-08T06:29:22.000Z | pypact/input/inputdata.py | fispact/pypact | b0bcd7dd74dcd408e7fee545372c082b55d244c3 | [
"Apache-2.0"
] | 28 | 2018-12-07T14:30:46.000Z | 2022-02-27T20:33:06.000Z | pypact/input/inputdata.py | dvp2015/pypact | a4f7835a017a2be46be529a5e43f883a52cb27bc | [
"Apache-2.0"
] | 8 | 2018-05-29T13:41:59.000Z | 2021-01-21T01:33:41.000Z | import os
from pypact.util.decorators import freeze_it
from pypact.util.exceptions import PypactOutOfRangeException
from pypact.util.exceptions import PypactInvalidOptionException
from pypact.util.exceptions import PypactIncompatibleOptionException
from pypact.util.jsonserializable import JSONSerializable
from pypact.... | 33.357309 | 107 | 0.584753 |
7971515457fcce8a7bfd2421d2c2c0e54297a859 | 470 | py | Python | samantha/modules/pmpermit.py | TG-Bot-Devs/samanthaXcalls | e636efbba512fabc61e8dab3a1cc0d73583d5fe9 | [
"MIT"
] | 2 | 2021-07-21T07:38:49.000Z | 2021-07-29T13:28:20.000Z | samantha/modules/pmpermit.py | Sayandhridolickid/samanthaXcalls | 85f79fbb39efb2b26c88247918bde1f08243f326 | [
"MIT"
] | null | null | null | samantha/modules/pmpermit.py | Sayandhridolickid/samanthaXcalls | 85f79fbb39efb2b26c88247918bde1f08243f326 | [
"MIT"
] | 1 | 2021-07-24T05:13:12.000Z | 2021-07-24T05:13:12.000Z | from pyrogram import filters
from pyrogram.types import Message
from samantha.services.callsmusic.callsmusic import client as USER
@USER.on_message(filters.text & filters.private & ~filters.me & ~filters.bot)
async def pmPermit(client: USER, message: Message):
await USER.send_message(
message.chat.id,
... | 33.571429 | 134 | 0.714894 |
797151862229d8b831ca743a8f113910ced04041 | 449 | py | Python | env/Lib/site-packages/plotly/validators/mesh3d/_cauto.py | andresgreen-byte/Laboratorio-1--Inversion-de-Capital | 8a4707301d19c3826c31026c4077930bcd6a8182 | [
"MIT"
] | 11,750 | 2015-10-12T07:03:39.000Z | 2022-03-31T20:43:15.000Z | venv/Lib/site-packages/plotly/validators/mesh3d/_cauto.py | wakisalvador/constructed-misdirection | 74779e9ec640a11bc08d5d1967c85ac4fa44ea5e | [
"Unlicense"
] | 2,951 | 2015-10-12T00:41:25.000Z | 2022-03-31T22:19:26.000Z | venv/Lib/site-packages/plotly/validators/mesh3d/_cauto.py | wakisalvador/constructed-misdirection | 74779e9ec640a11bc08d5d1967c85ac4fa44ea5e | [
"Unlicense"
] | 2,623 | 2015-10-15T14:40:27.000Z | 2022-03-28T16:05:50.000Z | import _plotly_utils.basevalidators
class CautoValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="cauto", parent_name="mesh3d", **kwargs):
super(CautoValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit... | 34.538462 | 76 | 0.659243 |
79715275f178b1cfeb9d749795158797ce6461fe | 837 | py | Python | CH_12_performance/T_05_profiler_large_bias.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_12_performance/T_05_profiler_large_bias.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | CH_12_performance/T_05_profiler_large_bias.py | mastering-python/code_2 | 441af8b67402c8216c482cca7c002e1d7f0f1baa | [
"MIT"
] | null | null | null | import sys
import pstats
import profile
import functools
@functools.lru_cache()
def fibonacci_cached(n):
if n < 2:
return n
else:
return fibonacci_cached(n - 1) + fibonacci_cached(n - 2)
def fibonacci(n):
if n < 2:
return n
else:
return fibonacci(n - 1) + fibonacci(n ... | 19.928571 | 78 | 0.57945 |
7971546144b6995c19f311e555a4ddc213897c77 | 135 | py | Python | src/types/config.py | TeamBlackCrystal/akari | c998bec01f5c86c05deee153bec550218083208c | [
"MIT"
] | null | null | null | src/types/config.py | TeamBlackCrystal/akari | c998bec01f5c86c05deee153bec550218083208c | [
"MIT"
] | null | null | null | src/types/config.py | TeamBlackCrystal/akari | c998bec01f5c86c05deee153bec550218083208c | [
"MIT"
] | null | null | null | from typing import TypedDict
class BotSection(TypedDict):
token: str
url: str
class Config(TypedDict):
BOT: BotSection
| 12.272727 | 28 | 0.711111 |
79715478fef044686fbe863c4278f48b4f73f268 | 32,501 | py | Python | Others/views.py | EloiseYAo/SmartCityCloud | 33864d5e1deb87956f8ffb283c13208219c384cf | [
"Apache-2.0"
] | 3 | 2019-01-11T11:12:39.000Z | 2019-01-11T12:46:21.000Z | Others/views.py | EloiseYAo/SmartCityCloud | 33864d5e1deb87956f8ffb283c13208219c384cf | [
"Apache-2.0"
] | null | null | null | Others/views.py | EloiseYAo/SmartCityCloud | 33864d5e1deb87956f8ffb283c13208219c384cf | [
"Apache-2.0"
] | 2 | 2019-01-11T12:14:36.000Z | 2019-02-26T05:13:40.000Z | from django.shortcuts import render, HttpResponse, redirect
from SqlMaster.models import *
from django.db.models import F, Q
import datetime
import json
def waringDevice(user_obj):
devices = []
system = []
waring_devices = []
for system_obj in user_obj.system.all():
for device_obj in system_ob... | 38.923353 | 125 | 0.4982 |
79715656a5dfdf42a2030758aa2290519456d965 | 399 | py | Python | codedTriangle.py | telboon/Project-Euler | dfd3a864292be5adcbfa7c2a67061e91c8f9e28c | [
"MIT"
] | null | null | null | codedTriangle.py | telboon/Project-Euler | dfd3a864292be5adcbfa7c2a67061e91c8f9e28c | [
"MIT"
] | null | null | null | codedTriangle.py | telboon/Project-Euler | dfd3a864292be5adcbfa7c2a67061e91c8f9e28c | [
"MIT"
] | null | null | null | triSet=set()
for i in range(1,601):
triSet.add(i*(i+1)*0.5)
fobj=open("p042_words.txt")
for line in fobj:
names=line
fobj.close()
print(names)
answer=0
workingcount=0
for i in range(0,len(names)):
if names[i]=="\"" or names[i]==",":
if workingcount!=0:
if workingcount in triSet:
answer=answer+1
wor... | 14.25 | 44 | 0.674185 |
797157a5b7d2b88b4dd86e716fec98f679495f99 | 1,434 | py | Python | setup.py | ktroutman/tweego | 05d7aa7340c59ae9287b9375dec5607c553508df | [
"MIT"
] | 5 | 2018-10-22T08:22:09.000Z | 2021-01-11T14:39:25.000Z | setup.py | ktroutman/Twitter_Mongo_Proj | 05d7aa7340c59ae9287b9375dec5607c553508df | [
"MIT"
] | 20 | 2018-09-17T12:49:01.000Z | 2018-09-21T08:19:27.000Z | setup.py | ktroutman/tweego | 05d7aa7340c59ae9287b9375dec5607c553508df | [
"MIT"
] | 5 | 2018-09-23T15:32:13.000Z | 2020-06-02T13:29:02.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import configsetup
from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
with open('docs/history.rst') as history_file:
history = history_file.read()
requirements = [ ]
setup_req... | 28.117647 | 93 | 0.656206 |
7971589440b4b5009ec5aaaff318d8b09e6c729d | 6,284 | py | Python | tests/conftest.py | chaostoolkit/chaosplatform-account | 63211e5f9c1d19d64eead6d9b7f8b2ddb8cddfa0 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | chaostoolkit/chaosplatform-account | 63211e5f9c1d19d64eead6d9b7f8b2ddb8cddfa0 | [
"Apache-2.0"
] | 3 | 2019-03-22T12:48:36.000Z | 2020-06-22T09:31:38.000Z | tests/conftest.py | chaostoolkit/chaosplatform-account | 63211e5f9c1d19d64eead6d9b7f8b2ddb8cddfa0 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from logging import StreamHandler
import os
from typing import Any, Dict, List
import uuid
from uuid import UUID
import cherrypy
from flask import Flask
from flask_caching import Cache
import pytest
from chaosplt_account.cache import setup_cache
from chaosplt_account.log import http_requ... | 26.403361 | 77 | 0.701464 |
797159347b967fda2e4c810ee3958ff2c37bf256 | 4,145 | py | Python | azure-devops/azext_devops/devops_sdk/v5_1/operations/models.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 1 | 2019-09-08T11:15:03.000Z | 2019-09-08T11:15:03.000Z | azure-devops/azext_devops/devops_sdk/v5_1/operations/models.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | null | null | null | azure-devops/azext_devops/devops_sdk/v5_1/operations/models.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | 35.127119 | 145 | 0.606514 |
79715a1439f9137b7dfbd722420e249be16e1909 | 229 | py | Python | corte1/map-reduce/code/test/mapper.py | SebastianSierrajc/BigData | 3c1be19930a02859b0c985db023e04ce15ee728d | [
"MIT"
] | null | null | null | corte1/map-reduce/code/test/mapper.py | SebastianSierrajc/BigData | 3c1be19930a02859b0c985db023e04ce15ee728d | [
"MIT"
] | null | null | null | corte1/map-reduce/code/test/mapper.py | SebastianSierrajc/BigData | 3c1be19930a02859b0c985db023e04ce15ee728d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""mapper.py"""
import sys
# input comes from STDIN (standard input)
for line in sys.stdin:
line = line.strip()
words = line.split()
for word in words:
print('{}\t{}'.format(word, 1))
| 19.083333 | 41 | 0.611354 |
79715a25c546a4f41481f770202b99e83b6f25bf | 13,736 | py | Python | opendr/helpers.py | vladsterz/GraphCMR | 710527332583e81926e677dd596e4a3a5f2a9811 | [
"BSD-3-Clause"
] | 1 | 2019-05-09T07:36:04.000Z | 2019-05-09T07:36:04.000Z | opendr/helpers.py | vladsterz/GraphCMR | 710527332583e81926e677dd596e4a3a5f2a9811 | [
"BSD-3-Clause"
] | null | null | null | opendr/helpers.py | vladsterz/GraphCMR | 710527332583e81926e677dd596e4a3a5f2a9811 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'pol'
from utils import *
import opendr
import geometry
import numpy as np
from math import radians
from opendr.camera import ProjectPoints
from opendr.renderer import TexturedRenderer
from opendr.lighting import SphericalHarmonics
from opendr.lighting import LambertianPointLight
import chumpy as ch
def... | 33.339806 | 301 | 0.595952 |
79715b03ee7035fdb85f86547ce7c29d8d5a9661 | 290 | py | Python | aula_8/ex18.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | aula_8/ex18.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | aula_8/ex18.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | # Calculando seno, cosseno e tangente
import math
angulo = int(input("Valor de um angulo: "))
seno = math.sin(math.radians(angulo))
cos = math.cos(math.radians(angulo))
tan = math.tan(math.radians(angulo))
print("Valores\nseno: {} \ncosseno: {} \ntangente: {}".format(seno, cos, tan))
| 26.363636 | 78 | 0.693103 |
79715b08dabb54f7d9ce7ea69bec322c3ec7d38f | 250 | py | Python | ExerciciosPython/Procurador de String.py | NathanSoares25/ExerciciosPython | 718a47ad26690355807b4ec1412e386b02acd098 | [
"MIT"
] | 2 | 2021-03-19T00:27:55.000Z | 2021-03-24T01:24:08.000Z | ExerciciosPython/Procurador de String.py | NathanSoares25/ExerciciosPython | 718a47ad26690355807b4ec1412e386b02acd098 | [
"MIT"
] | null | null | null | ExerciciosPython/Procurador de String.py | NathanSoares25/ExerciciosPython | 718a47ad26690355807b4ec1412e386b02acd098 | [
"MIT"
] | null | null | null | # Crie um programa que leia o nome de uma pessoa e diga se ela tem “SILVA” no nome.
print('Agora vamos verificar se seu nome tem Silva... Caso tenha (True), caso não (False)')
nome = input('Digite seu nome completo: ')
print('SILVA' in nome.upper())
| 50 | 91 | 0.712 |
79715b0e32b8c279dbdb8689c2d4babaebb9ccaa | 419 | py | Python | samples/get_alert_suppression_state.py | john-westcott-iv/orionsdk-python | 5aad8a2a7997ef06d65cbcfdb0b221ed4459ff05 | [
"Apache-2.0"
] | 177 | 2016-04-05T17:29:46.000Z | 2022-03-29T20:25:33.000Z | samples/get_alert_suppression_state.py | superadm1n/orionsdk-python | 6f341d4e84d1a1275f904105d6e04c6e89678475 | [
"Apache-2.0"
] | 51 | 2016-05-31T17:28:06.000Z | 2022-03-31T17:13:07.000Z | samples/get_alert_suppression_state.py | superadm1n/orionsdk-python | 6f341d4e84d1a1275f904105d6e04c6e89678475 | [
"Apache-2.0"
] | 79 | 2016-02-18T00:31:37.000Z | 2022-03-11T21:07:25.000Z | import orionsdk
server = 'orion_server'
username = 'username'
password = 'password'
ip_address = '192.168.1.1' # change this to the node you want to check
sw = orionsdk.SwisClient(server, username, password)
uri = sw.query("SELECT Uri FROM Orion.Nodes WHERE IPAddress=@IPAddress", IPAddress=ip_address)['results'][0]... | 29.928571 | 115 | 0.74463 |
79715b4d25ef597efd33dd8c347f44a6462c424e | 9,050 | py | Python | utils.py | holyseven/WassersteinGAN.tensorflow | 29b51b5aefc97537eb148d4ea353ca12d268c166 | [
"MIT"
] | null | null | null | utils.py | holyseven/WassersteinGAN.tensorflow | 29b51b5aefc97537eb148d4ea353ca12d268c166 | [
"MIT"
] | null | null | null | utils.py | holyseven/WassersteinGAN.tensorflow | 29b51b5aefc97537eb148d4ea353ca12d268c166 | [
"MIT"
] | null | null | null | __author__ = 'shekkizh'
# Utils used with tensorflow implemetation
import tensorflow as tf
import numpy as np
import scipy.misc as misc
import os, sys
from six.moves import urllib
import tarfile
import zipfile
from tqdm import trange
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import ImageGrid
def may... | 37.090164 | 116 | 0.637017 |
79715bdb233fd7e767a993342c8dfcede3f4f835 | 418 | py | Python | Ago-Dic-2021/suarez-villanueva-sergio-armando/Parcial1/Practica2/9_1.py | checodroid/DAS_Sistemas | c98be49a472fe2a8b0edf8af4457531e417143bd | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2021/suarez-villanueva-sergio-armando/Parcial1/Practica2/9_1.py | checodroid/DAS_Sistemas | c98be49a472fe2a8b0edf8af4457531e417143bd | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2021/suarez-villanueva-sergio-armando/Parcial1/Practica2/9_1.py | checodroid/DAS_Sistemas | c98be49a472fe2a8b0edf8af4457531e417143bd | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | class Restaurant():
def __init__(self, name, c_type):
self.name = name
self.c_type = c_type
def describe_R(self):
print("Name: " + self.name+"\nCuisine type: " + self.c_type)
def open_R(self):
print(self.name + " Open.")
My_R = Restaurant("Las Cos... | 23.222222 | 68 | 0.578947 |
79715c9742c401361f3494737af2730119733947 | 6,198 | py | Python | XP_LRVGA_LinearRegression.py | marc-h-lambert/L-RVGA | e7cd0c9745c87fb68828f28b1856a9616da933b1 | [
"CC0-1.0"
] | null | null | null | XP_LRVGA_LinearRegression.py | marc-h-lambert/L-RVGA | e7cd0c9745c87fb68828f28b1856a9616da933b1 | [
"CC0-1.0"
] | null | null | null | XP_LRVGA_LinearRegression.py | marc-h-lambert/L-RVGA | e7cd0c9745c87fb68828f28b1856a9616da933b1 | [
"CC0-1.0"
] | null | null | null | ###################################################################################
# THE KALMAN MACHINE LIBRARY #
# Code supported by Marc Lambert #
####################################################################... | 43.647887 | 159 | 0.577928 |
79715c9d3afc3e9ca43422f143f6364de2a9742b | 69,856 | py | Python | salt/client/__init__.py | cbosdo/salt-1 | 9084d662781f9c0944804ba087e652c2ddb730bf | [
"Apache-2.0"
] | null | null | null | salt/client/__init__.py | cbosdo/salt-1 | 9084d662781f9c0944804ba087e652c2ddb730bf | [
"Apache-2.0"
] | null | null | null | salt/client/__init__.py | cbosdo/salt-1 | 9084d662781f9c0944804ba087e652c2ddb730bf | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
The client module is used to create a client connection to the publisher
The data structure needs to be:
{'enc': 'clear',
'load': {'fun': '<mod.callable>',
'arg':, ('arg1', 'arg2', ...),
'tgt': '<glob or id>',
'key': '<read in the key file>'... | 36.727655 | 120 | 0.504309 |
79715dad4e827c12cb33bcd43c1287c228919f7b | 6,326 | py | Python | forecast-catalog/Vocab/Metadata.py | SCECcode/scec-forecast-data | 7118e9bb728681ac7e1110d679bfd2d8359a9cfc | [
"BSD-3-Clause"
] | null | null | null | forecast-catalog/Vocab/Metadata.py | SCECcode/scec-forecast-data | 7118e9bb728681ac7e1110d679bfd2d8359a9cfc | [
"BSD-3-Clause"
] | null | null | null | forecast-catalog/Vocab/Metadata.py | SCECcode/scec-forecast-data | 7118e9bb728681ac7e1110d679bfd2d8359a9cfc | [
"BSD-3-Clause"
] | 1 | 2021-01-25T20:27:01.000Z | 2021-01-25T20:27:01.000Z | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential
import deriva.core.ermrest_model as em
from deriva.core import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args
groups = {
'SCEC Forecast Admin': 'https://auth.globus.org/50b309c9-42... | 27.504348 | 100 | 0.572558 |
79715e9fb3380eeb854580727b225d06a24b3c69 | 1,512 | py | Python | test/Contact/test_add_contact.py | natRym/rymarava_b30_python | 923e5d4bdf4ba6029c3a2eb6f241c0819e8cb02a | [
"Apache-2.0"
] | null | null | null | test/Contact/test_add_contact.py | natRym/rymarava_b30_python | 923e5d4bdf4ba6029c3a2eb6f241c0819e8cb02a | [
"Apache-2.0"
] | null | null | null | test/Contact/test_add_contact.py | natRym/rymarava_b30_python | 923e5d4bdf4ba6029c3a2eb6f241c0819e8cb02a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import random
from model.contact import Contact
from model.group import Group
def test_add_contact(app, db, json_contacts):
contact = json_contacts
old_contacts = db.get_contact_list()
app.contact.create(contact)
new_contacts = db.get_contact_list()
old_contacts.append(con... | 45.818182 | 124 | 0.766534 |
79715eb88cafa3f49a6ae63acb990dcb73a1c64d | 1,963 | py | Python | tests/utils.py | JaimeVHArm/lisa | e5dcb7d54f73d57d4071da87c7c8095ba351a899 | [
"Apache-2.0"
] | 1 | 2020-11-30T16:14:02.000Z | 2020-11-30T16:14:02.000Z | tests/utils.py | JaimeVHArm/lisa | e5dcb7d54f73d57d4071da87c7c8095ba351a899 | [
"Apache-2.0"
] | null | null | null | tests/utils.py | JaimeVHArm/lisa | e5dcb7d54f73d57d4071da87c7c8095ba351a899 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2018, Arm Limited and contributors.
#
# 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
#
# ... | 26.527027 | 76 | 0.691798 |
79715f01a43088f2b756ee5e2b17ccfeb5d8c72d | 3,842 | py | Python | tools/metrics/structured/validate_format.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/metrics/structured/validate_format.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/metrics/structured/validate_format.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | #!/usr/bin/env python
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Verifies that the structured.xml file is well-formatted."""
import os
import re
import sys
from xml.dom import minidom
sys.path.app... | 32.559322 | 78 | 0.679594 |
79715f5998b145f6e10e2255b387f8959d0ad610 | 191 | py | Python | FrcScoutingWebsite/Forms/__init__.py | Fightfx1/Frc-5951-Makers-Assemble-scouting-website | d90eeee64f440b0d2f2ff0c7d92cfb435c6dd6aa | [
"MIT"
] | 1 | 2020-03-16T22:23:30.000Z | 2020-03-16T22:23:30.000Z | FrcScoutingWebsite/Forms/__init__.py | Fightfx1/Frc-5951-Makers-Assemble-scouting-website | d90eeee64f440b0d2f2ff0c7d92cfb435c6dd6aa | [
"MIT"
] | null | null | null | FrcScoutingWebsite/Forms/__init__.py | Fightfx1/Frc-5951-Makers-Assemble-scouting-website | d90eeee64f440b0d2f2ff0c7d92cfb435c6dd6aa | [
"MIT"
] | null | null | null | from FrcScoutingWebsite.Forms.LoginForm import LoginForm
from FrcScoutingWebsite.Forms.SettingForm import SettingsForm
from FrcScoutingWebsite.Forms.AddScouterForm import AddMemberToTeam_Form | 63.666667 | 72 | 0.910995 |
79715fc491314e78c057a790ded43a7ef13b1044 | 1,833 | py | Python | ibis/tests/test_api.py | GrapeBaBa/ibis | 507bb14efdcfd719a0487ee23fe1c85c177517f6 | [
"Apache-2.0"
] | null | null | null | ibis/tests/test_api.py | GrapeBaBa/ibis | 507bb14efdcfd719a0487ee23fe1c85c177517f6 | [
"Apache-2.0"
] | null | null | null | ibis/tests/test_api.py | GrapeBaBa/ibis | 507bb14efdcfd719a0487ee23fe1c85c177517f6 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import sys
from typing import NamedTuple
import pytest
import ibis
from ibis.backends.base import BaseBackend
try:
import importlib.metadata as importlib_metadata
except ImportError:
import importlib_metadata
EntryPoint = importlib_metadata.EntryPoint
def test_backends_... | 24.77027 | 67 | 0.639935 |
79716048ad7ffdb52db706aeadad9a7198cb131b | 6,789 | py | Python | FindAllRNA/Archieved/models.py | Koushul/FindAllRNA | a2c41831f67be2cd52629ebc2ef24cfca3e172f5 | [
"MIT"
] | null | null | null | FindAllRNA/Archieved/models.py | Koushul/FindAllRNA | a2c41831f67be2cd52629ebc2ef24cfca3e172f5 | [
"MIT"
] | null | null | null | FindAllRNA/Archieved/models.py | Koushul/FindAllRNA | a2c41831f67be2cd52629ebc2ef24cfca3e172f5 | [
"MIT"
] | null | null | null | import os
import warnings
from encoders import AbstractSequenceEncoder
warnings.simplefilter(action='ignore', category=FutureWarning)
import tensorflow as tf
from tensorflow import keras
import numpy as np
# from tensorflow.python.keras.backend import GraphExecutionFunction
from tensorflow.keras.layers import Leaky... | 34.637755 | 121 | 0.671675 |
79716124f7a666b2bf59b34d40b49f9f7ad71c3b | 178 | py | Python | py_set_symmetric_difference.py | hetdev/hackerrank-solutions | e7a1159d65ebd121d5767fa4dfe1c126c099f0cd | [
"MIT"
] | null | null | null | py_set_symmetric_difference.py | hetdev/hackerrank-solutions | e7a1159d65ebd121d5767fa4dfe1c126c099f0cd | [
"MIT"
] | null | null | null | py_set_symmetric_difference.py | hetdev/hackerrank-solutions | e7a1159d65ebd121d5767fa4dfe1c126c099f0cd | [
"MIT"
] | null | null | null | n_1, students_list_1 = input(), set(input().split(" "))
n_2, students_list_2 = input(), set(input().split(" "))
print(len(students_list_1.symmetric_difference(students_list_2)))
| 44.5 | 65 | 0.730337 |
7971621cbafb1e95eb3dda6d9852d650a97d9579 | 1,156 | py | Python | core/models/surrender.py | johnpooch/diplomacy | 567db5c5cfefa99f176bacbfe469977474aa8a86 | [
"MIT"
] | 1 | 2020-07-21T18:10:29.000Z | 2020-07-21T18:10:29.000Z | core/models/surrender.py | johnpooch/diplomacy | 567db5c5cfefa99f176bacbfe469977474aa8a86 | [
"MIT"
] | 142 | 2020-04-07T17:36:34.000Z | 2021-06-07T00:20:47.000Z | core/models/surrender.py | johnpooch/diplomacy | 567db5c5cfefa99f176bacbfe469977474aa8a86 | [
"MIT"
] | 3 | 2018-08-30T08:58:27.000Z | 2021-02-28T03:34:26.000Z | from django.contrib.auth.models import User
from django.db import models
from core.models.base import SurrenderStatus
class Surrender(models.Model):
"""
Represent a game participant's decision to surrender from the game. After
the participant has decided to surrender, they have until the end of the
t... | 27.52381 | 77 | 0.6609 |
7971623ce7e8918f6cd6fedcfeb4997141b9bdf3 | 15,125 | py | Python | geoportal/tests/functional/test_dynamicview.py | vvmruder/c2cgeoportal | 2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | geoportal/tests/functional/test_dynamicview.py | vvmruder/c2cgeoportal | 2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | geoportal/tests/functional/test_dynamicview.py | vvmruder/c2cgeoportal | 2aa1cfbfa3872fb745db6dae1e0c4ae9a0692542 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2019, Camptocamp SA
# 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 notice, this
#... | 37.253695 | 106 | 0.565421 |
797162651b80f311244fe360bd7713a95546fd38 | 1,204 | py | Python | apps/configs/db_config_sample.py | zhangning123798/osroom | 21859b77b8980ccb8a5392f02c76bd552b2bf653 | [
"BSD-2-Clause"
] | 1 | 2019-05-04T03:17:14.000Z | 2019-05-04T03:17:14.000Z | apps/configs/db_config_sample.py | Albertts/osroom | 71ba05cb633f52bf026507161ab2a459eeec669e | [
"BSD-2-Clause"
] | null | null | null | apps/configs/db_config_sample.py | Albertts/osroom | 71ba05cb633f52bf026507161ab2a459eeec669e | [
"BSD-2-Clause"
] | null | null | null | # -*-coding:utf-8-*-
__author__ = "Allen Woo"
DB_CONFIG = {
"mongodb": {
"mongo_web": {
"username": "root",
"config": {
"fsync": False,
"replica_set": None
},
"dbname": "osr_web",
"host": [
"127.0.0.1... | 23.153846 | 41 | 0.32309 |
797162befde17e305507eb14c3935390968a9508 | 557 | py | Python | hanoi/logic.py | sirtango/LadyHanoi | 5a4ce5492aa4b5c916a42fa1fac9fa5e672256f5 | [
"0BSD"
] | null | null | null | hanoi/logic.py | sirtango/LadyHanoi | 5a4ce5492aa4b5c916a42fa1fac9fa5e672256f5 | [
"0BSD"
] | null | null | null | hanoi/logic.py | sirtango/LadyHanoi | 5a4ce5492aa4b5c916a42fa1fac9fa5e672256f5 | [
"0BSD"
] | null | null | null |
def select_tower(tower_selected, tower):
if tower_selected:
move_disk(tower_selected, tower)
return None
else:
return tower
def move_disk(from_tower, to_tower):
disk = from_tower.pop()
if not disk:
return False
if can_move(disk, to_tower):
to_tower.append(d... | 20.62963 | 43 | 0.626571 |
79716520f66548d11b16d3fc1bb70412dc271877 | 21,134 | py | Python | pandas/core/reshape/pivot.py | Unprocessable/pandas | 2c8e53efa2f5c6470a9d65da55461f3d3ea9b961 | [
"BSD-3-Clause"
] | 1 | 2019-12-27T01:54:53.000Z | 2019-12-27T01:54:53.000Z | pandas/core/reshape/pivot.py | Unprocessable/pandas | 2c8e53efa2f5c6470a9d65da55461f3d3ea9b961 | [
"BSD-3-Clause"
] | null | null | null | pandas/core/reshape/pivot.py | Unprocessable/pandas | 2c8e53efa2f5c6470a9d65da55461f3d3ea9b961 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from pandas.util._decorators import Appender, Substitution
from pandas.core.dtypes.cast import maybe_downcast_to_dtype
from pandas.core.dtypes.common import is_integer_dtype, is_list_like, is_scalar
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
import pandas.core.common as com
fro... | 31.449405 | 88 | 0.585549 |
797165e54b6577fe718e8b6e4276ef1f4e81a907 | 1,197 | py | Python | pytglib/api/types/chat_statistics_message_interaction_counters.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/chat_statistics_message_interaction_counters.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/chat_statistics_message_interaction_counters.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class ChatStatisticsMessageInteractionCounters(Object):
"""
Contains statistics about interactions with a message
Attributes:
ID (:obj:`str`): ``ChatStatisticsMessageInteractionCounters``
Args:
message_id (:obj:`int`):
Message identifier
... | 29.195122 | 94 | 0.66416 |
7971662dc16d2631e79b1ff71fbf5ae62ade324f | 13,922 | py | Python | tests/test_utils/test_assigner.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 367 | 2022-01-14T03:32:25.000Z | 2022-03-31T04:48:20.000Z | tests/test_utils/test_assigner.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 39 | 2021-08-05T07:16:46.000Z | 2022-03-14T13:23:48.000Z | tests/test_utils/test_assigner.py | evgps/mmdetection_trashcan | aaf4237c2c0d473425cdc7b741d3009177b79751 | [
"Apache-2.0"
] | 61 | 2021-07-30T07:51:41.000Z | 2022-03-30T14:40:02.000Z | """Tests the Assigner objects.
CommandLine:
pytest tests/test_utils/test_assigner.py
xdoctest tests/test_utils/test_assigner.py zero
"""
import torch
from mmdet.core.bbox.assigners import (ApproxMaxIoUAssigner,
CenterRegionAssigner, HungarianAssigner,
... | 32.757647 | 79 | 0.618517 |
79716686349b0734b03719ccee8f1a1202aa6150 | 6,986 | py | Python | log_caspase/model_775.py | LoLab-VU/Bayesian_Inference_of_Network_Dynamics | 54a5ef7e868be34289836bbbb024a2963c0c9c86 | [
"MIT"
] | null | null | null | log_caspase/model_775.py | LoLab-VU/Bayesian_Inference_of_Network_Dynamics | 54a5ef7e868be34289836bbbb024a2963c0c9c86 | [
"MIT"
] | null | null | null | log_caspase/model_775.py | LoLab-VU/Bayesian_Inference_of_Network_Dynamics | 54a5ef7e868be34289836bbbb024a2963c0c9c86 | [
"MIT"
] | null | null | null | # exported from PySB model 'model'
from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD
Model()
Monomer('C6A', ['C8pro'])
Monomer('Ligand', ['Receptor'])
Monomer('ParpU', ['C3A'])
Monomer('C3ub')
Monomer('C3A', ['Xiap', 'ParpU', 'C6pro'])
Mo... | 69.86 | 296 | 0.818065 |
7971669b4f00441816f02986e104182d965a076e | 553 | py | Python | backend/api/views.py | paulocsarlins/coleta-inteligente-seletiva | 0696197e8bfb917786a8fa010cd060cc9b16d9d4 | [
"MIT"
] | null | null | null | backend/api/views.py | paulocsarlins/coleta-inteligente-seletiva | 0696197e8bfb917786a8fa010cd060cc9b16d9d4 | [
"MIT"
] | null | null | null | backend/api/views.py | paulocsarlins/coleta-inteligente-seletiva | 0696197e8bfb917786a8fa010cd060cc9b16d9d4 | [
"MIT"
] | null | null | null | from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
@api_view(["GET"])
def welcome(request):
content = {"message": "Minha primeira view em Django!"}
re... | 29.105263 | 66 | 0.748644 |
7971676f325471e6c0d3887bb5abeff52ecb82d0 | 958 | py | Python | Collect/CHIRPS/__init__.py | ali1100/wa | 700e5014533c45f38a245c3abdeacc537cb307bc | [
"Apache-2.0"
] | 16 | 2017-04-27T21:22:37.000Z | 2020-10-21T12:57:03.000Z | Collect/CHIRPS/__init__.py | ali1100/wa | 700e5014533c45f38a245c3abdeacc537cb307bc | [
"Apache-2.0"
] | 1 | 2017-06-17T08:07:53.000Z | 2017-08-22T12:28:37.000Z | Collect/CHIRPS/__init__.py | wateraccounting/wa | 29ed8e7eac732135678a5d171cd5e53a54c95313 | [
"Apache-2.0"
] | 19 | 2016-10-24T13:24:34.000Z | 2020-02-03T17:42:22.000Z | # -*- coding: utf-8 -*-
"""
Authors: Tim Hessels and Gonzalo Espinoza
UNESCO-IHE 2016
Contact: t.hessels@unesco-ihe.org
g.espinoza@unesco-ihe.org
Repository: https://github.com/wateraccounting/wa
Module: Collect/CHIRPS
Description:
This module downloads daily and monthly CHIRPS 2.0 data from
ftp://c... | 30.903226 | 77 | 0.701461 |
797168cd71a249e29f8ba126b255b430949ec3b1 | 15,220 | py | Python | pydpm/_model/_cpgbn.py | BoChenGroup/Pydpm | 86573ed13528933bb060801c86b3a1cefb145083 | [
"Apache-2.0"
] | 112 | 2021-11-16T08:57:14.000Z | 2022-03-17T03:53:11.000Z | pydpm/_model/_cpgbn.py | chaojiewang94/Pydpm | 7498f195665f60e56700f57bc6c6c24896dc7485 | [
"Apache-2.0"
] | 1 | 2021-12-31T02:39:57.000Z | 2021-12-31T02:40:58.000Z | pydpm/_model/_cpgbn.py | chaojiewang94/Pydpm | 7498f195665f60e56700f57bc6c6c24896dc7485 | [
"Apache-2.0"
] | 20 | 2021-11-15T13:06:51.000Z | 2022-03-12T06:08:17.000Z | """
===========================================
Convolutional Poisson Gamma Belief Network
Chaojie Wang Sucheng Xiao Bo Chen and Mingyuan Zhou
Published in International Conference on Machine Learning 2019
===========================================
"""
# Author: Chaojie Wang <xd_silly@163.com>; Jiawen Wu <wjw19... | 49.096774 | 167 | 0.60979 |
797168db6d24d94b3bdb9ff761be5c5bbf582d48 | 226 | py | Python | pyDNMFk/config.py | minhducpsc/pyDNMFk | d58b89d8acf16970a640458cfceb3fdcb0bc2bb6 | [
"BSD-3-Clause"
] | 4 | 2021-04-07T05:16:03.000Z | 2022-03-29T16:52:16.000Z | pyDNMFk/config.py | rvangara/pyDNMFk | 3fbe327c32cb6fc0b81697bd5c37d50ae39d48aa | [
"BSD-3-Clause"
] | 1 | 2021-09-29T15:28:25.000Z | 2021-09-29T23:33:49.000Z | pyDNMFk/config.py | rvangara/pyDNMFk | 3fbe327c32cb6fc0b81697bd5c37d50ae39d48aa | [
"BSD-3-Clause"
] | 5 | 2021-04-07T06:10:29.000Z | 2021-08-02T21:33:13.000Z | def init(arg):
""" Global variables declaration here. The variables declared within this function in this file are shared across other files and functions during import."""
global time, flag
time = {}
flag = 0
| 37.666667 | 161 | 0.707965 |
7971696139934be9bf6b67503c2d932e705ea7db | 195 | py | Python | trello_to_gh/template.py | gordonbrander/trello_to_gh | 42d27e4ab90eaf53013b57bb462558791bc54c7e | [
"MIT"
] | null | null | null | trello_to_gh/template.py | gordonbrander/trello_to_gh | 42d27e4ab90eaf53013b57bb462558791bc54c7e | [
"MIT"
] | null | null | null | trello_to_gh/template.py | gordonbrander/trello_to_gh | 42d27e4ab90eaf53013b57bb462558791bc54c7e | [
"MIT"
] | null | null | null | # Mustache template for issue body
ISSUE_TEMPLATE = """{{desc}}
(Exported from Trello {{url}})
{{#actions}}
---
On {{date}}, @{{memberCreator.username}} wrote:
{{data.text}}
{{/actions}}
""" | 13.928571 | 47 | 0.620513 |
797169ef03e1a6f73e18cd80802cca301dc0a47c | 7,784 | py | Python | cftracker/kcf.py | ch135/pyCFTrack | 18cf5b36b9b4796b44640357f32eadca963ccc07 | [
"MIT"
] | 1 | 2020-09-16T08:27:30.000Z | 2020-09-16T08:27:30.000Z | cftracker/kcf.py | ch135/pyCFTrack | 18cf5b36b9b4796b44640357f32eadca963ccc07 | [
"MIT"
] | 4 | 2021-03-19T02:17:49.000Z | 2022-03-11T23:53:54.000Z | cftracker/kcf.py | ch135/pyCFTrack | 18cf5b36b9b4796b44640357f32eadca963ccc07 | [
"MIT"
] | 1 | 2020-01-05T03:39:38.000Z | 2020-01-05T03:39:38.000Z |
import numpy as np
import cv2
from lib.utils import cos_window,gaussian2d_rolled_labels
from lib.fft_tools import fft2,ifft2
from .base import BaseCF
from .feature import extract_hog_feature,extract_cn_feature
class KCF(BaseCF):
def __init__(self, padding=1.5, features='gray', kernel='gaussian'):
super(KC... | 43.486034 | 135 | 0.59982 |
79716b13295f3da4d174a1623b716465ef4a7fd6 | 490 | py | Python | insertionsort.py | wellingtonvitor/hacktoberfest2020 | 81ddad344245e09812ef626b2c58ce2b8fd8271a | [
"MIT"
] | null | null | null | insertionsort.py | wellingtonvitor/hacktoberfest2020 | 81ddad344245e09812ef626b2c58ce2b8fd8271a | [
"MIT"
] | null | null | null | insertionsort.py | wellingtonvitor/hacktoberfest2020 | 81ddad344245e09812ef626b2c58ce2b8fd8271a | [
"MIT"
] | null | null | null | llist=[int(x) for x in input().split()]
def insertionsort(A):#this is an expensive algorithm as it takes O(n2) time complexity
n=len(A)
for i in range(n):
hole=i
key=A[i]
while(hole>0 and A[hole-1]>key):#we are finding the position in a[0....i-1] to fit in the key value
A[hol... | 37.692308 | 107 | 0.622449 |
79716bb4ff2a95c8681cf83e542a5f590f023371 | 3,755 | py | Python | tests/acceptance/features/component/steps/context_update.py | AlvaroVega/fiware-facts | 6224dd8d87c361bde5eb87f1d9d61a386c5632a8 | [
"Apache-2.0"
] | 1 | 2017-11-28T14:52:49.000Z | 2017-11-28T14:52:49.000Z | tests/acceptance/features/component/steps/context_update.py | AlvaroVega/fiware-facts | 6224dd8d87c361bde5eb87f1d9d61a386c5632a8 | [
"Apache-2.0"
] | 70 | 2015-01-26T17:32:39.000Z | 2018-08-15T14:28:19.000Z | tests/acceptance/features/component/steps/context_update.py | AlvaroVega/fiware-facts | 6224dd8d87c361bde5eb87f1d9d61a386c5632a8 | [
"Apache-2.0"
] | 9 | 2015-01-22T09:29:19.000Z | 2020-03-05T19:27:56.000Z | # -*- coding: utf-8 -*-
#
# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U
#
# This file is part of FI-WARE project.
#
# 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:
#
# ... | 39.114583 | 119 | 0.745672 |
79716c6b5f423c1bcfb3bd79983a527306a5633a | 2,485 | py | Python | utils.py | theojl6/image-scraper | 07ff7a93925c86b753cc9aea65b59d5030ce62fb | [
"MIT"
] | null | null | null | utils.py | theojl6/image-scraper | 07ff7a93925c86b753cc9aea65b59d5030ce62fb | [
"MIT"
] | null | null | null | utils.py | theojl6/image-scraper | 07ff7a93925c86b753cc9aea65b59d5030ce62fb | [
"MIT"
] | null | null | null | import requests
import re
import json
import os
from multiprocessing import Pool, cpu_count
from functools import partial
import imghdr
from pathlib import Path
def search_images_ddg(key,max_n=200):
"""Search for 'key' with DuckDuckGo and return a unique urls of 'max_n' images
(Adopted from https://github.c... | 29.939759 | 118 | 0.614085 |
79716c6d8c099b2408054440af01f31a6d88de4a | 219 | py | Python | Python/5977.py | GeneralLi95/leetcode | f42392f2283e19ec76273d81b2912944f9039568 | [
"MIT"
] | null | null | null | Python/5977.py | GeneralLi95/leetcode | f42392f2283e19ec76273d81b2912944f9039568 | [
"MIT"
] | null | null | null | Python/5977.py | GeneralLi95/leetcode | f42392f2283e19ec76273d81b2912944f9039568 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from typing import List
class Solution:
def minSwaps(self, nums: List[int]) -> int:
result = 0
for id, x in enumerate(nums)
a = Solution()
b = [0,1,1,1,0,0,1,1,0]
Solution.minSwaps(a, b) | 18.25 | 44 | 0.652968 |
79716cf9bf3bc6d581b43dc66d45c4c01595d788 | 356 | py | Python | python-basics/primewithininterval.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | 1 | 2021-01-22T09:03:59.000Z | 2021-01-22T09:03:59.000Z | python-basics/primewithininterval.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | null | null | null | python-basics/primewithininterval.py | zshashz/py1729 | 3281ae2a20c665ebcc0d53840cc95143cbe6861b | [
"MIT"
] | 2 | 2021-05-04T11:29:38.000Z | 2021-11-03T13:09:48.000Z | lower = int(input("Enter lower bound: "))
upper = int(input("Enter upper bound: "))
print("Prime numbers between", lower, "and", upper, "are:")
for num in range(lower, upper + 1):
# all prime numbers are greater than 1
if num > 1:
for i in range(2, num):
if (num % i) == 0:
break... | 25.428571 | 59 | 0.547753 |
79716dde5a8dbcb166cb03a511ab2bbf2b70de24 | 2,086 | py | Python | data/cirq_new/cirq_program/startCirq_Class366.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | data/cirq_new/cirq_program/startCirq_Class366.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | data/cirq_new/cirq_program/startCirq_Class366.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=17
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | 30.676471 | 80 | 0.671141 |
79716e7ed437c5418ac313dbea3ed58ba4d0b710 | 528 | py | Python | odziez/clothes/migrations/0008_kindofclothe_manufacturer.py | szymanskirafal/odziez | 029d20da0474a0380e8383f9f89c1072666c5399 | [
"MIT"
] | null | null | null | odziez/clothes/migrations/0008_kindofclothe_manufacturer.py | szymanskirafal/odziez | 029d20da0474a0380e8383f9f89c1072666c5399 | [
"MIT"
] | null | null | null | odziez/clothes/migrations/0008_kindofclothe_manufacturer.py | szymanskirafal/odziez | 029d20da0474a0380e8383f9f89c1072666c5399 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.8 on 2019-07-22 16:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('clothes', '0007_manufacturer'),
]
operations = [
migrations.AddField(
model_name='kindofclothe'... | 25.142857 | 119 | 0.643939 |
79716f73f7485832a21752892dd98f9bbf2d735f | 10,957 | py | Python | src/azure-cli/azure/cli/command_modules/synapse/operations/sqlpoolblobauditingpolicy.py | major/azure-cli | 13c46f6e1d94a2eddf31539a0bbf1d5f2f28f63a | [
"MIT"
] | 2 | 2021-06-21T14:15:32.000Z | 2021-06-21T14:15:38.000Z | src/azure-cli/azure/cli/command_modules/synapse/operations/sqlpoolblobauditingpolicy.py | major/azure-cli | 13c46f6e1d94a2eddf31539a0bbf1d5f2f28f63a | [
"MIT"
] | 2 | 2020-05-04T22:45:39.000Z | 2021-12-02T22:45:10.000Z | src/azure-cli/azure/cli/command_modules/synapse/operations/sqlpoolblobauditingpolicy.py | major/azure-cli | 13c46f6e1d94a2eddf31539a0bbf1d5f2f28f63a | [
"MIT"
] | 2 | 2020-07-16T09:56:27.000Z | 2021-07-09T00:52:51.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 41.980843 | 109 | 0.706854 |
797170070ffbe08b3dafc8f69154367e7b77402c | 2,513 | py | Python | tensor2tensor/data_generators/gene_expression_test.py | webdeveloper0012/Tensor2tensor | 48bce065278eba461c8a2840e4132becbc822c7c | [
"Apache-2.0"
] | 9 | 2019-11-21T02:48:21.000Z | 2021-08-18T07:30:34.000Z | tensor2tensor/data_generators/gene_expression_test.py | webdeveloper0012/Tensor2tensor | 48bce065278eba461c8a2840e4132becbc822c7c | [
"Apache-2.0"
] | 4 | 2021-08-25T14:41:19.000Z | 2022-02-09T23:28:01.000Z | tensor2tensor/data_generators/gene_expression_test.py | webdeveloper0012/Tensor2tensor | 48bce065278eba461c8a2840e4132becbc822c7c | [
"Apache-2.0"
] | 3 | 2021-04-27T08:01:32.000Z | 2021-04-27T17:55:48.000Z | # coding=utf-8
# Copyright 2017 The Tensor2Tensor 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... | 33.506667 | 77 | 0.690808 |
7971708cb2c682a04e8d7efeabbd0448f63ab018 | 16,126 | py | Python | flask_backend/anime_env/Scripts/runxlrd.py | shafqatshad/AnmieRecommenderSystem | f58d6ab2b3614aa81208ec844ef99963c988c69d | [
"Apache-2.0"
] | null | null | null | flask_backend/anime_env/Scripts/runxlrd.py | shafqatshad/AnmieRecommenderSystem | f58d6ab2b3614aa81208ec844ef99963c988c69d | [
"Apache-2.0"
] | null | null | null | flask_backend/anime_env/Scripts/runxlrd.py | shafqatshad/AnmieRecommenderSystem | f58d6ab2b3614aa81208ec844ef99963c988c69d | [
"Apache-2.0"
] | null | null | null | #!d:\seniorproject\animeangular\flask_backend\anime_env\scripts\python.exe
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print the co... | 39.23601 | 101 | 0.506945 |
7971728662157d9cf3a18486bf0b1b2d4d68131c | 2,815 | py | Python | tools/scons/scons-local-2.2.0/SCons/Tool/Subversion.py | tristanpenman/gameutils | d4695922c6a8ba201a67fc8e5319da53e0d25323 | [
"BSD-2-Clause"
] | null | null | null | tools/scons/scons-local-2.2.0/SCons/Tool/Subversion.py | tristanpenman/gameutils | d4695922c6a8ba201a67fc8e5319da53e0d25323 | [
"BSD-2-Clause"
] | null | null | null | tools/scons/scons-local-2.2.0/SCons/Tool/Subversion.py | tristanpenman/gameutils | d4695922c6a8ba201a67fc8e5319da53e0d25323 | [
"BSD-2-Clause"
] | null | null | null | """SCons.Tool.Subversion.py
Tool-specific initialization for Subversion.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, ... | 39.097222 | 121 | 0.678508 |
79717367a638a384ca1698117338ec37c3bcd315 | 4,338 | py | Python | conpy/monitor.py | shane-breeze/conpy | 5f2c0469ffa4bd447fcc3c9c1b3788866d15fb73 | [
"MIT"
] | null | null | null | conpy/monitor.py | shane-breeze/conpy | 5f2c0469ffa4bd447fcc3c9c1b3788866d15fb73 | [
"MIT"
] | 1 | 2019-06-21T11:48:11.000Z | 2019-06-21T11:48:11.000Z | conpy/monitor.py | shane-breeze/conpy | 5f2c0469ffa4bd447fcc3c9c1b3788866d15fb73 | [
"MIT"
] | null | null | null | import os
import logging
import gzip
import time
import copy
from tqdm.auto import tqdm
from .utils import run_command
logger = logging.getLogger(__name__)
try:
import cPickle as pickle
except ImportError:
import pickle
CONDOR_JOBSTATUS = {
0: "Unexpanded",
1: "Idle",
2: "Running",
3: "Removed... | 31.897059 | 101 | 0.574689 |
797173efb05538b6a126768c3f73a48e36483da1 | 6,113 | py | Python | ivf/batch/batch.py | tody411/ImageViewerFramework | 5c183c34e65494b6af1287e70152b995a868c6ac | [
"MIT"
] | null | null | null | ivf/batch/batch.py | tody411/ImageViewerFramework | 5c183c34e65494b6af1287e70152b995a868c6ac | [
"MIT"
] | null | null | null | ivf/batch/batch.py | tody411/ImageViewerFramework | 5c183c34e65494b6af1287e70152b995a868c6ac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
## @package ivf.batch.batch
#
# ivf.batch.batch utility package.
# @author tody
# @date 2016/02/05
import os
import shutil
from ivf.util.timer import Timer
from ivf.io_util.dict_data import saveDict
from ivf.datasets.datasets import datasetDir, datasetFiles, subDirectory, datase... | 32.173684 | 97 | 0.630787 |
797174c6044bc5d4d2922b8ebe5bce32529b93f4 | 15,751 | py | Python | tsai/data/validation.py | duyniem/tsai | 18ea05f6077fe011fb9e3f206311abe4c0f3105c | [
"Apache-2.0"
] | 1 | 2021-09-16T04:35:38.000Z | 2021-09-16T04:35:38.000Z | tsai/data/validation.py | ankitranjan30/tsai | 5eb1c375883986a3ebba5a2f8eddf2e4b9f86f85 | [
"Apache-2.0"
] | null | null | null | tsai/data/validation.py | ankitranjan30/tsai | 5eb1c375883986a3ebba5a2f8eddf2e4b9f86f85 | [
"Apache-2.0"
] | 1 | 2021-08-12T20:45:07.000Z | 2021-08-12T20:45:07.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/000b_data.validation.ipynb (unless otherwise specified).
__all__ = ['check_overlap', 'check_splits_overlap', 'leakage_finder', 'balance_idx', 'TrainValidTestSplitter',
'plot_splits', 'get_splits', 'TSSplitter', 'TimeSplitter', 'get_predefined_splits', 'combine... | 51.983498 | 159 | 0.595073 |
79717658a7c4848a509a320d0ca2383e0d2eb3bb | 1,585 | py | Python | test/integration/test_update_task_instances_state.py | zachliu/airflow-python-sdk | 70b5d08955a9e218fa6163b0612856e09eedce63 | [
"MIT"
] | 12 | 2021-01-22T15:07:47.000Z | 2021-10-19T13:47:40.000Z | test/integration/test_update_task_instances_state.py | zachliu/airflow-python-sdk | 70b5d08955a9e218fa6163b0612856e09eedce63 | [
"MIT"
] | null | null | null | test/integration/test_update_task_instances_state.py | zachliu/airflow-python-sdk | 70b5d08955a9e218fa6163b0612856e09eedce63 | [
"MIT"
] | 2 | 2021-04-04T13:30:53.000Z | 2021-07-20T13:58:07.000Z | """
Airflow API (Stable)
Apache Airflow management API. # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: zach.z.liu@gmail.com
Generated by: https://openapi-generator.tech
"""
from test.integration.conftest import BCOLORS
import pytest
from airflow_python_sdk.model.update_task_... | 30.480769 | 74 | 0.68959 |
797178923ff6a2b8a9830cfb1bb43dc96b3e9c84 | 2,945 | py | Python | setup.py | victordomingos/telescope-planner | 77ddf08e98d000face426116444023deb17367e2 | [
"MIT"
] | null | null | null | setup.py | victordomingos/telescope-planner | 77ddf08e98d000face426116444023deb17367e2 | [
"MIT"
] | null | null | null | setup.py | victordomingos/telescope-planner | 77ddf08e98d000face426116444023deb17367e2 | [
"MIT"
] | null | null | null | # encoding: utf-8
from setuptools import setup, find_packages
import os
import sys
import platform
used = sys.version_info
required = (3, 6)
# if version of pip that doesn't understand the python_requires classifier, must be pip >= 9.0.0
# must be built using at least version 24.2.0 of setuptools
# in order for the p... | 37.278481 | 107 | 0.639049 |
797179112cf538d30b794e6f83d4cdeed5ad6685 | 201 | py | Python | calling_plan/pages/views.py | hadtrindade/calling-plan | b9790bd2738c81e6d2c2835bb4de96d6abb09404 | [
"MIT"
] | null | null | null | calling_plan/pages/views.py | hadtrindade/calling-plan | b9790bd2738c81e6d2c2835bb4de96d6abb09404 | [
"MIT"
] | 12 | 2021-03-10T12:46:02.000Z | 2021-06-10T20:54:49.000Z | calling_plan/pages/views.py | hadtrindade/calling-plan | b9790bd2738c81e6d2c2835bb4de96d6abb09404 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
@login_required(login_url="core:login")
def home(request):
return render(request, "pages/home.html")
| 25.125 | 57 | 0.79602 |
79717a7362655f756df8a99eb252faa0a4897086 | 389 | py | Python | codes/day29_spider/douban/douban/items.py | Youngfellows/HPyBaseCode | 94d11872795d85b8c4387b650e82edcd20da0667 | [
"Apache-2.0"
] | null | null | null | codes/day29_spider/douban/douban/items.py | Youngfellows/HPyBaseCode | 94d11872795d85b8c4387b650e82edcd20da0667 | [
"Apache-2.0"
] | null | null | null | codes/day29_spider/douban/douban/items.py | Youngfellows/HPyBaseCode | 94d11872795d85b8c4387b650e82edcd20da0667 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class DoubanItem(scrapy.Item):
# define the fields for your item here like:
# 标题
title = scrapy.Field()
# 信息
bd = scrapy.Field()
... | 17.681818 | 51 | 0.627249 |
79717b7d6e0e7b2010dfc0f3632b56223f762f75 | 392 | py | Python | Huaxian_ssa/projects/pca_one_step_one_month.py | UnIcOrn7618/MonthlyRunoffForecastByAutoReg | 2d66c628141f001e4ffb3dc3b7520a0f0f0ff239 | [
"MIT"
] | 2 | 2020-09-24T13:31:06.000Z | 2020-11-11T09:08:16.000Z | Huaxian_ssa/projects/pca_one_step_one_month.py | UnIcOrn7618/MonthlyRunoffForecastByAutoReg | 2d66c628141f001e4ffb3dc3b7520a0f0f0ff239 | [
"MIT"
] | null | null | null | Huaxian_ssa/projects/pca_one_step_one_month.py | UnIcOrn7618/MonthlyRunoffForecastByAutoReg | 2d66c628141f001e4ffb3dc3b7520a0f0f0ff239 | [
"MIT"
] | 1 | 2020-12-16T07:29:32.000Z | 2020-12-16T07:29:32.000Z | import os
root_path = os.path.dirname(os.path.abspath('__file__'))
import sys
sys.path.append(root_path)
from PCA import one_step_pca
if __name__ == "__main__":
# for n_components in range(40,41):
one_step_pca(
root_path=root_path,
station='Huaxian',
decomposer='ssa',
predict_pa... | 20.631579 | 56 | 0.665816 |
79717b9abed080d2240609b853c9146b84875011 | 3,952 | py | Python | tests/test_ubirch_ks.py | ubirch/ubirch-protocol-python | b71a5cfc7d7a6b6786bf94510e99a77474469905 | [
"Apache-2.0"
] | 3 | 2020-03-03T08:45:40.000Z | 2021-05-28T06:12:40.000Z | tests/test_ubirch_ks.py | cvandrei/ubirch-protocol-python | 6b133dd458708d9abc5d257ece8f9c9d48e2b77d | [
"Apache-2.0"
] | 2 | 2018-09-21T07:19:57.000Z | 2021-03-13T16:43:22.000Z | tests/test_ubirch_ks.py | cvandrei/ubirch-protocol-python | 6b133dd458708d9abc5d257ece8f9c9d48e2b77d | [
"Apache-2.0"
] | 3 | 2018-09-13T09:12:19.000Z | 2019-05-12T10:19:12.000Z | # ubirch key store tests
#
# @author Matthias L. Jugel
#
# Copyright (c) 2018 ubirch GmbH.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | 36.934579 | 98 | 0.709514 |
79717c71036b5b730cce8548bc27f6fef7222c21 | 111 | py | Python | Matting/utils/__init__.py | Amanda-Barbara/PaddleSeg | a7de36a5fae96011f5b188987670274101b8ede1 | [
"Apache-2.0"
] | 2 | 2021-11-26T09:02:58.000Z | 2021-12-10T08:35:37.000Z | Matting/utils/__init__.py | Amanda-Barbara/PaddleSeg | a7de36a5fae96011f5b188987670274101b8ede1 | [
"Apache-2.0"
] | null | null | null | Matting/utils/__init__.py | Amanda-Barbara/PaddleSeg | a7de36a5fae96011f5b188987670274101b8ede1 | [
"Apache-2.0"
] | null | null | null | from .estimate_foreground_ml import estimate_foreground_ml
from .utils import get_files, get_image_list, mkdir
| 37 | 58 | 0.873874 |
79717ca2005aafbcf880a9aa16aec28c06cfc2d4 | 2,182 | py | Python | store/product/migrations/0007_auto_20150205_1329.py | Masao987/isi-on-python- | 650a3af1b85bba3a6160dd3718f045532779bdbc | [
"MIT"
] | null | null | null | store/product/migrations/0007_auto_20150205_1329.py | Masao987/isi-on-python- | 650a3af1b85bba3a6160dd3718f045532779bdbc | [
"MIT"
] | null | null | null | store/product/migrations/0007_auto_20150205_1329.py | Masao987/isi-on-python- | 650a3af1b85bba3a6160dd3718f045532779bdbc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('product', '0006_auto_20150129_2126'),
]
operations = [
migrations.AddField(
model_... | 34.09375 | 140 | 0.593034 |
79717cecba74d0d1e4dfbb1c9b3600bee0f45912 | 10,046 | py | Python | chatovod/core/http.py | Henriquetf/chatovod.py | c9c63661beaa085deced77dceba51e9550d29e40 | [
"Apache-2.0"
] | 1 | 2019-08-20T23:56:50.000Z | 2019-08-20T23:56:50.000Z | chatovod/core/http.py | Coquetoon/chatovod.py | c9c63661beaa085deced77dceba51e9550d29e40 | [
"Apache-2.0"
] | 1 | 2021-04-10T22:10:53.000Z | 2021-04-10T22:10:53.000Z | chatovod/core/http.py | Henriquetf/chatovod.py | c9c63661beaa085deced77dceba51e9550d29e40 | [
"Apache-2.0"
] | null | null | null | import asyncio
import json
import logging
import aiohttp
from yarl import URL
from chatovod import __version__
from chatovod.api.endpoints import AccountEndpoint
from chatovod.api.endpoints import APIEndpoint as Endpoints
from chatovod.api.endpoints import Route
from .errors import InvalidLogin, error_factory
logge... | 29.721893 | 87 | 0.591977 |
79717cfa189ef7b8621a1451074f1c4d190ce41f | 542 | py | Python | tests/test_wifisense.py | SimLeek/sensebuffer | 466259e7dc582f1082dfa0ca6a4ac98774001977 | [
"MIT"
] | null | null | null | tests/test_wifisense.py | SimLeek/sensebuffer | 466259e7dc582f1082dfa0ca6a4ac98774001977 | [
"MIT"
] | null | null | null | tests/test_wifisense.py | SimLeek/sensebuffer | 466259e7dc582f1082dfa0ca6a4ac98774001977 | [
"MIT"
] | null | null | null | import unittest as ut
from sensebuffer.wifisense import WifiSense
import os
from os import listdir
from os.path import isfile, join
import time
cwd = os.getcwd()
class TestWifiSense( ut.TestCase ):
def test_log(self):
ws = WifiSense()
ws.set_logging()
ws.start()
time.sleep(10)
... | 25.809524 | 94 | 0.645756 |
79717d075632e1370a51b566fd17746abebd547a | 1,434 | py | Python | src/mean_variable.py | bdrummond1/um_post_proc | 2dc1dcaa164772e09e77cd3f3e7d927f2237228a | [
"MIT"
] | 1 | 2020-04-23T17:06:40.000Z | 2020-04-23T17:06:40.000Z | src/mean_variable.py | bdrummond1/um_post_proc | 2dc1dcaa164772e09e77cd3f3e7d927f2237228a | [
"MIT"
] | null | null | null | src/mean_variable.py | bdrummond1/um_post_proc | 2dc1dcaa164772e09e77cd3f3e7d927f2237228a | [
"MIT"
] | null | null | null | from pylab import *
import sys
from constant_umpp import *
# Take the temporal mean of a 4D array
def mean_lim(
# dimension of variable to be averaged
dim,
# variable
variable,
# minimum limit for mean
lim_min,
# maximum limit for mean
lim_max,
# axis on which to perform mean
axis):
# Check that requested limits a... | 22.761905 | 73 | 0.698745 |
79717d23a6ef8fab43ab26f6f1c14af1bdca2039 | 5,634 | py | Python | app/libs/opasSiteMap.py | Psychoanalytic-Electronic-Publishing/openpubarchive | afd2a281ebacf8404791c11a21c06a0ae135f2a7 | [
"Apache-2.0"
] | 1 | 2019-04-01T14:45:33.000Z | 2019-04-01T14:45:33.000Z | app/libs/opasSiteMap.py | Psychoanalytic-Electronic-Publishing/openpubarchive | afd2a281ebacf8404791c11a21c06a0ae135f2a7 | [
"Apache-2.0"
] | 46 | 2019-05-14T14:16:15.000Z | 2020-08-06T03:45:12.000Z | app/libs/opasSiteMap.py | nrshapiro/openpubarchive | f6d3b7da6cd23e51b32e16e17ccb55b8511d32a6 | [
"Apache-2.0"
] | 1 | 2020-08-26T15:25:28.000Z | 2020-08-26T15:25:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=C0321,C0103,C0301,E1101,C0303,E1004,C0330,R0915,R0914,W0703,C0326
# doctest_ellipsis.py
"""
opasSitemap.py
Build a Google sitemap from the document urls
"""
__author__ = "Neil R. Shapiro"
__copyright__ = "Copyright 2019-2021, Psychoanalytic Elect... | 33.736527 | 132 | 0.604011 |
79717d7dc8e115d6efcebbf4b1ab1789bbc774a5 | 531 | py | Python | dindin_workrecord/__manifest__.py | redblow/odooDingDing | d5bea9d69889615819d82d94924a5d54b498db03 | [
"Apache-2.0"
] | 6 | 2019-10-04T01:57:03.000Z | 2021-10-25T00:53:27.000Z | dindin_workrecord/__manifest__.py | redblow/odooDingDing | d5bea9d69889615819d82d94924a5d54b498db03 | [
"Apache-2.0"
] | null | null | null | dindin_workrecord/__manifest__.py | redblow/odooDingDing | d5bea9d69889615819d82d94924a5d54b498db03 | [
"Apache-2.0"
] | 1 | 2022-03-22T09:23:48.000Z | 2022-03-22T09:23:48.000Z | # -*- coding: utf-8 -*-
{
'name': "钉钉办公-待办事项管理",
'summary': """钉钉办公-待办事项管理""",
'description': """ 钉钉办公-待办事项管理 """,
'author': "SuXueFeng",
'website': "https://www.sxfblog.com",
'category': 'dingding',
'version': '1.0',
'depends': ['base', 'ali_dindin', 'mail'],
'installable': True,
... | 25.285714 | 46 | 0.532957 |
79717db04cdeab7c65c0be4a29b4086848058ded | 692 | py | Python | checkov/serverless/checks/provider/base_provider_check.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 4,013 | 2019-12-09T13:16:54.000Z | 2022-03-31T14:31:01.000Z | checkov/serverless/checks/provider/base_provider_check.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1,258 | 2019-12-17T09:55:51.000Z | 2022-03-31T19:17:17.000Z | checkov/serverless/checks/provider/base_provider_check.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 638 | 2019-12-19T08:57:38.000Z | 2022-03-30T21:38:37.000Z | from abc import abstractmethod
from checkov.common.checks.base_check import BaseCheck
from checkov.serverless.checks.provider.registry import provider_registry
class BaseProviderCheck(BaseCheck):
def __init__(self, name, id, categories, supported_entities, guideline=None):
super().__init__(name=name, id=... | 36.421053 | 104 | 0.75 |
79717dbed0515a79e12855c8c78d5e7e76bfd409 | 1,386 | py | Python | setup.py | purplediane/squashem | d9c334ac382b0b826e2c51c9373e4691fb31c085 | [
"MIT"
] | null | null | null | setup.py | purplediane/squashem | d9c334ac382b0b826e2c51c9373e4691fb31c085 | [
"MIT"
] | null | null | null | setup.py | purplediane/squashem | d9c334ac382b0b826e2c51c9373e4691fb31c085 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['Click>=6.0', ]
setup_requirements =... | 26.653846 | 50 | 0.637085 |
79717e1b87d4797c39504c5d594bd3efc24552e7 | 259 | py | Python | gym_toys/__init__.py | LiuTed/gym-TD | 66fda4fbd877ceb0ce815e7a6a746ac0afde21a0 | [
"MIT"
] | null | null | null | gym_toys/__init__.py | LiuTed/gym-TD | 66fda4fbd877ceb0ce815e7a6a746ac0afde21a0 | [
"MIT"
] | null | null | null | gym_toys/__init__.py | LiuTed/gym-TD | 66fda4fbd877ceb0ce815e7a6a746ac0afde21a0 | [
"MIT"
] | null | null | null | from gym import register
register(
id='DistributionLearning-v0',
entry_point='gym_toys.envs:DistLearnEnv',
max_episode_steps=1000
)
register(
id='DiskRaising-v0',
entry_point='gym_toys.envs:DiskRaisingEnv',
max_episode_steps=1000
)
| 17.266667 | 47 | 0.733591 |
79717ec09aad6d54defbcc9fcead8219d119beef | 3,293 | py | Python | libs/neuromation_io.py | GolovanovSrg/labelImg | 67e440390fa7d1dd9e7abeef394e450450358361 | [
"MIT"
] | null | null | null | libs/neuromation_io.py | GolovanovSrg/labelImg | 67e440390fa7d1dd9e7abeef394e450450358361 | [
"MIT"
] | null | null | null | libs/neuromation_io.py | GolovanovSrg/labelImg | 67e440390fa7d1dd9e7abeef394e450450358361 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf8 -*-
import json
import codecs
JSON_EXT = '.json'
ENCODE_METHOD = 'utf-8'
class NeuromationWriter:
def __init__(self, foldername, filename):
self.foldername = foldername
self.filename = filename
self.boxlist = []
self.verified = False
... | 33.948454 | 111 | 0.514121 |
79717fca27e2720fa310763efd47c64e37fc362c | 3,824 | py | Python | pyfermod/stats/stats_stats.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 44 | 2016-03-18T22:05:31.000Z | 2021-12-23T01:50:09.000Z | pyfermod/stats/stats_stats.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 88 | 2016-08-19T08:05:37.000Z | 2022-03-28T23:29:21.000Z | pyfermod/stats/stats_stats.py | josborne-noaa/PyFerret | 8496508e9902c0184898522e9f89f6caea6d4539 | [
"Unlicense"
] | 24 | 2016-02-07T18:12:06.000Z | 2022-02-19T09:06:17.000Z | """
Returns the (unweighted) mean, variance, skew, and kurtoses
of an array of values
"""
from __future__ import print_function
import math
import numpy
import pyferret
import scipy.stats
def ferret_init(id):
"""
Initialization for the stats_stats.py Ferret PyEF
"""
axes_values = [ pyferret.AXIS_DOE... | 34.763636 | 119 | 0.623954 |
7971809599bd6f655534c2f3afdfb39e520dd255 | 9,727 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/locations/ports/ports.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/locations/ports/ports.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/locations/ports/ports.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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,... | 48.879397 | 1,107 | 0.700113 |
797180e09879e49793217494186ee4d5ed064f13 | 2,387 | py | Python | tests/charts/createChartTest.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 2 | 2018-03-29T18:21:01.000Z | 2022-02-08T10:49:47.000Z | tests/charts/createChartTest.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 7 | 2018-09-03T12:31:52.000Z | 2022-02-01T08:25:09.000Z | tests/charts/createChartTest.py | nathanielwarner/seatsio-python | e731ed0c37f2496c620b40e38527a58bf3b9a9b2 | [
"MIT"
] | 2 | 2020-12-22T09:51:07.000Z | 2021-12-13T15:37:14.000Z | from seatsio.domain import Chart
from tests.seatsioClientTest import SeatsioClientTest
from tests.util.asserts import assert_that
class CreateChartTest(SeatsioClientTest):
def testDefaultParameters(self):
chart = self.client.charts.create()
assert_that(chart).is_instance(Chart)
assert_th... | 42.625 | 89 | 0.678676 |
7971815ebc971a64d5e0a3e82f98becf45c3aed0 | 3,163 | py | Python | tests/unit/contexts/cleanup/test_admin.py | RSE-Cambridge/rally-openstack | 32bbc091bbce1db625a2fc22da28b32718befa13 | [
"Apache-2.0"
] | null | null | null | tests/unit/contexts/cleanup/test_admin.py | RSE-Cambridge/rally-openstack | 32bbc091bbce1db625a2fc22da28b32718befa13 | [
"Apache-2.0"
] | null | null | null | tests/unit/contexts/cleanup/test_admin.py | RSE-Cambridge/rally-openstack | 32bbc091bbce1db625a2fc22da28b32718befa13 | [
"Apache-2.0"
] | 1 | 2018-12-10T12:31:27.000Z | 2018-12-10T12:31:27.000Z | # Copyright 2014: Mirantis 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 b... | 36.356322 | 79 | 0.621246 |
797181edff6f0f99bd3d78f9ab9cea7a96595692 | 19,222 | py | Python | sdk/python/pulumi_azure_native/insights/v20140401/alert_rule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/insights/v20140401/alert_rule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/insights/v20140401/alert_rule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"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, overload
from ... import _utilities
fro... | 45.44208 | 361 | 0.652898 |
797184e6849fa71c219ae0e0f6f6aeefac7596a3 | 2,467 | py | Python | lib/helm.py | Racter42/gxabm | 04b77f3abb9caa69e527f84c3d85fa8e3d931e27 | [
"MIT"
] | 1 | 2021-11-23T21:44:09.000Z | 2021-11-23T21:44:09.000Z | lib/helm.py | Racter42/gxabm | 04b77f3abb9caa69e527f84c3d85fa8e3d931e27 | [
"MIT"
] | 18 | 2021-07-28T22:32:30.000Z | 2021-12-09T19:43:36.000Z | lib/helm.py | Racter42/gxabm | 04b77f3abb9caa69e527f84c3d85fa8e3d931e27 | [
"MIT"
] | 2 | 2021-08-04T21:24:14.000Z | 2021-11-23T17:57:40.000Z | import io
import os
import time
import lib
import common
from common import run, find_executable
import subprocess
def update(args:list):
"""
Runs the ``helm upgrade`` command on the cluster to update the
*jobs.rules.container_mapper_rules* configuration.
:param args: a list containing the path to t... | 25.968421 | 135 | 0.611674 |
797185b9d72286debf00493c5a3148e6ed20c254 | 131 | py | Python | sveske/sources/12_Testing/tryexcept0.py | milica325/unibl_radionica | 34a753a663f9ad6a3f1031cd6755748526046376 | [
"BSD-3-Clause"
] | 2 | 2019-09-18T19:21:44.000Z | 2019-09-19T00:00:25.000Z | sveske/sources/12_Testing/tryexcept0.py | milica325/unibl_radionica | 34a753a663f9ad6a3f1031cd6755748526046376 | [
"BSD-3-Clause"
] | null | null | null | sveske/sources/12_Testing/tryexcept0.py | milica325/unibl_radionica | 34a753a663f9ad6a3f1031cd6755748526046376 | [
"BSD-3-Clause"
] | 34 | 2019-09-18T14:39:38.000Z | 2019-09-20T06:45:07.000Z | def divide_it(x, y):
try:
out = x / y
except:
print ' Divide by zero!'
out = None
return out
| 16.375 | 34 | 0.465649 |
797185cf8303e5ccd5d5afa3582057edc050dc18 | 1,326 | py | Python | checkboxes/display-boxes.py | rajorshi-mukherjee/gui-python | 356eef26975e63de48b441d336d75a1f9c232cf3 | [
"MIT"
] | null | null | null | checkboxes/display-boxes.py | rajorshi-mukherjee/gui-python | 356eef26975e63de48b441d336d75a1f9c232cf3 | [
"MIT"
] | 3 | 2022-01-02T18:04:24.000Z | 2022-01-12T16:35:31.000Z | checkboxes/display-boxes.py | rajorshi-mukherjee/gui-python | 356eef26975e63de48b441d336d75a1f9c232cf3 | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter import messagebox
top = Tk()
top.geometry("200x200")
checkvar1 = IntVar()
checkvar2 = IntVar()
checkvar3 = IntVar()
def cprogram():
messagebox.showinfo( "Hello Programmer", "So you like C programming huh?")
def cppprogram():
messagebox.showinfo( "... | 32.341463 | 140 | 0.652338 |
797185fb27f771e694cf1e1abd9ec62d38efb036 | 46 | py | Python | ocetrac/_version.py | ocetrac/ocetrac | 0aca97977a6286c511c530c42352bc80c685b22e | [
"MIT"
] | 22 | 2021-06-22T15:17:20.000Z | 2022-03-04T18:40:16.000Z | ocetrac/_version.py | ocetrac/ocetrac | 0aca97977a6286c511c530c42352bc80c685b22e | [
"MIT"
] | 25 | 2021-04-16T13:43:16.000Z | 2022-02-01T05:10:29.000Z | ocetrac/_version.py | ocetrac/ocetrac | 0aca97977a6286c511c530c42352bc80c685b22e | [
"MIT"
] | 4 | 2021-04-22T14:43:42.000Z | 2021-11-24T22:09:59.000Z | __version__ = "0.1.4.dev32+g964124d.d20210818" | 46 | 46 | 0.782609 |
79718661d19347ffc1baab155ca3af24f0a46799 | 16,603 | py | Python | flask_discord_interactions/context.py | Breq16/flask-discord-interactions | a7163899566d1caea38108545d6e12f6bdbffe07 | [
"MIT"
] | 24 | 2021-01-03T22:36:51.000Z | 2022-03-13T23:19:25.000Z | flask_discord_interactions/context.py | Breq16/flask-discord-interactions | a7163899566d1caea38108545d6e12f6bdbffe07 | [
"MIT"
] | 48 | 2021-01-11T00:30:42.000Z | 2022-03-25T10:25:14.000Z | flask_discord_interactions/context.py | Breq16/flask-discord-interactions | a7163899566d1caea38108545d6e12f6bdbffe07 | [
"MIT"
] | 12 | 2021-04-11T23:31:52.000Z | 2022-02-10T08:15:44.000Z | from dataclasses import dataclass
from typing import Any, List, Union
import inspect
import itertools
import warnings
import types
import requests
from flask_discord_interactions.models import (
LoadableDataclass, Member, Channel, Role, User, CommandOptionType, ApplicationCommandType, Message
)
@dataclass
class... | 30.746296 | 102 | 0.571041 |
7971866f9a170616e2aff18bb83f006243f1bb6b | 4,139 | py | Python | tensorflow_datasets/__init__.py | NunoEdgarGFlowHub/datasets | c3351cdd59eedf8193d670334672ff75020f82b6 | [
"Apache-2.0"
] | null | null | null | tensorflow_datasets/__init__.py | NunoEdgarGFlowHub/datasets | c3351cdd59eedf8193d670334672ff75020f82b6 | [
"Apache-2.0"
] | null | null | null | tensorflow_datasets/__init__.py | NunoEdgarGFlowHub/datasets | c3351cdd59eedf8193d670334672ff75020f82b6 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The TensorFlow Datasets 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 appl... | 38.682243 | 112 | 0.757429 |
79718720d554190feb2a8d4fd7ded6566b775055 | 1,235 | py | Python | trac/web/__init__.py | haskell-infra/trac | 5e086948718893ede9965ea4ce3625da32676730 | [
"BSD-3-Clause"
] | 1 | 2017-08-03T07:04:28.000Z | 2017-08-03T07:04:28.000Z | trac/web/__init__.py | haskell-infra/trac | 5e086948718893ede9965ea4ce3625da32676730 | [
"BSD-3-Clause"
] | 1 | 2019-03-20T19:13:53.000Z | 2019-08-14T20:15:09.000Z | trac/web/__init__.py | haskell-infra/trac | 5e086948718893ede9965ea4ce3625da32676730 | [
"BSD-3-Clause"
] | 2 | 2019-03-20T01:23:30.000Z | 2019-12-06T16:13:07.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2013 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.edgewall.com/license.html.
#
# This software consists ... | 33.378378 | 69 | 0.7417 |
797189716d2e1c7687fc46e72de066b366b04c7b | 5,357 | py | Python | V2.0/brain/startup/app.py | robauto/bibli3.0 | c8b803034c5dd1aad92c26327ae2aa1164fb9441 | [
"BSD-3-Clause"
] | 3 | 2020-09-21T17:20:20.000Z | 2021-12-20T19:27:22.000Z | V2.0/brain/startup/app.py | robauto/bibli3.0 | c8b803034c5dd1aad92c26327ae2aa1164fb9441 | [
"BSD-3-Clause"
] | 5 | 2020-09-27T16:59:26.000Z | 2021-11-10T19:30:11.000Z | V2.0/brain/startup/app.py | robauto/bibli3.0 | c8b803034c5dd1aad92c26327ae2aa1164fb9441 | [
"BSD-3-Clause"
] | 2 | 2020-09-24T20:12:48.000Z | 2021-03-03T03:24:40.000Z | #!/usr/bin/env python
from flask import Flask, render_template, Response
import base
import demo
import play_video
import time
import subprocess
import socket
import fcntl
import struct
# emulated camera
#from camera import Camera
# Raspberry Pi camera module (requires picamera package)
from camera_pi import Camera
... | 28.956757 | 254 | 0.672578 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.