hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
ffb3122f5b526c403a537fc7e2d88fda76411dec
13,767
py
Python
gpMgmt/test/behave_utils/PgHba.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
gpMgmt/test/behave_utils/PgHba.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
gpMgmt/test/behave_utils/PgHba.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
#!python """ Copyright (C) 2004-2017 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 Li...
36.324538
189
0.567008
12,834
0.932229
0
0
0
0
0
0
5,607
0.407278
ffb4497f2f29a25b74cf38005f97667ed3b3d835
7,964
py
Python
roboskeeter/math/test_math_sorcery.py
crypdick/RoboSkeeter
c905a69c4f7ecf1e1c3e950f36200610a903b6a5
[ "MIT" ]
null
null
null
roboskeeter/math/test_math_sorcery.py
crypdick/RoboSkeeter
c905a69c4f7ecf1e1c3e950f36200610a903b6a5
[ "MIT" ]
null
null
null
roboskeeter/math/test_math_sorcery.py
crypdick/RoboSkeeter
c905a69c4f7ecf1e1c3e950f36200610a903b6a5
[ "MIT" ]
null
null
null
""" Unit tests for kinematics calculations. """ from __future__ import print_function, division import unittest import numpy as np from kinematic_math import math_toolbox class TruismsTestCase(unittest.TestCase): def setUp(self): print("In test '{}'...".format(self._testMethodName)) def test_false...
41.696335
98
0.540181
7,726
0.970116
0
0
0
0
0
0
1,321
0.165871
ffb52d18ba01244fe0a111aa498702d1a5db89c0
7,096
py
Python
trustpayments/models/refund_create.py
TrustPayments/python-sdk
6fde6eb8cfce270c3612a2903a845c13018c3bb9
[ "Apache-2.0" ]
2
2020-01-16T13:24:06.000Z
2020-11-21T17:40:17.000Z
postfinancecheckout/models/refund_create.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
4
2019-10-14T17:33:23.000Z
2021-10-01T14:49:11.000Z
postfinancecheckout/models/refund_create.py
pfpayments/python-sdk
b8ef159ea3c843a8d0361d1e0b122a9958adbcb4
[ "Apache-2.0" ]
2
2019-10-15T14:17:10.000Z
2021-09-17T13:07:09.000Z
# coding: utf-8 import pprint import six from enum import Enum class RefundCreate: swagger_types = { 'amount': 'float', 'completion': 'int', 'external_id': 'str', 'merchant_reference': 'str', 'reductions': 'list[LineItemReductionCreate]', 'transaction': 'int'...
26.980989
195
0.584977
7,029
0.990558
0
0
4,434
0.624859
0
0
3,207
0.451945
ffb567f0688a716f16f90345a882a5dc8d44737d
4,025
py
Python
language/xsp/data_preprocessing/language_utils.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/xsp/data_preprocessing/language_utils.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/xsp/data_preprocessing/language_utils.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
303
2018-10-22T12:35:12.000Z
2022-03-27T17:38:17.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
35.619469
77
0.704596
1,113
0.276522
0
0
0
0
0
0
1,301
0.32323
ffb64699aee68caa91b512adb859b23ae28d1500
13,270
py
Python
back/api/tests/test_pricing.py
maltaesousa/geoshop2
624c6d79b5a29b39a898e0d1332fb8de23bd96e4
[ "BSD-3-Clause" ]
null
null
null
back/api/tests/test_pricing.py
maltaesousa/geoshop2
624c6d79b5a29b39a898e0d1332fb8de23bd96e4
[ "BSD-3-Clause" ]
155
2020-01-06T09:32:32.000Z
2022-03-31T09:21:39.000Z
back/api/tests/test_pricing.py
maltaesousa/geoshop2
624c6d79b5a29b39a898e0d1332fb8de23bd96e4
[ "BSD-3-Clause" ]
3
2020-01-29T15:48:02.000Z
2020-06-04T12:50:24.000Z
from itertools import islice from django.core import mail from django.contrib.auth import get_user_model from django.contrib.gis.geos import Polygon, Point from djmoney.money import Money from rest_framework.test import APITestCase from api.models import Contact, Pricing, Product, PricingGeometry, Order, OrderItem, Ord...
39.029412
115
0.595554
12,919
0.97289
0
0
0
0
0
0
1,538
0.115822
ffb6752c3d7ef436cdbb18c7ac65218d10fde812
1,080
py
Python
platforms/views.py
lunamagic1978/DQP
5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2
[ "Apache-2.0" ]
null
null
null
platforms/views.py
lunamagic1978/DQP
5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2
[ "Apache-2.0" ]
null
null
null
platforms/views.py
lunamagic1978/DQP
5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.contrib import auth @login_required def index(request): username = request.session.get('username') ctx = {"username": username} # return render(request, '...
29.189189
70
0.669444
0
0
0
0
208
0.189435
0
0
206
0.187614
ffb9d19110d417666cdbb685244d2f511866f9ea
2,442
py
Python
app/searchtweet/searchtweet.py
winsb/SearchTweet
fe5e2760fda8fd563210d71293aef16d2cc90d7e
[ "MIT" ]
null
null
null
app/searchtweet/searchtweet.py
winsb/SearchTweet
fe5e2760fda8fd563210d71293aef16d2cc90d7e
[ "MIT" ]
null
null
null
app/searchtweet/searchtweet.py
winsb/SearchTweet
fe5e2760fda8fd563210d71293aef16d2cc90d7e
[ "MIT" ]
null
null
null
# searchtweet.py import json from requests_oauthlib import OAuth1Session from . import tweetdata # const TWITTER_API_URL_PREFIX = "https://api.twitter.com/1.1/" # SearchTweet class class SearchTweet: def __init__(self, consumer_key, consumer_secret, access_token, access_token_secret): self._twitter_oa...
34.394366
109
0.601556
2,255
0.923423
0
0
0
0
0
0
453
0.185504
ffba2f9fa76e114d9b8e5bc7903f58d0d6e6f1e3
183
py
Python
27 Body Mass Index.py
L0ganhowlett/Python_workbook-Ben_Stephenson
ab711257bd2da9b34c6001a8e09d20bfc0114a3f
[ "MIT" ]
null
null
null
27 Body Mass Index.py
L0ganhowlett/Python_workbook-Ben_Stephenson
ab711257bd2da9b34c6001a8e09d20bfc0114a3f
[ "MIT" ]
null
null
null
27 Body Mass Index.py
L0ganhowlett/Python_workbook-Ben_Stephenson
ab711257bd2da9b34c6001a8e09d20bfc0114a3f
[ "MIT" ]
null
null
null
# 27 Body mass Index #Asking for height and weight of user h = float(input("Enter the height = ")) m = float(input("Enter the mass = ")) print("Body Mass Index = ",m / (h * h))
30.5
40
0.622951
0
0
0
0
0
0
0
0
120
0.655738
ffbb65836c12223fe2223ac56eec4039adb97ac9
4,221
py
Python
xueshu/xueshu/settings.py
fsocietyjack/google_xueshu
b20293c865a8d3075b416543eea53adce00540a1
[ "Apache-2.0" ]
null
null
null
xueshu/xueshu/settings.py
fsocietyjack/google_xueshu
b20293c865a8d3075b416543eea53adce00540a1
[ "Apache-2.0" ]
null
null
null
xueshu/xueshu/settings.py
fsocietyjack/google_xueshu
b20293c865a8d3075b416543eea53adce00540a1
[ "Apache-2.0" ]
null
null
null
# Scrapy settings for xueshu project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middleware....
45.880435
906
0.800284
0
0
0
0
0
0
0
0
3,867
0.916134
ffbb948d728f4e1e40d9f713346c629fba3183e5
143
py
Python
weaviate/gql/__init__.py
ooxoo-bv/weaviate-python-client
f646a5c16b1c0cc7940b3ffa17a71efb6e96063a
[ "BSD-3-Clause" ]
14
2019-11-04T14:18:21.000Z
2022-03-31T09:11:51.000Z
weaviate/gql/__init__.py
ooxoo-bv/weaviate-python-client
f646a5c16b1c0cc7940b3ffa17a71efb6e96063a
[ "BSD-3-Clause" ]
91
2019-11-04T11:26:42.000Z
2022-03-22T10:22:44.000Z
weaviate/gql/__init__.py
ooxoo-bv/weaviate-python-client
f646a5c16b1c0cc7940b3ffa17a71efb6e96063a
[ "BSD-3-Clause" ]
7
2021-05-14T14:53:42.000Z
2022-03-31T15:09:55.000Z
""" GraphQL module used to create `get` and/or `aggregate` GraphQL requests from Weaviate. """ __all__ = ['Query'] from .query import Query
17.875
87
0.706294
0
0
0
0
0
0
0
0
102
0.713287
4401734f9b9049dfaf10b947e8ca78dc704dd051
1,329
py
Python
core/realm_cmd.py
pg83/mix
1aa964214a239bb80b3a2fa408551929b6b77acc
[ "MIT" ]
12
2021-12-04T09:38:50.000Z
2022-03-22T16:27:30.000Z
core/realm_cmd.py
apatrushev/mix
754fb2f7f308ad8285953aab9c4eba218968c0d4
[ "MIT" ]
1
2022-02-15T23:16:32.000Z
2022-02-15T23:16:32.000Z
core/realm_cmd.py
apatrushev/mix
754fb2f7f308ad8285953aab9c4eba218968c0d4
[ "MIT" ]
1
2022-02-08T18:57:50.000Z
2022-02-08T18:57:50.000Z
import core.utils as cu import core.manager as cm import core.cmd_line as cc def parse_args(ctx): class Args: def __init__(self): args = ctx['args'] self.realm = args[0] ctx['args'] = args[1:] self.config, self.pkgs = cc.parse_pkgs(ctx) return Args() ...
22.15
80
0.598194
194
0.145974
375
0.282167
0
0
0
0
81
0.060948
4401e3beac1ac62391add8303cda7c0a7de04f42
476
py
Python
hash_table/0500_keyboard_row/0500_keyboard_row.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
6
2019-09-16T01:50:44.000Z
2020-09-17T08:52:25.000Z
hash_table/0500_keyboard_row/0500_keyboard_row.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
null
null
null
hash_table/0500_keyboard_row/0500_keyboard_row.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
4
2020-02-07T12:43:16.000Z
2021-04-11T06:38:55.000Z
from typing import List class Solution: def findWords(self, words: List[str]) -> List[str]: set1 = set('qwertyuiop') set2 = set('asdfghjkl') set3 = set('zxcvbnm') res = [] for i in words: x = i.lower() setx = set(x) if setx<=set1 or setx<=...
25.052632
55
0.52521
363
0.762605
0
0
0
0
0
0
59
0.12395
44020d41699d56cd4a9aa0050d5ffab5eb3750ee
340
py
Python
PythonServer/scripts/mongo_viewer.py
watfordxp/Hologram
903d81713a609b7529074c0fed5add39ec2c491f
[ "Apache-2.0" ]
null
null
null
PythonServer/scripts/mongo_viewer.py
watfordxp/Hologram
903d81713a609b7529074c0fed5add39ec2c491f
[ "Apache-2.0" ]
null
null
null
PythonServer/scripts/mongo_viewer.py
watfordxp/Hologram
903d81713a609b7529074c0fed5add39ec2c491f
[ "Apache-2.0" ]
null
null
null
import pymongo from pymongo.database import Database __author__ = 'pryormic' if __name__ == '__main__': mongoClient = pymongo.MongoClient("localhost", 27017) for item in mongoClient.db.matcher.find(): try: del item['profile_picture'] except KeyError: pass prin...
21.25
57
0.632353
0
0
0
0
0
0
0
0
48
0.141176
44055cc8dd4a7b7cba19e2a5900454c473e4c188
52
py
Python
goodok_mlu/trackers/visualize/__init__.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
null
null
null
goodok_mlu/trackers/visualize/__init__.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
null
null
null
goodok_mlu/trackers/visualize/__init__.py
roma-goodok/ml_utils
c1d6630021a519102b5c4e029cecccdd8a0da946
[ "MIT" ]
1
2021-03-29T13:15:02.000Z
2021-03-29T13:15:02.000Z
"" from .utils import (plot_lr_loss, plot_metrics)
13
47
0.75
0
0
0
0
0
0
0
0
2
0.038462
4408550e2698b3c69c89d360e4d3811ead5179c0
307
py
Python
ramda/path.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
null
null
null
ramda/path.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
null
null
null
ramda/path.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
null
null
null
from toolz import curry @curry def path(keys, dict): """Retrieve the value at a given path""" if not keys: raise ValueError("Expected at least one key, got {0}".format(keys)) current_value = dict for key in keys: current_value = current_value[key] return current_value
23.615385
75
0.664495
0
0
0
0
280
0.912052
0
0
76
0.247557
440897e459f198c3b14d3d46c61083b908043a45
547
py
Python
common/data_refinery_common/constants.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
106
2018-03-05T16:24:47.000Z
2022-03-19T19:12:25.000Z
common/data_refinery_common/constants.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
1,494
2018-02-27T17:02:21.000Z
2022-03-24T15:10:30.000Z
common/data_refinery_common/constants.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
15
2019-02-03T01:34:59.000Z
2022-03-29T01:59:13.000Z
from data_refinery_common.utils import get_env_variable LOCAL_ROOT_DIR = get_env_variable("LOCAL_ROOT_DIR", "/home/user/data_store") # We store what salmon ouptuts as its version, therefore for # comparisions or defaults we shouldn't just store the version string, # we need something with the pattern: 'salmon X.X.X' C...
49.727273
81
0.789762
0
0
0
0
0
0
0
0
337
0.616088
4409126fcb48835e2b94769b277223312da2de0b
4,680
py
Python
db.py
seasidefm/botsuro-twitch
de87be41c0ea3b57816eda89cc3fea1169778343
[ "Apache-2.0" ]
null
null
null
db.py
seasidefm/botsuro-twitch
de87be41c0ea3b57816eda89cc3fea1169778343
[ "Apache-2.0" ]
null
null
null
db.py
seasidefm/botsuro-twitch
de87be41c0ea3b57816eda89cc3fea1169778343
[ "Apache-2.0" ]
null
null
null
import datetime import os import string import time from bson.json_util import dumps from json import loads from pymongo import MongoClient from utils import SongRequest, UserPayload TEMP_MOVIE_DETAILS = """ Title: Maison Ikkoku | Synopsis: Maison Ikkoku is a bitter-sweet romantic comedy involving a group of madcap ...
34.666667
100
0.577564
4,106
0.87735
0
0
80
0.017094
3,539
0.756197
1,122
0.239744
440a2c6ef802e9a82756a1ade4c76fb4a056e3ee
20,200
py
Python
hw2/train_pg_v2.py
HuanjunWang/rl_homework
4c387fa7016e980fe1f72824e6ed5b980bf8e717
[ "MIT" ]
null
null
null
hw2/train_pg_v2.py
HuanjunWang/rl_homework
4c387fa7016e980fe1f72824e6ed5b980bf8e717
[ "MIT" ]
null
null
null
hw2/train_pg_v2.py
HuanjunWang/rl_homework
4c387fa7016e980fe1f72824e6ed5b980bf8e717
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import gym import logz import scipy.signal import os import time from multiprocessing import Process import shutil class MyArgument(object): def __init__(self, exp_name='vpg', env_name='CartPole-v1', n_iter=100, ...
44.789357
120
0.536188
11,689
0.578663
0
0
478
0.023663
0
0
1,712
0.084752
440afa545bf83412add26954940014f4b8250c80
664
py
Python
lab1_python_intro/ex5_SOLUTION_conditional_number.py
ggruszczynski/CFDPython
1662ede061fb899d6ed3f89c17877e65f65e521c
[ "CC-BY-3.0" ]
null
null
null
lab1_python_intro/ex5_SOLUTION_conditional_number.py
ggruszczynski/CFDPython
1662ede061fb899d6ed3f89c17877e65f65e521c
[ "CC-BY-3.0" ]
null
null
null
lab1_python_intro/ex5_SOLUTION_conditional_number.py
ggruszczynski/CFDPython
1662ede061fb899d6ed3f89c17877e65f65e521c
[ "CC-BY-3.0" ]
1
2021-02-05T08:00:02.000Z
2021-02-05T08:00:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 4 19:05:22 2020 @author: ggruszczynski """ import numpy as np from numpy import linalg as LA def dot_product(u,v): return u @ v def calc_condition_number_naive(f, u, v, delta): cond_number = LA.norm(f(u+delta, v) - f(u,v)) / LA.norm(f(u,...
20.75
67
0.614458
0
0
0
0
0
0
0
0
185
0.278614
440cd41dd7edeb177805774fe5728b8235f5028b
891
py
Python
heltour/tournament/migrations/0182_auto_20180728_2344.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
41
2016-08-17T19:58:42.000Z
2021-11-08T10:52:07.000Z
heltour/tournament/migrations/0182_auto_20180728_2344.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
257
2016-08-17T22:29:05.000Z
2022-01-13T00:42:05.000Z
heltour/tournament/migrations/0182_auto_20180728_2344.py
zbidwell/heltour
3895142695096a81cc65c3fefb7d4501ed796f46
[ "MIT" ]
31
2016-09-23T23:36:14.000Z
2022-01-14T17:05:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2018-07-28 23:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tournament', '0181_auto_20180610_2123'), ] operations = [ migrations.AlterField( model_name='modrequest...
42.428571
525
0.662177
773
0.867565
0
0
0
0
0
0
529
0.593715
4410ba355da46d3266d0b93f07bb597a2d073c21
1,000
py
Python
paramak/parametric_shapes/rotate_spline_shape.py
billingsley-john/paramak
127d064f7bc0fd26305b4d83776d66b0e12aeeb0
[ "MIT" ]
null
null
null
paramak/parametric_shapes/rotate_spline_shape.py
billingsley-john/paramak
127d064f7bc0fd26305b4d83776d66b0e12aeeb0
[ "MIT" ]
null
null
null
paramak/parametric_shapes/rotate_spline_shape.py
billingsley-john/paramak
127d064f7bc0fd26305b4d83776d66b0e12aeeb0
[ "MIT" ]
null
null
null
from typing import Optional, Tuple from paramak import RotateMixedShape class RotateSplineShape(RotateMixedShape): """Rotates a 3d CadQuery solid from points connected with splines. Args: rotation_angle: The rotation_angle to use when revolving the solid. Defaults to 360.0. stp_...
29.411765
93
0.633
923
0.923
0
0
0
0
0
0
364
0.364
441277bbdeb2f71476a9501404fc0d74022c981a
1,212
py
Python
Implementations/content/various/Python3.py
maheshschand/USACO
52890a77f66f8b779ba2b1da0460b85dd9f38013
[ "CC0-1.0" ]
1,760
2017-05-21T21:07:06.000Z
2022-03-29T13:15:08.000Z
Implementations/content/various/Python3.py
maheshschand/USACO
52890a77f66f8b779ba2b1da0460b85dd9f38013
[ "CC0-1.0" ]
12
2018-01-24T02:41:53.000Z
2022-03-17T13:09:26.000Z
Implementations/content/various/Python3.py
maheshschand/USACO
52890a77f66f8b779ba2b1da0460b85dd9f38013
[ "CC0-1.0" ]
473
2017-07-06T04:53:41.000Z
2022-03-28T13:03:28.000Z
/** * Description: not PyPy3, solves CF Factorisation Collaboration * Source: own * Verification: * https://codeforces.com/contest/1091/problem/G * https://open.kattis.com/problems/catalansquare */ from math import * import sys, random def nextInt(): return int(input()) def nextStrs(): return input().split() ...
22.036364
64
0.632013
0
0
0
0
0
0
0
0
306
0.252475
44130381bb4278ab02d62ff66252d0c7a113341f
1,908
py
Python
src/observer/observer_test.py
LeRyc/Robust-Robotic-Manipulation
0463c55bd689081c119f1fc024f4c22704f91c6f
[ "MIT" ]
1
2020-12-07T08:39:52.000Z
2020-12-07T08:39:52.000Z
src/observer/observer_test.py
LeRyc/Robust-Robotic-Manipulation
0463c55bd689081c119f1fc024f4c22704f91c6f
[ "MIT" ]
null
null
null
src/observer/observer_test.py
LeRyc/Robust-Robotic-Manipulation
0463c55bd689081c119f1fc024f4c22704f91c6f
[ "MIT" ]
null
null
null
import unittest import numpy as np from src.commons import Box from src.observer.base_observer import BaseObserver from src.observer.noise_observer import NoiseObserver from src.observer.shift_observer import ShiftObserver class ObserverTests(unittest.TestCase): """Tests for the all Observer.""" #@unittest.ski...
36.692308
117
0.66457
1,633
0.85587
0
0
0
0
0
0
210
0.110063
4414b94db096b9792beb0261cd50cbcc79200424
3,352
py
Python
applications/fatigue_w_proxy/container4/app/predict.py
Dumpkin1996/clipper
1a08bbdde846c3cfe76236c68548a848f71605e0
[ "Apache-2.0" ]
2
2019-04-24T13:46:28.000Z
2019-05-28T06:59:26.000Z
applications/fatigue_w_proxy/container4/app/predict.py
SimonZsx/clipper
457088be2ebe68c68b94d90389d1308e35b4c844
[ "Apache-2.0" ]
null
null
null
applications/fatigue_w_proxy/container4/app/predict.py
SimonZsx/clipper
457088be2ebe68c68b94d90389d1308e35b4c844
[ "Apache-2.0" ]
4
2019-04-03T11:03:57.000Z
2019-06-26T08:22:38.000Z
import cv2 import numpy as np import os import json import time from datetime import datetime def image_string(image): image_encode=cv2.imencode('.jpg',image)[1] imagelist=image_encode.tolist() image_string=json.dumps(imagelist) return image_string def string_image(imagestring): image_list=json.loa...
28.649573
135
0.579356
0
0
0
0
0
0
0
0
698
0.208234
4415e071d9ad66aaae324d50f83edc703e23afa3
95,661
py
Python
Widget_Resources_rc.py
Prx001/Qt-Login-UI
e895c8714cfdde37d2ec3e56df9f0e7da121199a
[ "MIT" ]
2
2021-09-25T18:53:31.000Z
2021-09-26T00:37:09.000Z
Widget_Resources_rc.py
Prx001/Qt-Login-UI
e895c8714cfdde37d2ec3e56df9f0e7da121199a
[ "MIT" ]
null
null
null
Widget_Resources_rc.py
Prx001/Qt-Login-UI
e895c8714cfdde37d2ec3e56df9f0e7da121199a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x11\xc6\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x01\xc0\x...
63.901804
129
0.727067
0
0
0
0
0
0
0
0
95,036
0.993467
4415e55d3bc9a15e470e4e72ba5fcd50a40432b6
1,544
py
Python
examples/data_expl/stan_data.py
itsens/stan
1632a55bf752bba09f3459e333f2a6970e1148c4
[ "MIT" ]
null
null
null
examples/data_expl/stan_data.py
itsens/stan
1632a55bf752bba09f3459e333f2a6970e1148c4
[ "MIT" ]
null
null
null
examples/data_expl/stan_data.py
itsens/stan
1632a55bf752bba09f3459e333f2a6970e1148c4
[ "MIT" ]
null
null
null
from stan import StanData, StanDict from pprint import pprint if __name__ == '__main__': data_1 = StanData() data_1[1499763761] = StanDict(metric_1=1) # TODO: Double indexing if adding as StanDict data_1[1499763761]['metric_2'] = 2 data_1[1499763761]['metric_3'] = 3 data_1.append(1499763762, Stan...
31.510204
92
0.591969
0
0
0
0
0
0
0
0
520
0.336788
441a6673a2780d5bb40a0a9b50d127826accc76e
701
py
Python
utils/image_utils.py
sciforce/phones-las
f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b
[ "Apache-2.0" ]
35
2019-07-04T10:13:29.000Z
2022-02-22T03:41:39.000Z
utils/image_utils.py
sciforce/phones-las
f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b
[ "Apache-2.0" ]
7
2019-11-04T15:34:03.000Z
2020-06-21T04:30:22.000Z
utils/image_utils.py
sciforce/phones-las
f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b
[ "Apache-2.0" ]
5
2019-07-15T20:09:46.000Z
2021-08-05T09:55:29.000Z
import tensorflow as tf __all__ = [ 'create_attention_images', ] """Reference: https://github.com/tensorflow/nmt/blob/master/nmt/attention_model.py""" def create_attention_images(final_context_state): try: attention_images = final_context_state.alignment_history.stack() except AttributeError: ...
29.208333
85
0.724679
0
0
0
0
0
0
0
0
246
0.350927
441af188b0e77d5b4cb9c854158c2c022f4de46b
2,604
py
Python
cryptofeed_werks/exchanges/bitfinex/base.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/exchanges/bitfinex/base.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/exchanges/bitfinex/base.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
from datetime import datetime from decimal import Decimal from typing import Optional import numpy as np from cryptofeed_werks.controllers import NonSequentialIntegerMixin from cryptofeed_werks.models import Symbol from .api import get_bitfinex_api_timestamp, get_trades class BitfinexMixin(NonSequentialIntegerMixi...
33.384615
86
0.665515
2,328
0.893666
0
0
0
0
0
0
1,017
0.390403
441d5ab56b037273d32e259b53e92f350b0a92db
893
py
Python
stubbs/constants.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
stubbs/constants.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
stubbs/constants.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
from reclaimer.constants import * from reclaimer.util import fourcc_to_int # maps tag class four character codes(fccs) in # their string encoding to their int encoding. stubbs_tag_class_fcc_to_be_int = {} stubbs_tag_class_fcc_to_le_int = {} # maps tag class four character codes(fccs) in # their int encoding to...
34.346154
69
0.771557
0
0
0
0
0
0
0
0
223
0.24972
441fce3d830865a276e3f3d84345a049156d47c8
185
py
Python
app/__init__.py
MaggieChege/Panda-
a23ac528170c22335c0c2f1da98c440331931358
[ "MIT" ]
null
null
null
app/__init__.py
MaggieChege/Panda-
a23ac528170c22335c0c2f1da98c440331931358
[ "MIT" ]
null
null
null
app/__init__.py
MaggieChege/Panda-
a23ac528170c22335c0c2f1da98c440331931358
[ "MIT" ]
null
null
null
from flask import Flask,Blueprint def create_app(config_name): app=Flask(__name__) from app.api.v2 import blue as v2 app.register_blueprint(v2) return app
13.214286
37
0.686486
0
0
0
0
0
0
0
0
0
0
441ff495ccacaddb8703705c1a18f78f8327fb5b
3,276
py
Python
inheritors.py
master9robot/python_lesson
d50466ebde95529ac2b4011d671b4ccebf121dc3
[ "MIT" ]
null
null
null
inheritors.py
master9robot/python_lesson
d50466ebde95529ac2b4011d671b4ccebf121dc3
[ "MIT" ]
null
null
null
inheritors.py
master9robot/python_lesson
d50466ebde95529ac2b4011d671b4ccebf121dc3
[ "MIT" ]
null
null
null
#An iterator is an object that contains a countable number of values. #An iterator is an object that can be iterated upon, meaning that you can traverse through all the values. #Technically, in Python, an iterator is an object which implements the iterator protocol, which consist of the methods __iter__() and __next...
28.486957
181
0.728632
333
0.101648
0
0
0
0
0
0
2,109
0.643773
442337ece147504cb1df39981a0b29a4670fe631
530
py
Python
PDF/pymupdf_get_bookmarks.py
MartinThoma/algorithms
4347a9b7bf54ef378d16d26ef9e357ddc710664b
[ "MIT" ]
209
2015-01-02T03:47:12.000Z
2022-03-06T16:54:47.000Z
PDF/pymupdf_get_bookmarks.py
Kerwin-Xie/algorithms
4347a9b7bf54ef378d16d26ef9e357ddc710664b
[ "MIT" ]
3
2015-12-06T14:40:34.000Z
2021-03-22T17:40:24.000Z
PDF/pymupdf_get_bookmarks.py
Kerwin-Xie/algorithms
4347a9b7bf54ef378d16d26ef9e357ddc710664b
[ "MIT" ]
114
2015-01-31T08:37:10.000Z
2022-02-23T04:42:28.000Z
# Type annotations are pretty awesome: # https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d from typing import Dict import fitz # pip install pymupdf def get_bookmarks(filepath: str) -> Dict[int, str]: # WARNING! One page can have multiple bookmarks! bookmarks = {} with fitz...
27.894737
81
0.669811
0
0
0
0
0
0
0
0
228
0.426966
4423695274e7e7ebd5ce1d2a0f4802ad2c73958f
8,346
py
Python
mcnf_do_test.py
SuReLI/Dynamic_mcnf_paper_code
86a07ac31feac725d02ec55d553d20f12bb355c5
[ "CNRI-Python" ]
null
null
null
mcnf_do_test.py
SuReLI/Dynamic_mcnf_paper_code
86a07ac31feac725d02ec55d553d20f12bb355c5
[ "CNRI-Python" ]
null
null
null
mcnf_do_test.py
SuReLI/Dynamic_mcnf_paper_code
86a07ac31feac725d02ec55d553d20f12bb355c5
[ "CNRI-Python" ]
1
2022-03-01T09:53:20.000Z
2022-03-01T09:53:20.000Z
import random import time from mcnf_dynamic import * from instance_mcnf import generate_instance, mutate_instance from k_shortest_path import k_shortest_path_all_destination from launch_dataset_dynamic import analyse_results_list def update_graph_capacity(graph, path, demand, reverse_graph=False): # deecrease th...
57.958333
320
0.775222
0
0
0
0
0
0
0
0
2,195
0.263
44252fea2299758e673934a1ecda9362f2441cf3
2,058
py
Python
muddery/commands/player.py
MarsZone/DreamLand
87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
muddery/commands/player.py
MarsZone/DreamLand
87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
muddery/commands/player.py
MarsZone/DreamLand
87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
""" This is adapt from evennia/evennia/commands/default/player.py. The licence of Evennia can be found in evennia/LICENSE.txt. """ import time from django.conf import settings from evennia.server.sessionhandler import SESSIONS from evennia.commands.command import Command from evennia.utils import utils, create, search...
32.15625
90
0.64723
1,070
0.519922
0
0
0
0
0
0
883
0.429057
442618fc9c28b2ce42e414759738c3f72d214758
20,002
py
Python
python_utilities/parallel.py
sdaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
2
2020-04-13T20:17:36.000Z
2020-05-12T01:13:12.000Z
python_utilities/parallel.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
5
2015-10-20T22:57:51.000Z
2017-09-07T01:10:23.000Z
python_utilities/parallel.py
sethaxen/python_utilities
7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb
[ "MIT" ]
3
2015-08-17T17:55:41.000Z
2018-09-19T13:56:42.000Z
"""Tools to aid in parallelizing a function call. Default method is MPI, if available. Fallback is concurrent.futures. If all else fails, final fallback is serial. Author: Seth Axen Email: seth.axen@gmail.com """ import os import sys import logging from copy import copy import multiprocessing try: from itertools ...
38.026616
114
0.545945
16,197
0.809769
7,434
0.371663
0
0
0
0
6,745
0.337216
44270b1635eefee664fb5fb4985c764d1d994824
187
py
Python
AT_Basic/AT_readexternalfile.py
huertatipografica/huertatipografica-fl-scripts
f048705c217132b3f103a773aaf20033874f6579
[ "Apache-2.0" ]
1
2020-02-06T22:18:07.000Z
2020-02-06T22:18:07.000Z
AT_Basic/AT_readexternalfile.py
huertatipografica/huertatipografica-fl-scripts
f048705c217132b3f103a773aaf20033874f6579
[ "Apache-2.0" ]
null
null
null
AT_Basic/AT_readexternalfile.py
huertatipografica/huertatipografica-fl-scripts
f048705c217132b3f103a773aaf20033874f6579
[ "Apache-2.0" ]
null
null
null
#FLM: AT URL file import urllib f = urllib.urlopen('http://www.andrestorresi.com.ar/test.txt') readdata = f.read() readdata2 = unicode( readdata, "iso-8859-1" ) f.close() print readdata2
23.375
62
0.721925
0
0
0
0
0
0
0
0
71
0.379679
44274d06c13806c20cb7ccbcad1c6195b3fdd749
405
py
Python
Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py
ck76/awesome-cs
48cba4081dc5290f07e305850b9a3a7e8a590b64
[ "Apache-2.0" ]
1
2021-11-16T13:37:41.000Z
2021-11-16T13:37:41.000Z
Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py
ck76/awesome-cs
48cba4081dc5290f07e305850b9a3a7e8a590b64
[ "Apache-2.0" ]
null
null
null
Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py
ck76/awesome-cs
48cba4081dc5290f07e305850b9a3a7e8a590b64
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2019/3/10 5:21 PM # @Author : xiaoliji # @Email : yutian9527@gmail.com """ 1~n整数中1出现的次数。 >>> countDigitOne(12) 5 """ def countDigitOne(n: int) -> int: counter, i = 0, 1 while i <= n: divider = i * 10 counter += (n // d...
19.285714
75
0.501235
0
0
0
0
0
0
0
0
204
0.48227
4428f0e65f1454c8ca62ff07f9d8c0d8f778e7d4
22,957
py
Python
CoMPILE_github/test_ranking.py
TmacMai/CoMPILE_Inductive_Knowledge_Graph
072885012893a50b47cdee17f2e47f671e33bc00
[ "MIT" ]
14
2020-12-07T16:36:30.000Z
2022-03-05T12:31:30.000Z
CoMPILE_github/test_ranking.py
TmacMai/CoMPILE_Inductive_Knowledge_Graph
072885012893a50b47cdee17f2e47f671e33bc00
[ "MIT" ]
3
2021-04-06T01:22:32.000Z
2022-03-12T01:39:12.000Z
CoMPILE_github/test_ranking.py
TmacMai/CoMPILE_Inductive_Knowledge_Graph
072885012893a50b47cdee17f2e47f671e33bc00
[ "MIT" ]
4
2021-03-10T05:10:05.000Z
2022-03-05T12:32:45.000Z
import os import random import argparse import logging import json import time import multiprocessing as mp import scipy.sparse as ssp from tqdm import tqdm import networkx as nx import torch import numpy as np import dgl #os.environ["CUDA_VISIBLE_DEVICES"]="1" def process_files(files, saved_relation2id, add_traspose...
42.200368
200
0.660191
0
0
753
0.0328
0
0
0
0
4,152
0.18086
4428fa67a48dd401185f9736e5599509b0b9fc95
652
py
Python
scheduler/scheduler.py
ericlearning/General-I2I
ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9
[ "MIT" ]
1
2019-12-20T15:08:18.000Z
2019-12-20T15:08:18.000Z
scheduler/scheduler.py
ericlearning/General-I2I
ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9
[ "MIT" ]
null
null
null
scheduler/scheduler.py
ericlearning/General-I2I
ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9
[ "MIT" ]
null
null
null
import math class LinearDecay(): def __init__(self, opt, optimizer, iter_num): self.optimizer = optimizer self.init = opt.lr self.tot = iter_num * opt.epoch self.st = iter_num * opt.decay_start_epoch if(self.st < 0): self.st = self.tot self.cnt = 0 self.state_dict = self.optimizer.state_dict() def ste...
25.076923
81
0.662577
639
0.980061
0
0
0
0
0
0
8
0.01227
4429767250a51905f861cf7049625276399f4004
23,698
py
Python
pm.py
oscarmonllor99/dark_matter_study
b301cc2a4aa33d8b044b99da6310483814df55f1
[ "MIT" ]
null
null
null
pm.py
oscarmonllor99/dark_matter_study
b301cc2a4aa33d8b044b99da6310483814df55f1
[ "MIT" ]
null
null
null
pm.py
oscarmonllor99/dark_matter_study
b301cc2a4aa33d8b044b99da6310483814df55f1
[ "MIT" ]
null
null
null
import numpy as np from numba import jit import random import time import argparse ############################################## ######### PARÁMETROS FÍSICOS ################ ############################################## Q = 1.3 NUM_PARTICLES = 100000 #Número de partículas NUM_PARTICLES_BULGE = int(0.14 ...
34.85
113
0.433243
0
0
0
0
9,123
0.384645
0
0
4,332
0.182646
4429e980a041daa0f6ae5470ca29efeec75f048a
1,526
py
Python
08_apples_and_bananas/apples.py
trev-f/tiny_python_projects
20b05f1def834bc9deda58ebdb5cb1d7fe647e45
[ "MIT" ]
null
null
null
08_apples_and_bananas/apples.py
trev-f/tiny_python_projects
20b05f1def834bc9deda58ebdb5cb1d7fe647e45
[ "MIT" ]
null
null
null
08_apples_and_bananas/apples.py
trev-f/tiny_python_projects
20b05f1def834bc9deda58ebdb5cb1d7fe647e45
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : treevooor <treevooor@localhost> Date : 2021-11-09 Purpose: Apples and bananas """ import argparse import os # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Apple...
24.222222
70
0.467235
0
0
0
0
0
0
0
0
468
0.306684
442b111ca91187ce9c255240e5dfebe65f40b89f
348
py
Python
configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py
slchenchn/rsaicp_CD
08723b6da125b4ebe7f4777be8ef14a1b5746523
[ "Apache-2.0" ]
null
null
null
configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py
slchenchn/rsaicp_CD
08723b6da125b4ebe7f4777be8ef14a1b5746523
[ "Apache-2.0" ]
null
null
null
configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py
slchenchn/rsaicp_CD
08723b6da125b4ebe7f4777be8ef14a1b5746523
[ "Apache-2.0" ]
1
2022-03-21T07:37:24.000Z
2022-03-21T07:37:24.000Z
''' Author: Shuailin Chen Created Date: 2021-07-06 Last Modified: 2021-08-18 content: siamese HR18 with background splitting ''' _base_ = [ './siam_hr18_512x512_40k_s2looking.py' ] model = dict( decode_head=dict( post_process=dict( type='SetConstValue', position=0, ...
18.315789
48
0.603448
0
0
0
0
0
0
0
0
182
0.522989
442b854ea63b2f9922fd81c1650309f6e282398b
221
py
Python
nsd1806/python/day05/mydict.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1806/python/day05/mydict.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1806/python/day05/mydict.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
adict = {'name': 'bob', 'age': 23} print('bob' in adict) # bob是字典的key么? print('name' in adict) # True print(len(adict)) # 2 for key in adict: print('%s: %s' % (key, adict[key])) print('%(name)s: %(age)s' % adict)
24.555556
39
0.574661
0
0
0
0
0
0
0
0
89
0.381974
442c17486ddf7abefd979fe9ad65f0fda830f7ae
1,774
py
Python
examples/streak/plot.py
bjornaa/ladim2
f6c1be9028ca54370ce33dde25b005d5b0bb4677
[ "MIT" ]
null
null
null
examples/streak/plot.py
bjornaa/ladim2
f6c1be9028ca54370ce33dde25b005d5b0bb4677
[ "MIT" ]
null
null
null
examples/streak/plot.py
bjornaa/ladim2
f6c1be9028ca54370ce33dde25b005d5b0bb4677
[ "MIT" ]
null
null
null
"""Plot a snapshot of the particle distribution""" # -------------------------------- # Bjørn Ådlandsvik <bjorn@ho.no> # Institute of Marine Research # November 2020 # -------------------------------- import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset from postladim import ParticleFile #...
22.74359
84
0.620068
0
0
0
0
0
0
0
0
631
0.355293
442c5ef29de8908bad5f89548198064f8946d2de
1,447
py
Python
src/weapon.py
Jakub21/Disk-Game
bcfc11137f8c0c0d996cfdbfe45224cf0ed060ce
[ "MIT" ]
null
null
null
src/weapon.py
Jakub21/Disk-Game
bcfc11137f8c0c0d996cfdbfe45224cf0ed060ce
[ "MIT" ]
null
null
null
src/weapon.py
Jakub21/Disk-Game
bcfc11137f8c0c0d996cfdbfe45224cf0ed060ce
[ "MIT" ]
null
null
null
class Weapon: '''Create a weapon Init Parameters: damage [int] How much damage this weapon deals rate [int] How much ticks it takes for this weapon to prepare for next shoot range [int] Range of the weapon ignore_armor [bool] If this weapon ignores armor (armor value ...
37.102564
79
0.617139
1,446
0.999309
0
0
0
0
0
0
734
0.507256
442dae1169b8f000e9fec9855121b98524da0cb8
1,945
py
Python
tests/test-data/mock.py
mr-c/CTDConverter
84c58674405d24cc21e765367fa089fa31a5df0f
[ "MIT" ]
null
null
null
tests/test-data/mock.py
mr-c/CTDConverter
84c58674405d24cc21e765367fa089fa31a5df0f
[ "MIT" ]
null
null
null
tests/test-data/mock.py
mr-c/CTDConverter
84c58674405d24cc21e765367fa089fa31a5df0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # little mock app to handle ouput file parameters # i.e. to create them import os import shutil import sys from CTDopts.CTDopts import CTDModel, _InFile, _OutFile # from argparse import ArgumentParser # parser = ArgumentParser(prog="mock.py", description="MOCK", add_help=True) # parser.add_arg...
35.363636
105
0.560925
0
0
0
0
0
0
0
0
762
0.391774
442e571ab100fe4f8465f2178b6129b91ab30a27
1,323
py
Python
cubes_lite/sql/request.py
notexistence/cubes_lite
2cbc54509e6dc8a529c9f33fd39d0f659d6a5647
[ "MIT" ]
null
null
null
cubes_lite/sql/request.py
notexistence/cubes_lite
2cbc54509e6dc8a529c9f33fd39d0f659d6a5647
[ "MIT" ]
null
null
null
cubes_lite/sql/request.py
notexistence/cubes_lite
2cbc54509e6dc8a529c9f33fd39d0f659d6a5647
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import collections from cubes_lite.query import Request, Response __all__ = ( 'ListSQLRequest', 'ListSQLResponse', 'OneRowSQLRequest', 'OneRowSQLResponse', ) class ListSQLResponse(Response): def __init__(self, *args, **kwargs): ...
21.33871
62
0.59486
1,068
0.807256
390
0.294785
58
0.04384
0
0
93
0.070295
443047ead0ffbfc30ef88ed167c3c08722403b2c
1,166
py
Python
render.py
22preich/BlenderNetworkRender
53b4f036c3adea31d947d64aa1ed0983a29c8e07
[ "MIT" ]
1
2021-09-12T06:48:50.000Z
2021-09-12T06:48:50.000Z
render.py
22preich/BlenderNetworkRender
53b4f036c3adea31d947d64aa1ed0983a29c8e07
[ "MIT" ]
null
null
null
render.py
22preich/BlenderNetworkRender
53b4f036c3adea31d947d64aa1ed0983a29c8e07
[ "MIT" ]
null
null
null
import bpy import sys dir = "C:/Users/foggy/Appdata/roaming/python37/site-packages" sys.path.append(dir) from flask import Flask, request, render_template from werkzeug.utils import secure_filename import eventlet from eventlet import wsgi app = Flask(__name__) @app.route('/') def hello_world(): return render_te...
27.761905
126
0.704117
0
0
0
0
322
0.276158
0
0
276
0.236707
4431c29408229b2b646051a0283bc112013465f4
2,292
py
Python
tests/test_docker_stats.py
KristobalJunta/docker-stats-graph
724d6d71d420bf2e03a1e5ae2bf604ff5d40f69f
[ "MIT" ]
8
2021-02-19T23:08:49.000Z
2022-02-09T14:25:21.000Z
tests/test_docker_stats.py
KristobalJunta/docker-stats-graph
724d6d71d420bf2e03a1e5ae2bf604ff5d40f69f
[ "MIT" ]
null
null
null
tests/test_docker_stats.py
KristobalJunta/docker-stats-graph
724d6d71d420bf2e03a1e5ae2bf604ff5d40f69f
[ "MIT" ]
2
2021-02-19T07:48:01.000Z
2021-06-01T14:20:34.000Z
import os import unittest import warnings from src import ROOT_PATH from src.dockerstats import DockerStats class ParserTest(unittest.TestCase): def setUp(self): path = os.path.join(ROOT_PATH, "tests", "resources", "data.csv") self.ds = DockerStats(path) def test_dataframe_creation(self): ...
35.261538
73
0.652269
2,131
0.929756
0
0
0
0
0
0
244
0.106457
4433556a7cfa388b2c20801fb5e687c8efe75005
3,889
py
Python
lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py
RomainClaret/msc.ml.labs
4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5
[ "MIT" ]
null
null
null
lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py
RomainClaret/msc.ml.labs
4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5
[ "MIT" ]
null
null
null
lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py
RomainClaret/msc.ml.labs
4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # 26.04.21 # Assignment lab 06 # Master Class: Machine Learning (5MI2018) # Faculty of Economic Science # University of Neuchatel (Switzerland) # Lab 6, see ML21_Exercise_6.pdf for more information # https://github.com/RomainClaret/msc.ml.labs # Authors: # - Romain Claret @RomainClaret # - Sy...
31.877049
109
0.735665
0
0
0
0
0
0
0
0
1,676
0.430959
44339024d54ca9de139f09917b4ba6a7b238c654
17,294
py
Python
plot_residuals_location.py
chriskjou/opennmt-inspection
c70e1f3665ed29b20abcf464e4c73aa7e228a046
[ "MIT" ]
2
2019-03-18T15:54:32.000Z
2019-03-22T02:21:38.000Z
plot_residuals_location.py
chriskjou/opennmt-inspection
c70e1f3665ed29b20abcf464e4c73aa7e228a046
[ "MIT" ]
6
2020-01-28T22:48:37.000Z
2020-08-17T16:09:03.000Z
plot_residuals_location.py
chriskjou/opennmt-inspection
c70e1f3665ed29b20abcf464e4c73aa7e228a046
[ "MIT" ]
1
2019-08-04T17:36:22.000Z
2019-08-04T17:36:22.000Z
import numpy as np import pickle import sys import pandas as pd import seaborn as sns import matplotlib.pyplot as plt plt.switch_backend('agg') import argparse import os from tqdm import tqdm import math import helper map_dict = { 'avg': "Average", 'min': "Minimum", 'max': "Maximum", 'last': "Last", "spanish": "...
48.853107
237
0.6966
0
0
0
0
0
0
0
0
7,158
0.413901
44348a202532b675204c5d619a14b8c76d684034
3,061
py
Python
13_week/pr12_1 .py
WoojaeJang/AppliedOptimization-Gurobi
067e4e5a0391de74f673f935b0ba765b037a4149
[ "AFL-1.1" ]
null
null
null
13_week/pr12_1 .py
WoojaeJang/AppliedOptimization-Gurobi
067e4e5a0391de74f673f935b0ba765b037a4149
[ "AFL-1.1" ]
null
null
null
13_week/pr12_1 .py
WoojaeJang/AppliedOptimization-Gurobi
067e4e5a0391de74f673f935b0ba765b037a4149
[ "AFL-1.1" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 26 10:28:54 2021 @author: woojae-macbook13 """ from pandas import* import pandas as pd import numpy as np # path = ".\\" filename = "pr1.xlsx" # dataset = pd.read_excel(path+filename) dataset = pd.read_excel(filename) order = "고객" itemcode = "it...
20.965753
100
0.601764
0
0
0
0
0
0
0
0
1,346
0.371926
4434c59b9a9448ef9ebd0ccd1c34428d0cf3497c
879
py
Python
admin/migrations/0005_auto_20180416_1045.py
adelsonllima/djangoplus
a4ce50bf8231a0d9a4a40751f0d076c2e9931f44
[ "BSD-3-Clause" ]
21
2017-10-08T23:19:47.000Z
2020-01-16T20:02:08.000Z
admin/migrations/0005_auto_20180416_1045.py
adelsonllima/djangoplus
a4ce50bf8231a0d9a4a40751f0d076c2e9931f44
[ "BSD-3-Clause" ]
6
2020-06-03T05:30:52.000Z
2022-01-13T00:44:26.000Z
admin/migrations/0005_auto_20180416_1045.py
adelsonllima/djangoplus
a4ce50bf8231a0d9a4a40751f0d076c2e9931f44
[ "BSD-3-Clause" ]
9
2017-10-09T22:58:31.000Z
2021-11-20T15:20:18.000Z
# Generated by Django 2.0.3 on 2018-04-16 10:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('admin', '0004_auto_20180416_1037'), ] operations = [ migrations.RemoveField( model_name='organizationrole', name='organizati...
22.538462
47
0.523322
794
0.903299
0
0
0
0
0
0
201
0.228669
443586b918e80fa19a7a9248966f3748b23543dc
468
py
Python
loso/util.py
fangpenlin/loso
8677ed754c793887dde10feb9a13dce25ea09f58
[ "BSD-3-Clause" ]
28
2017-03-21T09:04:41.000Z
2021-06-13T06:19:51.000Z
loso/util.py
JoyCTsai/loso
8677ed754c793887dde10feb9a13dce25ea09f58
[ "BSD-3-Clause" ]
null
null
null
loso/util.py
JoyCTsai/loso
8677ed754c793887dde10feb9a13dce25ea09f58
[ "BSD-3-Clause" ]
8
2017-07-23T06:04:49.000Z
2021-12-25T02:27:45.000Z
def ngram(n, terms): """An iterator for iterating n-gram terms from a text, for example: >>> list(ngram(2, ['Today', 'is', 'my', 'day'])) [['Today', 'is'], ['is', 'my'], ['my', 'day']] >>> list(ngram(3, ['Today', 'is', 'my', 'day'])) [['Today', 'is', 'my'], ['is', 'my', 'day']] ...
29.25
71
0.472222
0
0
391
0.83547
0
0
0
0
308
0.65812
44360d34265fd7e06496bfa898e736b2d0b350b2
52,494
py
Python
test_main.py
zlijingtao/DAC20_reconstruction
c928cda1c8e492c05110d6c219c1ed529924e127
[ "Apache-2.0" ]
2
2021-03-13T19:27:04.000Z
2021-11-17T17:14:19.000Z
test_main.py
zlijingtao/DAC20_reconstruction
c928cda1c8e492c05110d6c219c1ed529924e127
[ "Apache-2.0" ]
null
null
null
test_main.py
zlijingtao/DAC20_reconstruction
c928cda1c8e492c05110d6c219c1ed529924e127
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import absolute_import import os import sys import shutil import time import random import argparse import torch import torch.backends.cudnn as cudnn import torchvision.datasets as dset import torchvision.transforms as transforms import matplotlib.pyplot as plt from torc...
48.560592
364
0.600792
0
0
0
0
0
0
0
0
13,266
0.252715
443700d8d4a4dfd52eed31c8fee8a0bf946c135c
6,753
py
Python
fbnet/command_runner/device_info.py
singhaditya28/FCR
d582cc38a87940f799186e1a35637343b4ced3bd
[ "MIT" ]
null
null
null
fbnet/command_runner/device_info.py
singhaditya28/FCR
d582cc38a87940f799186e1a35637343b4ced3bd
[ "MIT" ]
null
null
null
fbnet/command_runner/device_info.py
singhaditya28/FCR
d582cc38a87940f799186e1a35637343b4ced3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools import re from collections import namedtuple from .base_service import Servi...
28.858974
79
0.606101
6,244
0.924626
0
0
907
0.134311
561
0.083074
2,252
0.333481
443924889fb2bc02902f4276bdfdab0574a5167f
493
py
Python
lbry/lbry/wallet/__init__.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
lbry/lbry/wallet/__init__.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
lbry/lbry/wallet/__init__.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
__node_daemon__ = 'lbrycrdd' __node_cli__ = 'lbrycrd-cli' __node_bin__ = '' __node_url__ = ( 'https://github.com/lbryio/lbrycrd/releases/download/v0.17.2.1/lbrycrd-linux.zip' # 'https://github.com/lbryio/lbrycrd/releases/download/v0.17.3.1/lbrycrd-linux-1731.zip' ) __spvserver__ = 'lbry.wallet.server.coin.LBCRe...
37.923077
92
0.78499
0
0
0
0
0
0
0
0
230
0.466531
443a0fbbf12f2c065e3a541ea080bc7fd07fd5a3
6,797
py
Python
logdweb/views.py
hiidef/logdweb
c80d47f4c5759cadeb3088b9f7fa093c30e11696
[ "MIT" ]
1
2015-08-30T02:36:13.000Z
2015-08-30T02:36:13.000Z
logdweb/views.py
hiidef/logdweb
c80d47f4c5759cadeb3088b9f7fa093c30e11696
[ "MIT" ]
null
null
null
logdweb/views.py
hiidef/logdweb
c80d47f4c5759cadeb3088b9f7fa093c30e11696
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """logdweb admin views.""" try: import simplejson as json except ImportError: import json import time from django.core.urlresolvers import reverse from django.http import HttpResponse, Http404, HttpResponseRedirect from django_jinja2 import render_to_response, ...
35.586387
88
0.692364
0
0
0
0
5,454
0.802413
0
0
999
0.146977
443b502ac58401b00845def4467d9edb1103c525
432
py
Python
iocage/tests/functional_tests/0003_ioc_fetch_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/tests/functional_tests/0003_ioc_fetch_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/tests/functional_tests/0003_ioc_fetch_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
1
2022-03-06T10:09:18.000Z
2022-03-06T10:09:18.000Z
import pytest from iocage.lib.ioc_fetch import IOCFetch require_root = pytest.mark.require_root require_zpool = pytest.mark.require_zpool @require_root @require_zpool def test_fetch(release, server, user, password, auth, root_dir, http, _file, hardened): IOCFetch(release, server, user, password, a...
27
76
0.731481
0
0
0
0
290
0.671296
0
0
0
0
443b816e6fab5e5910eb3a6e77ce61c180e68e96
537
py
Python
scripts/nightly/settings/stage.py
agrc/deq-enviro
32cb7afd5e57fc6e2363492c95f042a305e6da3d
[ "MIT" ]
3
2015-12-27T07:28:13.000Z
2021-08-05T16:55:41.000Z
scripts/nightly/settings/stage.py
agrc/deq-enviro
32cb7afd5e57fc6e2363492c95f042a305e6da3d
[ "MIT" ]
133
2015-01-01T18:57:03.000Z
2022-03-25T13:59:53.000Z
scripts/nightly/settings/stage.py
agrc/deq-enviro
32cb7afd5e57fc6e2363492c95f042a305e6da3d
[ "MIT" ]
1
2017-06-26T16:14:59.000Z
2017-06-26T16:14:59.000Z
from .dev import * # overrides for stage environment mapServiceJson = 'http://localhost:6080/arcgis/rest/services/DEQEnviro/MapService/MapServer?f=json' securedServiceJson = 'http://localhost:6080/arcgis/rest/services/DEQEnviro/Secure/MapServer?f=json' webdata = r'C:\inetpub\wwwroot\deqenviro\webdata' sgid = {'ENVIRON...
53.7
99
0.744879
0
0
0
0
0
0
0
0
351
0.653631
443d9413d2bd1afe7dab3a1392c07a5c51c65936
4,999
py
Python
moves/auth.py
iwharris/moves-transponder
df72fd0f6a0dd77997376c2979c5c00edb7c6bab
[ "MIT" ]
null
null
null
moves/auth.py
iwharris/moves-transponder
df72fd0f6a0dd77997376c2979c5c00edb7c6bab
[ "MIT" ]
null
null
null
moves/auth.py
iwharris/moves-transponder
df72fd0f6a0dd77997376c2979c5c00edb7c6bab
[ "MIT" ]
null
null
null
from __future__ import print_function import requests import time import sys from lxml import html import urlparse from util import * __author__ = 'iwharris' def request_auth_desktop(base_url, client_id, client_secret, scope, redirect_uri, state=''): """Makes an auth request to the Moves API. scope may be '...
37.586466
161
0.656931
0
0
0
0
0
0
0
0
1,575
0.315063
443e527fc0cc1d91bb3a8b7413b0fe5d01bf9dbe
1,011
py
Python
env.py
claywahlstrom/pack
86b70198a4b185611c2ce3d29df99dd01233a6ac
[ "BSD-2-Clause" ]
2
2019-05-04T09:32:15.000Z
2021-02-08T08:38:23.000Z
env.py
claywahlstrom/pack
86b70198a4b185611c2ce3d29df99dd01233a6ac
[ "BSD-2-Clause" ]
null
null
null
env.py
claywahlstrom/pack
86b70198a4b185611c2ce3d29df99dd01233a6ac
[ "BSD-2-Clause" ]
null
null
null
""" Runtime environment settings """ import os as _os import sys as _sys def is_idle() -> bool: """Returns True if the script is running within IDLE, False otherwise""" return 'idlelib' in _sys.modules def is_powershell() -> bool: """Returns True if the script is running within PowerShell, False otherw...
26.605263
91
0.677547
0
0
0
0
0
0
0
0
599
0.592483
443e9ab7bbad66ea70cd4a40efdfc77e47bdb161
63
py
Python
test.py
emmatysinger/test
e1946f46b492370bad07c601c1d12d62043a8461
[ "MIT" ]
null
null
null
test.py
emmatysinger/test
e1946f46b492370bad07c601c1d12d62043a8461
[ "MIT" ]
null
null
null
test.py
emmatysinger/test
e1946f46b492370bad07c601c1d12d62043a8461
[ "MIT" ]
null
null
null
# python file: test.py print("This is my first python program")
31.5
40
0.746032
0
0
0
0
0
0
0
0
55
0.873016
443ec98bcd2dc6957fa92fd540a750b1e3acc89e
5,907
py
Python
Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
1
2021-04-20T14:47:40.000Z
2021-04-20T14:47:40.000Z
Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 22 21:22:58 2018 @author: bruce """ import pandas as pd import os import numpy as np from scipy import fftpack from scipy import signal import matplotlib.pyplot as plt pkl_file=pd.read_pickle('/Users/bruce/Documents/uOttawa/Project/audio_brainst...
23.164706
147
0.716946
0
0
394
0.066701
0
0
0
0
4,207
0.712206
443fa32c189f00023a8d9b89e8fc6e723ffab926
4,511
py
Python
mnist_model.py
shudong-zhang/Train-generator
65688c36ffcaba688e96bf3932db07ab658ea99d
[ "MIT" ]
null
null
null
mnist_model.py
shudong-zhang/Train-generator
65688c36ffcaba688e96bf3932db07ab658ea99d
[ "MIT" ]
null
null
null
mnist_model.py
shudong-zhang/Train-generator
65688c36ffcaba688e96bf3932db07ab658ea99d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F # 说明:target1和target2 是两个目标模型,后面的mnists1和mnists2 是用于训练vae的模型。 # 我们攻击的时候,就选择target1和target2就行,不要选择后面两个模型。 # target1的模型权重就是那个mnist_gpu,target2的模型权重是mnist_models/checkpoints/mnist_target_2_best.pth.tar class MNIST_target_1(nn.Module): def __init__(self...
33.917293
113
0.530924
4,239
0.912594
0
0
0
0
0
0
796
0.171367
444109ce8cf31f72f2c3c1602e9ba493a22264fc
339
py
Python
function/news_text.py
zoohee/SqueezeNews
4f51b307c05259fb567cbe2027fed09a354b4773
[ "Apache-2.0" ]
null
null
null
function/news_text.py
zoohee/SqueezeNews
4f51b307c05259fb567cbe2027fed09a354b4773
[ "Apache-2.0" ]
7
2021-11-01T08:41:33.000Z
2021-11-06T20:42:41.000Z
function/news_text.py
zoohee/SqueezeNews
4f51b307c05259fb567cbe2027fed09a354b4773
[ "Apache-2.0" ]
3
2021-11-01T14:58:55.000Z
2022-03-21T07:37:05.000Z
import newspaper from newspaper import Article # url = 'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/' def text_extraction(url): article = Article(url) article.download() article.parse() text = article.text text = text.replace("\n\n"," ") # '\n' -> '' ...
21.1875
89
0.631268
0
0
0
0
0
0
0
0
110
0.324484
4442d92247cbfe0d0e84fd864ec88c5b85026c4b
860
py
Python
Error_Correction_in_Reads.py
Esprit-Nobel/ROSALIND
ec964f6d9cc5d97339106c89df865fb105251928
[ "MIT" ]
null
null
null
Error_Correction_in_Reads.py
Esprit-Nobel/ROSALIND
ec964f6d9cc5d97339106c89df865fb105251928
[ "MIT" ]
null
null
null
Error_Correction_in_Reads.py
Esprit-Nobel/ROSALIND
ec964f6d9cc5d97339106c89df865fb105251928
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Oct 19 18:00:30 2016 @author: yannick """ import sys with open(sys.argv[1], "r") as fichier_lu: CONTENU = fichier_lu.readlines() [1::2] CONTENU = [ elt.strip("\n\r\t ") for elt in CONTENU ] for elta in CONTENU: REVERSE = [ elta.replace("A...
22.631579
73
0.540698
0
0
0
0
0
0
0
0
146
0.169767
4442e1e42c8a05325da84390b0857ac472f29c66
561
py
Python
Swati Singh/week 2_Q.13.py
singhs1234/Python-BootCamp
6f5ff8f4a4e5b8de32eb6506830f13d6939def1c
[ "MIT" ]
4
2022-03-20T10:59:53.000Z
2022-03-25T18:28:04.000Z
Swati Singh/week 2_Q.13.py
singhs1234/Python-BootCamp
6f5ff8f4a4e5b8de32eb6506830f13d6939def1c
[ "MIT" ]
null
null
null
Swati Singh/week 2_Q.13.py
singhs1234/Python-BootCamp
6f5ff8f4a4e5b8de32eb6506830f13d6939def1c
[ "MIT" ]
15
2022-03-12T11:49:10.000Z
2022-03-15T06:22:55.000Z
# 13. Accept any city from the user and display monument of that city. City Monument Delhi Red Fort Agra Taj Mahal Jaipur Jal Mahal city=input("Enter any city (Delhi, Agra, Jaipur, Lucknow, Kanpur) : ") city=city.lower() if city=="delhi": print("Monument: Red Fort") elif city=="agra": print("Monument: Taj Mahal...
35.0625
131
0.691622
0
0
0
0
0
0
0
0
382
0.680927
4444135fa7d08d614e7f61e0bef051df28da21d9
192
py
Python
tests/_other_module.py
gregie156/rdisq
bed3028997f7f64d956b2731437febfc5f2d0061
[ "MIT" ]
1
2015-09-08T06:12:14.000Z
2015-09-08T06:12:14.000Z
tests/_other_module.py
gregie156/rdisq
bed3028997f7f64d956b2731437febfc5f2d0061
[ "MIT" ]
null
null
null
tests/_other_module.py
gregie156/rdisq
bed3028997f7f64d956b2731437febfc5f2d0061
[ "MIT" ]
2
2016-12-16T10:17:39.000Z
2020-06-13T14:37:57.000Z
"""To test how auto-detection of handler-class works with classes from other modules""" from rdisq.request.message import RdisqMessage class MessageFromExternalModule(RdisqMessage): pass
32
87
0.807292
55
0.286458
0
0
0
0
0
0
87
0.453125
4444f0e3181e23072fbbbadc9683f81ee6d5b50a
609
py
Python
libcard2/localization/wave_ja.py
stmkza/arposandra
e76f9886f98b3e5068b5f135be398c9e77bd3b65
[ "MIT" ]
12
2020-02-01T03:41:17.000Z
2022-03-02T06:02:36.000Z
libcard2/localization/wave_ja.py
stmkza/arposandra
e76f9886f98b3e5068b5f135be398c9e77bd3b65
[ "MIT" ]
6
2020-03-15T02:28:52.000Z
2021-08-31T11:16:00.000Z
libcard2/localization/wave_ja.py
stmkza/arposandra
e76f9886f98b3e5068b5f135be398c9e77bd3b65
[ "MIT" ]
3
2020-03-19T12:42:00.000Z
2021-12-28T05:06:02.000Z
from ..wave_cs_enums import WaveType from ..wave_description_base import WaveMissionDescriber ###################################################### JA = WaveMissionDescriber() # fmt: off JA.missions[WaveType.MaxVoltage] = "1回で$1ボルテージを獲得する" JA.missions[WaveType.UseCardUniq] = "$1人のスクールアイドルでアピールする" JA.missions[WaveT...
32.052632
66
0.729064
0
0
0
0
0
0
0
0
371
0.47871
44454b3951561028466a5296e4c73346be5078a6
313
py
Python
jsonbender/__init__.py
csestelo/jsonbender
008c570c6bfc217c8b6e488df803340b070f78e5
[ "MIT" ]
null
null
null
jsonbender/__init__.py
csestelo/jsonbender
008c570c6bfc217c8b6e488df803340b070f78e5
[ "MIT" ]
null
null
null
jsonbender/__init__.py
csestelo/jsonbender
008c570c6bfc217c8b6e488df803340b070f78e5
[ "MIT" ]
null
null
null
from jsonbender.core import Bender, Context, bend, BendingException from jsonbender.list_ops import FlatForall, Forall, Filter, Reduce from jsonbender.string_ops import Format from jsonbender.selectors import F, K, S, OptionalS from jsonbender.control_flow import Alternation, If, Switch __version__ = '0.9.2'
31.3
67
0.814696
0
0
0
0
0
0
0
0
7
0.022364
4446b6d9a76d9e3d9522a1991982c08308682321
7,889
py
Python
myflaskapp/public/views.py
IT-corridor/Parking
528a7e084cd4a54a80aad33488f9a83f4f07fb59
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/public/views.py
IT-corridor/Parking
528a7e084cd4a54a80aad33488f9a83f4f07fb59
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/public/views.py
IT-corridor/Parking
528a7e084cd4a54a80aad33488f9a83f4f07fb59
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Public section, including homepage and signup.""" import datetime from flask import Blueprint, flash, redirect, render_template, request, url_for, jsonify, session, g, abort from flask_login import login_required, login_user, logout_user, current_user from flask_cors import CORS, cross_origin...
34.600877
111
0.672962
0
0
0
0
6,543
0.829383
0
0
2,210
0.280137
4446c274e989ed70ad29771b455c77fbf8f5c5b0
391
py
Python
mobiles/migrations/0002_alter_product_details_star.py
saikatsingha/flipkart_crawl
dc0c4e82206bb974560d87e5d94ea778d9411a9c
[ "MIT" ]
null
null
null
mobiles/migrations/0002_alter_product_details_star.py
saikatsingha/flipkart_crawl
dc0c4e82206bb974560d87e5d94ea778d9411a9c
[ "MIT" ]
null
null
null
mobiles/migrations/0002_alter_product_details_star.py
saikatsingha/flipkart_crawl
dc0c4e82206bb974560d87e5d94ea778d9411a9c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-08 18:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mobiles', '0001_initial'), ] operations = [ migrations.AlterField( model_name='product_details', name='star', ...
20.578947
59
0.595908
298
0.762148
0
0
0
0
0
0
93
0.237852
4447cebaca237fce398177fea1226e3ccac3370d
4,724
py
Python
handroute-power-stripes/check_sram.py
pohantw/caravel_user_project
2589b79bf97fd43186bf854ca3aaa60665f573ba
[ "Apache-2.0" ]
1
2021-11-24T12:42:26.000Z
2021-11-24T12:42:26.000Z
handroute-power-stripes/check_sram.py
pohantw/caravel_user_project
2589b79bf97fd43186bf854ca3aaa60665f573ba
[ "Apache-2.0" ]
null
null
null
handroute-power-stripes/check_sram.py
pohantw/caravel_user_project
2589b79bf97fd43186bf854ca3aaa60665f573ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Script to read a GDS file, and replace a single cell structure with a cell of # the same name from a different GDS file. If a checksum is provided, then # the cell contents will be checked against the checksum before allowing the # replacement. The checksum is just the sum of the lengt...
41.438596
120
0.563506
0
0
0
0
0
0
0
0
1,679
0.355419
4449bfa6d89ff2ac50729d1ef0563c812702054a
527
py
Python
python/draw_map.py
dickensn/irlome-dev
40228014e7d82c3f629f5d86d489cf6b888cd089
[ "MIT" ]
null
null
null
python/draw_map.py
dickensn/irlome-dev
40228014e7d82c3f629f5d86d489cf6b888cd089
[ "MIT" ]
3
2018-11-03T16:17:17.000Z
2018-11-04T04:55:31.000Z
python/draw_map.py
dickensn/irlome-dev
40228014e7d82c3f629f5d86d489cf6b888cd089
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' IRLOME maps ''' __author__ = "Nick Dickens" __copyright__ = "Copyright 2018, Nicholas J. Dickens" __email__ = "dickensn@fau.edu" __license__ = "MIT" import matplotlib.pyplot as plt import mplleaflet points = [] with open("../web/data/user_data.csv") as in_fh: for line in in_fh: line ...
20.269231
53
0.673624
0
0
0
0
0
0
0
0
165
0.313093
444b2e2c7f0f65d0b5f7ba6fdf7f0ecfc97f4d1c
118
py
Python
backend/users/admin.py
rabbilyasar/photo-app
a479eb1d9aed5f2b0c6a8bff182fc754e094ef85
[ "MIT" ]
null
null
null
backend/users/admin.py
rabbilyasar/photo-app
a479eb1d9aed5f2b0c6a8bff182fc754e094ef85
[ "MIT" ]
null
null
null
backend/users/admin.py
rabbilyasar/photo-app
a479eb1d9aed5f2b0c6a8bff182fc754e094ef85
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import get_user_model admin.site.register(get_user_model())
29.5
46
0.847458
0
0
0
0
0
0
0
0
0
0
444ba1502ff8f9ffdc326e213b915090ee1da1e9
188
py
Python
factorial.py
ncooper76/Python-Scripts
e0197a8d613b761c123677699be974a7aec08c97
[ "MIT" ]
null
null
null
factorial.py
ncooper76/Python-Scripts
e0197a8d613b761c123677699be974a7aec08c97
[ "MIT" ]
null
null
null
factorial.py
ncooper76/Python-Scripts
e0197a8d613b761c123677699be974a7aec08c97
[ "MIT" ]
null
null
null
#Calculates the factorial of x, so 5! = 1*2*3*4*5 = 120 def factorial(x): product = 1 n = 1 while n <= x: product = product*n n += 1 return product
20.888889
56
0.510638
0
0
0
0
0
0
0
0
56
0.297872
444cbbd79867b31c9d614358ce159cbee2d40095
269
py
Python
ex15.py
phyuthinzarmg/python-exercises
cfa907dd45623c1c58b96f3588af04e1e7b452ff
[ "MIT" ]
null
null
null
ex15.py
phyuthinzarmg/python-exercises
cfa907dd45623c1c58b96f3588af04e1e7b452ff
[ "MIT" ]
null
null
null
ex15.py
phyuthinzarmg/python-exercises
cfa907dd45623c1c58b96f3588af04e1e7b452ff
[ "MIT" ]
null
null
null
from sys import argv 2 3 script, filename = argv 4 5 txt = open(filename) 6 7 print(f"Here's your file {filename}:") 8 print(txt.read()) 9 10 print("Type the filename again:") 11 file_again = input("> ") 12 13 txt_again = open(file_again) 14 15 print(txt_again.read())
16.8125
40
0.70632
0
0
0
0
0
0
0
0
61
0.226766
444e14447cb4f0e4bc8141a034007957513313e9
6,787
py
Python
pickle_mom_seeding.py
garudlab/mother_infant
98a27c83bf5ece9497d5a030c6c9396a8c514781
[ "BSD-2-Clause" ]
null
null
null
pickle_mom_seeding.py
garudlab/mother_infant
98a27c83bf5ece9497d5a030c6c9396a8c514781
[ "BSD-2-Clause" ]
null
null
null
pickle_mom_seeding.py
garudlab/mother_infant
98a27c83bf5ece9497d5a030c6c9396a8c514781
[ "BSD-2-Clause" ]
null
null
null
# Question: are sweeping alleles in infants present in mom? # Idea: store data on allele frequency in mom for each sweeping allele in infant from utils import sample_utils as su, parse_midas_data, substitution_rates_utils, config, temporal_changes_utils, snps_utils, core_gene_utils, gene_diversity_utils import numpy a...
34.984536
163
0.731104
0
0
0
0
0
0
0
0
3,091
0.455429
444ffd5c03aa03460e6f6f58b1c0373b3a4eb52f
2,132
py
Python
easy_mindoc/easy_mindoc.py
zsb514/easy_mindoc
326d926af8025ebcd69097028c2684c47d99f900
[ "WTFPL" ]
null
null
null
easy_mindoc/easy_mindoc.py
zsb514/easy_mindoc
326d926af8025ebcd69097028c2684c47d99f900
[ "WTFPL" ]
null
null
null
easy_mindoc/easy_mindoc.py
zsb514/easy_mindoc
326d926af8025ebcd69097028c2684c47d99f900
[ "WTFPL" ]
null
null
null
from mindoc import MinDoc from markdown import Markdown from easy_mindoc import load_cfg, write_config import sys, getopt, os import typer app = typer.Typer() '当前工作路径' os.getcwd() @app.command() def config(user: str, cookies: str): typer.echo("正在设置用户和cookies") user = load_cfg().get('user', {}) user['us...
22.924731
84
0.566604
0
0
0
0
898
0.396994
0
0
1,420
0.627763
44501000b3734b479464d60d1f33e27a81e07057
821
py
Python
recipes/Python/531821_Error_logging_context_manager/recipe-531821.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/531821_Error_logging_context_manager/recipe-531821.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/531821_Error_logging_context_manager/recipe-531821.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
from __future__ import with_statement from contextlib import contextmanager from functools import wraps import logging @contextmanager def error_trapping(ident=None): ''' A context manager that traps and logs exception in its block. Usage: with error_trapping('optional description'): m...
26.483871
69
0.624848
0
0
444
0.540804
578
0.704019
0
0
278
0.338611
445010b448f3c8808d15429f677ead36a271dff0
2,850
py
Python
shardDesigner/shardTemplateDir/shardNodeDir/starterFlask.py
vinci-project/rootShard
2f6633c7fb1c1b690c0a38ffbb16af0b50d532bb
[ "MIT" ]
null
null
null
shardDesigner/shardTemplateDir/shardNodeDir/starterFlask.py
vinci-project/rootShard
2f6633c7fb1c1b690c0a38ffbb16af0b50d532bb
[ "MIT" ]
7
2020-03-02T11:23:41.000Z
2022-03-11T23:52:51.000Z
shardDesigner/shardTemplateDir/shardNodeDir/starterFlask.py
vinci-project/rootShard
2f6633c7fb1c1b690c0a38ffbb16af0b50d532bb
[ "MIT" ]
null
null
null
import sys, os import json import redis import shutil from crypto.vncCrypto import VncCrypto from crypto.cryptoFernet import cryptoFernet from datetime import datetime, date, time from random import randint import psutil import uuid from werkzeug.utils import secure_filename import webbrowser #=====================...
29.6875
134
0.570526
2,297
0.805965
0
0
2,033
0.713333
0
0
528
0.185263
445059d8b1c766c83467bf2bfc61d8690f94ea35
86
py
Python
tyadmin_api_cli/adapters/__init__.py
a24zlab/django-antd-tyadmin
49797ecbb477b00fc934b774fbc33a4dc23f9d80
[ "MIT" ]
308
2021-02-04T08:18:13.000Z
2022-03-30T10:38:30.000Z
tyadmin_api_cli/adapters/__init__.py
a24zlab/django-antd-tyadmin
49797ecbb477b00fc934b774fbc33a4dc23f9d80
[ "MIT" ]
23
2021-02-02T08:29:02.000Z
2022-03-08T13:14:55.000Z
tyadmin_api_cli/adapters/__init__.py
a24zlab/django-antd-tyadmin
49797ecbb477b00fc934b774fbc33a4dc23f9d80
[ "MIT" ]
90
2021-02-03T08:03:17.000Z
2022-03-31T19:03:02.000Z
ADAPTER_DICT = { 'django_celery_beat': { 'PeriodicTask': ['task'] } }
14.333333
32
0.534884
0
0
0
0
0
0
0
0
40
0.465116
44505ee5565c15ff2332d974385cc5824f0522fa
1,004
py
Python
escolaridade/tests.py
Bleno/sisgestor-django
c35f76eafc3e51afb99c84245e01881cef43aa5b
[ "MIT" ]
1
2017-04-27T19:26:49.000Z
2017-04-27T19:26:49.000Z
escolaridade/tests.py
Bleno/sisgestor-django
c35f76eafc3e51afb99c84245e01881cef43aa5b
[ "MIT" ]
null
null
null
escolaridade/tests.py
Bleno/sisgestor-django
c35f76eafc3e51afb99c84245e01881cef43aa5b
[ "MIT" ]
null
null
null
from django.test import TestCase from django.test import Client from .models import Escolaridade class EscolaridadeTestCase(TestCase): def setUp(self): Escolaridade.objects.create(escolaridade="Médio") Escolaridade.objects.create(escolaridade="Fundamental") def test_escolaridade_exists(s...
32.387097
73
0.692231
907
0.900695
0
0
0
0
0
0
183
0.181728
4450c03b84b4b673f18bc1860ea01b76a4f2ec4d
4,799
py
Python
python_ws/src/sim/src/aruco_front.py
boris-gu/drone-api
fd90f226bf83c79eb7c31b69b9141474017160a3
[ "BSD-3-Clause" ]
null
null
null
python_ws/src/sim/src/aruco_front.py
boris-gu/drone-api
fd90f226bf83c79eb7c31b69b9141474017160a3
[ "BSD-3-Clause" ]
null
null
null
python_ws/src/sim/src/aruco_front.py
boris-gu/drone-api
fd90f226bf83c79eb7c31b69b9141474017160a3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # ===================== # Зависнуть у маркера # ===================== import numpy as np import rospy import cv2 import cv2.aruco as aruco from sensor_msgs.msg import Image from cv_bridge import CvBridge from aruco_calibration import Calibration as clb from drone_api import * from math import ...
40.669492
95
0.549489
0
0
0
0
0
0
0
0
1,058
0.207492
44521e90db92fc5a401f00f8e02d47faa82b474b
288
py
Python
Testing.py
thetensor-space/SageTensorSpace
5fb48dbfa03fa89c9f714643e1e5d9ba60e98176
[ "MIT" ]
null
null
null
Testing.py
thetensor-space/SageTensorSpace
5fb48dbfa03fa89c9f714643e1e5d9ba60e98176
[ "MIT" ]
null
null
null
Testing.py
thetensor-space/SageTensorSpace
5fb48dbfa03fa89c9f714643e1e5d9ba60e98176
[ "MIT" ]
null
null
null
import SageTensorSpace as TS MS = MatrixSpace(GF(7), 5, 6) M = MS.random_element() t = TS.TensorFromMatrices([M], 2, 1) # Testing a property U = VectorSpace(GF(7), 5) V = VectorSpace(GF(7), 6) assert all(M[i][j] == t((U.basis()[i], V.basis()[j]))[0] for i in range(5) for j in range(6))
28.8
93
0.638889
0
0
0
0
0
0
0
0
20
0.069444
4452b02d3ec66c4927bb44a51aa1b641b11fd632
3,933
py
Python
Pipelines/Torch/Data/mnist.py
AkibMashrur/Research
a981e3410917216e03e09431c837607543905d83
[ "Apache-2.0" ]
null
null
null
Pipelines/Torch/Data/mnist.py
AkibMashrur/Research
a981e3410917216e03e09431c837607543905d83
[ "Apache-2.0" ]
null
null
null
Pipelines/Torch/Data/mnist.py
AkibMashrur/Research
a981e3410917216e03e09431c837607543905d83
[ "Apache-2.0" ]
null
null
null
# Reference: https://stackoverflow.com/questions/40427435/extract-images-from-idx3-ubyte-file-or-gzip-via-python # Based on answer by UdaraWanasinghe import os import gzip import numpy as np import torch import torch.nn.functional as F home_dir = os.path.expanduser('~') parent_dir = "Datasets/Images/MNIST/" def trai...
37.817308
112
0.637935
872
0.221714
0
0
0
0
0
0
1,298
0.330028
4452eed1643b0ab8c55a85a0007be4f6da57ef15
7,968
py
Python
resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py
ilan-WS/cloudify-manager
510d8a277c848db351f38fc5b264806b2cb36d0b
[ "Apache-2.0" ]
124
2015-01-22T22:28:37.000Z
2022-02-26T23:12:06.000Z
resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
345
2015-01-08T15:49:40.000Z
2022-03-29T08:33:00.000Z
resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py
ilan-WS/cloudify-manager
510d8a277c848db351f38fc5b264806b2cb36d0b
[ "Apache-2.0" ]
77
2015-01-07T14:04:35.000Z
2022-03-07T22:46:00.000Z
"""5_3 to 6_0 Revision ID: b92770a7b6ca Revises: 396303c07e35 Create Date: 2021-04-12 09:33:44.399254 """ from alembic import op import sqlalchemy as sa from manager_rest.storage import models # revision identifiers, used by Alembic. revision = 'b92770a7b6ca' down_revision = '396303c07e35' branch_labels = None depe...
25.538462
74
0.633032
0
0
0
0
0
0
0
0
2,624
0.329317
4453f380fc213caa0d80109b5bcb911e30dcaa44
233
py
Python
django_iris/validation.py
nickmitchko/django-iris
2eb59553e554ad022b96bd37921f7f35bbb64e38
[ "MIT" ]
2
2022-02-23T12:46:23.000Z
2022-02-27T22:14:36.000Z
django_iris/validation.py
nickmitchko/django-iris
2eb59553e554ad022b96bd37921f7f35bbb64e38
[ "MIT" ]
3
2022-03-19T02:04:51.000Z
2022-03-19T19:15:55.000Z
django_iris/validation.py
nickmitchko/django-iris
2eb59553e554ad022b96bd37921f7f35bbb64e38
[ "MIT" ]
3
2022-02-15T14:08:45.000Z
2022-03-19T17:05:37.000Z
from django.db.backends.base.validation import BaseDatabaseValidation class DatabaseValidation(BaseDatabaseValidation): def check(self, **kwargs): return [] def check_field(self, field, **kwargs): return []
25.888889
69
0.712446
161
0.690987
0
0
0
0
0
0
0
0
445428db18a5d529d31ee62c9b30f8bb8c4c0aea
1,763
py
Python
Asap-3.8.4/Debug/UnBalance.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
1
2021-10-19T11:35:34.000Z
2021-10-19T11:35:34.000Z
Asap-3.8.4/Debug/UnBalance.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
null
null
null
Asap-3.8.4/Debug/UnBalance.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
3
2016-07-18T19:22:48.000Z
2021-07-06T03:06:42.000Z
#PBS -N UnBalance #PBS -m ae #PBS -q long #PBS -l nodes=1:opteron:ppn=2 """Test handling of extreme load-unbalancing.""" from asap3 import * from asap3.md import MDLogger from ase.lattice.cubic import FaceCenteredCubic import numpy as np from asap3.mpi import world #DebugOutput("UnBalance.%d.out") #set_verbose(1) pr...
24.486111
81
0.618264
0
0
0
0
0
0
0
0
361
0.204765
44546d7a23a84bcd8913fc44866867d90b0aa3bc
2,721
py
Python
Notatki/1_Podstawy/3_Funkcje/2_Argumenty.py
bzglinicki/Programowanie-I-R
02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0
[ "MIT" ]
2
2022-03-01T14:45:01.000Z
2022-03-19T17:36:07.000Z
Notatki/1_Podstawy/3_Funkcje/2_Argumenty.py
bzglinicki/Programowanie-I-R
02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0
[ "MIT" ]
null
null
null
Notatki/1_Podstawy/3_Funkcje/2_Argumenty.py
bzglinicki/Programowanie-I-R
02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0
[ "MIT" ]
1
2021-03-20T21:01:37.000Z
2021-03-20T21:01:37.000Z
# Programowanie I R # Funkcje: argumenty # Funkcja z trzema argumentami: name, surname, age def printPersonalData(name, surname, age): print(f"Imię i nazwisko: {name} {surname}") print(f"Wiek: {age}") # Argumenty pozycyjne ************************************************************** print("Argu...
27.765306
84
0.593164
0
0
0
0
0
0
0
0
1,937
0.703341
445599346e06ef1c078e67979b49a7714f6c5b59
541
py
Python
setup.py
sihrc/vortex
4b913946c8c1743a5cd7a07b80bc7ab516ce12f2
[ "MIT" ]
null
null
null
setup.py
sihrc/vortex
4b913946c8c1743a5cd7a07b80bc7ab516ce12f2
[ "MIT" ]
6
2018-08-04T21:29:11.000Z
2021-05-16T05:30:34.000Z
setup.py
sihrc/vortex
4b913946c8c1743a5cd7a07b80bc7ab516ce12f2
[ "MIT" ]
1
2019-08-22T11:48:30.000Z
2019-08-22T11:48:30.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="vortex-http", version="0.4.1", description="aiohttp wrapped web framework", author="Chris Lee", author_email="sihrc.c.lee@gmail.com", packages=find_packages(), install_requires=[ "aiodns==2.0.0", ...
23.521739
48
0.563771
0
0
0
0
0
0
0
0
243
0.449168
44567aa723c7083a702d9f866e897914bb948003
47,745
py
Python
script/FilesFunctions/FilesFunctions.py
totordudu/UTBM_TZ20
27e4d3f247a3eba26c1c7c7a21e184917056ac52
[ "MIT" ]
null
null
null
script/FilesFunctions/FilesFunctions.py
totordudu/UTBM_TZ20
27e4d3f247a3eba26c1c7c7a21e184917056ac52
[ "MIT" ]
null
null
null
script/FilesFunctions/FilesFunctions.py
totordudu/UTBM_TZ20
27e4d3f247a3eba26c1c7c7a21e184917056ac52
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from datetime import datetime, timedelta import errno import time import USBKey class Files(): import sys import csv from datetime import datetime, date, time, timedelta import os from os import path import shutil # import urllib # for python 3 : import u...
48.969231
230
0.489517
46,946
0.983265
0
0
0
0
0
0
11,416
0.239104
44585e2e58dd7c6c6dcab8b55ab1edd7e5fa7f24
5,835
py
Python
soil/settings.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
soil/settings.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
soil/settings.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
import os import sys from pathlib import Path from datetime import timedelta from django.conf import global_settings from django.utils.translation import gettext_lazy as _ import django.conf.locale # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent sys...
27.91866
107
0.671637
0
0
0
0
0
0
0
0
3,804
0.651928
4458de209412ad014e27667db524e01364c91585
1,531
py
Python
serial_scripts/sriov/test_sriov.py
vkolli/5.0_contrail-test
1793f169a94100400a1b2fafbad21daf5aa4d48a
[ "Apache-2.0" ]
1
2017-06-13T04:42:34.000Z
2017-06-13T04:42:34.000Z
serial_scripts/sriov/test_sriov.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
1
2021-06-01T22:18:29.000Z
2021-06-01T22:18:29.000Z
serial_scripts/sriov/test_sriov.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
null
null
null
# Need to import path to test/fixtures and test/scripts/ # Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/' # # To run tests, you can do 'python -m testtools.run tests'. To run specific tests, # You can do 'python -m testtools.run -l tests' # Set the env variable PARAMS_FILE to point to your ini ...
31.895833
104
0.704768
1,048
0.68452
0
0
911
0.595036
0
0
747
0.487916
445a5c1f65437e8b862503db26771c6d527b8a82
11,681
py
Python
fandango/excepts.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
fandango/excepts.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
fandango/excepts.py
rhomspuron/fandango
51cc7659dfa7ea8c5890a993bbcc4c2049e45136
[ "CC-BY-3.0" ]
null
null
null
from __future__ import with_statement #!/usr/bin/env python2.5 """ ############################################################################# ## ## file : excepts.py ## ## description : see below ## ## project : Tango Control System ## ## $Author: Sergi Rubio Manrique, srubio@cells.es $ ## ## $Revision: 20...
35.941538
158
0.605256
1,964
0.168136
0
0
124
0.010616
0
0
5,388
0.461262
445ab1c1e4d78b8048df97b2a01122c5b251eb06
4,345
py
Python
Practica4/QuickSort/grafica.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
1
2021-09-30T20:05:41.000Z
2021-09-30T20:05:41.000Z
Practica4/QuickSort/grafica.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
null
null
null
Practica4/QuickSort/grafica.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
null
null
null
#Análisis de Algoritmos 3CV2 # Alan Romero Lucero # Josué David Hernández Ramírez # Práctica 4 Divide y vencerás import matplotlib.pyplot as plt import numpy as np import gb """                              Variables globales: proposed2: Función propuesta para el algoritmo Quicktime. Dependiendo si ...
38.451327
126
0.571231
0
0
0
0
0
0
0
0
2,461
0.55805
445af064114f9ecae141a654e3f107b836136ba6
1,207
py
Python
vista.py
CristianCala/UIDesignPyQt5
6ba68813f86e46a47c4519f83ccbd46b6dd635ff
[ "MIT" ]
null
null
null
vista.py
CristianCala/UIDesignPyQt5
6ba68813f86e46a47c4519f83ccbd46b6dd635ff
[ "MIT" ]
null
null
null
vista.py
CristianCala/UIDesignPyQt5
6ba68813f86e46a47c4519f83ccbd46b6dd635ff
[ "MIT" ]
null
null
null
estiloFondo = ("QMainWindow{\n" "background-color: white;}") estiloFrame = ("QFrame{\n" "background-image: url(ui.png);}\n") estiloNombre = ("QLabel{\n" "color: #E84C70;}\n") estiloTitulo = ("QLabel{\n" "color: #2F475E;}\n") estiloLine = ("QLineEdit {\n" "color: black;\n" "background: transpa...
21.945455
47
0.610605
0
0
0
0
0
0
0
0
896
0.742336
445b95e70338446bf09b6f119beadcc108bb73c6
4,260
py
Python
simArch/run_nets.py
mfkiwl/uSystolic-Sim
ed03101108d299557ff215239caa1b51783882f6
[ "MIT" ]
18
2021-04-08T10:35:31.000Z
2022-03-03T14:29:06.000Z
simArch/run_nets.py
mfkiwl/uSystolic-Sim
ed03101108d299557ff215239caa1b51783882f6
[ "MIT" ]
1
2021-06-29T10:55:35.000Z
2021-10-08T21:04:54.000Z
simArch/run_nets.py
mfkiwl/uSystolic-Sim
ed03101108d299557ff215239caa1b51783882f6
[ "MIT" ]
4
2021-04-08T10:35:32.000Z
2021-12-11T13:45:24.000Z
import simArch.gemm_trace_wrapper as gemm_trace def run_net( ifmap_sram_size=1, # in K-Word filter_sram_size=1, # in K-Word ofmap_sram_size=1, # in K-Word array_h=32, array_w=32, data_flow='ws', word_size_bytes=1, wgt_bw_opt=False, topology_file=None, net_name=None, offset_l...
38.378378
110
0.480047
0
0
0
0
0
0
0
0
705
0.165493
445d5c9f90f1e235cdc97e3d99dbadddc792e214
550
py
Python
homepage/views.py
c17r/tsace
59c6e0388429943dc3de879745119f9c94cd9ccc
[ "MIT" ]
null
null
null
homepage/views.py
c17r/tsace
59c6e0388429943dc3de879745119f9c94cd9ccc
[ "MIT" ]
null
null
null
homepage/views.py
c17r/tsace
59c6e0388429943dc3de879745119f9c94cd9ccc
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from django.shortcuts import render from django.template import RequestContext import api def index(request): uid = request.COOKIES.get("uid") data = None if not uid: uid, _ = api.create_new_user() else: data = api.get_saved_cities(uid) res...
22
53
0.658182
0
0
0
0
0
0
0
0
45
0.081818