blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00870e1d44ca65dc3d0ee03d26c35f152435c375 | bca3e2d5238be9b049ecc0f23837c01ce00f6214 | /users/migrations/0004_auto_20210727_1503.py | 6793891654e115790440f25a7ff0591deeb3679f | [] | no_license | Festorah/forever | aff59c2be8f4d5e9afa612e50a0b4ed4993de575 | 4e310af7d0fd7120a91e2cc8ba832eacf76bd9a5 | refs/heads/main | 2023-06-29T09:45:57.978544 | 2021-08-04T22:16:38 | 2021-08-04T22:16:38 | 392,451,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | # Generated by Django 3.1.4 on 2021-07-27 14:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20210727_1451'),
]
operations = [
migrations.AlterField(
model_name='mywebsite',
name='bride_name... | [
"festusoyebami@gmail.com"
] | festusoyebami@gmail.com |
a82e2ff00c8f70e65e2c5564da32ab9055065709 | 39988ca6b376a37fe115816d6e707c4e7ea0b077 | /reproducibilityPackages/independenceStudy/cuibm/gridIndependence/Re2000AoA35/plotForceCoefficientsCompareATol.py | 6fc2b7a0aa8a39ee7e310044a2b9ecc90c862db6 | [
"CC-BY-4.0",
"CC-BY-3.0",
"MIT"
] | permissive | mljack/snake-repro | beddb77e1a892e126005cb4a8843365214d84ec9 | f594d975fd2ba00a66b90877a4f7bd7596838fc8 | refs/heads/master | 2023-03-18T16:24:37.684519 | 2020-05-10T17:34:03 | 2020-05-10T17:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | """
Compares the instantaneous force coefficients obtained on the coarse mesh
(h=0.006) using a different absolute tolerance (1.0E-05 and 1.0E-06) as exit
criterion for the Poisson solver.
The velocity solver is solved with an absolute tolerance of 1.0E-16 (machine
accuracy).
This script generates the figure `forceCo... | [
"mesnardo@gwu.edu"
] | mesnardo@gwu.edu |
b5663d14e7cb12ccd4b842f9683abf8279e3bb9c | 1daca590547d193d828d029b3a2ead96c43ed544 | /main.py | 9aa2eb3d786970c70290713c152edb2b455bdedd | [] | no_license | alexdmoss/right-sizer | 411bbd2cc69bb7e493891546028fd47d04a34fe9 | 6ccad8f5d3e2b736d6208bf8f89c213942134d2d | refs/heads/master | 2023-02-25T14:22:05.869078 | 2021-06-06T18:49:06 | 2021-06-06T18:49:06 | 205,524,498 | 2 | 0 | null | 2023-02-06T20:34:54 | 2019-08-31T09:33:58 | Python | UTF-8 | Python | false | false | 3,012 | py | #!/usr/bin/env python
'''
Supports the following environment variables:
UPDATE_MODE = Off|Auto. Defaults to Off - recommendations mode only
DEBUG = True|False. Defaults to False
NAMESPACE = <string>. Useful for initial deployment - test against one namespace only. If unset, targets all namespaces
'''
im... | [
"alex@mosstech.io"
] | alex@mosstech.io |
82e2d74564a2c116c8172cf12c9f4aae74c1cf6c | 324ec5647849f97418c91151e4e1d1953d2d9257 | /account_dashboard_bokeh/__manifest__.py | efb0b7a4ced07a7c134122ea173cb32a2235bc73 | [] | no_license | MarcosCommunity/marcos_community_addons | 84ab9ae7639b1d77ad36a167786160f54e0ef409 | 7adeceea5c12129baad36c037ff188cbccc98e2f | refs/heads/10.0 | 2020-04-04T07:27:54.837381 | 2017-10-10T01:44:17 | 2017-10-10T01:44:18 | 45,713,685 | 15 | 15 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# iFenSys Software Solutions Pvt. Ltd.
# Copyright (C) 2017 iFenSys Software Solutions(<http://www.ifensys.com>).
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3),... | [
"eneldoserrata@gmail.com"
] | eneldoserrata@gmail.com |
d47f5cff2feae7651c928e07fc84f08ff20b1a9b | 8661524d0aab2ec62a0443d843cd2810a5d06201 | /tiendadj/tienda/tienda/urls.py | b15dad841c769079d032df88bdae517ce5bd6541 | [] | no_license | Garavirod/Django-DRF-Projects | e8fbfbbd86f09862ac4ae48cb7f9c46b9360978a | 93ba2a5f59dbbe2c2c440abc89c6cd473b59fc4c | refs/heads/master | 2023-01-13T13:06:06.647724 | 2020-11-23T19:28:12 | 2020-11-23T19:28:12 | 289,785,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | """tienda 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')
Class-based ... | [
"rodrigogarciaavila26@gmail.com"
] | rodrigogarciaavila26@gmail.com |
3d73a9586213aff431ed4ad0036b1c69b1e661af | 0058c859d242b531d8cd8ecd788648fc9fab2226 | /evaluation_stsbenchmark_ja.py | a73ce2b1cfb9b74ee202403fed6e414dcddd2ea4 | [] | no_license | yudataguy/evaluation_stsbenchmark_ja | 7c0fc519eddedb7384662bd958b68de8f38c2f44 | dad8daa192fd478c905e6b9b1c5c6be5e673df9d | refs/heads/main | 2023-08-28T09:25:34.865573 | 2021-09-01T06:11:45 | 2021-09-01T06:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | """
This examples loads a pre-trained model and evaluates it on the STSbenchmark dataset
Usage:
python evaluation_stsbenchmark_ja.py
OR
python evaluation_stsbenchmark_ja.py model_name
"""
from sentence_transformers import SentenceTransformer, LoggingHandler
from sentence_transformers.evaluation import EmbeddingSimilar... | [
"onogit@yellowback.net"
] | onogit@yellowback.net |
cd66f69f537e8c40151685872ca78823e0a7c88c | 7832e7dc8f1583471af9c08806ce7f1117cd228a | /aliyun-python-sdk-ons/aliyunsdkons/request/v20170918/OnsMessagePageQueryByTopicRequest.py | 9b898029a797cbc69403d948e695eb39da98e762 | [
"Apache-2.0"
] | permissive | dianplus/aliyun-openapi-python-sdk | d6494850ddf0e66aaf04607322f353df32959725 | 6edf1ed02994245dae1d1b89edc6cce7caa51622 | refs/heads/master | 2023-04-08T11:35:36.216404 | 2017-11-02T12:01:15 | 2017-11-02T12:01:15 | 109,257,597 | 0 | 0 | NOASSERTION | 2023-03-23T17:59:30 | 2017-11-02T11:44:27 | Python | UTF-8 | Python | false | false | 2,478 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
e038518a597d0262503a3064374efc2c029f5723 | d1f1bada2703088c5808e45ff327222f425a61b4 | /PR_II/R/nb2.py | 03f623ce80363e482455b915b8b9c3e51a4582d5 | [] | no_license | ajithalbus/pattern_recognition | 459108453492d9c043fa70366ababb019e701730 | e9813dba793741d2e7bd58c0cbdde155341d9946 | refs/heads/master | 2021-08-06T09:21:45.700749 | 2017-11-04T17:43:35 | 2017-11-04T17:43:35 | 109,488,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,922 | py | import numpy as np
import sys
import random
import math
import matplotlib.pyplot as plt
import matplotlib
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
import itertools
from sklearn.metrics import auc
iX,iY=0,0
fig = plt.figure()
plt.hold(True)
ax = fig.gca(projection='3d')
f=2 #trick to draw bound... | [
"cs17m009@smail.iitm.ac.in"
] | cs17m009@smail.iitm.ac.in |
8a3cf57c8bd6b98b399a33e5919bbaa47a901823 | 289774ef3066173cba515ea1bc2f825d6ad3678e | /non-B DNA Motif analysis/script.py | cef52d2d6cb4e86d5ab1699f3dbb919c631e7d90 | [] | no_license | step24/Bioinformatics | e5c2174c57eb6630af8c8d522ca460bf63b3580f | dd5c9ce7020247b2a8672e59d76dfc610ee24fcc | refs/heads/master | 2022-12-24T11:09:49.796949 | 2020-09-29T11:40:00 | 2020-09-29T11:40:00 | 299,304,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | with open('chic2_.txt', 'r') as chic, open('chic2-Merged.txt', 'r') as Seq:
seq = chic.readlines()
sequence = []
for i in range(len(seq)):
line = seq[i].rstrip('\n')
for j in range(len(line)):
sequence.append(line[j])
count = len(sequence)
last = count - 500
lastSeq... | [
"32043447+step24@users.noreply.github.com"
] | 32043447+step24@users.noreply.github.com |
6ff7f99b3eee2017b67585e149c6dcef84d4d0b2 | 82648eacf5f88b4b2301c54043e9399e168740ab | /qstat | db8d8cad8f9877667ad00d8f2d10c725988eeca1 | [] | no_license | ffallrain/MyScripts | e2c27b790c9207b335f9bb85ed46763bb5aa6c7e | de9b69212e8019a9bc488e249e16d5c5c321ee4a | refs/heads/master | 2022-04-28T17:59:08.632599 | 2022-04-22T07:15:38 | 2022-04-22T07:15:38 | 84,742,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | #!/usr/bin/python
import sys,os
<<<<<<< HEAD
print ">>>>> K168"
os.system("ssh qyfu02@k168 qstat")
print ">>>>> K151"
os.system("ssh qyfu02@k151 qstat")
print ">>>>> N101"
os.system("ssh qyfu@n101 qstat")
=======
print ">>>>> k168"
os.system("ssh k168 qstat")
print ">>>>> x254"
os.system("ssh x254 qstat")
>>>>>>> 94d0... | [
"ffallrain@163.com"
] | ffallrain@163.com | |
62ead87a73ff1561c12a3a6a489e0494f0c0c0b8 | 3f09e77f169780968eb4bd5dc24b6927ed87dfa2 | /src/Problems/Trapping_Rain_Water.py | 790695e2d95e041b9c6897137e6540ec4299a717 | [] | no_license | zouyuanrenren/Leetcode | ad921836256c31e31cf079cf8e671a8f865c0660 | 188b104b81e6c73792f7c803c0fa025f9413a484 | refs/heads/master | 2020-12-24T16:59:12.464615 | 2015-01-19T21:59:15 | 2015-01-19T21:59:15 | 26,719,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | '''
Created on 19 Jan 2015
@author: Yuan
'''
'''
This problem has several solutions.
Solutoin1:
1. find the peak of the array.
2. for each bar to the left of the peak, if the tallest to its left is MAX, then it can hold MAX-bar water.
3. for each bar to the right of the peak, if the tallest to its right is... | [
"y.ren@abdn.ac.uk"
] | y.ren@abdn.ac.uk |
562b6ccf75ce533f7d45cd5c3e35c161c0f06b56 | 7438ed5bda477e728fd075d8aba69a4ee43cbe83 | /day_04/json_ex/json_ex01.py | 05adb2c4821a47893079dd8e8f067e52b83645fe | [] | no_license | mindful-ai/18012021PYLVC | b2717846a905400c2462eb4dd293aa3a7a48a86f | 2facc19fb433e3e15d1195fb2b75eea3bffd097a | refs/heads/main | 2023-02-18T22:40:38.112663 | 2021-01-22T12:52:47 | 2021-01-22T12:52:47 | 330,656,405 | 1 | 2 | null | 2021-01-22T17:28:23 | 2021-01-18T12:17:10 | Python | UTF-8 | Python | false | false | 145 | py | import pandas as pd
data = pd.read_json('http://api.population.io/1.0/population/India/today-and-tomorrow/?format = json')
print(data)
| [
"noreply@github.com"
] | noreply@github.com |
ef71b8343f50ba3e3be18845ae2f4c2c935f95cb | 8bad22adad307ab7df82d6e41e69c513c3dd66d9 | /antosh2.py | 2cc5376e915e1f1f353b94a30b4ba478e468814e | [] | no_license | cambrackmann/Python | 86597b7056d1fe20b9756a679149a2de434a2fcf | b14bd5d2b630d67bcd6c3d15745066b3a3179e00 | refs/heads/main | 2023-06-10T15:08:40.861066 | 2021-07-07T18:48:26 | 2021-07-07T18:48:26 | 383,894,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | #!/usr/local/bin/python3
# The first line is the number of lines of names:
# 2
# Cameron
# Antoshka
num_of_names = int(input())
for i in range(num_of_names):
name = input()
print(name)
# The first line is the number of lines of full-names:
# 2
# Cameron Brackpoo
# Antoshka Milty
num_of_names = int(input())... | [
"noreply@github.com"
] | noreply@github.com |
33602bf885dbdef9d726640ede9e9a7cd95f7ade | 047843499b5c7f4ff7745eeb3b7386da4ac39c73 | /magasin/migrations/0012_customer_profile_pic.py | 18635d7dc50cea2419d63f594fa28d70d34952d0 | [] | no_license | anaschaari/projetDjango.github.io | da9423d0a2a6ec93ad0fb128b7d91d2520dee459 | d0630bba6b5e34e2c569b0d5eff0ff089e102c6e | refs/heads/main | 2023-05-05T16:01:45.267406 | 2021-06-01T07:28:00 | 2021-06-01T07:28:00 | 372,627,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 3.2 on 2021-05-16 23:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('magasin', '0011_rename_libelle_produit_name'),
]
operations = [
migrations.AddField(
model_name='customer',
name='prof... | [
"anas.chaari16@gmail.com"
] | anas.chaari16@gmail.com |
61cd066986c0c1be33def441e58ddb36824e0d27 | 888f2447620deea45f7fdb02f3d9b8cc44b35aaf | /modules/module_help.py | c389e029d74b88206f817e7f5f648844737a4650 | [] | no_license | SL0RD/telepybot | a550f9e8fce1f7750fd512b736a3611d7a437dfd | a20c0bc99d33ded9f441bc0b4eb715bddf5a9e5a | refs/heads/master | 2021-01-09T20:45:29.969493 | 2018-01-10T20:15:34 | 2018-01-10T20:15:34 | 61,240,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py |
def command_info(bot, update):
bot.sendMessage(update.message.chat_id, text="Hi, I'm a smartass bot.")
| [
"sidney@demolitor.ca"
] | sidney@demolitor.ca |
0319fa08927da26b608b1ca54534ec7c75d054ae | 0fdc1cb7aa7e833ab8f819f29234db5ba655dd47 | /events.py | 4c0b8248c8d6d25dbcce737b2345cae97aead8c6 | [] | no_license | zsouthboy/Deluge | 15cf80f68b4814ff0de8fa12001b172517793701 | 0d30b629109f652486f1f06612b950cb5d7b31b2 | refs/heads/master | 2020-05-18T22:26:05.540137 | 2011-04-18T20:28:08 | 2011-04-18T20:28:08 | 1,632,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | #!/usr/bin/env python
import pygame, sys
from pygame.locals import *
class events():
def __init__(self, globalvariables, displayinstance, consoleinstance):
#remember to grab a console instance DONE, and a mouse instance eventually
self.gv = globalvariables
self.display = displayinst... | [
"github@zsouthboy.com"
] | github@zsouthboy.com |
432103f160ccd48748f731548f1f383680c23873 | 6e10d168117606c8a4112d6bc5e699268364eea8 | /hierarchical-decoding/utils/postProcessing.py | 5e27d4d29b47644bfe76479446c1e97798054aff | [
"MIT"
] | permissive | piyumalanthony/Multilingual-RDF-Verbalizer | 63d0d00090d1adf3344ff7659bead7eaf9c07506 | ba396693f65eaf74d1f60eb9aed3e78ab9593b22 | refs/heads/master | 2023-01-01T14:54:35.791249 | 2020-10-26T16:25:15 | 2020-10-26T16:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import sys
import argparse
parser = argparse.ArgumentParser(description="Post processing")
parser.add_argument(
'-i','--input', type=str, required=True, help='Input file')
parser.add_argument(
'-o', '--output', type=str, required=True, help='Output file')
if __name__ == "__main__":
args = parser.parse_args()
fou... | [
"msobrevillac@gmail.com"
] | msobrevillac@gmail.com |
1f1a846c2727ee94edec2e88cf97df0a359120c3 | 32d94e6e150966e809c890434aa96b3b077e47a1 | /Server/login/migrations/0001_initial.py | dfd6b726cadeada816db45cd712897e800830dea | [] | no_license | rhnmht30/endeavour-hackathon | 5df0a7f204a67e554a589dc81beaf9e06dd3267d | 03da9141bc6c830dc2e9b3037a55c1765150c739 | refs/heads/master | 2020-04-24T19:01:07.217379 | 2019-05-06T15:09:37 | 2019-05-06T15:09:37 | 172,198,865 | 1 | 0 | null | 2019-02-25T17:49:19 | 2019-02-23T10:02:27 | Python | UTF-8 | Python | false | false | 1,933 | py | # Generated by Django 2.1.7 on 2019-02-23 21:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CarDetails',
fields=[
... | [
"dsrivastava565@gmail.com"
] | dsrivastava565@gmail.com |
835d36c47bf3e8d7e1949342b1882a499bebadc1 | b3288fac610c8485eb94e8fcdad9fa6e77b02857 | /pachong/ReptileBaiduImg.py | 0c10d6848c9c5632021fdc7a5e027b38df26ae46 | [] | no_license | kamike/PythonCode | 2ebcf7d9552af72375102fe0b791cd43fce2e246 | 29ec279bb62fde2da16a68381250a642e79398ea | refs/heads/master | 2021-08-29T23:54:02.969242 | 2017-12-15T10:27:11 | 2017-12-15T10:27:11 | 111,658,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
import requests
import re
# 获取每页图片的访问链接
def get_page():
urls = [
'http://image.baidu.com/search/flip?tn=baiduimage&ie=utf-8&word=%E8%A1%A8%E6%83%85%E5%8C%85&pn={}&gsm=3c00000000003c'.format(
num) for num in range(0, 20000, 20)]
for url in urls:
... | [
"wangtao502@hotmail.com"
] | wangtao502@hotmail.com |
13c66a0c9f17c609c72128b80ba956d95f7ae023 | 3800342e9ff4277641fe7900ade2dc5b84dbc5e9 | /rssilevel.py | fcfa1f4ba9da55483e4d5bb03ce5cb10331decf1 | [] | no_license | vvdnanilkumargoud/Python | 9815a84cf67591d317427811fa218675769634f8 | 0e017de9a58f91a0a3e91253dd5f43c00e6ab502 | refs/heads/master | 2020-03-20T08:26:24.876772 | 2018-06-14T11:17:45 | 2018-06-14T11:17:45 | 137,308,876 | 0 | 0 | null | 2018-06-15T07:35:45 | 2018-06-14T05:10:31 | Python | UTF-8 | Python | false | false | 409 | py | import subprocess
import os,sys
from glob import glob
S1 = raw_input("SSID =")
for t in range(1,10):
subprocess.call("sudo iw dev wlan0 scan | grep -B7 "+S1+" | grep signal",shell=True)
subprocess.call("sudo iw dev wlan0 scan | grep -B5 -A10 "+S1+" | grep Channels ",shell=True)
for t in range(1,10):
subpr... | [
"noreply@github.com"
] | noreply@github.com |
d5a94198b887273aa0087548efa4076eedd10d9f | d9d557bc598061fb93b2c13bfe3afd07fc4878fa | /kademila_new/kademlia/network.py | 48a20ead28e423b52b5d4f6b3879240053a2e087 | [
"MIT"
] | permissive | sushmukund26/dht-lvm | 86a01a4631c1a512b0c3f613daad69b6caa6ba3d | 7d27b27cbdf0bcf89fe38129394e57baf6c932ac | refs/heads/master | 2020-09-01T21:53:32.671622 | 2019-12-18T17:04:02 | 2019-12-18T17:04:02 | 219,068,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,185 | py | """
Package for interacting on the network at a high level.
"""
import random
import pickle
import asyncio
import logging
from kademlia.protocol import KademliaProtocol
from kademlia.utils import digest
from kademlia.storage import ForgetfulStorage
from kademlia.node import Node
from kademlia.crawling import ValueSpid... | [
"noreply@github.com"
] | noreply@github.com |
60f104244dd5276c23ecab6ebf36db33416f3b22 | a07986ec7f9345b5273a6360fc6d71f86c098d5b | /제출/Algorithm/2_05_1주차/5월 1주차 연습문제 1 류성호.py | be9da5749fdcc2529c1385de547183f92e13dd82 | [] | no_license | sungho123/2020-Python-Algorithm- | 8b2cdd785a6a2d60572d7a5c6b90d7dda03ae7ab | 41b413216086d44f365838f55cf422ee3ab88a09 | refs/heads/master | 2021-03-03T14:50:16.301724 | 2020-05-27T23:14:18 | 2020-05-27T23:14:18 | 245,968,345 | 1 | 3 | null | 2020-05-16T12:08:11 | 2020-03-09T07:19:23 | Python | UTF-8 | Python | false | false | 738 | py | input_num = int(input()) # input
cnt = 1 # output
if input_num >= 0 and input_num <=99: #input 조건
num = input_num
while True: #무한 루프
first_num = int(num/10) #십의 자리 수
second_num = int(num%10) #일의 자리 수
num = in... | [
"noreply@github.com"
] | noreply@github.com |
8c621f2daa113c8902f3cf277034860a869062e9 | 3b8ba68320a6b0b602c20a91565c93bd35190d68 | /homework1/part1/cs231n/data_utils.py | be81c43a1d8957f787d44c6d64ba65ddcdb7604d | [] | no_license | shiyinw/CS231n | 1a00e5cf0f57c8c8cc10f1c208763faaadfb33a4 | c246ce29e50212608203069b97356289db038b43 | refs/heads/master | 2020-04-02T13:46:52.287546 | 2018-10-29T14:41:32 | 2018-10-29T14:41:32 | 154,497,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,807 | py | #! /usr/local/bin/env python
from __future__ import print_function
from six.moves import cPickle as pickle
import numpy as np
import os
import scipy.misc as plt
import platform
def load_pickle(f):
version = platform.python_version_tuple()
if version[0] == '2':
return pickle.load(f)
elif version[... | [
"wangsysusan@gmail.com"
] | wangsysusan@gmail.com |
d208cb86e1da4bd00d174eed3f2d2dd895b22964 | 9af2aef1e0d1033217179394bff6344858da9f4d | /python/chronos/test/bigdl/chronos/model/tf2/test_Seq2Seq_keras.py | f931bb30d652d232574b5d72337c303cc4f9a892 | [
"Apache-2.0"
] | permissive | analytics-zoo/BigDL | 9d5fec6dea5eaf458ef87edbbf2bd4d5e4a24f4d | 6c18e9337b649df3a975f8293c15fcd075d4f11f | refs/heads/main | 2023-03-16T04:42:14.787392 | 2022-11-28T08:44:03 | 2022-11-28T08:44:03 | 557,722,893 | 2 | 0 | Apache-2.0 | 2023-01-18T14:23:55 | 2022-10-26T07:20:43 | Jupyter Notebook | UTF-8 | Python | false | false | 3,776 | py | #
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | noreply@github.com |
4d4ba7c793e5cc46ad93a4719150766378d74dd9 | b92551ba5187bdb8a3978529fbab5e3fc1b36a9a | /src/urls.py | 502be3923ca3d4c4b15e5ec51f81d01c0343cb34 | [
"MIT"
] | permissive | DASTUDIO/MyVHost | cb8c5122d7c774d28264d42c2639b7a7c2e508a5 | b9eda56a67c2df9236b7866087bc7f465542f951 | refs/heads/main | 2023-06-26T14:10:06.396074 | 2021-07-27T09:15:55 | 2021-07-27T09:15:55 | 389,920,290 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | """src URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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')
Class-based vie... | [
"davidjang@live.com"
] | davidjang@live.com |
bbf76a459d2c2e3b548009857aca4a787a0fc43d | 2d1901fd5140d9b4f4465a3e2005bcd200cf074a | /Balanced Array.py | f4deaf4b50e642deb6d0f3ff1304018409b6f6a2 | [] | no_license | latecomer04/codeforces-solutions-in-python | 3a4fb71665f610de480b8ad891f024dd27349bfd | a429ee3c46e2c08cbd8689bcb8662c2afcb1ffba | refs/heads/master | 2022-11-15T08:47:09.302163 | 2020-06-15T12:02:08 | 2020-06-15T12:02:08 | 265,942,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | t=int(input())
for i in range(t):
n=int(input())
a=n//2
if a%2!=0:
print("NO")
else:
l=[0]*n
for j in range(1,n//2+1):
l[j-1]=j*2
for k in range(n//2+1,n):
l[k-1]=2*(k-n//2)-1
b=a//2
b=b+1
l[n-1]=l[-2]+b*2
print("YES... | [
"noreply@github.com"
] | noreply@github.com |
5bd3e23947e315e5ab5fe1c2ef92205dd27f02e0 | 51b82eac590f9ca622597ba9f81d377c1ffe899d | /experiments/predict.py | 09ee0690b914dfd2731f16f929a0f5fbaffd4fa6 | [] | no_license | herobrine1010/OCEAN-AI-KERAS | a30e12f9e70dfa5d870e2ebe8990b4aad452ca1c | 06fe70398eddf2a4793377c3389aead4ee32edcd | refs/heads/master | 2020-06-26T15:48:08.271121 | 2019-07-30T09:20:49 | 2019-07-30T09:20:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,625 | py | import sys
import os
import numpy as np
sys.path.append('../')
from data_IO.data_reader import get_data
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.layers import Dense, Activation, Dropout, Flatten
from keras.layers import Conv2D, MaxPool2D
from keras.u... | [
"noreply@github.com"
] | noreply@github.com |
ceb01b55c50327c9e7c8b394b383a6ca7f4a5da9 | 59f67551599c382b88e8e11cda724f6bc7191d8a | /latlong.py | 8ff7170144d1abd9095d8884f8dae4af2b58c893 | [] | no_license | mikessut/kalman | dd6b2cc0b4815d5a25d22b5c89c554574859ea84 | be9408ee2c9fd2fc4d2be8115430816b3fe0a75d | refs/heads/master | 2021-06-19T21:14:28.785385 | 2021-04-18T17:45:10 | 2021-04-18T17:45:10 | 206,383,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py |
import numpy as np
def latlong2dist(lat1, long1, lat2, long2):
"""
https://en.wikipedia.org/wiki/Haversine_formula#:~:text=The%20haversine%20formula%20determines%20the,given%20their%20longitudes%20and%20latitudes.&text=The%20term%20haversine%20was%20coined,sin2(%CE%B82).
:param lat1:
:param long1:
... | [
"mikesutton@gmail.com"
] | mikesutton@gmail.com |
f0e2541dbd144e7eb79890d73ef87a3545310c02 | 7816b3acc7a266d99cef336ae3eb57c50c781232 | /examples/workflows/example_cp2k_stm.py | 521800922c6b3931607533c11d91374aba5ed6ff | [
"MIT"
] | permissive | nanotech-empa/aiida-nanotech-empa | dfa599c921ad5dd48a4f7ef77e8c5e429f95519f | e9aee3a51af787ab7a9b8e748225e0b436a97aa1 | refs/heads/master | 2023-08-31T05:04:28.147486 | 2023-08-15T21:06:27 | 2023-08-15T21:06:27 | 275,159,349 | 4 | 0 | MIT | 2023-09-14T08:57:57 | 2020-06-26T13:12:25 | Python | UTF-8 | Python | false | false | 3,831 | py | import pathlib
import ase.io
import click
from aiida import engine, orm, plugins
Cp2kStmWorkChain = plugins.WorkflowFactory("nanotech_empa.cp2k.stm")
DATA_DIR = pathlib.Path(__file__).parent.absolute()
GEO_FILE = "c2h2_on_au111.xyz"
def _example_cp2k_stm(
cp2k_code, spm_code, sc_diag, force_multiplicity, uks, ... | [
"noreply@github.com"
] | noreply@github.com |
aa5093ec47255aae911876a540378ae7657c8a0d | 9e87f044b77f8f2639db175bf8075d002ed2c210 | /QAplatform/question/views.py | 3d30b8c9ce49edc8b1b6d5cd77f48590a07e3303 | [] | no_license | whysoserious1024/QA | 49b64b6189e247a68d704861095f8a6af816e328 | 618a75b11de2dc49aeff493c7497744585d6f50f | refs/heads/master | 2021-08-12T02:33:23.992978 | 2017-11-14T09:55:43 | 2017-11-14T09:55:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from django.shortcuts import render
from django.http import HttpResponse,JsonResponse
from question.models import Question
import json
# Create your views here.
def home(request):
question = Question.objects.all()
return render(request,'home.html',{'question':question})
def search(request):
res = request.... | [
"1903538331@qq.com"
] | 1903538331@qq.com |
ea94d8cff09aa3d2c698df4f34f3eadd40159591 | dd3e52c3274ec48e27f0923370c54ee56839faea | /utils/ver.py | f872223b3c1305b71ed9a751d293d5c6728b81fa | [
"Apache-2.0"
] | permissive | shlomo-Kallner/coventreiya | 9e6a6c05c6ad9f5de30bb6f6661e981f075af3d1 | aa0773693220025f8d2c23644a2c5d9d884773e9 | refs/heads/master | 2020-07-22T05:26:00.862474 | 2019-09-08T09:01:39 | 2019-09-08T09:01:39 | 207,086,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,813 | py |
class ver:
def __init__(self, major=0, minor=0, patch=0):
self.__major = int(major) if int(major) > -1 else 0
self.__minor = int(minor) if int(minor) > -1 else 0
self.__patch = int(patch) if int(patch) > -1 else 0
def __str__(self):
return "{}.{}.{}".format(self.__major... | [
"shlomo.kallner@gmail.com"
] | shlomo.kallner@gmail.com |
bc40fb9e10b4fb909bd3b3a9b0305c8084b5e944 | 3b7ec5dfd367b92a54afd445fa045c9741aee5a9 | /ops/dataset.py | 04885b7e1d12d9b85478bda8070b47d58de29c9f | [] | no_license | The-Ocean-Of-Stars/violence-tsn-tsm | 185d78da7bd33045c3845a4df35a973303b9bc16 | 8ceb81b6e96528e74518b5044a7b75f6619085df | refs/heads/main | 2023-01-22T21:02:19.935624 | 2020-11-24T08:20:03 | 2020-11-24T08:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,908 | py | # Code for "TSM: Temporal Shift Module for Efficient Video Understanding"
# arXiv:1811.08383
# Ji Lin*, Chuang Gan, Song Han
# {jilin, songhan}@mit.edu, ganchuang@csail.mit.edu
import torch.utils.data as data
from PIL import Image
import os
import numpy as np
from numpy.random import randint
class VideoRecord(objec... | [
"524951805@qq.com"
] | 524951805@qq.com |
7488e99a63b2fb53387ff3a700a2557870d81010 | 11286e7989264134a8a8d610e0f609e6fbff9140 | /ch03/ch03_10.py | 7649efe4cb33c68f8e0e48a12894028241aab190 | [] | no_license | p2c2e/machine_learning_with_python_cookbook | 04eeed2e00e0a3e9c0681d4b2f4125aa85485a1d | b176323a02f5b5722e312a579ad764a0276ec9c6 | refs/heads/main | 2023-01-30T06:54:34.138786 | 2020-12-13T05:02:07 | 2020-12-13T05:02:07 | 320,987,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | # Set index
dataframe = dataframe.set_index(dataframe['Name'])
# Show row
dataframe.loc['Allen, Miss Elisabeth Walton'] | [
"sudharsan.rangarajan@publicissapient.com"
] | sudharsan.rangarajan@publicissapient.com |
415156d32be6acb40e46836c8ea9b67baaf0ca6f | 7fd798eb5b1c61a09e174c0052c45fc35d8679b1 | /bin/seqdb-names | 862a56d2b7beb8d96c9ab188dc6c3e732bac19a1 | [
"MIT"
] | permissive | acorg/whocc-sequences | 894bda08684433b159bb942bb7bb0e624efe4457 | 95549069a608815771fad66052bedc88650b2cd4 | refs/heads/master | 2021-09-07T21:32:29.754468 | 2018-03-01T11:46:10 | 2018-03-01T11:46:10 | 50,924,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | #! /usr/bin/env python3
# -*- Python -*-
"""
Print names stored in seqdb
"""
import sys, os, re, traceback, pprint
if sys.version_info.major != 3: raise RuntimeError("Run script with python3")
sys.path[:0] = [os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0])))]
import logging; module_logger = logging.getL... | [
"eu.skepner@skepner.eu"
] | eu.skepner@skepner.eu | |
397f1a8c5e75f6dd0c5370e782609766b14fd202 | a63d6956c78a2beb8fe1689131ce2014eeb98a29 | /psyspacexy/QuadTree.py | 4ef10841296acd2002812c211439d338855b0553 | [
"Unlicense"
] | permissive | sn1p3r46/pyspacexy | 1e71e14688fe4d11ccc389b8701d67ffc1e2047e | 898e5ed953ca5000719a27c3192b5cfc0b193f62 | refs/heads/master | 2021-01-19T15:17:50.100304 | 2017-08-21T14:12:00 | 2017-08-21T14:12:00 | 100,958,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | #!/usr/bin/python3
from psyspacexy.box import Box
from psyspacexy.point import Point
class QuadTree:
def __init__(self,coordList,maxPoints=1):
if maxPoints < 1:
ValueError("MaxPoints MUST be a positive integer")
if not coordList:
ValueError("The input provided e is not v... | [
"sn1p3r46@users.noreply.github.com"
] | sn1p3r46@users.noreply.github.com |
bf4fcc1322b951f9aa7de0bc31e7827fc62e9eab | 90068c9696aa979d3f6db6f6dfcbedd09bff14ba | /basic_defs.py | 8ddd47063f0d68096c87214a29a72c1f271565e6 | [
"MIT"
] | permissive | Csriteja/Cloud-NAS | ef08c1c51c6cf3aa8240e798d76a935488894d13 | 4fb6d43b45355dd3baf281232118a068d31b946f | refs/heads/main | 2023-08-22T01:58:23.983415 | 2021-09-28T19:03:46 | 2021-09-28T19:03:46 | 411,406,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | class cloud_storage:
block_size = 10 # System configuration -- DO NOT CHANGE!
def list_blocks(self):
raise NotImplementedError
def read_block(self, offset):
raise NotImplementedError
def write_block(self, block, offset):
raise NotImplementedError
def del... | [
"noreply@github.com"
] | noreply@github.com |
b0e225471927a2ade8b65de9290ebafd5798503a | 15005b433c7821ea87f99e4fd0addab0e506b955 | /model/worldcup_stats.py | df08ec4bba1674aa9615c0928d3c1ed05a953a0b | [] | no_license | aqd14/web_scraper | 433cc536c0ee4f0d3330458bd7cf115b76c54d0d | 8fbcf1085377864b90eac27c13f6c3bfb4e68aad | refs/heads/master | 2020-09-23T07:53:26.080856 | 2016-09-08T02:50:08 | 2016-09-08T02:50:08 | 67,312,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # Define attributes of World Cup editions
class WorldCupStats(object):
def __init__(self, edition, team_number, match_played, goal_scored, average_goal, average_attendance):
self.edition = edition
self.team_number = team_number
self.match_played = match_played
self.goal_scored = goa... | [
"aqd14@msstate.edu"
] | aqd14@msstate.edu |
c412de9cc114db5a1035f71ae4bc4b6e2d35fec4 | ed70016fd37d9ddbed7433480bc20c5bd585795c | /fixes/fix_mdaimports.py | 292257128c0d0721f19f3dae902266741cdc377a | [] | no_license | tylerjereddy/ten2eleven | 488ad973c38ac7da502ac4c913422f6cdf10a5af | ccef352dd9f56c3bc6ef017eacd36efbdef25d6a | refs/heads/master | 2016-09-06T06:53:45.801393 | 2015-09-04T10:30:28 | 2015-09-04T10:30:28 | 40,673,631 | 2 | 1 | null | 2015-09-04T10:26:07 | 2015-08-13T17:54:12 | Python | UTF-8 | Python | false | false | 1,792 | py | '''
run with: python ten2eleven.py -f mdaimports test_dummy_old_MDA_code.py
Author: Tyler Reddy
'''
from lib2to3.fixer_base import BaseFix
from lib2to3.fixer_util import Name
class FixMdaimports(BaseFix):
PATTERN = """
import_name< start_statement='import' dotted_name< import_1 = 'MDAnalysis' dot = '.' second_... | [
"tyler.je.reddy@gmail.com"
] | tyler.je.reddy@gmail.com |
c7d80ad0ba94fdadc148fa9f4e58ab2a13a18798 | f13af53a29f428fce8a4379bb60640d88da01ec8 | /freecoder_python/wsgi.py | 4b786ca0932a752cfddd9488913b962276fdd1e9 | [] | no_license | freecoder88/freecoder_python | ca3d41c07352c99a276cf1167073a23de8db0af2 | 8def19c0132290cd9f5b68c1bd4e80d3e26438cc | refs/heads/master | 2021-01-20T01:38:46.692614 | 2017-04-25T03:20:28 | 2017-04-25T03:20:28 | 89,211,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
WSGI config for freecoder_python project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"1020814126@qq.com"
] | 1020814126@qq.com |
c820361b261cf96415a6a4fd46bbbf4c5def1021 | eeb473ca19f5cf1c9de9d705e4b26904638b7544 | /232. Implement Queue using Stacks.py | b13227580f418861533a9d7fa073c4004fb46a31 | [] | no_license | LiangYuHai/leetcode | ff122bc0e3ef3293458c420f0332d2bc33674a6c | 693fd8d339e2d456e8ddbfc6f07c28e09c1cb047 | refs/heads/master | 2020-04-09T08:45:33.256436 | 2019-02-21T13:10:39 | 2019-02-21T13:10:39 | 160,207,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | class MyQueue(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.stack = []
def push(self, x):
"""
Push element x to the back of queue.
:type x: int
:rtype: void
"""
self.stack.append(x)
def pop(se... | [
"lyh20180204@163.com"
] | lyh20180204@163.com |
1556d1e11dce202e79cf112e2d2f553bec31d67a | 1703eed6b00b30785413d16393acf8a6a2037532 | /list_overlap.py | b96f76d27d029904aaa840b0a89fccdb2543670c | [] | no_license | HaidarAli1/Python_Practice | d074caef663aad192d2108c375c485711f766c2d | 254c922c800c62b3b22f4f87de04ab4c67f28365 | refs/heads/master | 2020-06-30T12:46:32.511576 | 2019-08-06T10:35:06 | 2019-08-06T10:35:06 | 200,829,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | import random
list_1 = []
list_2 = []
common_list = []
for i in range(0, 10):
x = random.randint(1, 20)
y = random.randint(1, 20)
list_1.append(x)
list_2.append(y)
for index in list_1:
if index in list_2:
if index not in common_list:
common_list.append(index)
... | [
"noreply@github.com"
] | noreply@github.com |
722c4c2f658d0fd85060636c06c6d9df6e7be6ea | b44e71c63d5566b3aea49fd55db997dccb0b8e02 | /backend/routes/loginRoutes.py | 03d801005d878f0dc4386e4725185404769a98eb | [] | no_license | PedroSMarcal/Hackaton2021 | ecbf392dc8f5d7fd792f340708aacb093a260c2e | 7c40f108906f542c1820e8ca5129671b11763dff | refs/heads/master | 2023-06-22T18:15:26.162546 | 2021-07-20T12:23:35 | 2021-07-20T12:23:35 | 385,699,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | from flask import request
from flask_login import login_user, logout_user
from flask_restful import Resource
import hashlib
from models.models import Admin, Citizen
class LoginCitizen(Resource):
def post(self):
form = request.json
user = Citizen.query.filter_by(email=form['email']).first()
... | [
"pedro.h.silva.marcal@gmail.com"
] | pedro.h.silva.marcal@gmail.com |
6b0af84196b12ed0b72fd7584a65b69871e696a8 | a958c9d830626986dff673d275cb4a54d73e3666 | /finding_2nd_lowest_scores.py | 6bc94e16c7965e76cfc928077d05c87a026feb30 | [] | no_license | sealanguage/somePythonChallenges | 57464da25ce4ddf3cd5af79829180e8a81a1ef93 | 708668041fe7e3a356a4feeb31eb77498b9dfd88 | refs/heads/master | 2023-03-15T10:40:07.785806 | 2021-03-23T20:46:47 | 2021-03-23T20:46:47 | 271,346,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | if __name__ == "__main__":
for i in range(int(input())):
name = input()
score = float(input())
python_students = []
# print(name)
# print(score)
low_score = 100
if low_score >= score:
score == low_score
print("score ", score)
... | [
"elaine.froehlich@gmail.com"
] | elaine.froehlich@gmail.com |
5cffbe8f48e68fffb7131c55cf9163e826b0549a | 9bc228372e586a1f90bb0685c43e744be9638ecd | /18_배연주/session08/blogproject/urls.py | 9a3215ba5702b7c22567450884a56611561f2a6b | [
"MIT"
] | permissive | LikeLionSCH/9th_ASSIGNMENT | 3e58862a76e3232aed7e19e8939da23330ff2e22 | c211995ad12f404833ffec7fd80e1229b82a3bfa | refs/heads/master | 2023-07-03T10:27:11.843177 | 2021-08-02T14:52:02 | 2021-08-02T14:52:02 | 379,633,279 | 7 | 18 | MIT | 2021-08-02T14:52:03 | 2021-06-23T14:36:59 | Python | UTF-8 | Python | false | false | 1,043 | py | """blogproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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')
Class-b... | [
"mmy789@sch.ac.kr"
] | mmy789@sch.ac.kr |
743aee244af3e5076a2c6eced6ffea7266f9cf44 | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /Asyncio/asyncio_coroutine_return.py | 33de7d2adede0d01e538c965d748f6871d4e2b33 | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 348 | py | import asyncio
async def coroutine():
print('in coroutine')
return 'result'
event_loop = asyncio.get_event_loop()
try:
print('Starting')
return_value = event_loop.run_until_complete(
coroutine()
)
print('return from coroutine')
print('it returned: {!r}'.format(return_value))
fina... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
5c8658a1057c704b3ba1b0394c527175b04fa9e5 | fd536a9726e86d1ee9691d9508986571c7b6c4ef | /addBinoDecay.py | 9a285060dd5cda08e5f9cb57a52f3233ef2c3b4e | [] | no_license | cms-susy-photon-rwth-1b/tools | d75df39fa9fd79d5f82aa586a207560708ea1949 | f3ef5c5db196b6f715964d411b12e9263bc91ab2 | refs/heads/master | 2020-12-11T14:03:43.442010 | 2019-07-18T09:26:36 | 2019-07-18T09:26:36 | 35,474,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
gravitinoMass=1.0
chi01_decayWidth=1.0
# PDG14
sw2=0.231265 # sin²(theta_W)
cw2=1-sw2
mZ=91.1876
def outputformat(number):
return ("%.8e"%number).upper()
def BRg(m):
if (m<mZ): return 1
return cw2/(cw2+sw2*(1.-mZ**2/m**2)**4)
def BRZ(m):
if ... | [
"johannes.lange@rwth-aachen.de"
] | johannes.lange@rwth-aachen.de |
54b016fc1983e4616c9aafc4e7341e385707ee97 | b87a6998eec240f6a417ae18966776c8c4c0a2e1 | /DSC/DSC CONTEST 1 LAPINDROMES.py | fe768a0732c41cccb519068a0cc6911b74eb43f2 | [] | no_license | AshokReddy01/Code_Chef_Problem_Solutions | 6ca9e7281e856f2e7b291cd7c325de975c0bd4a8 | eed336057d9704e09989894b21774761fdbc21f1 | refs/heads/master | 2023-02-02T04:24:26.497265 | 2020-12-19T07:33:06 | 2020-12-19T07:33:06 | 268,199,870 | 2 | 0 | null | 2020-06-10T07:17:05 | 2020-05-31T03:08:17 | Python | UTF-8 | Python | false | false | 787 | py | strings =[]
l = int(input())
for i in range(l):
strings.append(input())
for i in strings:
mid = 0
nex = 0
if len(i)%2 == 0:
mid = (len(i)//2)
nex = mid
else:
mid = (len(i)//2)
nex = mid+1
str1 , str2 = i[:mid],i[nex:]
count = 0
for k in range(len(str1)):
if str2[k] in str1:
co... | [
"kummethashokumareddy@gmail.com"
] | kummethashokumareddy@gmail.com |
8186e7d599b6d6625d7b1f68a6983f22497faca4 | 5406d6bce007c90ca36e7557e060296e04b7c1b6 | /scripts/spp13/spp.py | c84b8f8e1a2c74e42e844b9c537542e32a99e727 | [] | no_license | darraghdog/dfake | 10df7c19acc3447c1833ab2754ec61b5699b9a05 | e128d0d907b0cb2d4e5d841de4bcfb0ddb0af276 | refs/heads/master | 2022-04-12T02:46:02.272497 | 2020-04-05T19:18:30 | 2020-04-05T19:18:30 | 229,479,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,597 | py | import os
import sys
import glob
import json
import cv2
from PIL import Image
import numpy as np
import pandas as pd
#import dlib
import torch
from itertools import product
from time import time
import datetime
import collections
from tqdm import tqdm
import skvideo.io
import skvideo.datasets
import random
import optpa... | [
"darragh.hanley@gmail.com"
] | darragh.hanley@gmail.com |
adb6433a250f11693e9cb769aa6765861450f7ea | 6ab7ecd01658c349ea7ef640160446b18aac39d9 | /restFrameworkTesting/asgi.py | 81878a5429376329c8e6392a6341ff035148dc18 | [] | no_license | ShoonLeiNaing/Django-Rest-Framework | 6e7da431c8cbe70f377eecb5afc49e6c8ee74e45 | 70f1f9f3c75df8f23ec83802cd63cbfe0e2d7483 | refs/heads/main | 2023-02-02T22:06:45.710866 | 2020-12-20T10:37:40 | 2020-12-20T10:37:40 | 323,046,995 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
ASGI config for restFrameworkTesting 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(... | [
"63739542+ShoonLeiNaing@users.noreply.github.com"
] | 63739542+ShoonLeiNaing@users.noreply.github.com |
2949b149c2011a714e185ecf63b9d3774853178e | 5e5f25fcb807855bc45fa02072df523f2899c895 | /util_chat.py | 5c65bb5018cfd5c21f8e17901ca6b8746e7f6629 | [] | no_license | 01akanksha/Fall2016IRC | 284ac08ecea066d5501fc079c013754360ae7704 | 02188ecfb23d637926ac18ade1a040dafc370d1b | refs/heads/master | 2021-01-20T05:21:59.186914 | 2017-08-25T20:07:39 | 2017-08-25T20:07:39 | 101,438,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,856 | py | # handles all functionalities such as join , leave , switch room , sending personal message.
import socket, pdb
MAX_CLIENTS = 30
PORT = 22222
QUIT_STRING = '<$quit$>'
def create_socket(address):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
... | [
"akankshaparashar311@gmail.com"
] | akankshaparashar311@gmail.com |
ca821802d0962caef2915548ba8620308e800d90 | 09082a4e2ee10340d8a1581d377d9dd064cf8169 | /sma/migrations/0009_mentor.py | a0227df021e4dff15ad537bcf36499c463e8296b | [] | no_license | jayasindhura/OMK | 819d42d57ec330e7b1036eb1707d12ff82c1a67c | 90cc6e20f94af18561bbe29cb42c2d2c61893e16 | refs/heads/master | 2021-01-09T17:42:07.964008 | 2020-02-22T18:46:13 | 2020-02-22T18:46:13 | 242,393,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # Generated by Django 3.0.3 on 2020-02-22 15:50
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('sma', '0008_auto_20200222_0812'),
]
operations = [
migrations.CreateModel(
name='Mentor',
... | [
"jpailla@unomaha.edu"
] | jpailla@unomaha.edu |
47298ab4cdd3bafea4f0885d35ebca96a8a6c345 | a7a429461f7335b6153ad2d505c070c4b332e6e1 | /automation/pyplot_reference.py | ccb13d4e170118c67af5784ccf451304457006cf | [] | no_license | nathanShepherd/infrastructure_testing | 553d83668df3b1609e14e51615119e46b96f8e45 | 34599c3bc1e99ca69315a389b8c487aad7ad58bf | refs/heads/master | 2021-07-06T23:22:52.738014 | 2020-07-22T19:17:14 | 2020-07-22T19:17:14 | 146,322,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | import matplotlib.pyplot as plt
import numpy as np
def gen_time_series(shape, limits=(0, 10)):
x = np.arange(shape)
y = np.random.uniform(limits[0], limits[1], shape)
return x, sorted(y)
plt.style.use('ggplot')
#plt.style.use('fivethirtyeight')
#plt.style.use('bmh')
#plt.style.use('seaborn-whitegrid')
#pl... | [
"nateshep@umich.edu"
] | nateshep@umich.edu |
2aca437b37742fa916d9eb0f1fd52264d265fc4a | 07aa9b5a07df2a80b7d899da1da63c84b1060fec | /src/iegen/ast/visitor/_collect_symbolics_visitor.py | 88c6cd9d5322f63bf3ec2910d6d0d9b99e1c6427 | [] | no_license | lamielle/iegen | f26da812a01557daca086e0a1c76a62af8fe7cd4 | 0f48edad8d14ae18c907d705751552cf6eb53c8e | refs/heads/master | 2016-09-05T12:48:23.698779 | 2010-12-14T19:17:13 | 2010-12-14T19:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from iegen.ast.visitor import DFVisitor
class CollectSymbolicsVisitor(DFVisitor):
def __init__(self):
self.symbolics=set()
def _outFormula(self,node):
self.symbolics=sorted(list(self.symbolics))
def outSet(self,node):
self._outFormula(node)
def outRelation(self,node):
self._outFormula(node)
def _outPre... | [
"lamielle@cs.colostate.edu"
] | lamielle@cs.colostate.edu |
a1b03c32d8dfc00bd69765ab19ad626a397ab4b9 | 150b76d69f3bba300c1c6ca96a8f35d66ac89358 | /encyclopedia/urls.py | 1e45b19f69adb2ec790742dccff8011202314b23 | [] | no_license | Anmol023/wiki | e935ede1f4784b7239e08566812a133cabda6445 | 8801acd10152a52cb304070dd10b67b8ddeb128d | refs/heads/master | 2023-02-01T00:23:55.831020 | 2020-12-16T15:34:10 | 2020-12-16T15:34:10 | 322,024,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
path("new_page", views.new, name = "new_page"),
path("wiki/<str:name>", views.title, name = "title"),
path("search", views.search, name="search"),
path("wiki/<str:name>/edit", views.edit, name = "... | [
"anmolgupta023@gmail.com"
] | anmolgupta023@gmail.com |
c55f1256c5f6caf2023c81b7053a388f9ff863f0 | 3a4d1342e102490d0a1e881326f3afd47f428926 | /scrape/scrape-finra.py | ec10c90f1ec83f18a6f0e9791fd71e1966ea09f0 | [
"Apache-2.0"
] | permissive | xbrlware/ernest | a7c64f6517d891eb9f42b074ee322b5a4e26ac30 | 526a1e3d4f89c6ca7e2a944362e8a704006f2d6f | refs/heads/master | 2021-01-24T01:52:34.996442 | 2017-05-01T13:35:29 | 2017-05-01T13:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | #!/usr/bin/env python
'''
Scrape and ingest new otc halts, delinquencies and companies from finra otc
json pages
** Note **
This runs accoring to the directory specified in the --directory argument:
--directory = 'halts'
--directory = 'delinquency'
--directory = 'directory'
'''... | [
"morgan@gophronesis.com"
] | morgan@gophronesis.com |
a932f3b3bd44179cf59483a5d94ad09386b59bf6 | 5f420a53b2ae3191c4e3b4d00eb979191db14ab5 | /Lime/compare_pam50_result.py | 469cddea5d8a165b4947e5f77a0cc2c213043982 | [] | no_license | JeanClementGallardo/Signatures_Cancer | 12f397dd30e96cca795c590a0940ee4990727660 | 9cc10ae81caab4e2d70cc5727ff1bcc9b0cce5df | refs/heads/master | 2022-12-29T05:17:30.285090 | 2020-10-17T13:58:58 | 2020-10-17T13:58:58 | 304,887,865 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,005 | py | import numpy as np
import pandas as pd
import os
import csv
from sklearn.svm import SVC
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from sklearn.metrics import balanced_accuracy_score
import matplotlib.pyplot a... | [
"jeanclement.gallardo@gmail.com"
] | jeanclement.gallardo@gmail.com |
7120b3a5b159769e472b006d8cd3ce1dad0d2840 | 4402533d7d1d0ebddb8d57a03e6a7f396bb0e5f2 | /test_include.py | 8b82474abbdd28f4099a3493a419140477b5acb3 | [] | no_license | nno24/autotrader | 6a40543ebe503f016de472620ffba8d06b8d2ab4 | fcba4b8a56c7f17f71171e2c1d146985acd26b88 | refs/heads/master | 2023-02-12T14:57:04.279128 | 2021-01-05T12:04:58 | 2021-01-05T12:04:58 | 250,361,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import importlib
import nordnet_functions
nordnet_functions.login_nordnet()
| [
"nicolai.norseng@gmail.com"
] | nicolai.norseng@gmail.com |
2e021d38e4fcdc0b012724a4df2546fbcce2a127 | 1eb9b1726d98d31f01d90e6f4c69855737b8ca71 | /quizes/migrations/0008_auto_20180106_0152.py | 14e8bdaa40ff305b7cd45c95a976de02664d2532 | [] | no_license | CassioSalvador/perguntaserespostas | 644d88180cf96b767585de3d492a67d93779ee7b | 2e2ab13ac70a08f0277d5727b02aa8a52e65952f | refs/heads/master | 2021-05-10T09:55:51.210308 | 2018-01-25T17:30:29 | 2018-01-25T17:30:29 | 113,065,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-06 01:52
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('quizes', '0007_auto_201801... | [
"cassiosalvador90@gmail.com"
] | cassiosalvador90@gmail.com |
802dfc0eca0af2e3ccdd4f960b723021a6c51317 | 6df0d7a677129e9b325d4fdb4bbf72d512dd08b2 | /frame/djenv/lib/python3.6/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine_facts.py | 85695cd79c4517fb7a24cea8700d7eddf5498739 | [] | no_license | yingxingtianxia/python | 01265a37136f2ad73fdd142f72d70f7c962e0241 | 3e1a7617a4b6552bce4a7e15a182f30e1bae221e | refs/heads/master | 2021-06-14T15:48:00.939472 | 2019-12-13T05:57:36 | 2019-12-13T05:57:36 | 152,200,507 | 0 | 0 | null | 2021-06-10T20:54:26 | 2018-10-09T06:40:10 | Python | UTF-8 | Python | false | false | 10,772 | py | #!/usr/bin/python
#
# Copyright (c) 2018
# Gustavo Muniz do Carmo <gustavo@esign.com.br>
# Zim Kalinowski <zikalino@microsoft.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIB... | [
"903511044@qq.com"
] | 903511044@qq.com |
287b9e237e3636d29c72dadd3a90613d40bda324 | ef52fc4c84354dab2b865ba6c2ca49dde46a8bb0 | /FrontPanelPythonAPITest.py | 88abda925388e59ea6f1fc69ea0a3c558d393584 | [] | no_license | waw33/Chronopixel-Analysis-Simulation | c0552ee91a25443fa3c7a3c274117d3ed1d52c49 | e65f364e76fa196e86e0424f8a7a25f2695321f6 | refs/heads/master | 2020-03-18T21:17:50.848156 | 2018-10-18T18:32:16 | 2018-10-18T18:32:16 | 135,272,544 | 1 | 0 | null | 2018-07-06T12:22:17 | 2018-05-29T09:25:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,995 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 04 16:29:40 2018
Test Opal Kelly XEM7001 wire readout
Just run this script while the XEM 7001 board is connected and powered
A counters example bitfile will be flashed to the FPGA
And then we read out the status of the counter repeatedly by
using the wire funct... | [
"walter.wilson@yale.edu"
] | walter.wilson@yale.edu |
602d285e6caef3d5cad9c01d5435cfd31884d156 | 6a99808661f5b550e292aef9eac3aa2d45549d6d | /bambooapi/serializer/user.py | 7f394e75235539485783d4efb9324a00b9b8386c | [] | no_license | satokadumasa/BambooPiSv | 9b8fe62adffc26dd38b0d90ed100d4fc1b4628ff | 8381dbb69b15cbf6ec9f175816d5324a519ce4bc | refs/heads/master | 2020-07-27T12:18:21.297673 | 2019-09-24T22:08:58 | 2019-09-24T22:08:58 | 209,086,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | '''
Created on 2019/09/24
@author: satoukentadashi
'''
from rest_framework import serializers
from bamboo.models.user import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username', 'email')
extra_kwargs = {
'id': {'validators': []}... | [
"satoukentadashi@satoukentadashinoMacBook-Air.local"
] | satoukentadashi@satoukentadashinoMacBook-Air.local |
f34cd78df51cc79e3b37407b87fe124f3dd20ca4 | f1812503a3293037ac5a1f60012c4e803fe8f358 | /8-Kyuu/Function1-hello_world.py | c63cdb7dee626f1dffab18e36de7555c935a195b | [] | no_license | AgaK1/codewars_python | 197ef2a8d92ef058d0a4738756bdd79f9349c1bc | 36e6b9bfaa172b4b2434baa855d59f8839cf5f94 | refs/heads/master | 2023-04-04T13:46:09.262690 | 2021-04-24T10:50:15 | 2021-04-24T10:50:15 | 315,000,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | # Make a simple function called greet that returns the most-famous "hello world!".
def greet():
return "hello world!" | [
"AgaK1@users.noreply.github.com"
] | AgaK1@users.noreply.github.com |
a66c69418384a411362c2026dd50fa4a1aad2bbb | 81901ac4456e4d92483d0d23bd7bb177fd304a64 | /general_tree.py | 04a9b1e8a8af88db290d3b079f85d4c734d5e725 | [] | no_license | TengKimhan/Basic_Data_Structure_Python | cf952f03dce27fd921259bbaec1cc827683dcebe | ab46f16fe6e2fd659d40bd50a3f87e1117ac8460 | refs/heads/master | 2023-06-18T12:20:31.922518 | 2021-07-17T06:13:20 | 2021-07-17T06:13:20 | 380,261,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | # building general tree
class TreeNode:
# each node have data, list of data, parent
def __init__(self, data):
self.data = data
self.children = [] # list of object
self.parent = None
# get level of each node
def get_level(self):
level = 0 # root node level is 0
p ... | [
"tengkimhan@gmail.com"
] | tengkimhan@gmail.com |
db17e843421fc03eea03f40dbb6ecd013fa9dbf7 | 84dc2767432c880db5c9f9646cac0c2763832c1d | /orderforheatmap.py | aff7b7ba0c89ddb3218ea1ae39fe2e1ddc7dfdb6 | [] | no_license | mrcsfltchr/TrapAnalysis | 0624497e397be39a7ad1374cc719c2a4b2dbd92a | bdbf764b99844c94d1e7aba63164f221a7627ddd | refs/heads/master | 2023-07-21T15:11:29.495632 | 2021-12-02T08:36:36 | 2021-12-02T08:36:36 | 157,555,693 | 0 | 0 | null | 2023-07-06T21:24:55 | 2018-11-14T13:50:24 | Jupyter Notebook | UTF-8 | Python | false | false | 3,375 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 13:44:39 2019
@author: mjsf3
"""
import numpy as np
import pandas as pd
import sys
import os
import time
#This module uploads an Excel sheet using the pandas DataFrame object. This DataFrame object is exported to a numpy array
if __name__ == ... | [
"mjsf3@cam.ac.uk"
] | mjsf3@cam.ac.uk |
dc2a5083cd2658f366f313911a417bc9435a42bf | 596afe5018975fea70d96d92357f3f59d4789299 | /kuhu2.py | 084c7a5434e9d28e271858d8e97af3bad738e2bf | [] | no_license | zeenat19/loop-questions | 437ee47ca788ae57446a998489c2d7e885b86d3c | ae131c4a3b2a44e825e2c8ab17db6416d193abf3 | refs/heads/master | 2022-11-28T06:46:06.896837 | 2020-08-10T05:21:54 | 2020-08-10T05:21:54 | 286,383,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | sum = 0
count = 50
while(count <= 60):
user = int(input("enter any number"))
sum = sum + user
count = count + 1
print(sum)
| [
"yashaswi19@navgurukul.org"
] | yashaswi19@navgurukul.org |
290d9c5a7eac5167e4920d49db4d3864b1b95ba9 | ec578380f10aa3d2eed32d54bb84ab69f7b3ea63 | /train_nn.py | 723c11c3fe4ddac8d0591259635a399619f669ad | [] | no_license | ryodine/CS4342-Final-Project | 4eccd0c5f1a8a45caf00227f71ca5c5b37ec7c9c | 257e5a0532fd92c2221a3c93f6f65885bbb7cbeb | refs/heads/main | 2023-04-23T11:52:38.558485 | 2021-05-13T00:29:04 | 2021-05-13T00:29:04 | 362,140,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | import numpy as np
import tensorflow as tf
### Importing the model, which is defined in another file ###
import model_nn
model = model_nn.get_model()
### Importing the data, which is defined in another file ###
import data_nn
train_generator, validation_generator, _ = data_nn.get_data_generators()
##################... | [
"ryan@johnsonweb.us"
] | ryan@johnsonweb.us |
d0d7553b2ea68731b17e20f8c07cd6b51c0bada4 | b76fcab2da90f5f3ad17037d17617272a238c9f5 | /for.py | 3eb008a54d983c3d6b6c4a84b504ed1cd2b86fa4 | [] | no_license | SulaimanAlRafee/230Spring | 82138223b689f618b5855d2fac4756dcc3513d55 | aa33ff75c64abd0c870b99f57ec5791b3f7e8bae | refs/heads/main | 2023-06-05T14:10:58.492277 | 2021-06-20T05:56:08 | 2021-06-20T05:56:08 | 361,327,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | number_failed = 0
number_passed = 0
for student_grade in range(5):
student_final_point = int(input("Enter points:"))
if student_final_point >= 60:
number_passed = number_passed +1
else:
number_failed = number_failed + 1
print("Passed: ", number_passed)
print("Failed: ",number_failed)
#add numbers up to
... | [
"noreply@github.com"
] | noreply@github.com |
501a59bf5034f2971f72a93692f2a6b9fa4bd318 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4457998.3.spec | 20d3afe3e339b6101508a887d783eccb40b43034 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,312 | spec | {
"id": "mgm4457998.3",
"metadata": {
"mgm4457998.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
3bc213ea24c2446a74e668bef4d94af764e0f64b | 34c1bb46de764bd1f43590a4a828c25b773c421d | /Problems/Catchy song/main.py | 8b415e6b311f30ec5eeb6802f98f5e28e7b15ff1 | [] | no_license | jolynutella/Zookeeper | 638cbf6bbfb5ad3907ce8cc4e11addefeaf87451 | 682db44bf26f30015085c2a138a4bb80f0c4f1a4 | refs/heads/master | 2023-03-07T11:53:57.764811 | 2021-02-28T15:08:18 | 2021-02-28T15:08:18 | 343,132,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | n = int(input())
word = str(input())
song = n * word
print(song) | [
"igor.bytskalo@gmail.com"
] | igor.bytskalo@gmail.com |
108642351d47520656f96ddcacfa6ce3d272c6b2 | f13aadfefb5a854f36e6226b288afaf20f202c57 | /happy/tests/functional/test_authentication.py | adff9fef683161cfe0285aee50a47af621b8775c | [
"Apache-2.0"
] | permissive | gbanegas/HappyClient | 4119036e762cee8ec32a0d9547798fb28fb0fa17 | 7abbd2a8001b2962288793d300d5582e13ac4fdf | refs/heads/master | 2021-01-15T11:12:09.710895 | 2014-05-14T12:28:21 | 2014-05-14T12:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | # -*- coding: utf-8 -*-
"""
Integration tests for the :mod:`repoze.who`-powered authentication sub-system.
As happy grows and the authentication method changes, only these tests
should be updated.
"""
from __future__ import unicode_literals
from nose.tools import eq_, ok_
from happy.tests import TestController
cl... | [
"g.banegas@inf.ufsc.br"
] | g.banegas@inf.ufsc.br |
bc5aff48d559df398e4a2f66aaeeb0e17884dd6b | a1bccead14fe67f560ca54aad98dbb2367c7568b | /tensorpack/tfutils/common.py | 42588423b3fea4d2fd9c3f858dff7f6cb15af704 | [
"Apache-2.0"
] | permissive | Peratham/tensorpack | 9ea7e714b41de1aa4393454d2fa0a88d3b7568b9 | e21fc267c0ada1377bffcc008dad31c28326690d | refs/heads/master | 2021-01-11T17:46:10.488888 | 2017-01-23T17:13:43 | 2017-01-23T17:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,547 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: common.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
from ..utils.naming import GLOBAL_STEP_VAR_NAME, GLOBAL_STEP_OP_NAME
import tensorflow as tf
from copy import copy
import six
from contextlib import contextmanager
__all__ = ['get_default_sess_config',
'... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
df8311f1d2805816a6fc20a00ec8a0abcbe78a62 | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/Products.CMFPlone-4.1-py2.7.egg/Products/CMFPlone/tests/testCheckId.py | dcf03d009fb74b10bfa220665076ec808f2f2c61 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,862 | py | #
# Test id autogeneration related scripts
#
from Products.CMFPlone.tests import PloneTestCase
from Products.CMFPlone.tests import dummy
from AccessControl import Unauthorized
from Products.CMFCore.utils import getToolByName
from ZODB.POSException import ConflictError
class TestIsIDAutoGenerated(PloneTestCase.Plone... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
4a729508f1f949eafb8fc1d44deb47021add4e55 | 56c170046a4c3e33b60f9f3015c32344ddff4168 | /130_html_to_csv/000_mkcsv_t_tenken.py | 2d79640f07c11b870f1f66684b34d25462ed8269 | [
"MIT"
] | permissive | coraldx5/BOAT_RACE_DB | df27aa9c1b23526e8160a10f8d869056276b78f8 | f16ed8f55aef567c0ecc6ebd3ad0e917f5c600d8 | refs/heads/main | 2023-04-25T10:34:25.087098 | 2021-05-08T03:00:08 | 2021-05-08T03:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,331 | py | '''
【システム】BOAT_RACE_DB2
【ファイル】000_mkcsv_tenken.py
【機能仕様】前検HTMLファイルから前検テーブル「t_tenken」のインポートCSVファイルを作成する
【動作環境】macOS 11.1/Raspbian OS 10.4/python 3.9.1/sqlite3 3.32.3
【来 歴】2021.02.01 ver 1.00
'''
import os
import datetime
from bs4 import BeautifulSoup
#インストールディレクトの定義
BASE_DIR = '/home/pi/BOAT_RACE_DB'
'''
【関 数】mkcsv_t_... | [
"noreply@github.com"
] | noreply@github.com |
f429637a8b84b728ae2b9dcd7f4e701c0e1e334b | c2856c192bd73780992c3287ffdac757ac86959a | /favrip/file_operations.py | e06d3fe2043edbceac6d990e1bd11e86b1e5a759 | [] | no_license | mikeshearer/favrip | 888f6b368edcba1b074124df1b0a5321f267c4e6 | d657c43d9eda4ceaf50d4211571650c2dc737ba7 | refs/heads/master | 2022-12-15T23:42:12.573807 | 2020-08-21T21:34:21 | 2020-08-21T21:34:21 | 288,529,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Python built-in imports
import csv
from typing import List
def read_csv(file: str, delimiter: str =",") -> List:
""" Read a csv into a 2D list (list of lists)
:param file: Filename reference
:param delimiter: Column delimiter used in the file
:return contents: CSV contents as a list of lists
... | [
"mikesshearer@gmail.com"
] | mikesshearer@gmail.com |
040b9d187567f86f9872d31b5d9c55dd51d9feea | 02711a0b9f398e048473f205a8dbe1157ee68942 | /PythonExercisesWk1/16SurfaceAreaOfaProlateSurface.py | 3e19809dc2d9bfb906ae4461936d7491453c3bce | [] | no_license | jamesledwith/Python | 2c81d7b7dd58a2ca93c320c17ff10a36735c7fd0 | a0dc4ee694f568775b74f32efa82acecc23acd78 | refs/heads/master | 2023-03-09T05:30:07.849120 | 2021-02-24T23:53:35 | 2021-02-24T23:53:35 | 290,484,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 23 14:02:45 2020
@author: James
"""
from math import sqrt, asin, pi
print("This program calculates the surface area of a prolate_spheroid")
a = int(input("Enter the semi-axis a: "))
b = int(input("Enter the semi-axis b: "))
e = sqrt( (a * a) - (b * b) ) / a
s = (2 * pi... | [
"jamesledwith@live.ie"
] | jamesledwith@live.ie |
9b38a2bd8992df54556e4c75e7506879c4b8cc79 | 86d749a75d2b91ef1edb7250f82134e36f65ed8e | /BOJ_2583.py | cf1e8f1daab2f90b888f0996c874e8480ed77f28 | [] | no_license | youngpark17/python-problem-sovle | 27a50ea7d5413376736f18f78465840ca40b7e40 | e74f7cc2d6c9882ba1ffbe57046ea749ca6ddb21 | refs/heads/master | 2022-11-13T23:26:41.800165 | 2020-06-22T01:03:33 | 2020-06-22T01:03:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from sys import stdin,stdout
import sys
sys.setrecursionlimit(10000)
m,n,k = map(int,stdin.readline().split())
graph = [[0 for i in range(n)] for j in range(m)]
dx = [0,0,1,-1]
dy = [-1,1,0,0]
visited = [[False for i in range(n)] for j in range(m)]
def dfs(x,y):
tmp=1
visited[x][y] = True
for i in range(... | [
"mduddns@naver.com"
] | mduddns@naver.com |
4305a6175c9f79abd4142307673e8e501453acc7 | 7b1c04f5ce6912908bedba75454469e1ae04a6cf | /tests/test_doctor.py | a44fdcf43249ef9e4333028696ef43409b0c074b | [] | no_license | superosku/parser | 57ba59b8242c411761f377d061238f7a1b192c47 | e8c068f23a5701fb168ba7228829469f07ce8f7a | refs/heads/master | 2021-06-21T11:09:39.542694 | 2017-08-11T12:45:55 | 2017-08-14T18:54:20 | 100,289,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,735 | py | from parser.doctor import Doctor, Location
import pytest
class TestParseFromJson:
@pytest.fixture
def data(self):
return {
'doctor': {
'first_name': 'Dean',
'last_name': 'Israel',
'npi': '85103080143784778415'
},
'pra... | [
"oskari.lehto@gmail.com"
] | oskari.lehto@gmail.com |
27e39d95f8c7dec0d4b64df686bbadb54939af45 | 2e4d376ceef6f25d8c0682e8cb07387de77cbac9 | /elasticngrams/elasticinterface.py | 586b3821e662efe06cd773c0957842831209bd01 | [
"MIT"
] | permissive | NickAnderegg/elasticngrams | c810bc0e4479f5b147b1f6ca16be32f8603d8c6b | 59fd6921c69b8fbf8e8ff0e6e9afc9bc6301c1a0 | refs/heads/master | 2020-05-29T08:47:04.941901 | 2016-10-25T00:20:38 | 2016-10-25T00:20:38 | 67,534,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,946 | py | import requests
import json
import time
import threading
import hashlib, base64
import random
import sys
import queue
from collections import deque
from .ngramstream import NgramBase, NgramSources, NgramStream
class ElasticUtility(object):
def __init__(self, database_url, language, version):
database_ur... | [
"nick@anderegg.io"
] | nick@anderegg.io |
0fefd3f01afa6bc5a11f0af7a5edaf1acd7d73aa | 9a3fc0a5abe3bf504a63a643e6501a2f3452ba6d | /python/pyforce/contest.py | 00281fb6b0c2d3f142b0b6104a65a664f35ae7d4 | [] | no_license | rodolfo15625/algorithms | 7034f856487c69553205198700211d7afb885d4c | 9e198ff0c117512373ca2d9d706015009dac1d65 | refs/heads/master | 2021-01-18T08:30:19.777193 | 2014-10-20T13:15:09 | 2014-10-20T13:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import urllib2
import string
from bs4 import BeautifulSoup
url='http://codeforces.com/contest/281/problem/A'
usock = urllib2.urlopen(url)
data = usock.read()
usock.close()
print data
| [
"winftc@gmail.com"
] | winftc@gmail.com |
6d2847978639b655f93e0f10b11c93d3bf5069c5 | 2e683d882712fae657d7ec3f2e1f0f1d36c9c544 | /ScheduleSystem-master/Api/controller/medications_controller.py | 572f7283c114c58daa25449fba4a998ad0c87064 | [] | no_license | Mancellew/NHS_Pick_Up_System | dbd965399359b4fa408e821a9ffc6ffcd1a4e8c5 | 93511a3430b375778521902855cb8bd7f0d512cf | refs/heads/main | 2023-03-23T13:11:13.358593 | 2021-03-07T16:22:37 | 2021-03-07T16:22:37 | 345,392,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from flask import Blueprint, jsonify, request
from common import requests_commons
medication_endpoints = Blueprint('medication_endpoints', __name__)
@medication_endpoints.route('/add_medication', methods=['POST'])
def add_medication() -> (dict, int):
data = request.json if request.is_json else request.form
... | [
"noreply@github.com"
] | noreply@github.com |
18adfe299b9c61cc4db66bfc79aad08f417863eb | 1951896617444f8a26973c8e6a8d85042afacc47 | /dataset_dir/feature_from_ontology_checker.py | e10045777e4e95d1260f1f2731be086046ac7a4e | [] | no_license | izuna385/ELGO | 023030532d5e45fe930a1eb2e07dac9c4e29e798 | 9d11765d89766f1dbe81afe80f7ee4a1e26e6b6e | refs/heads/master | 2021-07-20T09:20:41.768533 | 2019-02-04T22:50:59 | 2019-02-04T22:50:59 | 166,920,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import pickle
with open('feature_from_ontology.pkl','rb') as ff:
feature_list = pickle.load(ff)
print(feature_list[0:10000]) | [
"h.hiroshi.nlp@gmail.com"
] | h.hiroshi.nlp@gmail.com |
4ea7324dc735700864355bf887688d287410ce00 | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/681.next-closest-time/681.next-closest-time_120259498.py | e5e0ccb34cb9903d4bb82ad4979a9600dfb35202 | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from datetime import datetime, timedelta
def check(dt, time_str):
dt_str = datetime.strftime(dt, "%H%M")
_time_str = set(list(dt_str))
if _time_str & time_str == _time_str:
return True
return False
class Solution(object):
def nextClosestTime(self, time):
"""
:type time:... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
2fd322c2119b17a6dbba6964014665a492d587e1 | 80c3e535981376db33816842d40993e5ffe9def8 | /Example Scripts (Python)/getConfirmedSignaturesForAddressEx.py | e698d435d9bd66a5ab1b50bb46b3773b1a733393 | [] | no_license | jammie/Solana-API | 5c9ad6e38d1ac1a209a65ff5c09e482b78d94142 | 6d2b150cfc6efa477c1a7d9c3e1a0e82009d3da8 | refs/heads/main | 2023-05-05T16:11:18.458051 | 2021-05-31T18:55:40 | 2021-05-31T18:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import requests
url = "http://127.0.0.1:8042/confirmedSignatures/"
address = "CAavUPdd5R9K5GBqD1cnJtnLTzRym7npviMvGxoBFh5J"
start_slot = "80471566"
end_slot = "80471600"
response = requests.get(url + f'{address}&{start_slot}&{end_slot}')
print(response.json())
| [
"53294218+JohnKearney1@users.noreply.github.com"
] | 53294218+JohnKearney1@users.noreply.github.com |
05a3ffa3dcc68cde5193dd0eb90bfcfaed5808b4 | 11457341b5076955dee60b11dde13230248fbaf1 | /icmp4.py | a187df4287e3beb392a9ff14ee4b20737b2612c0 | [] | no_license | hypelive/ftraceroute | 691ff90ca01f22c54170c709f7c13de8e5afbd12 | 1eb1acfe50648e47e76483621357d2aeacd1b7e2 | refs/heads/master | 2022-10-22T04:24:12.680574 | 2020-06-08T16:56:24 | 2020-06-08T16:56:24 | 229,294,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from icmp import ICMP, socket
class ICMPv4(ICMP):
AF = socket.AF_INET
TYPE = 8
PACK_TYPE = 20
ID_ALIVE = 24
ID_DEAD = 52
def deconstruct_response(self, response):
receive_packet, (hop_address, _) = response
return receive_packet, hop_address
| [
"empils48@gmail.com"
] | empils48@gmail.com |
0e1278a1dd25158642d9235c1081f8edcfc83c8f | 4bd3d005b1662060dc953dcec7612578ecaeb869 | /hafta3/calculator.py | 640b4a87d49bd5aa68e4fda1cdba638e698c728f | [] | no_license | unsalfurkanali/ksuieeeCSPythonCourse | f9ca8496ed43b642aeb6f925579a6a6363165a7b | b4e70a051ca8d2cdb5b5648f96c69fb2226fdae2 | refs/heads/master | 2023-02-12T19:31:41.157069 | 2021-01-12T18:45:18 | 2021-01-12T18:45:18 | 323,705,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | #Fonksiyon tanımlamaları
def menu():
print("******Hesap Makinesi******")
print("İşlemler")
print("1-Toplama\n2-Çıkarma\n3-Çarpma\n4-Bölme\n5-Üs Alma")
islem = int(input("Yapılacak İşlemi Seçiniz : "))
return islem
def toplam(sayi1, sayi2):
return sayi1+sayi2
def cikarma(x, y):
return x-... | [
"unsalfurkanali@gmail.com"
] | unsalfurkanali@gmail.com |
118469b2bda66288057c7bdac81c6069f2397253 | 9f6ea967d84c37d04543d72edabce4dea0517a4f | /all_scraper/Service/JingDongScraper/get_keywords_url_id/get_review_productId.py | 91b08b7ba891c843eec95dc408c44859aef45938 | [] | no_license | GongSong/All_Scraper | 8fae34851b8c4b31ab1ae47f39d511a0869c59ef | f2bacc8416ed2e611e5e8515d34ec12fd5f10018 | refs/heads/master | 2020-07-22T08:46:32.347936 | 2017-08-03T02:17:01 | 2017-08-03T02:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #-*-coding:utf-8*-
from Service.JingDongScraper.db_operation.db_connection import DB_connection
from Service.JingDongScraper.db_operation.db_operation import DB_operation
class get_review_productId():
# 这里获取的是productId
# 评论(json)页的url拼接为https://sclub.jd.com/comment/productPageComments.action?productId=4265472... | [
"javen.xi@atommatrix.com"
] | javen.xi@atommatrix.com |
84993e6b6bee398d650f968ca1c9b82957e305ab | eab2cdbe88a2ba1d819255faa333638c4187c5f0 | /Apps/Gossip/views.py | 7bb801357247fc968e2c42411c2134afa99115ac | [
"MIT"
] | permissive | qwertybox/practproject | 5502f63daa2cd2d260d2035b6c1dffe6a45ff68d | 76efc51bcc7e12942ed39ff3390f01d9999bb582 | refs/heads/main | 2023-05-10T11:20:53.608756 | 2021-06-05T13:59:00 | 2021-06-05T13:59:00 | 374,123,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | from django.shortcuts import render
from .models import *
from django.http import HttpResponse, Http404
from django.views.generic.base import View
from django.shortcuts import render, redirect
from django.http.response import JsonResponse
from .forms import Gossipform, Characterform
# Create your views here.
def g... | [
"ovsak.bohdan@gmail.com"
] | ovsak.bohdan@gmail.com |
b8714b2d8b4e0d560f138f491c85640bb6a4aaf1 | 7a1af7a1dddad61b6d6801a351a0e66da6cd1c61 | /test/cycle.py | 78bb301deb8344f3f685fac6d37ae9ed4c9d029e | [] | no_license | BGehrels/yadt-config-rpm-maker | 2758d3d7ddbcc67fdb8e7b70f062ffc19dc886c0 | cfce35ba53377c8d5d13687a1a7e4abd3266c520 | refs/heads/master | 2021-01-18T08:19:30.008640 | 2013-09-16T13:50:11 | 2013-09-16T13:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # coding=utf-8
import os
import shutil
import struct
import tempfile
import unittest
from config_rpm_maker.token.cycle import ContainsCyclesException
from config_rpm_maker.token.cycle import TokenCycleChecking
class CycleTest (unittest.TestCase):
def test_recognizes_simple_cycle(self):
graph_with_cycle={}
... | [
"maximilien.riehl@gmail.com"
] | maximilien.riehl@gmail.com |
c250899c4850418b98e8635a66e17e4a3eef1904 | 6aeee31f5706bbb0e686c8426c610a2ba7afb1db | /myapp/models.py | 0e7cbc24353811ce4e2301246c4541fdbc2b7994 | [] | no_license | neuanhlasathu/mywebdb | d6f3d5f800119a5d6b291f19c88b4e2cd2952919 | d800ede674284971f35d0f726d6911de5f31f6cf | refs/heads/master | 2023-02-26T21:30:08.912439 | 2021-01-31T05:49:54 | 2021-01-31T05:49:54 | 334,584,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.db import models
# Create your models here.
class Student(models.Model):
fullname=models.CharField(max_length=40)
age= models.IntegerField(default=0)
sex= models.CharField(max_length=10)
nation= models.CharField(max_length=50)
phonenumber= models.IntegerField(default=0)
address= mo... | [
"70925854+neuanhlasathu@users.noreply.github.com"
] | 70925854+neuanhlasathu@users.noreply.github.com |
e16a386bfa70eb6997e1fe546fc964ae853e715e | 4cc9f5e1017d8a492632c2d8696b42c71ebc378b | /pages/basket_page.py | 7d518fd401ca029ce45763729b57c3b8bca19579 | [] | no_license | ekaterina-ved/FinalProject | 418f1cac55ee36a5bdebb4647f76b64cf2b86066 | a8877c0f5c98f99d13a022fad36ebf048f6ba929 | refs/heads/master | 2023-01-24T06:56:25.494926 | 2020-11-19T10:24:21 | 2020-11-19T10:24:21 | 307,950,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from .base_page import BasePage
from .locators import BasketPageLocators
class BasketPage(BasePage):
def should_be_zero_amount(self):
assert self.is_not_element_present(*BasketPageLocators.BASKET_ITEMS), \
"Some product in basket"
def should_be_text_about_empty_basket(self):
baske... | [
"fedor.vedernikov@nordigy.ru"
] | fedor.vedernikov@nordigy.ru |
04c99a026d86b9751277692a3af1fb8e647ea1b0 | ae91b977fc5cc5f05fd2679e1bb7e65a42439efd | /hw2/logistic_test.py | 0f1326e87445a0b15280933f868d239783601f6b | [] | no_license | ZongZe-Wu/ML2016 | 76bdc40ee3fd379103313b59b4bb2f0d52e9b202 | 5be31bea60a746d704485d6cf287ea6ac4c0e225 | refs/heads/master | 2021-03-22T04:23:50.272345 | 2017-01-20T16:35:18 | 2017-01-20T16:35:18 | 69,021,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | import numpy as np
import math
import random
import sys
def sigmoid(x) :
return 1 / (1 + np.exp(-x))
def main(argv):
input_buffer = []
w_buff = []
b_buff = 0
with open(argv[0]) as textFile:
for line in textFile:
input_buffer = line.strip().split()
w_buff.append(input_buffer)
b_buff = float(line.strip()... | [
"r05921012@ntu.edu.tw"
] | r05921012@ntu.edu.tw |
345041ab6ca6cfbe5820b5d59853db70c47c07bd | 5fcf3e0336eae49bb08be2cb2cd305b88bab1dd7 | /setup.py | 817ecced7b4c133015b789145b664732f0f68ffe | [
"Apache-2.0"
] | permissive | ryo4432/mycompany_ament_copyright | b31a70a31b15d09ee743d5ec6c7cacde646964b0 | 6d6fc58b9aa06c6609627fd58e9a4aaea5652c06 | refs/heads/master | 2023-02-18T16:07:20.232067 | 2021-01-14T11:15:19 | 2021-01-14T11:15:19 | 328,573,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | from setuptools import find_packages
from setuptools import setup
package_name = 'mycompany_ament_copyright'
setup(
name=package_name,
version='0.0.0',
packages=find_packages(exclude=['test']),
data_files=[
('share/' + package_name, ['package.xml']),
('share/ament_index/resource_index/... | [
"ryoyoshimitsu@gmail.com"
] | ryoyoshimitsu@gmail.com |
35862a4b35e752a2258add5cc00a486a07301c46 | 8771536798233263f6fbb7b019e73f6087024531 | /mystudy/aaa/随机函数、去重排序.py | 76125bbde205dcb4bbb61b461b7c527fb58cd97e | [] | no_license | zhenfang95/Hello-World | e3fcae3f53c104622c36fe9fbdf85e7331600a18 | 8f10d3c70ab785d4120d24673b0945a169f2355c | refs/heads/master | 2021-06-28T10:39:37.636946 | 2021-01-21T03:36:58 | 2021-01-21T03:36:58 | 188,968,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# @time:2019/10/30 15:19
import random
s ='ABCDEFGHIJKLNMOPQRSTUVWXYZ0123456789'
ran = random.sample(s,6)
aa ="".join(ran)
print(aa)
'''字符串去重并排序'''
w = "11235672asdwaaswvbg"
ww = list(set(w)) #去重
ww.sort() #列表排序
wwww = "".join(ww) #列表转换为字符
print(wwww)
| [
"277717810@qq.com"
] | 277717810@qq.com |
83ddb723be88755b2b2ee2719a89f18bfdbbf752 | cfa51c73945db52531a5edeb8813a85440bdb729 | /script/create_fog.py | 54eacde8b02cae222189a9165eed8a91e44bb060 | [] | no_license | XBlueSky/matching_method | 20de8459d8595cd518b72a0cfbb1a1e48f5b307e | 7f3649bd412978adf64b0f78b95421a1929cbdec | refs/heads/master | 2020-05-22T05:33:21.986319 | 2019-08-05T06:58:40 | 2019-08-05T06:58:40 | 186,237,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | import random
from argparse import ArgumentParser
# do argument parser
parser = ArgumentParser()
parser.add_argument("edge_num", help="Input number of edges")
parser.add_argument("fog_num", help="Input number of fogs")
# parser.add_argument("cost", help="Input fixed cost number or diff")
args = parser.parse_args()
ed... | [
"tony84822@gmail.com"
] | tony84822@gmail.com |
8909cbc55ed2f07c029ca60c0a49f99e63764afb | 61b0a6041d96c1b977f07aed9e4f6ee3229f85e6 | /fetch_wikipedia.py | d1de9c92094b4f0d3da64d08c1770d7aa6228e38 | [] | no_license | Hadryan/choir_music_data | e1d163cd8fe7e5f286b46b0bd51d5c66dc73d3e6 | 2d72a8f76c40915ffff3fc0929ad498b8b232136 | refs/heads/master | 2023-01-01T01:06:48.196179 | 2020-10-20T17:47:11 | 2020-10-20T17:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | import logging
import pandas as pd
import regex
import yaml
logging.basicConfig(level=logging.INFO, format='{asctime} {message}', style='{')
BASE_URL = "https://en.wikipedia.org/wiki"
lists = [
"List of Medieval composers",
"List of Renaissance composers",
"List of Baroque composers",
"List of Classic... | [
"horvath.arpad.szfvar@gmail.com"
] | horvath.arpad.szfvar@gmail.com |
c13f8b8ffe13989527d72161e64b98b02f165823 | 8038c72e9c05b9a962a78002e1ac32ac5797d33f | /qfcommon/thriftclient/data_engine/__init__.py | 8e71657b2d2d71512424008318d0c83ead7fad72 | [] | no_license | liusiquan/open_test | faaf419dcd5877558e25847edf5e128c5e9e64b2 | 0cb0aaf401234ac3274d34dcf08ff633917db048 | refs/heads/master | 2021-01-11T20:44:25.567470 | 2017-01-18T10:13:54 | 2017-01-18T10:13:54 | 79,174,997 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | __all__ = ['ttypes', 'constants', 'DataEngine']
| [
"qfpay@TEST107.(none)"
] | qfpay@TEST107.(none) |
bd2e73826e49ec47995d39f344229610c89341f1 | af7e20b979c198f235ba51a160c81e0856af0cc7 | /tests/test_karma_parser.py | 32af2ec042e41d2bced6250b7acdaeb7d9c40210 | [
"MIT"
] | permissive | the-Bruce/apollo | 1ce3b8abd184b180c24acbe966571c8b294cc04c | 7458785f94cde1dfe3e21451504916d8e5d50ae8 | refs/heads/master | 2020-05-15T14:21:01.324314 | 2019-02-11T13:32:40 | 2019-02-11T13:32:40 | 182,333,921 | 1 | 0 | null | 2019-04-19T22:44:17 | 2019-04-19T22:44:17 | null | UTF-8 | Python | false | false | 5,868 | py | import os
import pytest
from alembic import command
from alembic.config import Config
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from karma.parser import parse_message, RawKarma
from models import Base
@pytest.fixture(scope='module')
def database():
# Locate the testing config for A... | [
"david@tankski.co.uk"
] | david@tankski.co.uk |
5dfee9e1835cb4f659379633ab6aa625cb6bebb5 | 2d22ab02d480e5428e967970bd7a522922093c13 | /resnet-cifar10.py | 4aae89f447c81962b0c686c0449b2c32ced3289e | [] | no_license | SeunghwanByun/pytorch-tutorial | a1e57d6f5ea0e301a58d2b39259c090e3a9219b7 | f4d016e6d048c234c834adf5e36421f6ba0ff339 | refs/heads/master | 2022-07-19T19:22:27.712832 | 2020-05-21T11:53:15 | 2020-05-21T11:53:15 | 263,905,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,278 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torchvision
import torchvision.transforms as transforms
import visdom
vis = visdom.Visdom()
vis.close(env="main")
def value_tracker(value_plot, value, num):
''' num, loss_value, are Tensor '''
vis.line(X=num,
Y=v... | [
"noreply@github.com"
] | noreply@github.com |
c809b5417d4cbe170a8bbb6b52ed925a539fc377 | cf7e900e5312ed9ece2dcd923e908ce0d0ebec08 | /Shutdown.py | be842bc735a64acc9e011e82399600fb9069425d | [] | no_license | ConnorCremers/FRC-1595-Code | a63e19c8f1b76c896a9a2311743241e17bb09d7c | 6a293b280425b20b9f7ec0ff920f3d64872f060d | refs/heads/master | 2021-01-10T17:39:57.300234 | 2017-11-21T21:04:18 | 2017-11-21T21:04:18 | 50,326,251 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #!/bin/python
#This script was authored by AndrewH7 and belongs to him (www.instructables.com/member/AndrewH7)
#You have permission to modify and use this script only for your own personal usage
#You do not have permission to redistribute this script as your own work
#Use this script at your own risk
import RPi.GPIO a... | [
"noreply@github.com"
] | noreply@github.com |
c747b4cbc3593fbbcb384a90b2f22b7cd45d0a30 | 84820586ffeb18c973077f36c7796b98fbe23685 | /core/urls.py | 85c860003c86e5b578d39b1bb4956478001aed71 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | sergane13/IdeaTool | cc581809233efd800b04944ddc77be68f3cafd5b | 51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1 | refs/heads/master | 2023-03-24T23:21:30.073971 | 2021-03-06T18:42:52 | 2021-03-06T18:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from django.contrib import admin
from django.urls import path, include # add this
from django.contrib.auth.views import *
urlpatterns = [
path('admin/', admin.site.urls),
path("", include("authentication.urls")), # add th... | [
"59288577+sergane13@users.noreply.github.com"
] | 59288577+sergane13@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.