blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e257e337febe1511c2d9627bf695efa744fc08f | b3e9a8963b9aca334b93b95bc340c379544e1046 | /euler/53.py | 848c9371fe27dc537186b3b102125dfaaa2271db | [] | no_license | protocol7/euler.py | 86ea512c2c216968e6c260b19469c0c8d038feb7 | e2a8e46a9b07e6d0b039a5496059f3bf73aa5441 | refs/heads/master | 2022-09-08T22:49:47.486631 | 2022-08-23T20:07:00 | 2022-08-23T20:07:00 | 169,478,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/env python3
from functools import lru_cache
@lru_cache(maxsize=None)
def factorial(n):
if n == 1:
return 1
return n * factorial(n-1)
assert 24 == factorial(4)
def combos(n, r):
return factorial(n) / (factorial(r) * factorial(n - r))
assert 1144066 == combos(23, 10)
def find():
c... | [
"niklas@protocol7.com"
] | niklas@protocol7.com |
258d8ef0453118d55ac07e5b1516bb5578fe9f11 | 646cadb1c72ef4a060343baf2fcbe271958b6878 | /tigerjython/Pi2GoEx/Ligth1a.py | 36d10f7d5715c2c72b027fbe61929c76909918e4 | [] | no_license | tigerjython/tjinstall | bd75cf8e4ae27b639a13865ef1ec5710391a2938 | aab61519b5299c2ab4f423c6fc5d8ea7c7860a99 | refs/heads/master | 2021-01-17T08:53:50.386905 | 2018-01-12T06:56:28 | 2018-01-12T06:56:28 | 40,659,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # Light1a.py
from raspibrick import *
def onDark(value):
print "dark event with v:", value
def onBright(value):
print "bright event with v:", value
robot = Robot()
ls = LightSensor(LS_FRONT_LEFT)
while not robot.isEscapeHit():
continue
robot.exit()
print "All done" | [
"support@tigerjython.com"
] | support@tigerjython.com |
a51bcd3afd92f603fd92b6ce8517474dbb4ae72b | d741f71eb48b23fdda1339daee10ccb039da1ee6 | /leetcode7.py | f66dd37a370eca0129bd9f10c89bc749bd2596fd | [] | no_license | HawkinYap/Leetcode | a5b42bf3aa41e7f1ba60a5a804909035fa8e1ec9 | 5e7bc7368db4dfcd8597dc0462a8a0b5bfd46e54 | refs/heads/master | 2020-06-30T07:15:24.453955 | 2020-04-18T07:38:22 | 2020-04-18T07:38:22 | 199,663,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | class Solution:
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
strx = str(x)
if strx[0] == '-':
strx = strx[len(strx)-1:0:-1]
if int(strx) < 2 ** 31-1:
return(-int(strx))
else:
return(0)
... | [
"Gallowsgogo@gmail.com"
] | Gallowsgogo@gmail.com |
a0babf5d131fe0f8d29fd070ae89e73f9667fea3 | 9e4f5cf305e818caccb543b9b0c60876afc682c2 | /Python-Matic-SDK/examples/deploy.py | 7f36ee16da523d8d51697000b451f539e59d4dba | [
"MIT"
] | permissive | bellyfat/Matic-for-python-developers | 1ed2062e1826d7847ade449d47a311901c1b53dd | ea33737a89384ce9e6f6dc97b12f0a608994e28d | refs/heads/main | 2023-07-16T04:48:19.934602 | 2021-09-12T15:21:09 | 2021-09-12T15:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from maticvigil.EVCore import EVCore
evc = EVCore(verbose=False)
r = evc.deploy(
contract_file='microblog.sol',
contract_name='Microblog',
inputs={
'_ownerName': 'anomit',
'_blogTitle': 'TheBlog'
}
)
print('Contract Address deployed at')
print(r['contract'])
| [
"noreply@github.com"
] | bellyfat.noreply@github.com |
cc01ee431f998edf052d5fb58191cf1d5e445aa9 | aa91f6e8d59286f65e7f6ed065823c80b7694439 | /scripts/lab/fasttext/f1.py | 80a8f85cdbe7ed8c70a4524cd5fa968237443bd0 | [
"MIT"
] | permissive | davidyuqiwei/davidyu_stock | 7f93bcc2c50a0e2c356e3b517dbf7e2e7467093f | c234911f49d5980f2dff651333f8ca957333e094 | refs/heads/master | 2023-01-07T02:08:04.330559 | 2023-01-02T16:31:37 | 2023-01-02T16:31:37 | 163,694,812 | 13 | 2 | null | 2022-12-18T03:55:10 | 2018-12-31T20:07:30 | Jupyter Notebook | UTF-8 | Python | false | false | 8,678 | py | # _*_ coding:utf-8 _*_
'''
@Author: Ruan Yang
@Date: 2018.12.9
@Purpose: 处理wikizh文本的二分类问题,判断语句是否通顺
@Attention: 本例中的负样本是 shuffle 正样例得到,所以容易形成分类
@算法:CNN
@本例是二分类问题
'''
import codecs
paths=r"/home/davidyu/gits/fastText-Study"
train_data_name="train.txt"
test_data_name="test.txt"
x_train=[]
x_test=[]... | [
"davidyuqiwei@outlook.com"
] | davidyuqiwei@outlook.com |
a05d56db574368bf8580a4bd6667b10b1c1cae4d | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/smsdroid/testcase/firstcases/testcase7_000.py | 9a66eb49f61b413902721cb5c99ff03f5fba9cc3 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,530 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
635db05bfab567250fafbb0dbbf2098cf6aebaad | 2324dea2cb3003c8ab7e8fd80588d44973eb8c77 | /Euler_1_31a.py | 92b658671b702b3c61f6fb98880583468f309a1e | [] | no_license | MikeOcc/MyProjectEulerFiles | 5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56 | 4d066d52380aade215636953589bf56d6b88f745 | refs/heads/master | 2021-01-16T18:45:44.133229 | 2015-05-27T18:28:43 | 2015-05-27T18:28:43 | 5,876,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | #
# Euler 31
#
#
from itertools import *
#print list(product([200,100,50,20,10,5,2,1] , repeat = 200))
cur = [100, 50, 20, 10, 5, 2, 1]
fac = [ 2, 4, 10, 20, 40, 100, 200]
val = 200
ctr = 8
cntdown = 8
cnt = 200
for i in range(0,2):
cnt-=i*cur[0]
print cnt,cur[0]
if cnt == 0:
cnt = 200
... | [
"mike.occhipinti@mlsassistant.com"
] | mike.occhipinti@mlsassistant.com |
64900c6259cb79e029298d9d679b01edffaba0e0 | 66b13f9aa90bb0091684334c68a574c390fb58a1 | /gen-cards.py | 2f95a50ff3eee68a49acce58d153ab71aa31fb67 | [
"MIT"
] | permissive | sugar-activities/4246-activity | d67c8038698b4fd5dab19ff9bf9ea2c3647692e8 | 5ddd5fe21b2ddfc5f926e434b7f8a23e20f54263 | refs/heads/master | 2021-01-19T23:14:32.545612 | 2017-04-21T05:05:53 | 2017-04-21T05:05:53 | 88,937,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,603 | py | # -*- coding: utf-8 -*-
#Copyright (c) 2009, Walter Bender
#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, me... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
ea08b87bbcf0c0cf423313d7133d5767e513cc77 | e73f0bd1e15de5b8cb70f1d603ceedc18c42b39b | /adventOfCode/2018/25/25.py | 361d1e18d2d39530b5332aaf11d459fb81790990 | [] | no_license | thran/the_code | cbfa3b8be86c3b31f76f6fbd1deb2013d3326a4a | ba73317ddc42e10791a829cc6e1a3460cc601c44 | refs/heads/master | 2023-01-05T14:39:16.708461 | 2022-12-25T08:37:39 | 2022-12-25T08:37:39 | 160,978,160 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | import queue
import pandas as pd
import numpy as np
df = pd.read_csv('input.txt', header=None)
distances = df.loc[:, :4]
df['selected'] = False
df['constellation'] = None
value = 3
c = 0
while (~df.selected).sum() > 0:
x = df.index[~df.selected][0]
q = queue.Queue()
q.put(x)
c += 1
df.loc[x, ... | [
"thran@centrum.cz"
] | thran@centrum.cz |
ae9068dfc07c4682726c4eb7283a242f767290cd | 17ebca3c537e27bb1dff0d8f047ad63c1d7ebcf0 | /Tests/goldman_02.22.2021.py | ddb9353ab5e51c092092c223b1b2d5b46d2d4272 | [] | no_license | reading-stiener/For-the-love-of-algos | ad95283b55bfaf112302bf187fe0cefd6104f3f7 | d6f0d0985ac124eeb5ad1caee8563d3d0f186a25 | refs/heads/master | 2023-03-07T10:51:31.851212 | 2021-02-23T05:27:08 | 2021-02-23T05:27:08 | 292,468,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | def numOfIds(pool):
count_eights = pool.count("8")
count_rest = len(pool) - count_eights
group_tens = count_rest // 10
if count_eights <= group_tens:
return count_eights
else:
eights_less = 11 - count_rest % 10
if count_eights - group_tens >= eights_less:
return ... | [
"apradha1@conncoll.edu"
] | apradha1@conncoll.edu |
d53bc612dcccd471686a70bf5243cfdd00224af9 | 1f41b828fb652795482cdeaac1a877e2f19c252a | /maya_menus/_MAINMENU_PMC_Rigging/28.Constraint/10.Tangent Constraint( curve, upObject, targets ).py | 189af8a0a6847beda077c61b234044b4bb945a5c | [] | no_license | jonntd/mayadev-1 | e315efe582ea433dcf18d7f1e900920f5590b293 | f76aeecb592df766d05a4e10fa2c2496f0310ca4 | refs/heads/master | 2021-05-02T07:16:17.941007 | 2018-02-05T03:55:12 | 2018-02-05T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from sgMaya import sgCmds
import pymel.core
sels = pymel.core.ls( sl=1 )
curve = sels[0]
upObject = sels[1]
targets = sels[2:]
for target in targets:
sgCmds.tangentConstraint( curve, upObject, target ) | [
"kimsung9k@naver.com"
] | kimsung9k@naver.com |
6fc1ef57d9dea2611a35ab06fd8ea26f26f3f82d | a1615563bb9b124e16f4163f660d677f3224553c | /LI/lib/python3.8/site-packages/numpy/distutils/fcompiler/gnu.py | 68d1501eee6a23b74bd3de943e69a47a3e0c3071 | [
"MIT",
"BSD-3-Clause",
"GPL-3.0-or-later",
"BSD-3-Clause-Open-MPI",
"GPL-3.0-only",
"GCC-exception-3.1"
] | permissive | honeybhardwaj/Language_Identification | 2a247d98095bd56c1194a34a556ddfadf6f001e5 | 1b74f898be5402b0c1a13debf595736a3f57d7e7 | refs/heads/main | 2023-04-19T16:22:05.231818 | 2021-05-15T18:59:45 | 2021-05-15T18:59:45 | 351,470,447 | 5 | 4 | MIT | 2021-05-15T18:59:46 | 2021-03-25T14:42:26 | Python | UTF-8 | Python | false | false | 20,226 | py | import re
import os
import sys
import warnings
import platform
import tempfile
import hashlib
import base64
import subprocess
from subprocess import Popen, PIPE, STDOUT
from numpy.distutils.exec_command import filepath_from_subprocess_output
from numpy.distutils.fcompiler import FCompiler
from distutils.version import ... | [
"honey.bhardwaj.18cse@bmu.edu.in"
] | honey.bhardwaj.18cse@bmu.edu.in |
d1034770b6e251685d6bebfce77b1a4c9de647a3 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/mall/settings_20211012161345.py | b5f7915f5c98d58a5332fffcaf4ae14c3dbc5b92 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,187 | py | """
Django settings for mall project.
Generated by 'django-admin startproject' using Django 3.2.5.
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 django_he... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
6cc0eea8dd978ecbdfed41def4734537c2ada346 | 4bcb9dd0701dacd001cace60e0d6543c86b4ef4b | /PostYourFoodAd/migrations/0003_auto_20170422_1232.py | 709fc44f49897fcf4f4e28ae44ad572807f80baf | [] | no_license | kbidve/Hostelied_commit | 8576d317060021fec68cbcf5051b2bc32e461aba | 2d439ab979dcb38c9cfa156799d194ab50f964bf | refs/heads/master | 2021-01-22T20:34:52.827418 | 2017-05-19T14:46:45 | 2017-05-19T14:46:45 | 85,331,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-22 12:32
from __future__ import unicode_literals
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('UserAdministrator'... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fc3413eab8a3777a066cf659f7a1f321ad1121b6 | cb7c3673ad937c282a39be74d0aee8628e75928d | /tests/test_scripts/test_gen_jsonld.py | d38e0436a0414fd74dea9cbb7fa269db34e04ed9 | [
"CC0-1.0"
] | permissive | bpow/linkml | 649d6d48f39a8c51efa92fba7eb25c1d8854b472 | ab83c0caee9c02457ea5a748e284dee6b547fcd6 | refs/heads/main | 2023-05-05T18:46:04.501897 | 2021-05-13T21:17:03 | 2021-05-13T21:17:03 | 371,163,928 | 0 | 0 | CC0-1.0 | 2021-05-26T20:42:13 | 2021-05-26T20:42:12 | null | UTF-8 | Python | false | false | 4,620 | py | import os
import re
import unittest
# This has to occur post ClickTestCase
from functools import reduce
from typing import List, Tuple
import click
from rdflib import Graph, URIRef
from linkml import METAMODEL_NAMESPACE
from linkml.generators.jsonldcontextgen import ContextGenerator
from linkml.generators import json... | [
"solbrig@jhu.edu"
] | solbrig@jhu.edu |
a063a23ba0ef1a9b820232f028f24b1b463d0067 | a6fd4108016deab24ed5e4d528a4c009b597bf01 | /info_manager/migrations/0005_auto_20190927_1057.py | db9f59b6a8145a322760a05e004c10fbf5330d38 | [
"Apache-2.0"
] | permissive | UniversitaDellaCalabria/info-manager | 2da8f4087ed180c05a710a7d17dff7e71814dac9 | f4be641467f65d591ec28bbdf6ed681cdfed0e80 | refs/heads/master | 2022-12-04T17:56:56.349256 | 2022-01-05T22:50:12 | 2022-01-05T22:50:12 | 198,625,639 | 1 | 0 | Apache-2.0 | 2022-11-22T09:47:21 | 2019-07-24T11:51:11 | Python | UTF-8 | Python | false | false | 648 | py | # Generated by Django 2.2.2 on 2019-09-27 08:57
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('info_manager', '0004_itemtranslation'),
]
operations = [
migrations.AddField(
model_name='item',
... | [
"giuseppe.demarco@unical.it"
] | giuseppe.demarco@unical.it |
a9947e37c78fdb42ea17249f91dbf7f64fc41328 | a708f1d36586d2b01c99f2cb44aa4612b10192f6 | /bfs/733图像渲染.py | 7dabfbbb5f104bfb03e623af54d96f324c7e0529 | [] | no_license | LeopoldACC/Algorithm | 2477e8a371e9cdc5a47b582ca2a454539b96071e | fc1b0bec0e28d31e9a6ff722b3a66eacb0278148 | refs/heads/master | 2023-01-25T02:28:14.422447 | 2020-12-03T15:01:10 | 2020-12-03T15:01:10 | 197,297,197 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | class Solution:
def floodFill(self, image: List[List[int]], sr: int, sc: int, newColor: int) -> List[List[int]]:
if not image:
return image
dirs = [(-1,0),(1,0),(0,-1),(0,1)]
q = collections.deque([(sr,sc)])
ori = image[sr][sc]
m,n = len(image),len(image[0])
... | [
"zhenggong9831@gmail.com"
] | zhenggong9831@gmail.com |
99fc9c9e5797d077f8302e1cc617697317de6463 | e23778e9cbedd6a9fcd28eb4263dab33da4a2d5a | /clowningaround/urls.py | 80d331a8cd46688fc9c8832a1a1843527b1e6924 | [] | no_license | eustone/clowingaround | 92667e2580c80dddf4489a1724d44e8c9823e215 | 1723d9aa5645510f711f0ab6478174b0aa66d84e | refs/heads/master | 2022-12-09T02:35:24.270583 | 2020-04-03T07:08:38 | 2020-04-03T07:08:38 | 252,653,240 | 0 | 0 | null | 2022-12-08T03:58:11 | 2020-04-03T06:44:31 | Python | UTF-8 | Python | false | false | 1,065 | py | """clowningaround URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"emalaya@gmail.com"
] | emalaya@gmail.com |
fc54124378398c17d473cfeb673ecf5b28789142 | cdf4e1b9db499766780d28762f6c71ac2e438a90 | /getting_file_dates.py | fff141b456cacfb572b9bc589156326889adbecf | [] | no_license | sa-i/20200414py3interm | cd33af18bbb6b4ac98308905244cf71b014666e9 | 6bcb0a871f3894f4eb1a53b792ea5cc849d302e7 | refs/heads/master | 2022-05-09T08:52:11.242286 | 2020-04-17T21:57:45 | 2020-04-17T21:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/env python
import os
from datetime import datetime
for file_name in os.listdir():
if file_name.endswith('.py'):
raw_file_timestamp = os.path.getmtime(file_name)
file_timestamp = datetime.fromtimestamp(raw_file_timestamp)
print(file_timestamp.date(), file_name)
| [
"jstrickler@gmail.com"
] | jstrickler@gmail.com |
b8e48ca6481e0eb739d7e2645271b4d774c19b9a | 27c04f9daf823c851bef35f91d261c677295d00c | /backend/asgi.py | 185382269e27551e31283442e62bb9840e7e8111 | [] | no_license | wlgud0402/crawling_estate_stock_backend | 865e6ed8811892c0823a8ac2cd11dba45dcdca2e | dfe2e06ccc3e993fd8cf9fe641d1aed097e375ad | refs/heads/master | 2023-04-29T16:13:03.224377 | 2021-05-25T15:48:57 | 2021-05-25T15:48:57 | 349,053,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
application = get_asgi_application()
| [
"wlgudrlgus@naver.com"
] | wlgudrlgus@naver.com |
dac54cc515d226209428a3bc5cc34eb7813b2419 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/jedi/third_party/typeshed/third_party/2/tornado/httpclient.pyi | 16bdb2856786d54de4bf56a7c7a95877725004ff | [
"MIT",
"Apache-2.0"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,219 | pyi | from typing import Any
from tornado.util import Configurable
class HTTPClient:
def __init__(self, async_client_class=..., **kwargs) -> None: ...
def __del__(self): ...
def close(self): ...
def fetch(self, request, **kwargs): ...
class AsyncHTTPClient(Configurable):
@classmethod
def configurab... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
162669aaa9caa5ed418da539dc6c63763eae311f | 61361b4338c7434ae5fcfb225ef327c0e5bc7b5e | /etsydb/etsy/migrations/0003_auto_20151206_0002.py | b89556d6baba547e97cf83f04c93ade61426a01d | [] | no_license | mdamien/scrapy-etsy | a253284f6bcfc1cd04f551ddfb6d0cdb9bf0a9c3 | 3c379b4dafa181f11007c2e6902bb2689140a335 | refs/heads/master | 2021-01-10T07:31:03.894077 | 2016-01-23T22:32:14 | 2016-01-23T22:32:14 | 47,045,325 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-06 00:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('etsy', '0002_auto_20151206_0001'),
]
operations = [
migrations.AlterField(
... | [
"damien@dam.io"
] | damien@dam.io |
803f20b222f2a786b77c9b6d52e761c321aa2191 | 5ea136ca2e8066b77b39afdf15e3d0e6bc74761f | /scripts/generate-solve-files.py | dd2e19d28cb4d8b659ccf6ea89552ca96714641b | [] | no_license | reneang17/ttbar | 4023421846a70c22c13a2962520f7723ad35636b | 75f4fff1b5d79af097ea04aab437e2963215a232 | refs/heads/master | 2020-06-12T15:07:11.918815 | 2019-06-28T22:24:07 | 2019-06-28T22:24:07 | 194,339,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,010 | py | #!/usr/bin/env python3
#
# todo:
#
import argparse
import os
import re
import pickle
import stat
import pyIdSolver
parser = argparse.ArgumentParser()
parser.add_argument("file", \
help="list of prototypes to be solved")
parser.add_argument("--num", "-n", action="store_true",\
... | [
"reneang17@gmail.com"
] | reneang17@gmail.com |
908924e7f0fc7872418cbaa367802ed95561b18e | b08b7b47124c7cbc0c3afab6f55f727a7d2bd059 | /src/utils/common.py | 257b0d4a53bf6b8eb18da8f97e1aa53c9b10cb7f | [] | no_license | bigshanedogg/kaggle-jigsaw-competition | 356bb33ecd105bdd9431be0fb5e1fc5b4f8ae58f | 77ee7044f1f26525bdd128be437916c2a63924da | refs/heads/main | 2023-08-31T17:15:34.274167 | 2021-11-15T15:27:23 | 2021-11-15T15:27:23 | 428,316,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,185 | py | import os
import re
import json
import random
import shutil
import string
import numpy as np
import pandas as pd
import torch
from datetime import datetime
from soynlp.normalizer import repeat_normalize
def show_five_nums(data, verbose=True):
quartiles = np.percentile(data, [25, 50, 75])
min_v = np.min(data)
... | [
"bigshane319@gmail.com"
] | bigshane319@gmail.com |
f4b5e75239b0d12d4143ea60ff0aa770e29c357b | 5b2c0019174094e38138004b0b8a23a04190e7a4 | /venv/Lib/site-packages/IPython/external/path/_path.py | 359185039f37c3b13a2093f9892c0987f70db226 | [
"BSD-3-Clause"
] | permissive | Kiiwi/Syssel | 70b500b4fdff4216006d27f1be79a444475b51b4 | 83705e3fd0edf40f09df950d5ce91c95586573f5 | refs/heads/master | 2022-11-08T19:31:09.660481 | 2016-05-19T21:54:30 | 2016-05-19T21:54:30 | 58,882,760 | 0 | 1 | BSD-3-Clause | 2022-10-24T11:26:42 | 2016-05-15T20:26:27 | Python | UTF-8 | Python | false | false | 39,855 | py | #
# Copyright (c) 2010 Mikhail Gusarov
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, d... | [
"tommy.lee.ryan@gmail.com"
] | tommy.lee.ryan@gmail.com |
80a8ad40352c21f370fe34ef623717fcd0fb0e12 | a6894d17fdbceb56d4364f0e279d03b16a181396 | /working-env/lib/python2.5/TurboGears-1.0.2.2-py2.5.egg/turbogears/i18n/data/gl_ES.py | cd66c622a6504223bf630350451cb5556c01c232 | [] | no_license | thraxil/gtreed | c1c5a19178c1f50ff5e61887b13ff7b004da1d25 | ca228848364edb204b15a7411fd6192379781c78 | refs/heads/master | 2020-04-18T03:02:15.468044 | 2008-12-10T20:02:12 | 2008-12-10T20:02:12 | 88,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # Formatting configuration for locale gl_ES
languages={'gl': 'galego'}
countries={'ES': u'Espa\xf1a'}
months=['Xaneiro', 'Febreiro', 'Marzo', 'Abril', 'Maio', u'Xu\xf1o', 'Xullo', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Decembro']
abbrMonths=['Xan', 'Feb', 'Mar', 'Abr', 'Mai', u'Xu\xf1', 'Xul', 'Ago', 'Set', ... | [
"anders@columbia.edu"
] | anders@columbia.edu |
234fe0b3f16df5e57da1016934fe2f8075019def | 2a31c353c77acc1f134780d81d1be9d7eedfaf75 | /sampleapp/urls.py | 34eb58e25b776a19ee4244acc8478f05ce18ee7d | [] | no_license | CCCodes/Simple-Django-App | 9eb43cd1eca40f031fa4f592a97a632fe892521b | f65f2fecaaf352f01dd9ee6580fc017024eff6bd | refs/heads/master | 2020-03-22T02:35:27.957759 | 2018-07-02T02:23:32 | 2018-07-02T02:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include
from sampleapp import views
app_name = "sampleapp"
urlpatterns = [
path('admin/', admin.site.urls),
url(r'^login/$', views.login, name='login'),
url(r'^login_failed/$', views.login_failed, name='login_... | [
"caitlinchou@gmail.com"
] | caitlinchou@gmail.com |
d3f138c72c0428b9ca0d2101a5a8994f16946352 | 19b9b6062c491060a63078b5b9947deb4e4d132b | /Checker/SignalCheck.py | 2cc1b065fafc01542c5779027af26776930e7c0d | [] | no_license | JefferyPaul/StrategyAnalyzer | bcd8baed306ab68f829143025db40178181d229b | 2c7dfc8d615cc8433df0b1108ecbb39b929e0ddc | refs/heads/master | 2020-04-07T20:11:41.002909 | 2018-09-10T01:04:39 | 2018-09-10T01:04:39 | 158,678,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,337 | py | import os
import pandas as pd
from datetime import *
from Checker.getConfig import get_config
from DataManager import get_data_path
from Shower.BandShower import BandShower
from Shower.TargetPositionShower import TargetPositionShower
def set_start_date(str_start):
if len(str_start) == 0:
start_date = datetime(2000... | [
"595837423@qq.com"
] | 595837423@qq.com |
e3f22ef6f52e667dd7bb0c49d12ce580026b23a1 | 56a0762c741bcac3ab1172eb6114a9e59a48a5df | /mensajes/urls.py | c121166b0614ecbba8e0d369dfd323fc6757e6d3 | [
"MIT"
] | permissive | jjmartinr01/gauss3 | 54af1735a035a566f237d8e0fd9a6fe4447845a2 | 41a23d35c763890d8f729c9d63ac073673689400 | refs/heads/master | 2023-08-23T06:40:51.033857 | 2023-08-08T11:50:50 | 2023-08-08T11:50:50 | 171,710,013 | 1 | 0 | MIT | 2023-02-15T18:43:56 | 2019-02-20T16:35:03 | HTML | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
from django.urls import path
from . import views
urlpatterns = [
path('correo/', views.correo),
path('responder_mensaje/', views.responder_mensaje),
path('mensaje_importante/', views.mensaje_importante),
path('enviados/', views.enviados),
path('recibidos/', views.recibidos)... | [
"jmar0269@gmail.com"
] | jmar0269@gmail.com |
fbeb3df0ad93d859ac3ddaaaa8cf30f6e5c85e3f | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_torsion5.py | 83b99fba600d303db2edd39535fc5154b743f3b9 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | from xcp2k.inputsection import InputSection
from _point39 import _point39
class _torsion5(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Atoms = None
self.POINT_list = []
self._name = "TORSION"
self._keywords = {'Atoms': 'ATOMS'}
self._repeated_... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b23442ddc1decb7f8b5ac16595474fb0958b92f7 | 26605ec8a8bdd64a45af7d444d097d9e2f832dc9 | /electrum_xazab/plugins/keepkey/cmdline.py | d9c0b09fa26ff935158f1a8c786bcf62bd7adc2b | [
"MIT"
] | permissive | nunumichael/electrum-xazab | b67f821fd4a19e924d8ad902f076223df9b7511f | f128c765f451b418a418f9cd8b8e24fd8f66df74 | refs/heads/master | 2023-05-05T05:30:03.935745 | 2021-05-26T19:12:47 | 2021-05-26T19:12:47 | 370,091,240 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from electrum_xazab.plugin import hook
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keystore.han... | [
"71531505+xazab@users.noreply.github.com"
] | 71531505+xazab@users.noreply.github.com |
a61fb1cc5cb3816c0998f5905ac5942446afa481 | f246b414cce8687d6e5d1bb77cd94132b89580a2 | /commerce/auctions/migrations/0001_initial.py | 2a4e4b16150603161e70e2399aa01a2c0e0217c6 | [] | no_license | thewolfcommander/cs50-web | edbccd29b0b649852c7af73d5ecba4f51fa47ad3 | beead0967d36ef398b699601c8ebae646827556d | refs/heads/master | 2022-12-23T08:03:52.729833 | 2020-10-01T14:14:31 | 2020-10-01T14:14:31 | 300,309,278 | 2 | 2 | null | 2020-10-01T14:29:44 | 2020-10-01T14:29:42 | null | UTF-8 | Python | false | false | 5,777 | py | # Generated by Django 3.1 on 2020-09-06 02:37
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"nstu778@aucklanduni.ac.nz"
] | nstu778@aucklanduni.ac.nz |
43222f5e5d245a3e43971f99b03671da295988e0 | 0706632fa39c3c5ea0ae36b65c427f9220e5e480 | /maml_rl/samplers/multi_task_sampler.py | 1fc93f21d1c1c54b1e53d91af333d0822489b348 | [
"MIT"
] | permissive | jasleen1722/pytorch-maml-rl | 24aa60b6b3ed4d972fee4e33f17df5fe04fdf0bc | 243214b17da2ebfa152bba784778884b46a7e349 | refs/heads/master | 2022-11-14T09:15:55.882981 | 2020-05-28T10:39:00 | 2020-05-28T10:39:00 | 280,620,859 | 1 | 0 | MIT | 2020-07-18T09:06:46 | 2020-07-18T09:06:45 | null | UTF-8 | Python | false | false | 13,271 | py | import torch
import torch.multiprocessing as mp
import asyncio
import threading
import time
from datetime import datetime, timezone
from copy import deepcopy
from maml_rl.samplers.sampler import Sampler, make_env
from maml_rl.envs.utils.sync_vector_env import SyncVectorEnv
from maml_rl.episode import BatchEpisodes
fr... | [
"tristan.deleu@gmail.com"
] | tristan.deleu@gmail.com |
9b6e4467cb0a35180ca9666a768fe8b78f8e4250 | ec062c479c09ce250c3e23ff47f144f423b55648 | /py/Lib/site-packages/azure/mgmt/compute/compute/v2016_04_30_preview/operations/images_operations.py | 9036334dcb789747cc350335931fcc85d57e17d3 | [] | no_license | betisb/InputParser | c442ffc877a941bd5b7aac4d843a4d21594d8e96 | 68747d69e04d126f7ea679f93a291a6de244a95f | refs/heads/master | 2021-07-13T05:05:19.479329 | 2019-05-28T16:56:53 | 2019-05-28T16:56:53 | 188,087,891 | 0 | 2 | null | 2020-07-24T00:14:31 | 2019-05-22T17:52:13 | Python | UTF-8 | Python | false | false | 19,041 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"betis.h.a@live.com"
] | betis.h.a@live.com |
6b4bbf999b1e3971e8818a0b461d50577e4be523 | 3803bbc41c561b80d3ff6b79d45f00a29d868706 | /src/13ionetcdf/abinit.src | 51df8130fc9ba981594670600ac33c9a5c41ecc4 | [] | no_license | RADI-ux/abinit-cmake | 820cc3d6887b9e57b515d493c1a4cdc55e646dea | 54f0edb964b4f0153db532c7687db10e70ea80e2 | refs/heads/master | 2020-09-05T05:05:09.372589 | 2009-02-22T20:59:57 | 2009-02-22T22:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | src | # -*- Python -*-
#
# Copyright (c) 2005-2008 ABINIT Group (Yann Pouillon)
# All rights reserved.
#
# This file is part of the ABINIT software package. For license information,
# please see the COPYING file in the top-level directory of the ABINIT source
# distribution.
#
#
# Source files making up the 3ionetcdf librar... | [
"ondrej@certik.cz"
] | ondrej@certik.cz |
d6caa39c10d52e910422dd0d943485dcab3e9a75 | e5799f58d30361dd783f2932474c86cb7b0bbab0 | /calculator/views.py | 7a272276e19d3f6cd0deeeca93028fab19865b45 | [] | no_license | Shekharnunia/simple-calculator | a28aacfede97e9022bc7e9e59b278b8e62a681a3 | 006c8196acd5284e28cbe451ab5a5b0314975378 | refs/heads/master | 2022-11-18T05:43:32.816169 | 2020-07-20T11:28:51 | 2020-07-20T11:28:51 | 281,097,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | import operator
from django.shortcuts import render
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
class CalculatorAPIView(APIView):
def post(self, request, *args, **kwargs):
print(request.data)
value1 = int(request.data.get... | [
"shekharnunia@gmail.com"
] | shekharnunia@gmail.com |
f66ad320b398c7d248337244ae82393096b99540 | 268c588de53d48f2e48c694535e27c1be104229d | /Adapter_Pattern.py | b5fd93232e521c89f70478c8b19fe8abe2a22854 | [] | no_license | wax8280/Python_Design_Patterns | def64b1662924807946a9847ac1bf0437382a716 | 88fb08ad3605fb06166bf45d814f5b85a37364b5 | refs/heads/master | 2021-01-11T01:21:14.964828 | 2016-10-14T15:40:42 | 2016-10-14T15:40:42 | 70,715,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # coding:utf-8
class Synthesizer:
def __init__(self, name):
self.name = name
def __str__(self):
return 'the {} synthesizer'.format(self.name)
def play(self):
return 'is playing an electronic song'
class Human:
def __init__(self, name):
self.name = name
def __str_... | [
"wax8280@163.com"
] | wax8280@163.com |
7d4aff7df2367bb22dc9f41b31a08713bd0699f1 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_penicillin.py | 0cb436b425b437de661d400636d1bc4084227041 | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.penicillin import penicillin
def test_penicillin():
"""Test module penicillin.py by downloading
penicillin.csv and testing shape of
extrac... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
70e519043cf0a431f68a0786fbad374223501e77 | 3da69696601b2b3ad7bc1285a5f0343c7eafea80 | /lc888.py | 9b44f944a4450fb681eae24b3aa24a73adda0b00 | [] | no_license | GeorgyZhou/Leetcode-Problem | ee586463a2e4e75c910c095bdc057f1be70b5c1b | d6fac85a94a7188e93d4e202e67b6485562d12bd | refs/heads/master | 2021-06-30T15:58:04.698200 | 2020-12-18T22:55:49 | 2020-12-18T22:55:49 | 66,054,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | class Solution(object):
def fairCandySwap(self, A, B):
"""
:type A: List[int]
:type B: List[int]
:rtype: List[int]
"""
sum_a = sum(A)
sum_b = sum(B)
target = (sum_a + sum_b) / 2
diff = target - sum_b
set_a = set(A)
for b in B:
... | [
"michaelchouqj@gmail.com"
] | michaelchouqj@gmail.com |
f65794dc3bfb3a87865b42bd60309bdff9092190 | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2020/IterationStatement[0,0].LabelledEvaluation.spec | 24b97f4ffaca37ee1ec9e0e2e4054f282340c901 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 556 | spec | 1. Let _V_ be *undefined*.
1. Repeat,
1. Let _stmtResult_ be the result of evaluating |Statement|.
1. If LoopContinues(_stmtResult_, _labelSet_) is *false*, return Completion(UpdateEmpty(_stmtResult_, _V_)).
1. If _stmtResult_.[[Value]] is not ~empty~, set _V_ to ... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
c41f02c8804faa4da500fd7196ad6460a39b89d9 | 8d49683cd799ed66bc9dd197c197d1e1c7a73120 | /src/gamesbyexample/tutorialguess2.py | dc65f038f09cfaa639c5bba236608793939f3f78 | [
"MIT"
] | permissive | trujilloshane/PythonStdioGames | d2e53ec22121b30e4b5317e46ed685831492d9c3 | 83ac9cd367f688539b77f67f0d44433fc6fdcbdf | refs/heads/master | 2020-12-13T15:12:26.917070 | 2020-01-06T09:38:39 | 2020-01-06T09:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Tutorial: Guess the Number, by Al Sweigart al@inventwithpython.com
# Part 2 of a tutorial to make a "Guess the Number" game, bit by bit.
# Try copying the code in this program on your own and running the
# program before moving on to part 3. (You don't have to copy the
# comments.)
import random
secretNumber = ra... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
e9758f17759c46976528fab01887e7701ee4fe9d | 3147604001706f368a5cd73317a99a95e1501aca | /tensorflow_federated/python/core/impl/compiler/transformations.py | 31561a38f5b66ed52d275a69c98f81161d4e6998 | [
"Apache-2.0"
] | permissive | mlimwxxnn/federated | 7c4eb05c91ea3df905d55204bce9fdc07a3340da | 4da4cf1453a118087580b7d739c53a71e4e63bd4 | refs/heads/master | 2022-11-24T03:44:57.840507 | 2020-07-23T23:52:51 | 2020-07-23T23:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,293 | py | # Copyright 2019, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
919de8bda5555e026279ff964d9c8272e55f685d | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/performance_statistics_description.py | 0f598e45cec3f2d9bde0398e97bdd6052bb9f0e3 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def PerformanceStatisticsDescription(vim, *args, **kwargs):
'''Data object to capture all... | [
"jmb@pexip.com"
] | jmb@pexip.com |
5774b8d69dcd3e00d299f03348bf1b4f69ab5b72 | 6a6d8c0c8ddd6f5a1c03788f35320dd4b82314ea | /yamtbx/command_line/resolution_shells.py | cf6f26cf672b843e46f52bd2e3242f51bb60570a | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"MIT"
] | permissive | nsls-ii-mx/yamtbx | b817a131a8f6f515db99bc1743f81218997ac4ed | 311cf5a20e27a035a9e89c2abcb3c7d5e3684d67 | refs/heads/master | 2021-01-11T12:05:38.166937 | 2017-01-24T16:26:44 | 2017-01-24T16:26:44 | 76,574,177 | 1 | 0 | null | 2016-12-15T16:00:06 | 2016-12-15T16:00:06 | null | UTF-8 | Python | false | false | 1,555 | py | # LIBTBX_SET_DISPATCHER_NAME yamtbx.resolution_shells
def run(d_max, d_min, nbins, power, quiet=False):
step = ( d_min**(-power) - d_max**(-power) ) / float(nbins)
start = 1./(d_max**power)
d_vals = map(lambda x: (start + x * step)**(-1./power), xrange(nbins+1))
if not quiet:
print "%d resolut... | [
"keitaroyam@users.noreply.github.com"
] | keitaroyam@users.noreply.github.com |
6dbd9a7835aecb05ef4225d9b2774b2348f87fd2 | 1b3c32f1de0b0fb88f181ae1e1f47f00fcea576f | /setup.py | 2e3c13130fccf12524868690d84853acdaa41aa7 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | source-foundry/font-unicode | 0df33bda7774c926b1258e7003962a62ab2a1b4f | 74cc56f5674f41ee09f47f2c8f3dda0349a1ff73 | refs/heads/master | 2021-01-10T03:40:43.528760 | 2016-02-15T03:46:19 | 2016-02-15T03:46:19 | 43,691,845 | 8 | 2 | null | 2017-03-05T21:18:33 | 2015-10-05T15:08:31 | Python | UTF-8 | Python | false | false | 2,314 | py | import os
import re
from setuptools import setup, find_packages
def docs_read(fname):
return open(os.path.join(os.path.dirname(__file__), 'docs', fname)).read()
def version_read():
settings_file = open(os.path.join(os.path.dirname(__file__), 'lib', 'fontunicode', 'settings.py')).read()
major_regex = """... | [
"git.simpkins@gmail.com"
] | git.simpkins@gmail.com |
1269ca1daa7c5c39a3505ef9cf0ed5ba02d2c6ff | 09409b6910f7d58a28e46b90b111d5ff3d5442cc | /VSRTorch/Framework/Environment.py | ee43920616307bf06becbc22dbd67ab4f8913c6b | [
"MIT"
] | permissive | moyulization/VideoSuperResolution | 5600ae1cc0638226c3f5683b84e6731ba5e56f10 | dc8bf94aa65c1a4e92e6024ca77b402f5b252fcf | refs/heads/master | 2020-05-23T04:49:06.309103 | 2019-05-07T11:31:24 | 2019-05-07T11:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,557 | py | # Copyright (c): Wenyi Tang 2017-2019.
# Author: Wenyi Tang
# Email: wenyi.tang@intel.com
# Update Date: 2019/5/7 下午5:21
import logging
from pathlib import Path
import numpy as np
import torch
def _make_ckpt_name(name, step):
return '{}_ep{:04d}.pth'.format(name, step)
def _parse_ckpt_name(name):
if not n... | [
"twytwy12345@live.com"
] | twytwy12345@live.com |
4b7b32f5c4bdb6bfa3a50322f262394885ae6996 | 139af68b78734a6bc53bd942ffa05476baf3d71d | /Python Basic 2020/scholarship.py | 46bf7b78b9d1c70997de4b88288fd892fcd3cf19 | [] | no_license | MiroVatov/Python-SoftUni | 7fe3fc0a3928848c5317fb120f789c773bfc117e | 0d0d6f116281b4de8c413d254386e27d992d047b | refs/heads/main | 2023-08-24T09:44:31.261137 | 2021-10-18T14:04:03 | 2021-10-18T14:04:03 | 317,510,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | import math
income = float(input())
average_grades = float(input())
min_salary = float(input())
social_scholarship = math.floor(0.35 * min_salary)
scholarship = math.floor(average_grades * 25)
if income < min_salary:
if 4.5 >= average_grades > 5.50:
print(f'You get a Social scholarship {social_sc... | [
"noreply@github.com"
] | MiroVatov.noreply@github.com |
923b08f989cc5e5cf10261fb953a99ce009c5723 | 738b6d6ec4572f5848940b6adc58907a03bda6fb | /tests/pymcell4_positive/1910_get_molecule_ids_w_pattern/model.py | 4028ae43db75f8bc3d72eae558a1763e960ec613 | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | mcellteam/mcell_tests | 09cd1010a356e0e07c88d7e044a73c5606c6e51a | 34d2d967b75d56edbae999bf0090641850f4f4fe | refs/heads/master | 2021-12-24T02:36:24.987085 | 2021-09-24T14:19:41 | 2021-09-24T14:19:41 | 174,733,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | #!/usr/bin/env python3
# WARNING: This is an automatically generated file and will be overwritten
# by CellBlender on the next model export.
import sys
import os
MODEL_PATH = os.path.dirname(os.path.abspath(__file__))
# ---- import mcell module located in directory ----
# ---- specified by system variable ... | [
"ahusar@salk.edu"
] | ahusar@salk.edu |
9c1ad872a0bf0ef2e608edf22975f93cf2a85ed0 | 91be8144fb27840eab01f75b249493a0db80d416 | /statistics/settings.py | c64577ea484a40cc0a4270de350a0c82af53406f | [] | no_license | xutaoding/statistics | dee28454c9ebb21aa5f88862dcd2c3c8013bc68d | f38b2e93c1dc239291ea70fc2fea14d23d0a14ef | refs/heads/master | 2016-09-12T17:03:44.965553 | 2016-05-11T07:58:10 | 2016-05-11T07:58:10 | 56,758,825 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for statistics project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | [
"xutao.ding@chinascopefinancial.com"
] | xutao.ding@chinascopefinancial.com |
f9b7c3a7b6915c1378baab9f04fb52f655f514bf | e7a804e5e68c4019262a5cb619ba80ef34614ae3 | /pybind/slxos/v16r_1_00b/interface/ethernet/port_profile_to_interface_associations/port_profile_port/__init__.py | b023102edcb4930cf7a9d1b5d50c8f0c970d5752 | [
"Apache-2.0"
] | permissive | shivharis/pybind | 787978726f7efa7e4662d32ebe0075f36f6ff2f4 | 4e1c6d54b9fd722ccec25546ba2413d79ce337e6 | refs/heads/master | 2021-06-10T14:37:04.186120 | 2017-01-24T22:13:25 | 2017-01-24T22:13:25 | 70,860,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,136 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
ae8e9c862609271c8b66204f40532e2e21281027 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyfile/pyfm-011/pyfmlight.py | 7ddadbd3b74d728a4c752e8270718342b39d2480 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | #!/usr/bin/env python
# 3D File Manager in Python OpenGL, light helper routines
#
#import math, sys, rand
#import gtk.gtkgl
from OpenGL.GL import *
from OpenGL.GLU import *
def light(self):
# Lighting properties.
#light_ambient = [0.0, 0.0, 0.0, 1.0]
#light_ambient = [1.0, 1.0, 1.0, 1.0]
l... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
a35fdea02255d765351560a273e9c3223a934f95 | 4293c8d2e0e8eb7d21e2706ecfdbbe6d80244f5d | /pfurl/tests/test_message.py | 2758baaaaefb60743929b3a867b21ba13d954cc3 | [
"MIT"
] | permissive | FNNDSC/pfurl | 52352a4c9085ee620e509bd5e0b20c82913e52ad | c37e57b5dc03a81a15e566f2d325a7dd1047ac10 | refs/heads/master | 2021-11-22T22:25:54.776531 | 2021-10-28T17:01:27 | 2021-10-28T17:01:27 | 87,982,205 | 1 | 10 | MIT | 2021-01-18T07:40:41 | 2017-04-11T21:45:59 | Python | UTF-8 | Python | false | false | 2,860 | py | from unittest import TestCase
from pfurl import Message
from pfurl import Colors
class TestMessage(TestCase):
def test_message_constructor(self):
message1 = Message()
message2 = Message()
message1.syslog(True)
message1(Colors.RED + Colors.WHITE_BCKGRND + 'hello world!\n' + Colors.... | [
"rudolph.pienaar@gmail.com"
] | rudolph.pienaar@gmail.com |
5b607d6b9cee4ca29ffb02c954d4974d9d659227 | eb297ff1e0011438fd184cc338b3fb86859b81c9 | /Chapter 2/2-09.py | f6650c9ed58648f9a33f971fed80805763e78249 | [] | no_license | mynameisbenzo/PythonCrashCourse | c73a4505d9cdfe4df78e3ed01adb3491debf8a9b | 831a9962a3c6cab53ecfdb1d2cceb0dd2d9c5a0a | refs/heads/master | 2021-04-12T08:13:51.772957 | 2018-05-02T05:54:57 | 2018-05-02T05:54:57 | 126,091,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # adding whitespace is fine, but what about taking whitespace out?
favLanguage = 'python '
# whether you see it or not, that space at the end of python is currently being printed
print(favLanguage)
# let's strip that space with rstrip()
favLanguage = favLanguage.rstrip()
# now instead of printing 'python ', we are c... | [
"lorhernandez@csumb.edu"
] | lorhernandez@csumb.edu |
627d5af8cce30f6aae3454e7506d35ace02be8cd | a1abb7681dffe3e9f0b651ed2769c7decc31300e | /src/room.py | c287a8aab8badc4360cd94615f47fa31972f85c3 | [
"MIT"
] | permissive | pyrobit/UnderwaterBattles | 65010faba9e13bbae8a1032da9ee76b767e24981 | 01519291401600bad6dfbbfaecfacbce2219f7c8 | refs/heads/main | 2023-04-23T05:52:20.125325 | 2021-04-30T16:41:17 | 2021-04-30T16:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,622 | py | from math import pi, hypot
import pygame as pg
from random import uniform
from objects.bubble import Bubble
from objects.body import Body
from objects.mobs import Mother
from objects.mob_guns import GunBossLeg
from gui.text_box import TextBox
from special_effects import add_effect
from data.config import *
from data.c... | [
"ildar.239@mail.ru"
] | ildar.239@mail.ru |
358135f3c10986d829cb49c921930c45ce321063 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/negativeInteger/Schema+Instance/NISTXML-SV-IV-atomic-negativeInteger-minExclusive-1-1.py | b2bf10a8b4a038f05f850d22b1b89862949d679d | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 333 | py | from output.models.nist_data.atomic.negative_integer.schema_instance.nistschema_sv_iv_atomic_negative_integer_min_exclusive_1_xsd.nistschema_sv_iv_atomic_negative_integer_min_exclusive_1 import NistschemaSvIvAtomicNegativeIntegerMinExclusive1
obj = NistschemaSvIvAtomicNegativeIntegerMinExclusive1(
value=-99999999... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
7d7bef5c7b17b9b279306a74373faadcaf8172a8 | e20a786fb69b361e1ddfa509df63713371fa1eae | /examples/random_bot_example.py | eb37b882de7d027d8f75eefe133e8e5fa9a3bbe4 | [
"Apache-2.0"
] | permissive | greentec/ffai | d7fec6192c75f996c77f714cef7d76e06d44b0af | 3a966a395e5d48c94377cf8dd367897f205d3f9b | refs/heads/master | 2020-06-19T10:34:14.722778 | 2019-06-24T14:15:20 | 2019-06-24T14:15:20 | 196,679,040 | 1 | 0 | Apache-2.0 | 2019-07-13T04:42:58 | 2019-07-13T04:42:57 | null | UTF-8 | Python | false | false | 1,980 | py | #!/usr/bin/env python3
from ffai.core.game import *
from ffai.core.model import *
from ffai.ai.registry import register_bot, make_bot
import numpy as np
class MyRandomBot(Agent):
def __init__(self, name, seed=None):
super().__init__(name)
self.my_team = None
self.rnd = np.random.RandomSt... | [
"njustesen@gmail.com"
] | njustesen@gmail.com |
69aceb2215e2178aacdb6e054f0e95c840410ad3 | 19333aed645a4721108a67ba4d90292d2383314e | /52totalNQueens.py | 0168c944b93eb3ec6b25f8e5e9373388f24a80ec | [] | no_license | qinzhouhit/leetcode | f39f8720a19259310293c1eb2975ce459f7cf702 | 502e121cc25fcd81afe3d029145aeee56db794f0 | refs/heads/master | 2023-06-24T09:18:25.715450 | 2021-07-21T07:21:42 | 2021-07-21T07:21:42 | 189,679,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | '''
keys:
Solutions:
Similar:
T:
S:
'''
from typing import List
class Solution:
def totalNQueens(self, n: int) -> int:
def could_place(r, c):
# all of the three can not be 1
return not (cols[c] + anti_diagonal[r-c] + diagonal[r+c])
def place_queen(r, c):
... | [
"qinzhouhit@gmail.com"
] | qinzhouhit@gmail.com |
aaf95bc377b4f6ac5571ff8ba34a024808a717cf | 786de89be635eb21295070a6a3452f3a7fe6712c | /psana_test/tags/V00-08-19/src/unitTests.py | 5fbaf4dccb077c9ee876b5b02f4684485a8f535a | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,300 | py | #--------------------------------------------------------------------------
# Description:
# Test script for psana_test
#
#------------------------------------------------------------------------
#--------------------------------
# Imports of standard modules --
#--------------------------------
import sys
impo... | [
"davidsch@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | davidsch@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
2c078cc28bf5d3b25dce2dc028c83c1da2334d13 | 7006366dffa1576d54d5b8e619de10d999f9ccd7 | /application.py | 12d8f3fe68f0a4783d6ab98688fc638405061705 | [] | no_license | gaolinjie/webeta | 47e01d98cf20cd892b5005048d9729480e3ead2c | 3038e36abda5118be2b1075ca93f57b79da370b9 | refs/heads/master | 2021-01-10T11:14:34.450441 | 2016-04-09T17:07:04 | 2016-04-09T17:07:04 | 53,676,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,246 | py | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2016 webeta
# cat /etc/mime.types
# application/octet-stream crx
import sys
reload(sys)
sys.setdefaultencoding("utf8")
import os.path
import re
import memcache
import torndb
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web... | [
"gaolinjie@gmail.com"
] | gaolinjie@gmail.com |
ce2033c9bbcab7449f71973ced2d77fe349b5e39 | d476c93aa2aecd253508da0cc35071e456199318 | /test_autoarray/plot/wrap/base/test_colorbar.py | 44e53778fc90d48d4852ab5580bf6399337c6ff2 | [
"MIT"
] | permissive | Jammy2211/PyAutoArray | 82916f3f5530f938786f61f870df353b26732e37 | 6639dd86d21ea28e942155753ec556752735b4e4 | refs/heads/main | 2023-08-19T10:51:05.520942 | 2023-08-14T09:12:15 | 2023-08-14T09:12:15 | 210,980,464 | 6 | 5 | MIT | 2023-09-13T14:07:39 | 2019-09-26T02:18:10 | Python | UTF-8 | Python | false | false | 1,601 | py | import autoarray.plot as aplt
import matplotlib.pyplot as plt
import numpy as np
def test__loads_values_from_config_if_not_manually_input():
colorbar = aplt.Colorbar()
assert colorbar.config_dict["fraction"] == 3.0
assert colorbar.manual_tick_values == None
assert colorbar.manual_tick_lab... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
16a13dac0d327baadd156e0e33859f5aa14afdd1 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/22Jul/down/emb/DoubleMuParked/StoreResults-Run2012D_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374500587/HTT_22Jul_manzoni_Down_Jobs/Job_166/run_cfg.py | 17a95d827e3dc65c8a222b6cce830c36abd1c45f | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,042 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/22Jul/down/emb/DoubleMuParked/StoreResults-Run2012D_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
f76e79a9d93f4eb209b8e63f9e1991e9feaf8695 | 05536893d069dd87256ba74ecdee06bdf481d44b | /args_api/SSEXP/SSEXP-DBTES.py | 0628cdd66ce0ae757dda369ebcb5cd9ce329ab92 | [] | no_license | TheRockStarDBA/DataBuddy | b2d889e11745d0afe1b39a11aab5945e2bd08cf7 | 38fa7adfdd228e2b2e4b4408393505163c5702e8 | refs/heads/master | 2020-12-25T23:27:02.363977 | 2015-05-28T19:14:12 | 2015-05-28T19:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,175 | py | #do not change
aa={'SSEXP_QueryDir.DBTES_Table': [{'field_term': ('-t', '--field_term', '"|"', 'Field terminator.'), 'num_of_shards': ('-r', '--num_of_shards', 1, 'Number of shards.'), 'pool_size': ('-o', '--pool_size', 1, 'Pool size.'), 'copy_vector': ('-w', '--copy_vector', 'ssexp-dbtes', 'Data copy direction.'), 'ke... | [
"alexbuzunov@gmail.com"
] | alexbuzunov@gmail.com |
74efb24cfcc456c3777f5202802beb8da836dca9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02633/s493088951.py | d53bbb4349c3e01d0bf0e8192f14d379d2450aff | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | x = int(input())
ans = 0
while True:
ans += 1
if ans*x % 360 == 0:
break
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
72d42e23b47cf5c666a99a2493fc2ba13e552941 | a8fffbce7bd4d4e7e91f07b7aaaf0801ca64686e | /0x01-python-if_else_loops_functions/4-print_hexa.py | 19710345b8751a2df176d7845cec2204e07435b4 | [] | no_license | bmuha1/holbertonschool-higher_level_programming | 8f603c07e4b3cb87d89c3a1fff9fd5cdef5bc9f5 | 79cca6ecb77ed8de65b55bcdd715a3a923c5cb3a | refs/heads/master | 2020-07-22T15:52:04.069523 | 2020-02-13T23:29:50 | 2020-02-13T23:29:50 | 207,251,416 | 2 | 7 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | #!/usr/bin/python3
for i in range(0, 99):
print('{:d} = 0x{:x}'.format(i, i))
| [
"800@holbertonschool.com"
] | 800@holbertonschool.com |
c48fdcf193858cfb50927df777850acb30ebd52e | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4254/codes/1637_1055.py | e44021d6d961a9fd0df484c0a0024cf18b907868 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
from math import*
vi = float(input("Valor da vel. inicial: "))
ang = radians(float(input("Valor do angulo: ")))
d = float(input("Valor da distancia horizontal: "))... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c1f078d04fb1349eb369dd17b1730b136b109c1b | bbf1153379eb6f8d0da97e7f608d8714f69bea2f | /masker.py | 3e8dbdfa38d1bb6e3504834ad4cca692e6ff1937 | [] | no_license | rubythonode/Fairy-zepeto-tech | 234fd96a26ba58f1267d723a7f9f8faeb6584fcc | b7f5e64fe9ae9ddeca91cb5c5a8629d9762f984e | refs/heads/master | 2020-12-23T11:56:46.095451 | 2019-05-11T09:08:12 | 2019-05-11T09:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | import cv2
from imutils.video import VideoStream
import imutils
import dlib
def draw_dlib_rect(frame, rect):
x, y = rect.left(), rect.top()
w, h = rect.right() - x, rect.bottom() - y
cv2.rectangle(frame, (x, y), (x + w, y + h), (255, 0, 0), 2)
def main():
detector = dlib.get_frontal_face_detector()
... | [
"32605822+JunhoYeo@users.noreply.github.com"
] | 32605822+JunhoYeo@users.noreply.github.com |
91f7e272e123bcc82effd0aa0590229161bc20a0 | 177d7066f6a0326ed937a56174d7e2241653929a | /Tree&Graphs/lc733.py | e1405eccb1370ebee80dc19fea3328286363cdba | [] | no_license | jasonusaco/Leetcode-Practice | 276bcdb62b28806b3d297338882f4b1eef56cc13 | 91dc73202eb9952a6064013ef4ed20dfa4137c01 | refs/heads/master | 2020-07-06T08:29:09.419062 | 2019-10-10T01:43:03 | 2019-10-10T01:43:03 | 202,955,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Solution:
def floodFill(self, image, sr, sc, newColor):
R=len(image)
C=len(image[0])
oldColor=image[sr][sc]
if oldColor==newColor:
return image
def dfs(r,c):
if image[r][c]==oldColor:
image[r][c]=newColor
... | [
"yangyx@raysdata.com"
] | yangyx@raysdata.com |
63ee5b6e6fb9e38aace4cf21ce53147853078367 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02576/s038383120.py | 9145f7248eee02d00cc812c74f809dbb43d03476 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py |
n,x,t = map(int,input().split())
if n % x ==0:
print(int(n/x*t))
else:
print(int((n//x+1)*t))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
323874b2e2f36c12b541fc62524c7fcb8b55acf7 | e1fada3a9846a5593e3d3d2fdc32b23b832e38b4 | /otx/mpa/seg/stage.py | d590b95c4f69f193b4c83ac34f749ec3408f023a | [
"Apache-2.0"
] | permissive | GalyaZalesskaya/openvino_training_extensions | fd1ebb189900008b16b85568449e5c62d8edbad5 | 6116639caeff100b06a6c10a96c7e7f5951f20c7 | refs/heads/develop | 2023-09-03T19:32:44.702497 | 2023-03-15T06:48:24 | 2023-03-15T06:48:24 | 202,568,309 | 0 | 0 | Apache-2.0 | 2019-10-28T16:16:27 | 2019-08-15T15:41:59 | Python | UTF-8 | Python | false | false | 5,579 | py | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from mmcv import ConfigDict
from otx.algorithms.segmentation.adapters.mmseg.utils.builder import build_segmentor
from otx.mpa.stage import Stage
from otx.mpa.utils.config_utils import recursively_update_cfg
from otx.mpa.utils.logger import... | [
"noreply@github.com"
] | GalyaZalesskaya.noreply@github.com |
4c19f566aefa3011a9090945688d333dec852953 | d2e4206ce78451b08bc742e4376316077236e418 | /RemoveAllAdjacentDuplicatesinStringGreaterThanEqualToK.py | 5650df59145581dd769a0da1af47d40e884cdfb9 | [] | no_license | coolsgupta/leetcode | cb25a62999bc0fe20fd7b250c5056c4b6cc3bdca | 64ad78da317c783ffc68357524daa38be0074417 | refs/heads/master | 2023-04-20T11:26:25.638424 | 2021-05-12T05:04:56 | 2021-05-12T05:04:56 | 238,100,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
stack = []
i = 0
while (i < len(s)):
x = s[i]
if not stack:
stack.append([x, 1])
elif stack[-1][0] != x:
if stack[-1][1] >= k:
stack.pop... | [
"cool.sgupta@gmail.com"
] | cool.sgupta@gmail.com |
cc357f6f1e4bea37c08347ba9e8dad0df543adc7 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_aleph5381_a.py | 92a8b86a7abbd771359c6c39ae5adc41704a46a0 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python3
import sys
rl = lambda: sys.stdin.readline()
T = int(rl())
def solve(casei):
line = rl().split()
N = int(line[0])
if N is 0:
print("Case #{}: INSOMNIA".format(casei))
return
check = [0] * 10
x = 0
fin = False
while fin is False:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
bef6de11300c0be1b68a28fd535972aa2b0cad51 | 7bb9ffe61491817e999de40266653063ae4f8cfb | /swamp_angel/cc_wrf_swe/allNcFiles_wrf_snowRainSep.py | f6aab080fbbd97a257f332ddc3ba0c95f888f631 | [] | no_license | cycle13/chapter1 | b0e43d7c3297aa24109d0fd00e9bfaa9a95cea2c | 18638f5ef806fa16d7b3b14b43501674478e220e | refs/heads/master | 2022-04-09T23:55:21.936738 | 2020-03-31T01:44:44 | 2020-03-31T01:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,863 | py | av_ncfiles_h_rs = ["C:/Users/HHS/summaTestCases_2.x/output/swampAngel/rainSnow/sa_rs_ljc_12p_h_2006-2007_senatorVariableDecayRate_1.nc",
"C:/Users/HHS/summaTestCases_2.x/output/swampAngel/rainSnow/sa_rs_ljc_12p_h_2007-2008_senatorVariableDecayRate_1.nc",
]
av_ncfiles_T_rs ... | [
"safa.hamideh@gmail.com"
] | safa.hamideh@gmail.com |
f9e8a99edebd2f573d6d2be807df5f607a9f8f7c | af4abf0a22db1cebae466c56b45da2f36f02f323 | /storage/fase2/team14/storage/Blockchain.py | e165b05dd9bb4ba6701acce857ef42272e491acf | [
"MIT"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 5,175 | py | import json
import hashlib
import os
import csv
def turn_on_safe_mode(database, table):
blockchain = {}
with open('data/info/safeModeTables/' + database + table + '.json', 'w') as file:
json.dump(blockchain, file, indent=4)
def turn_off_safe_mode(database, table):
os.remove('data/in... | [
"noreply@github.com"
] | joorgej.noreply@github.com |
e40541251a9d5577e3a17f6424b708ed485084f5 | 34ef54c04b369a6161c6f8a649868a47122a2d89 | /.venv/Lib/site-packages/astroid/brain/brain_hashlib.py | a6582de9504bc79b6cb428620bbacdf4b4b44262 | [
"MIT"
] | permissive | abner-lucas/tp-cruzi-db | f70ad269c50a2db24debd1455daeddaa2ebd3923 | 595c5c46794ae08a1f19716636eac7430cededa1 | refs/heads/bioinformatica | 2023-05-18T23:23:23.458394 | 2021-06-14T02:13:17 | 2021-06-14T02:13:17 | 351,864,250 | 2 | 2 | MIT | 2021-06-13T19:52:18 | 2021-03-26T17:40:20 | Python | UTF-8 | Python | false | false | 2,400 | py | # Copyright (c) 2016, 2018, 2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2018 David Poirier <david-poirier-csn@users.noreply.github.com>
# Copyright (c) 2018 wgehalo <wgehalo@gmail.com>
# Copyright (c) 2018 Ioana Tagirta <ioana.tagirta@gmail.com>
# Copyright (c) 2020-2021 hippo91 <guillaume.peillex@gmail.c... | [
"abnerlucas.cad@gmail.com"
] | abnerlucas.cad@gmail.com |
c66fb5735b664f20d647f3bc49bc6ba93a005a3d | f6703b2afca284bf75e0dbf8f61d77e5251f905c | /euler55.py | 8409d725d3672ffc5ec2ce87dddc8a3c639332e4 | [] | no_license | rwieckowski/project-euler-python | 2a7aa73670b4684f076ad819bfc464aa0778f96c | be9a455058b20adfd32c814effd8753cc9d39890 | refs/heads/master | 2021-01-10T21:10:44.875335 | 2015-06-23T13:29:58 | 2015-06-23T13:29:58 | 37,920,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | """
If we take 47 reverse and add 47 74 121 which is palindromic
Not all numbers produce palindromes so quickly For example
349 943 1292
1292 2921 4213
4213 3124 7337
That is 349 took three iterations to arrive at a palindrome
Although no one has proved it yet it is thought that some numbers like
196 never... | [
"rwieckowski@ivmx.pl"
] | rwieckowski@ivmx.pl |
c40ee3ce0fccd75e6378521c50021da41918068a | b02a5015ecc61414834c4b24e5f33168eb99070a | /CCscripts/MakeAgreementGraph.py | e6b906884fb9acab5b5c0c84e68a61196f62ba47 | [
"MIT"
] | permissive | mrvollger/SDA | f1aa8edf9989125d7e0c0f6ae159bca495915826 | 3d5e9ec8d1e7ac97121c33c6be80d635392631cf | refs/heads/master | 2023-05-13T05:24:54.665854 | 2023-05-07T23:40:25 | 2023-05-07T23:40:25 | 101,452,926 | 29 | 5 | MIT | 2019-11-21T18:08:13 | 2017-08-26T00:58:01 | Python | UTF-8 | Python | false | false | 3,729 | py | #!/usr/bin/env python
import argparse
import ABPUtils
import numpy as np
import sys
import networkx as nx
import matplotlib.pyplot as plt
ap = argparse.ArgumentParser(description="Sort by haplotype")
ap.add_argument("mat", help="snv matrix file")
ap.add_argument("--out", help="Output file", default="/dev/stdout")
ap... | [
"mrvollger@gmail.com"
] | mrvollger@gmail.com |
9eae891cd50c3307935c030b24af13498a8781a3 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Handy/CenteringPolicy.py | 1f4d15a624e31aae89848e0823774339bcdc6110 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 12,809 | py | # encoding: utf-8
# module gi.repository.Handy
# from /usr/lib64/girepository-1.0/Handy-0.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
64683810f9c43df3333a32d6404f1f6af85bc005 | f1c20d0836f4815b81c895ffe22a29005db3746d | /backend/main/settings/base.py | ed93056e2f01bdbdcf212ab4fe28dc7d14f35e97 | [] | no_license | pavelm2007/leadersofdigital_2020_04 | 6ceacf0858ea46bd73c5a0e0ab120cae802e85bd | 0132d1b3361518b109b0632daaf13ed8e849192d | refs/heads/main | 2023-04-04T21:12:54.890040 | 2021-04-17T20:37:02 | 2021-04-17T20:37:02 | 358,649,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,933 | py | # https://docs.djangoproject.com/en/1.10/ref/settings/
import os
from decouple import config # noqa
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def base_dir_join(*args):
return os.path.join(BASE_DIR, *args)
SITE_ID = 1
SECURE_HSTS_PRELOAD = True
DEBUG = True
AD... | [
"pavelm2007@yandex.ru"
] | pavelm2007@yandex.ru |
64649915912e14ca161b5972b75805aaa8f7bc29 | c92b6c0b59d25018de5b51c6d88f4764e5b713d7 | /ligo/skymap/conftest.py | 102ff41df148897c8cdc94c7f0d69d5122e5549c | [] | no_license | lpsinger/ligo.skymap | 9ecb3480859a3bc7e09332118aa151b47cf50dc8 | 35d451804acb859141a39296f8d6f760802fc78c | refs/heads/main | 2023-08-30T21:01:00.223367 | 2023-08-21T14:03:13 | 2023-08-21T14:03:13 | 124,963,286 | 24 | 18 | null | 2023-07-08T12:53:23 | 2018-03-12T23:17:14 | Python | UTF-8 | Python | false | false | 2,321 | py | # This file is used to configure the behavior of pytest when using the Astropy
# test infrastructure. It needs to live inside the package in order for it to
# get picked up when running the tests inside an interpreter using
# packagename.test
import warnings
from astropy.version import version as astropy_version
impo... | [
"leo.singer@ligo.org"
] | leo.singer@ligo.org |
dedd346d54e7685a9a5faf73d1ec612f64bd2a8b | 02e5b1240db2ef04b4f8b661a9ac4ce060144d74 | /experiments/debug_algorithm_comparison.py | a478002d69b94f10e3cab276763d6d6087c35cfb | [
"MIT"
] | permissive | jayeshchoudhari/pyhawkes | b3b143a5040730826c23a9b3703159dbeb9bf21d | f4b0e6e3ce7f74e647f0ed2254ea334c22d6e82b | refs/heads/master | 2021-06-12T12:55:54.740142 | 2017-03-27T06:47:16 | 2017-03-27T06:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | """
Compare the various algorithms on a synthetic dataset.
"""
import cPickle
import os
import copy
import gzip
import numpy as np
# Use the Agg backend in running on a server without the DISPLAY variable
if "DISPLAY" not in os.environ:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
# ... | [
"scott.linderman@gmail.com"
] | scott.linderman@gmail.com |
8f4254578ec4c86546e4c356104dd919b4821bc6 | 6d80ce7a1f44ddf5741fd190ddfe0d9be8e5f162 | /model/recognition_model/MORAN_V2/models/fracPickup.py | c77c4b2472d2cf2ef4c6501bff03d3cb0602d5ac | [
"MIT"
] | permissive | dun933/FudanOCR | dd8830ca4b8ebb08acd31326fcf5aa3c961886a0 | fd79b679044ea23fd9eb30691453ed0805d2e98b | refs/heads/master | 2021-04-03T19:50:47.646099 | 2020-03-16T08:43:59 | 2020-03-16T08:43:59 | 248,391,401 | 1 | 0 | MIT | 2020-03-19T02:23:11 | 2020-03-19T02:23:10 | null | UTF-8 | Python | false | false | 1,448 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import numpy.random as npr
class fracPickup(nn.Module):
def __init__(self, CUDA=True):
super(fracPickup, self).__init__()
self.cuda = CUDA
def forward(self, x):
x_shape = x.size()
assert ... | [
"576194329@qq.com"
] | 576194329@qq.com |
9c7f732d96190c1f4b8f7ae7b0edeb7d246afb53 | 7f37e5485cf6140ffad3cd75e1549c3b31ba0758 | /afvink4/venv/Lib/site-packages/bio/SearchIO/HmmerIO/hmmer3_text.py | 17b8162977b2b7f6c4c9015b414eb769a68da519 | [] | no_license | sannepost2001/blok4 | dfd3e760fcec4b4e550d12fc16058234ddcf4999 | 28e3625ca8d60dac6684f5dec85f9757b64d5bdb | refs/heads/master | 2023-05-12T12:51:16.243769 | 2019-06-11T12:50:07 | 2019-06-11T12:50:07 | 185,570,784 | 0 | 0 | null | 2023-05-01T20:34:22 | 2019-05-08T09:05:18 | Python | UTF-8 | Python | false | false | 18,968 | py | # Copyright 2012 by Wibowo Arindrarto. All rights reserved.
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been included as part of this
# package.
"""Bio.SearchIO parser ... | [
"43266412+sannepost2001@users.noreply.github.com"
] | 43266412+sannepost2001@users.noreply.github.com |
0682e73e7996182b5c7e1fc9d9644fdff3829b00 | 11df0f91cb97d974a8097a74a907dadfdf63e5a3 | /plugins/jobs/setup.py | ba8f34b55e76d90d049415c52752673fce8b6d66 | [
"Apache-2.0"
] | permissive | kotfic/girder | 730b8234a51e8428952cf359cd5ddb3ccb992510 | 461faf52288c8fc4936f1e7a2ff08ee5a674f324 | refs/heads/master | 2021-01-15T21:07:53.923485 | 2018-10-24T15:03:53 | 2018-10-24T15:03:53 | 40,503,503 | 0 | 0 | Apache-2.0 | 2018-10-05T14:49:29 | 2015-08-10T20:05:16 | Python | UTF-8 | Python | false | false | 1,867 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2013 Kitware Inc.
#
# Licensed under the Apache License, Version 2.0 ( the "License" );
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"jonathan.beezley@kitware.com"
] | jonathan.beezley@kitware.com |
374d8fa07453bdb586f04c0da638a78ecfb7da08 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fractions_20200802110516.py | 772193c82c005ec68c8acc419df9558f065a5ee3 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | def fractions(numerator,denominator):
if denominator == 0 :
return str(numerator)
number = numerator / denominator
if numerator % denominator == 0:
return str(numerator // denominator)
newStr = str(number)
print(newStr)
largeStr = newStr.split(".")
if len(largeStr[1]) > 1:
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
95acbaf7ca434dbb5ce338d2f69a29098e9a845c | 744096e063ffb4cdb017f60e6dfae410a51c789a | /keras/keras78_iris_cnn.py | 76a91517f44f06c521e9584fdf7f72c5fcb4fbf3 | [] | no_license | elf0508/Study-bit | 59ddab507b02c13a45913c05a4799ff946e63f95 | a773d7643cbb1c0008e7ea01c32615c9e6e3678c | refs/heads/master | 2022-12-31T11:53:44.344693 | 2020-10-16T09:04:01 | 2020-10-16T09:04:01 | 270,950,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | # 다중 분류
from sklearn.datasets import load_iris
iris = load_iris()
x = iris.data
y = iris.target
print(x.shape) # (150, 4)
print(y.shape) # (150, )
# x : scaler
from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
scaler.fit(x)
x = scaler.transform(x).reshape(150, 2, 2, 1)
# y : on... | [
"elf0508@naver.com"
] | elf0508@naver.com |
3a6f59ae3607d35583d9c3f4b8a8aede43a77042 | 1e4d852a59e6f16d70fb05e74f5b8d6e52bbc5d7 | /data_visualization/15/5/rw_visual.py | 074f07253417fcf0ddce0a00d6e446f6e87c938f | [] | no_license | 1000monkeys/probable-invention | 6cb32fae592f7752c77c295a4be2d500e0a55ec9 | adf42f00c32ab7eb165d78dde3703eba3037356d | refs/heads/master | 2021-06-29T17:08:52.810761 | 2020-10-08T12:45:20 | 2020-10-08T12:45:20 | 168,561,027 | 0 | 0 | null | 2020-09-16T12:38:46 | 2019-01-31T16:54:48 | Python | UTF-8 | Python | false | false | 753 | py | import matplotlib.pyplot as plt
from random_walk import RandomWalk
while True:
# Make a random walk, and plot the points.
rw = RandomWalk(500000)
rw.fill_walk()
plt.figure(figsize=(10, 6))
point_numbers = list(range(rw.num_points))
plt.scatter(rw.x_values, rw.y_values, c=point_numbers, cmap... | [
"vos.kjell@gmail.com"
] | vos.kjell@gmail.com |
4291163c4d878c064857a56c6a82f69f91513bf4 | e22390ec9aa1a842626075113472f81076e1bf5f | /pullenti/ner/Token.py | a43336724fed84022a0f45a9486a9a8d01a9b5a1 | [] | no_license | pullenti/PullentiPython | ba9f450f3f49786732e80f34d0506d4a6d41afc3 | 815d550b99f113034c27f60d97493ce2f8e4cfcc | refs/heads/master | 2021-06-22T17:12:36.771479 | 2020-12-11T06:10:23 | 2020-12-11T06:10:23 | 161,268,453 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,959 | py | # Copyright (c) 2013, Pullenti. All rights reserved.
# Non-Commercial Freeware and Commercial Software.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project.
# The latest version of the code is available on the site www.pullenti.ru
import typing
from pullen... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
2b0a3e54bd7df8f06edc4175709dcf19073b79f7 | 02945da6cb88389315e6237e7a0715b99a88fc1f | /example/shop/modifiers/__init__.py | 2069050ccce50d08b5d9241b829f26ffdbc5af81 | [
"BSD-3-Clause"
] | permissive | dinoperovic/django-salesman | eab524cebe0fecdf9003c23c9135e3b15a0c434c | 8105e84c0ccca00f483122b91a74175131808399 | refs/heads/master | 2023-08-31T23:47:22.743673 | 2023-08-17T14:21:11 | 2023-08-17T14:21:11 | 237,980,844 | 334 | 44 | BSD-3-Clause | 2023-05-05T14:20:32 | 2020-02-03T14:11:35 | Python | UTF-8 | Python | false | false | 60 | py | from .basic import * # noqa
from .complex import * # noqa
| [
"dino.perovic@gmail.com"
] | dino.perovic@gmail.com |
20a132c6febfa2ed47929dcbd79b1f4d5ab9b0ff | f89313b12b1c260d7275da58198efd08cf3ff45a | /baal/structures/constituency_tree.py | 3a325c71a8cae05c5c1b3824feac7f1a9b1e3f1a | [] | no_license | braingineer/baal | 2f528c5bddfb4962cfefeb4a37b68cba910741ce | 8a7504fb4bbd14832143dd1b013ac9d9e166bd67 | refs/heads/master | 2020-12-18T23:30:03.526423 | 2016-12-05T13:53:07 | 2016-12-05T13:53:07 | 59,702,468 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,695 | py | from baal.utils.general import cprint, bcolors, cformat, nonstr_join
from baal.utils import config
from copy import copy, deepcopy
import re, logging
try:
from nltk.tree import Tree as TKTree
except ImportError:
print("Warning: You don't have NLTK. One method won't work in ConstituencyTree")
logger = logging.g... | [
"brian.c.mcmahan@gmail.com"
] | brian.c.mcmahan@gmail.com |
af9477decdec1d2bfb03a8a5787df8343ad1b196 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py | e6dcb3af72d7dc36592959b07c480cccf1a37f3f | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 864 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
f7a92fcc0db6370db2bf509626dc91e8f3bf07f4 | de8336cbcaa51a5156346a0f4513adf2ebc29fd3 | /api/admin.py | d8a324370e1d999628566cabd4dbbb8476718b36 | [] | no_license | kranthi0987/djangosample | 8219b09a0d16591f274864b1fdc04ce46a31ce8a | bbae4ab38279d275353a2deb40ab9964fc6f7216 | refs/heads/master | 2020-08-23T16:23:37.896331 | 2019-10-27T15:23:40 | 2019-10-27T15:23:40 | 216,661,294 | 0 | 1 | null | 2020-07-21T05:33:21 | 2019-10-21T20:39:34 | Python | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
from .models import Songs, DummyData
# Register your models here.
admin.site.register(Songs)
admin.site.register(DummyData)
| [
"kranthi0987@gmail.com"
] | kranthi0987@gmail.com |
2c1ff6bd6165f7ddf080a6f5e104a08aecb7e88e | a4b9550d36b82b0ad5d24db8c75ab0d49a8a0904 | /Electrum/asgi.py | 8e4fdffa274eed668b4c2051a8150d7f27767792 | [] | no_license | jithinvijayan007/Electrum-Assignment- | e84323a82b152fc051a3e981e793c83e9cb174bf | eb82195ebcb48a19b97738c77a30fc3307ca0514 | refs/heads/master | 2023-01-11T07:44:47.029271 | 2020-11-18T13:24:44 | 2020-11-18T13:24:44 | 313,941,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for Electrum project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"jithinvijayan007@gmail.com"
] | jithinvijayan007@gmail.com |
63b3332617f7b78be4ecf567876be04b1a66db94 | b018b734af4170d34d28c474f68777597dba29ec | /venv/bin/pyrsa-decrypt | 6297436bdc29e64724b2cb09382dc7feaf97b4c6 | [] | no_license | abdulkhan94/BigDataTechnology | ae0b7f8c03831f07b791bc5898c2bb18a4c3fec5 | 7be6d3a13e8fd42d9592d7287d694d507f9070b5 | refs/heads/master | 2023-02-13T04:07:49.070798 | 2021-01-11T01:34:51 | 2021-01-11T01:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/Users/abdullahkhan/PycharmProjects/CloudKhan/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
| [
"abdullahn@gmail.com"
] | abdullahn@gmail.com | |
cfe2831a6522b71a9b9499c6a825bf3ae2606a14 | 7102ec163136e65c4da47658e669fde07521aaf1 | /app/setup.py | 2ac412c5412da5c4f619cae9a324bfdeedb2fd39 | [] | no_license | ghuntley/nomad-with-nix | 170d5ab571d9ae92fc1c420cd29ec94042e1c243 | bc5ff4afea2ed89074479c6ed2c39db1c577e062 | refs/heads/master | 2023-02-10T07:21:57.801694 | 2021-01-07T20:06:58 | 2021-01-07T20:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from setuptools import setup, find_packages
setup(
name="app",
py_modules=[
"main",
],
install_requires=[
"asyncpg",
"databases",
"fastapi",
"psycopg2",
"uvicorn",
],
entry_points={
"console_scripts": ["uvicorn=uvicorn:main"],
},
)
| [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
981a793fd86c41e5b30e11570db8718e3d216f27 | dd6ed4e1fa17ff9dd59116632964e2fad438bc83 | /eventframe/nodes/participant_list/forms.py | 7c00adf40e454b4c701b0bc744c66c54638c7838 | [] | no_license | elvisds/eventframe | 8ba3b6911ffad1d80b3c56eecf36d40c7ca3d1cc | 5a65c3671d1dea3967efdea4bf163f11bde39879 | refs/heads/master | 2021-01-15T18:04:59.943728 | 2013-08-15T18:11:39 | 2013-08-15T18:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | # -*- coding: utf-8 -*-
import flask.ext.wtf as wtf
from eventframe.forms import DictField
from eventframe.nodes.content import ContentForm
__all__ = ['ParticipantListForm']
class ParticipantListForm(ContentForm):
source = wtf.SelectField(u"Data Source", choices=[
('', ''), ('doattend', 'DoAttend')],
... | [
"kiran@hasgeek.com"
] | kiran@hasgeek.com |
e527dc3bc132a68f454bd616f68298778961bf12 | 84b05857cbe74d190bdbee18d442d0c720b1b84d | /Coderbyte_algorithms/Hard/BracketCombinations/test_BracketCombinations.py | bea5f4e5ce46337ed54f65b42d3923344d653408 | [] | no_license | JakubKazimierski/PythonPortfolio | 1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3 | 3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f | refs/heads/master | 2023-06-01T01:16:22.897097 | 2023-05-15T01:05:22 | 2023-05-15T01:05:22 | 311,473,524 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | '''
Unittests for BracketCombinations.py
January 2021 Jakub Kazimierski
'''
import unittest
import BracketCombinations
class test_BracketCombinations(unittest.TestCase):
'''
Class with unittests for BracketCombinations.py
'''
# region Unittests
def test_ExpectedOutput(self):
... | [
"j.m.kazimierski@gmail.com"
] | j.m.kazimierski@gmail.com |
9f7f06c7fa42160e59e486c69ff7a5a5312517c4 | f35018f5d22eaafb31412430b49799dd11f15519 | /chapter01/scopes_example.py | 506dfb91634c847bf6c8d335ea95eacc0edee047 | [] | no_license | bambit21/packtpub---learning-python | 7bbaa6a510cdf6c01c0fe300aada53f7e2b1522c | 53cc65ed5b55c2bbd54388de631809016cfcd43a | refs/heads/master | 2020-05-29T15:37:00.636527 | 2018-07-05T20:08:28 | 2018-07-05T20:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | #Local versus Global
def local():
m = 7
print(m)
m = 5
print(m)
local()
| [
"wielki.wilq@gmail.com"
] | wielki.wilq@gmail.com |
a610e3e7093a75d9b1c33e04c9d6bf1e7b38c66b | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnmanhood.py | 1926b16301f2acfd7ae219bd15376ab3abf80e7b | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,315 | py | ii = [('BentJDO2.py', 2), ('EmerRN.py', 1), ('CookGHP3.py', 3), ('KembFFF.py', 4), ('GodwWSL2.py', 5), ('FerrSDO3.py', 1), ('WilbRLW.py', 1), ('WilbRLW4.py', 2), ('CookGHP.py', 3), ('MartHSI2.py', 1), ('WilkJMC3.py', 2), ('WilbRLW5.py', 3), ('PettTHE.py', 1), ('PeckJNG.py', 1), ('BailJD2.py', 1), ('ChalTPW2.py', 2), ('... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
134c09442a208868e04335c154fd1be6a4f089c0 | a41e7ac731210a0cb9d198029962a086dc6b4311 | /python/helpers/pycharm/lettuce_runner.py | 2f64afc956d9bdca0e3a13d8bf65680fceb4428b | [] | no_license | gencer/intellij-community | 19e7d2eafd9da1e3ad9bddd4253a0cc91a1271e9 | dc9043c92d20ef479ea8c0a9114479c2cfd1f95f | refs/heads/master | 2020-12-13T21:53:16.304289 | 2014-11-03T10:23:07 | 2014-11-03T10:23:07 | 15,880,732 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,779 | py | # coding=utf-8
"""
BDD lettuce framework runner
TODO: Support other params (like tags) as well.
Supports only 2 params now: folder to search "features" for or file and "-s scenario_index"
"""
import argparse
import os
import _bdd_utils
__author__ = 'Ilya.Kazakevich'
from lettuce.exceptions import ReasonToFail
import l... | [
"Ilya.Kazakevich@jetbrains.com"
] | Ilya.Kazakevich@jetbrains.com |
3afd486fd50e5acb41db7c6f19412760f26eb79e | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/757-tideGauge.py | b5cc5d83438152989fa3ddf082f55d7b833dd4b9 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.