blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33d6093618499e7fec08601c9e89c6294b4ab44c | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/materialistic/testcase/firstcases/testcase6_015.py | fd51f2cbcd30c5b02180cf32fadd398fc056fcad | [] | 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 | 6,621 | 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 |
1bf10bf9ab943cb001ee4242ad9ccd3c70d30efe | 1514f1680eee6c08eed3d4e438e5e9a18e25a8c5 | /dw_service/core/job/jb_dim_dm.py | b6f47c9a004aad9e5ff5f0da3e7b2eac1de38ecb | [] | no_license | xiongjizhang/hive_dw | 8eaabec8b054534850aba174f8b8cd500a4c7c77 | d217974d4d2f347b9650ce9f1021c7a45809e282 | refs/heads/master | 2020-05-03T01:50:03.331222 | 2019-03-29T07:00:13 | 2019-03-29T07:00:13 | 178,349,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | #coding=utf-8
import datetime
from util.base.read_conf import ReadConf
from util.mysql.mysql import MySql
from Crypto.Cipher import AES
import os,sys
import pymysql
import pyhs2
import ConfigParser
from io import BytesIO
import paramiko
import datetime
import logging
import time
class JobDimDm :
def __init__(se... | [
"xiongjizhang@126.com"
] | xiongjizhang@126.com |
74cd9576395c92418dfcdc48678e1d0f966022f4 | 1867d4895a597aa1a6725e5ae533a5a1a921d135 | /src/gradiente/gradiente.py | 4e8a435c4c9874bd582520ab5ca22c86e2986e1d | [] | no_license | adas-eye/TCC | e40a9e37e76cb3ef8ad0dcc90fd90a0b73c26317 | 11137a7d5ffa68eb0d0563ca9324ab909fa56140 | refs/heads/master | 2021-09-13T02:11:24.720927 | 2018-04-23T20:59:10 | 2018-04-23T20:59:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,880 | py | import sys
import numpy
import cv2
import math
def loadResource(source, out=None):
# source serve para definir se a fonte sera um arquivo de video ou a webcam
print("--------------Gradiente---------------")
cap = cv2.VideoCapture(source)
descritor_global = None
counter = 0
# if out is not... | [
"jordy.antunes@hotmail.com"
] | jordy.antunes@hotmail.com |
50b4f7e014d52b8e64df0af1906cb98206770121 | 98555b88ed29aae3a8042ba6436ee293f60cbbfd | /store/models.py | 9a8214d20a110f7740a7a24af3fa976e8bac21c1 | [] | no_license | Shohruxshoh/ecom | d7585bca684d17c1ef6872fd8c5cf24b34bbb6c9 | 5c90773d8cda0cca9dca0a19043dabbe928acd05 | refs/heads/main | 2023-03-08T23:02:53.449481 | 2021-03-19T12:31:21 | 2021-03-19T12:31:21 | 348,427,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Customer(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, null=True, blank=True)
name = models.CharField(max_length=200, null=True)
email = models.CharField(max_length=200, nu... | [
"shohhhhhhhhhhhhhhhhhhhh@gmail.com"
] | shohhhhhhhhhhhhhhhhhhhh@gmail.com |
7bf5ba484bf135d72ac22cf1e202ed7a7095f9ff | 5bb616be2a0d22e5f2aa79a8587c5d8dc101e872 | /Product/借你花.py | a51ce0a29ea32ad283dd7156b2dd5a168beed344 | [] | no_license | Chihihiro/Backstage | 81f0ca452dc9f05723f4557e842b4f0a2581e999 | 5b4dec28ce2ba15591f85ca4af44b24ceae58989 | refs/heads/master | 2020-04-14T18:57:12.849203 | 2019-01-24T01:15:03 | 2019-01-24T01:15:03 | 164,039,198 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,850 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/1/9 0009 15:12
# @Author : Chihiro
# @Site :
# @File : 借你花.py
# @Software: PyCharm
from selenium import webdriver
from requests import Session
from BaseSpider import BaseSpider
from DealWithCookie import cookie_to_dict
import json
from time import sl... | [
"chihiro123"
] | chihiro123 |
dc227d9fa7bde815f238102c1e3140b10c28c18b | 3294208e214250df01df5b039d2bb4ba359e110a | /get_tweets.py | a611cab09f7e0f8eab532997ecd8d568f058a5ee | [] | no_license | TonyNguyen101/suicidecrowdsourcing | 064c0386bc9e53a41d331dd0a75f37c3a469ef0f | 27925d06c8b889a08f611da4ba1e8b88eb6bbf2b | refs/heads/master | 2021-01-18T11:25:08.828504 | 2016-04-20T02:40:28 | 2016-04-20T02:40:28 | 56,111,608 | 0 | 0 | null | 2016-04-13T01:41:10 | 2016-04-13T01:41:10 | null | UTF-8 | Python | false | false | 1,212 | py | from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import json
# consumer_key = 'NOT'
# consumer_secret = 'GETTING'
# access_token_key = 'MY'
# access_token_secret = 'KEYS'
consumer_key = 'viFcnMBuuVEEACYk8uHVJFxGl'
consumer_secret = 'EoDGnIUQ316VbzaMt3nfcvwj4qnhpz8R... | [
"hunsickermia@gmail.com"
] | hunsickermia@gmail.com |
b53a9728a1f736baf5966da80314d7b3ee00d637 | cc3cceb34d7b03203f7c0c2ef901ae0b576201ea | /app/content.py | d4db2b9a8e60929bb40f914357338085bc298d16 | [
"BSD-2-Clause"
] | permissive | mikelmaron/kibera-school-project | be01a40d71b9a67e9decd7fc6f2116bd521ef0b7 | 825fb863e7198c2ff166dfa678b8abe89ee3a79f | refs/heads/master | 2020-12-26T04:55:22.071111 | 2014-05-15T21:12:18 | 2014-05-15T21:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | # -*- coding: utf-8 -*-
"""
app.content
~~~~~~~~~~~
Load raw content for generating pages
Content comes from folders in the `content` folder. It is expected that
these subfolders each represent a sort of type of content, with all data
contained being of the same type.
One function should ... | [
"uniphil@gmail.com"
] | uniphil@gmail.com |
d2b13de53846f6b3f71b27072bf88509b5e08225 | 15f14040b01fe7646f128461f4d6afa548ea0a21 | /testprograms/unused_scripts/births_analysis.py | 1fd804c55c0a27a20cc338b96f6cd78390485819 | [] | no_license | emjun/infuser | 32a8ca153062ab4e489fd70469025a236ea6338c | a0691dd6f49db612237561bb005619ad403784ea | refs/heads/master | 2020-05-18T04:07:42.471383 | 2019-06-14T02:31:02 | 2019-06-14T02:31:02 | 184,164,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from scipy.stats import ttest_1samp, normaltest, mannwhitneyu, norm
"""
https://github.com/kontrybutor/tsbd_sem2/blob/7e97b92900d092c2eb67a17167ae9f9df4ae0d0d/JPwAD/ex1/ex2.py
WORKS FINE WITH INFUSER
"""
"WRANGLING"
births_f... | [
"blassl@student.etzh.ch"
] | blassl@student.etzh.ch |
bb77c5c2e36127f0a6780f264fae6d40e4ed2d37 | a436a3c22deff44179b4d66d1684a588f5bffd97 | /run_experiments.py | 8e339984e28b2becc08d32f6379da54b794a3eec | [
"Apache-2.0"
] | permissive | realityengines/post_hoc_debiasing | 1247d76d164a68aff84163ffd376e4d7e15d5dce | e0efc81e6e317b9c203e79106c3529e159bc3fa8 | refs/heads/master | 2022-11-30T03:44:33.064428 | 2020-07-14T01:22:09 | 2020-07-14T01:22:09 | 272,260,983 | 17 | 4 | Apache-2.0 | 2020-07-14T01:22:10 | 2020-06-14T18:31:59 | Jupyter Notebook | UTF-8 | Python | false | false | 507 | py | import argparse
import os
from pathlib import Path
def main(args):
configs = sorted(Path(args.config_directory).glob('*'))
for config in configs:
command = f"python posthoc.py {config}"
print(command)
os.system(command)
if __name__ == "__main__":
""" This is executed when run fro... | [
"yash@realityengines.ai"
] | yash@realityengines.ai |
0a6a56b46d6de2843b504bcbd9a582237369aedf | 39a82800092110f4bde0ee702670691ae7c23943 | /models/usercentermodel.py | 2d96f18a792310df764f031493c13406b0acca9c | [] | no_license | stallman-cui/log_analytics | eea50bad10c07626d91558964b8cdd9b2e5108ef | f4446bfd8bf995f8f4de2750489346f598cefa8c | refs/heads/master | 2020-12-30T14:56:31.246330 | 2015-05-26T04:50:19 | 2015-05-26T04:50:19 | 28,953,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from common.mongo import MongoModel
from configs.config import END_TOPO_SUCCESS
class UserCenterModel(MongoModel):
def get_db(self):
return 'usercenter'
def get_collection(self):
return 'user'
def get_keys(self):
return 'area', 'plat', 'uid'
def get_conf(self):
conf ... | [
"liaoya.c@gmail.com"
] | liaoya.c@gmail.com |
b26239e537f104c7472d1423aca55a7531c93338 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02381/s775970938.py | dc9fc2d44e446e67afb1c02cdf42c0b7747e41fb | [] | 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 | 339 | py | #
# 10c
#
import math
def main():
while True:
n = int(input())
if n == 0:
break
s = list(map(int, input().split()))
m = sum(s) / n
aan = 0
for i in range(n):
aan += (s[i] - m)**2
print(f"{math.sqrt(aan/n):.4f}")
if __name__ == '__ma... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5994d6fc52dba85ed50e7e547aae183308ef917f | 7694412cbb088f299302648723aabe0522d8cc9a | /cart/cart.py | 2be988412a2674b23b9533d9dafa86ca62d4dd26 | [] | no_license | brave-jang/shopping_mall | 2a60a7e553cd812f7cd87bb4936631394aacc155 | 41705e9a1c313179364ceeea02b99652eae780cb | refs/heads/master | 2023-04-06T00:40:46.306204 | 2021-05-03T16:10:50 | 2021-05-03T16:10:50 | 362,702,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | from coupon.models import Coupon
from decimal import Decimal
from django.conf import settings
from shop.models import Product
class Cart(object):
def __init__(self, request):
self.session = request.session
cart = self.session.get(settings.CART_ID)
if not cart:
cart = self.sessi... | [
"wkdrmfmt@gmail.com"
] | wkdrmfmt@gmail.com |
edc180f84d2369b1f99536ab30a78308d7c9deac | b657b5bb616c1286795d7c1e6c59df3c31fac43e | /Personality test.py | f5b39441a4e475620d840095b8b816e860525b25 | [] | no_license | Just-in-cider-711/Juco | c54461580958225fe1659fdef73ef561cd26a5a2 | 4a84c7baff9bc1444ebeea4580a0c8a5f9052eb9 | refs/heads/master | 2020-03-21T07:12:48.285495 | 2018-06-22T07:05:19 | 2018-06-22T07:05:19 | 138,267,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,396 | py | import tkinter as tk
import matplotlib
import matplotlib.pyplot as plt
import Vars
from Vars import r, g, b, y, number
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
matplotlib.use('TkAgg')
# from matplotlib.figure import Figure
background_color = "#4ed0fc"
button_color = "#abd897"
# Personality Col... | [
"noreply@github.com"
] | noreply@github.com |
1ea987a0784b10986ba617874e2578c39decc4fe | f65ddf63eab3b983b98bd4ec09d9102e70c53216 | /sparkplug/__init__.py | cd4ee99d51da4e369393165189e180839341f3ae | [
"Apache-2.0"
] | permissive | Quva/sparkplug | 0c8bdac5a64e2180c06fd1f96e4488bf7b9627da | c6ec310ae1f53067fece6e690d7b10c1eb69516e | refs/heads/master | 2021-07-16T15:09:22.940206 | 2020-08-14T14:53:44 | 2020-08-14T14:53:44 | 45,177,401 | 0 | 0 | Apache-2.0 | 2020-08-14T14:53:45 | 2015-10-29T10:53:06 | Python | UTF-8 | Python | false | false | 35 | py |
from .spark_plug import SparkPlug
| [
"timo.erkkila@gmail.com"
] | timo.erkkila@gmail.com |
154fd0e012a5aceb740dd16e4990a57f2ffd39a6 | 3222db8d68d596860d21ca63226b40a1177d7445 | /Exercicios/ex099.py | 482180eb3bf961ccfc91e78bc9e95c4bf774114e | [] | no_license | AyrtonDev/Curso-de-Python | e6c4f00c6b5e5320d382ff8ff45afb13baff1fb4 | d2ae259d21fa81351122053f7f96b07ac0d70bbd | refs/heads/master | 2023-01-31T01:42:07.375896 | 2020-12-09T20:41:38 | 2020-12-09T20:41:38 | 319,462,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | from time import sleep
def maior(lst):
maior = 0
print('-=' * 30)
print('Analisando os valores passados...')
if len(lst) == 0:
print('Foram informados 0 valores ao todo.')
print('O maior valor informado foi 0.')
else:
for c in lst:
print(f'{c}', end=' ')
... | [
"ayrtong.guerra@gmail.com"
] | ayrtong.guerra@gmail.com |
e1a1eeb1c2e0921e59b2879d10eb41a8acfbd51f | 1186de8fb42e0bdf9f61708311c07a428aabadee | /python-scripts/xml2rdf.py | 47f4a4ac2ca8b9f2e31fac59b10627e827c1302a | [
"Apache-2.0"
] | permissive | zentim/knowledge-graph | adda2c464e405e6f895f13cb080595dfb1b743bf | b687bfefa233f43319b5906b81d81a1aa841893f | refs/heads/master | 2023-02-16T12:18:51.336457 | 2020-06-14T14:52:06 | 2020-06-14T14:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,322 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#####################################################################################################
# Data ingestion script for the TBFY Knowledge Graph (https://theybuyforyou.eu/tbfy-knowledge-graph/)
#
# This file contains a script that runs the RML Mapper on XML files an... | [
"brian.elvesater@sintef.no"
] | brian.elvesater@sintef.no |
3dd964a79932cf2b519348ade89d3078ffdb6ad5 | 77ad7f88e5e732adb3f5a8ca28f52858395dba36 | /search.py | 1773f465e013687d58fab40487d55b5ecf2de1b1 | [] | no_license | yianjiajia/home_develop | 0ba841be4dab97ea4f48e405166197479884b914 | 794e1385aec3458b35dc6577b48675addba9fab1 | refs/heads/master | 2016-09-05T16:49:05.992504 | 2014-10-30T07:54:41 | 2014-10-30T07:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python
#coding=utf-8
def search():
'''To search a file whose name have a key word what you want in local dirctory and sub dirctory'''
| [
"yianjiajia@126.com"
] | yianjiajia@126.com |
3cf752b2e0002653fa61d493e6f7133a4e84087c | 3c64f296c9e86830a1146d63ab01fa545fe64e86 | /script/Sumgenev1.py | 5242d150e67fa539493363e04e3e6d2a8f2a6a0b | [] | no_license | bioCKO/PlantPseudo | 7a00f9ebd6b1752ce40d94a2210eebff0ba57bd3 | 5d8e688157902804ec9b75d9b42b3cb7857a86fe | refs/heads/master | 2021-05-24T15:29:31.418926 | 2019-03-25T05:34:59 | 2019-03-25T05:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | #!/usr/bin/env python
import sys,re
IN=open(sys.argv[1],'r')
OUT=open(sys.argv[2],'w')
OUT1=open("Gene.Classifcation.xls",'w')
#type distance lncRChr lncRstart lncRend Chr start end
#genedist 193 Chr1 780106 780409 Chr1 780602 781285
#genedist 815 Chr1 2816 ... | [
"jbxie@bjfu.edu.cn"
] | jbxie@bjfu.edu.cn |
bc3b75fa6e22f063f4237c8ad02fba63e6a5f5b9 | 7cf9af7035aac9fab7ccb50a328c527500245ad1 | /linkedlist/returnk2last.py | 029c850092a63741e38176e905c6e0a4ff1a84a2 | [] | no_license | karthikramesh36/Algorithms | 05ceab3b18d350ac5642a08f66439dba3602c3a1 | b47535ed37c41371792f5a7f6404239eedfa84ef | refs/heads/master | 2021-09-02T10:30:51.394407 | 2018-01-01T22:16:30 | 2018-01-01T22:16:30 | 115,951,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from linkedlistnode import linkedlist
def return_kth_to_last(ll,k):
p1= ll.head
p2= ll.head
#we dont know the length of ll
for i in range(k):
if p1 is None:
return None
p1=p1.next
while p1.next != None:
p1=p1.next
p2=p2.next
return p2
| [
"karthikramesh36@gmail.com"
] | karthikramesh36@gmail.com |
5a92f6571be961a4c65a3575a55a2e80b20e4677 | c614b694607dc5c3271c29aff2f9f8b8e200e68e | /doc/source/_ext/CppTransDslLexer.py | 37fa0a0ec179973e543ee21f605faa8ea31c3066 | [
"MIT"
] | permissive | gettogetto/trans-dsl-2 | f3bd6e91ddf5578bd9af0084c77537deefa1453a | 49f235166cea5f511c2c41c56abe554e60c60e86 | refs/heads/master | 2023-06-28T19:23:47.773849 | 2021-07-27T08:07:59 | 2021-07-27T08:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py |
from pygments.lexers.c_cpp import CppLexer
from pygments.token import Name, Keyword
from pygments.lexers import get_lexer_by_name # refer LEXERS
from pygments.lexers._mapping import LEXERS
class CppTransDslLexer(CppLexer):
EXTRA_KEYWORDS = set(('__sync', '__asyn', '__sequential', '__concurrent', '__time_guard',
... | [
"darwin_yuan@hotmail.com"
] | darwin_yuan@hotmail.com |
d365c4742c13b5044cdda04b7787d84d8cf15a47 | c161788ed19589700655d476f277d147039e49e3 | /setup.py | 9ab973cc8d993ff863534c3dcaebbd4a59843914 | [
"MIT"
] | permissive | kateshostak/expander-lib | cbd3e9e50a674cac4fc52a8c2ef52f28355c4d3b | c1c7c0bec977fdc6492e4e08a1d1757783462c76 | refs/heads/master | 2021-07-06T08:32:53.675122 | 2017-09-27T12:44:09 | 2017-09-27T12:44:09 | 105,016,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from setuptools import setup
setup(
name='expandergraphs',
version='1.2',
description='Implementation of several expander construction algorithms',
url='http://github.com/',
author='Kate Shostak',
author_email='katherine.shostak@gmail.com',
license='MIT',
packages=[
'expanders',... | [
"katherine.shostak@gmail.com"
] | katherine.shostak@gmail.com |
f992459a0c1f31d2551f162596e9cf570b4332b5 | 4c2c1775b6b319ae07155f46e70a6726ab0980c2 | /algo/algo_code/naga-algo/naga_interactive/cvr_space_ecom/calibrate/script/PIDControl_plan.py | 09c52e553f3e94d142a8e90b20226180e9d266a5 | [] | no_license | kiminh/util | 8e4b204849a57941120e37c9330772f03c8892d0 | 763a71031d9c0ef207b87dc03ebc55208a2dd5ad | refs/heads/master | 2022-06-09T06:09:13.221754 | 2020-04-27T04:23:00 | 2020-04-27T04:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | #coding:utf-8
import json
import sys
import base64
import time
import os
import math
if len(sys.argv) < 3:
print("Usage: python join_transform.py plan_clc_trans version")
exit(1)
plan_clc_trans = {}
for raw in open(sys.argv[1]):
line_json = json.loads(raw.strip("\n\r "))
planid = line_json['planid']
... | [
"ling@lingdeMacBook-Air.local"
] | ling@lingdeMacBook-Air.local |
60bda65835915d9981c013605885efb4ad09febb | 3c78f38c97d9ea0435f61981783af650f78bb155 | /Tests/Acteurs.py | e64e6501234ecfe5b97c1c4ba1774c4a8a11b53b | [] | no_license | sclaoud/RAC | abdabe8955ae2d2aea2198bd54be0cde940c589d | c078e0ba16a9399aaad96983fdd680cc7a89a8fc | refs/heads/master | 2023-06-04T08:28:32.250182 | 2021-06-15T20:13:06 | 2021-06-15T20:13:06 | 331,352,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,658 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Acteurs.ui'
#
# Created by: PyQt5 UI code generator 5.15.3
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGu... | [
"sclaoudFinal7@hotmail.com"
] | sclaoudFinal7@hotmail.com |
203e28811f3eb46a57a36d2f9c680ed5ebe8639c | 894551c32f23d96a3bb085b8bf9ff98a2c513349 | /data_structure/linked_list_singly.py | 56a8fb1bc5f82adf121e6b4be1f24dc0a5e14ded | [] | no_license | amirkhan1092/Oops_python | 8c1c4cf419beb94916f7a519d0e9e85b35484aaf | 5f285d74a03a214f6d0b599116330245d0af9d41 | refs/heads/master | 2020-04-25T12:13:06.438939 | 2019-07-19T05:26:16 | 2019-07-19T05:26:16 | 172,770,746 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | class Node:
def __init__(self, data=None, next_node=None):
self.data = data
self.next_node = next_node
def get_data(self):
return self.data
def get_next(self):
return self.next_node
def set_next(self, new_next):
self.next_node = new_next
def __str__(self):... | [
"amirkhan1092@gmail.com"
] | amirkhan1092@gmail.com |
cca0a0ab434997892076d73b12f126520f45cf71 | d331587557ba867592786e258270f3f7055e1890 | /Unit 10 Advanced Topics in Python/01 Advanced Topics in Python/List Comprehentions/5-List Comprehension Syntax.py | 38c7fd6e55412281e6dd8b7ffcb796ba81ccf1c4 | [] | no_license | ranjit-manutd/Python3_CodeAcademy | 5813f4b61ee8208e1325850bf2367c501c47d1e7 | c183af42f9158daa7c0249e2ff7506d0997f7c55 | refs/heads/master | 2020-04-24T03:24:38.923752 | 2019-02-20T12:37:15 | 2019-02-20T12:37:15 | 171,669,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | doubles_by_3 = [x*2 for x in range(1,6) if (x*2) % 3 == 0]
# Complete the following line. Use the line above for help.
even_squares = [x**2 for x in range(2,11) if x%2 == 0]
print(even_squares)
| [
"john691169116911@gmail.com"
] | john691169116911@gmail.com |
e2f7224431878f3297dd2e2c98252bbe54c55e43 | c5eecd89a263efae5d2d0bda04bb25c2d3cfda72 | /HelloWorld/blog/urls.py | 8fd209f3b0fc9a8738f377c356aaa555c3caac56 | [] | no_license | otischan/Web-Project | 6b04a4b452f0800ee083617531cf75df10cbfbc2 | 2144b995b7298fe607b835481073ed3f94d58771 | refs/heads/master | 2022-12-23T04:42:16.746518 | 2022-12-17T14:50:21 | 2022-12-17T15:05:15 | 150,969,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.conf.urls import url
from blog.views import blog, response_date_time, response_user_info_submit
urlpatterns = {
url(r'^date_time/', response_date_time),
url(r'^user_info_submit/', response_user_info_submit)
}
| [
"otischan@163.com"
] | otischan@163.com |
4613553d208cd92a04ba92d9f5c5430d97e4529e | 6b001ecb3ee4d69cbec92a14edb4b3d7a6158581 | /summarization/bertabs/Utility/clean_directories.py | 60a0914dc31421413a86c221b90db78f84123c7a | [
"Apache-2.0"
] | permissive | sebbersk/Surmize | 287f996e48b4e0304eb89261f48562ac88507444 | 4ec3fc1a86b7a43935cd454745187b5612ada467 | refs/heads/master | 2022-12-31T18:02:07.046351 | 2020-10-20T12:13:13 | 2020-10-20T12:13:13 | 264,194,104 | 0 | 0 | Apache-2.0 | 2020-10-20T12:13:14 | 2020-05-15T12:58:40 | null | UTF-8 | Python | false | false | 173 | py | import glob
import os
def clean_directories(Directories):
for dir in Directories:
files = glob.glob(dir + "/*")
for f in files:
os.remove(f)
| [
"alexander.bergkvist@hotmail.com"
] | alexander.bergkvist@hotmail.com |
32a77e736720ddc838833b47fd0cbb182dbb2704 | 0a154beeec7d8f2f1b881698cb482011b051c6fe | /baekjoon/marathon2.py | 4f89159ca7a232f698baad3de9ae469c79191821 | [] | no_license | kimsungho97/Algorithms | 2326270cc4e6e3c1d704b5d00ab327f8ce56f197 | bdbd1e70949830024e2aaff8d8f78fdc720cb438 | refs/heads/main | 2023-08-18T16:58:11.121514 | 2021-10-23T10:55:21 | 2021-10-23T10:55:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | #https://www.acmicpc.net/problem/10653
import math
import itertools
line=input()
n=int(line.split(" ")[0])
k=int(line.split(" ")[1])
points=[]
def gettotal(tmp):
arr=list(tmp)
k=len(arr)
sum=0
for i in range(0,k-1):
x1=arr[i][0]
y1=arr[i][1]
x2=arr[i+1][0]
y2=arr[i+1][... | [
"kimsungho97@gmail.com"
] | kimsungho97@gmail.com |
4d610651d70a65c82c5240138392e346d9c43333 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/683.py | 2a9f05d2e65f8fdf217ad4b89face85a2697eb29 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import collections
def f7(seq):
seen = set()
seen_add = seen.add
return [ x for x in seq if x not in seen and not seen_add(x)]
f = [i for i in open('A-large.in')]
f[-1] +='\n'
data = [i[:-1] for i in f]
cases = []
for i in range(int(data[0])):
people = data[i+1].split(' ')
print(people)
s... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
62d3af97ac5caaed3a5faf3a13843e5b5bd328cb | 7278b31ebd6362bebf6986c2f3eca89d87201eb2 | /exp/sandbox/predictors/test/TreeCriterionPyTest.py | 1024a52d21957dae7be17e6fb3ba91771dd5a990 | [] | no_license | malcolmreynolds/APGL | c19827b1b834d3491d98a751c91838177aedc29e | 1703510cbb51ec6df0efe1de850cd48ef7004b00 | refs/heads/master | 2020-12-25T05:52:45.826947 | 2013-03-26T12:30:00 | 2013-03-26T12:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,375 | py | import numpy
import unittest
import numpy.testing as nptst
from exp.sandbox.predictors.TreeCriterionPy import findBestSplit2, findBestSplitRand, findBestSplitRisk
from apgl.data.ExamplesGenerator import ExamplesGenerator
class TreeCriterionPyTest(unittest.TestCase):
def setUp(self):
numpy.random.seed(21... | [
"charanpal@gmail.com"
] | charanpal@gmail.com |
97e1e4e1847964f9c4778c78bead7e74358da060 | ae0182b61e0e875a2b1bddd58af02f86a580263b | /pwnpattern.py | 3ea02f634c151d6403b9222b79e33ad6fe853130 | [] | no_license | junk13/pwnpattern | cd92507053417339a133385ab052e0468208ad72 | 889dc45c1343657c5e2611682c21bfbcab691684 | refs/heads/master | 2020-04-07T19:29:14.116155 | 2016-05-15T03:21:17 | 2016-05-15T03:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | """
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | [
"davidtomaschik@google.com"
] | davidtomaschik@google.com |
3346388ac3eaedb960a765084108296bd9e3ab73 | 8407a0d96a7122ef5c1bed2fae335b5c089ed6bf | /ggpy/cruft/autocode/GdlRenderer_Test.py | 4599b3da05b72ace5bdf88dbcb3333a7cc63b0be | [
"MIT"
] | permissive | hobson/ggpy | d90cdb4f545bab84e09a14cbf7a53c05ec573278 | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | refs/heads/master | 2021-01-22T04:24:18.890860 | 2014-08-17T21:59:24 | 2014-08-17T21:59:24 | 18,973,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | #!/usr/bin/env python
""" generated source for module GdlRenderer_Test """
# package: org.ggp.base.util.gdl.scrambler
import junit.framework.TestCase
import org.ggp.base.util.game.Game
import org.ggp.base.util.game.GameRepository
import org.ggp.base.util.gdl.grammar.Gdl
#
# * Unit tests for the GdlRenderer class,... | [
"hobsonlane@gmail.com"
] | hobsonlane@gmail.com |
57b951f3bc1c9049ca75ce3ea838e7c3c7f7b079 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/761.py | a937fdbda8199778905f4e110d9ebe0db0ec8267 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 246 | py | import pdb
def word_count(word):
word_list = word.split()
word_dict = {}
return_string = ""
for words in word_list:
word_count = word_list.count(words)
if not word_dict.has_key(words):
word_dict[words] = (word_count)
return word_dict
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
f2d83b02f04d91fd4dbf2257e53a179bd87bca8b | 1c64b8fef53b0ab8327fb8feae866c40c1e97fad | /examples/unit_tests/mock_examples/mock_urandom_2.py | 5e8380d1e75ecc20bdfc548377d40bf7c536931a | [] | no_license | idobleicher/pythonexamples | c9df5ee608dce248d18c254f379240a5a96f5801 | 3c2694f45f7937161a45d47cc20859b5944d1c36 | refs/heads/master | 2023-07-05T22:04:52.228188 | 2019-11-04T12:28:39 | 2019-11-04T12:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | import unittest
from os import urandom
from unittest import mock
#if we imported the urandom function using a from statement (from os import urandom) is a special case where you can use __main__ to mock the function:
def simple_urandom(length):
return 'f' * length
class TestRandom(unittest.TestCase):
@mock... | [
"danny.gurman@gmail.com"
] | danny.gurman@gmail.com |
f268b7597b4c355ea7aba0157cd56d33ace9614a | d3f3fcce645f827fd0247e35d30ed5c2516a9568 | /Assignments/Asg5/models/tables.py | 6df4e348707620b3325227f4fe5f0adf628a5196 | [
"LicenseRef-scancode-public-domain"
] | permissive | Jvrionis/cmps183 | 757b11b6bcb033d07974321ac2ba825b74c5f9b5 | c18e985785808f7dc2f6a57b5c4156d0bf6d6d15 | refs/heads/master | 2020-03-18T07:32:42.368953 | 2018-06-25T20:48:26 | 2018-06-25T20:48:26 | 134,459,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # Define your tables below (or better in another model file) for example
#
# >>> db.define_table('mytable', Field('myfield', 'string'))
#
# Fields can be 'string','text','password','integer','double','boolean'
# 'date','time','datetime','blob','upload', 'reference TABLENAME'
# There is an implicit 'id integer aut... | [
"jvrionis18@gmail.com"
] | jvrionis18@gmail.com |
4bdcd3402005355f4eea8ea9a64df517fda4a710 | 5d5f931d4e097b1a8296596b38ad5e6e816033f4 | /registration.py | 46611cf95587734cbbc533e71b2768cdeaf13d09 | [] | no_license | aansong/Code2040-project | 7f6bd159f0e1fad15c4a30821509767a9716207e | f37465244c6df6de5374fab7675c1307b05f3f10 | refs/heads/master | 2020-07-28T21:10:12.744194 | 2016-09-08T14:14:10 | 2016-09-08T14:14:10 | 67,649,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py |
import requests
import json
api_key = '1a4b5af2e17859894a38860bf2d69de2'
git_url = 'https://github.com/aansong/Code2040-project'
payload = {'token':api_key, 'github':git_url}
endpoint = "http://challenge.code2040.org/api/register"
r = requests.post(endpoint, data =payload)
print (r.text) | [
"noreply@github.com"
] | noreply@github.com |
c9cae9736e1ef7175335ee4d93a500cb343a2b1e | c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8 | /NumPy Nit/NumPy_Reshape_Array.py | 8808f904a6489766a915915dac262c62b762853f | [] | no_license | Silentsoul04/FTSP_2020 | db0dae6cd9c371f3daa9219f86520dfa66348236 | 7e603af918da2bcfe4949a4cf5a33107c837894f | refs/heads/master | 2022-12-21T20:44:32.031640 | 2020-09-20T12:29:58 | 2020-09-20T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 21 13:45:30 2020
@author: Rajesh
"""
NumPy reshape :-
-------------
import numpy as np
my_list = [10,20,30,40,50,60]
arr = np.array(my_list)
print('The Array :', arr) # [10 20 30 40 50 60]
print('The size :', arr.size) # 6
print('The Dimensional :', arr.ndim) # 1
print... | [
"sharma90126@gmail.com"
] | sharma90126@gmail.com |
c3e3c720dc4958996d88101cf0e2ea5dcfcfb15f | 25f7db4a275bbfd71166b0d565b0c9d410e52bbd | /Quat/settings.py | 44e7538e609f8c35903b3d62b00bd5c9b6274ff5 | [] | no_license | mariovenegas/Experiencia3Backend_TapiaVenegas002D | 30bb6623f1624de6cc0366d1bc84ed02608c09f5 | 69eadd53e1dbd6a8f155fb48b48249633485b277 | refs/heads/main | 2023-06-02T08:06:52.117241 | 2021-06-20T23:05:53 | 2021-06-20T23:05:53 | 378,492,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | """
Django settings for Quat project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... | [
"mari.venegass@duocuc.cl"
] | mari.venegass@duocuc.cl |
af2943e9cfb20a4ec17909d740273fc71bd1fab4 | e02016a2fdca9073e917d241f2ccc6bdee10e855 | /tr1.py | 3013821faf7fd7761a1250d6452d08a2d944f971 | [] | no_license | Erynvorn/Training-Python-2019 | d9b47b00353dd8ea326d03486bb9196570b0d8ee | b00c52f9c6a83f143099da0d4e471377e49cfe03 | refs/heads/master | 2023-04-16T17:40:35.890063 | 2023-04-10T18:56:42 | 2023-04-10T18:56:42 | 167,865,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | print('Hello world')
print('What is your name?')
myName = input()
print(myName)
print('It is good to meet you, '+ myName)
print('The length of your name is: ')
print(len(myName))
print('What is your age?')
myAge = input()
print('You will be ' +str(int(myAge) +1) + ' in a year.')
print('Please enter password :')
passwo... | [
"daniel.seite@gmail.com"
] | daniel.seite@gmail.com |
2f4a3ce85d1d9838e603945a68f020568ee60069 | d60948666831a29d1f16efb87f2e9d9fd5c7f741 | /RomanNumeralConvertor.py | b9c5c1f5d2647f3391c9b32ec1a1b0be86af7dd2 | [] | no_license | ParthShinde2004/PythonChallenges | 874f7d54d15dfa046166915e47710b10376915ac | 6db731d7ecac003bb245f71aff700304ae0d5227 | refs/heads/master | 2023-07-17T05:29:04.041947 | 2021-09-10T08:56:37 | 2021-09-10T08:56:37 | 293,010,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | """This is a Roman Numeral and Integer converter that can convert number from roman to denary and back from 0-3999"""
RomanValues = {
"I": 1,
"V": 5,
"X": 10,
"L": 50,
"C": 100,
"D": 500,
"M": 1000,
}
def roman_to_int(str):
total = 0
i = 0
while (i < len(str)):
s1 = RomanValues[str[... | [
"noreply@github.com"
] | noreply@github.com |
02a68e29687ca3797d6fee75a4c95831ee725efb | 4c0f561bb14d9cbfd0d1abc0102e483fbe68c76c | /zaj1/zaj1/matrix_operations.py | 5c1cd37b43c4798b0597c6d555a2c7b00742bbdd | [] | no_license | kpodlaski/ProgramowanieZaawansowane2019 | 3330d125e01d07c97c4f29de022359136d2762c0 | dffcf31232456c824db7a13e8a3de333af338b6c | refs/heads/master | 2020-08-05T16:32:39.429269 | 2020-01-16T12:28:36 | 2020-01-16T12:28:36 | 212,615,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def mat_mul(A,B):
result = []
for i in range(0, len(A)):
result.append([])
for k in range(0,len(B[0])):
v = 0
for j in range(0, min(len(A[i]), len(B))):
v+=A[i][j]*B[j][k]
result[i].append(v)
return result
| [
"podlaski@uni.lodz.pl"
] | podlaski@uni.lodz.pl |
ede882b0357518467e8fafd4d515bc3709aeefae | 8957f0b42ba945399a2eeb71f796c11c9eb35b06 | /stripped/unittest/test/test_case.py | 93c27dfa34122e6a665c21ec9259208123d54483 | [] | no_license | notro/tmp_CircuitPython_stdlib | 4de177cbb45b2209f07171c27f844c7d377dffc9 | 641727294039a9441c35ba1a1d22de403664b710 | refs/heads/master | 2020-03-27T18:26:33.544047 | 2019-02-15T20:49:34 | 2019-02-15T20:49:34 | 146,922,496 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 40,500 | py | import contextlib
import difflib
import re
import sys
from test import support
import unittest
from unittest.test.support import (
TestEquality, TestHashing, LoggingResult, LegacyLoggingResult,
ResultWithNoStartTestRunStopTestRun
)
class Test(object):
"Keep these TestCase classes out of the main name... | [
"noralf@tronnes.org"
] | noralf@tronnes.org |
7d1bb4cb885599e99d52f02888cc43d65ec1b5a8 | 6e47be4e22ab76a8ddd7e18c89f5dc4f18539744 | /venv/openshift/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py | 157a9fb9f02a1815a9cb0255fd75f425a7aca9a6 | [] | no_license | georgi-mobi/redhat_ocp4.5_training | 21236bb19d04a469c95a8f135188d3d1ae473764 | 2ccaa90e40dbbf8a18f668a5a7b0d5bfaa1db225 | refs/heads/main | 2023-03-30T10:47:08.687074 | 2021-04-01T05:25:49 | 2021-04-01T05:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.11
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import r... | [
"student@workstation.lab.example.com"
] | student@workstation.lab.example.com |
25185a441791aa03ebc012b4240d85afbab4ee6f | 08ed86902b445bc5dbd4af72a9ace6f9af8efc55 | /d1d2.py | 5dcb2d16a4d2d409a5653e92a82010d7d7e48d11 | [] | no_license | lokeshkumar9600/python_train | 93e0a2713a1b939a07b3714b904681a274ce8364 | a5fddb167792d80f5e69b63e162650d287f8226a | refs/heads/master | 2023-02-04T15:38:30.626995 | 2020-12-27T17:25:28 | 2020-12-27T17:25:28 | 306,393,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | a = int(input())
b = int(input())
c = int(input())
n = int(input())
arr = [a,b,c]
d1 = arr[1]-arr[0]
d2 = arr[2]-arr[1]
for x in range(4,n+1):
if x%2 == 0 :
arr.append(arr[-1]+d1)
else:
arr.append(arr[-1]+d2)
print(arr[-1])
| [
"lokesh960077152@gmail.com"
] | lokesh960077152@gmail.com |
303395ed9eb61d60563d0f1d1fe5871fa1f8a13e | f70dd0cc11d7760852eaedcb037f91cf255838d3 | /datasets/Part 3 - Classification/Section 16 - Support Vector Machine (SVM)/svm_sbn.py | 5613eb69988d5eceb85c730113ca1e18c165ec06 | [
"MIT"
] | permissive | jsguerrero/machinelearning-az | 47aadb190e55ba2eea5d1617152e8528cbb3dc47 | dde29500db2df576c965d7e228a94d166ea31e5c | refs/heads/master | 2020-12-07T04:53:05.249776 | 2020-06-29T17:33:09 | 2020-06-29T17:33:09 | 275,039,017 | 0 | 0 | null | 2020-06-26T00:02:59 | 2020-06-26T00:02:58 | null | UTF-8 | Python | false | false | 3,982 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 17 09:42:08 2020
@author: jguerrero
"""
# Maquina de soporte vectorial SVM
# Como importar las librerias
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importar el dataset
dataset = pd.read_csv('Social_Network_ads.csv')
X = dataset.iloc[:, 2:4... | [
"sebas.dobleguerrero@gmail.com"
] | sebas.dobleguerrero@gmail.com |
e9e77b70071eb7fae620d97ad7ed41f589c9d9bb | abb535f209a6ecda90b7c12243e37b461c787650 | /engblog/venv/Scripts/django-admin.py | e1440d313b1ce9296caa925042d0f80a415f21d8 | [
"MIT"
] | permissive | eltonrobaina/SITE_EngColab_project | 2a20657a56ce8d42bb94c2231a0230632a87f684 | f83ade1b495e7e7df5cacd3cdc2faeb5a52d4260 | refs/heads/main | 2023-03-09T15:09:10.239549 | 2021-02-20T15:46:24 | 2021-02-20T15:46:24 | 340,639,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!D:\REPOSITORIO\MeusProjetos\SITE_EngColab_project\engblog\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
... | [
"68453073+eltonrobaina@users.noreply.github.com"
] | 68453073+eltonrobaina@users.noreply.github.com |
9b6ed4e3f2406725844e14e5b798d501958159a4 | ef5020bb149898dcc2142c5fdc10bbdb5ced477e | /event_extractor/train/eval.py | 269dfe0e6e099a80d0da26b2c7b86b0953126f94 | [
"MIT"
] | permissive | dhzy0425/event_extract_master | 3fbbbe0f667ef697a6a3e13c4b23428a241b5e97 | 6b8d470d2caa5ec6785eae07bca04e66fb3734b7 | refs/heads/main | 2023-03-19T17:29:49.388643 | 2021-01-15T03:20:24 | 2021-01-15T03:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | import numpy as np
def evaluate(event_model, dev_manager):
event_model.eval()
A, B, C = 1e-10, 1e-10, 1e-10
for batch in dev_manager.iter_batch(shuffle=True):
text, t1, t2, s1, s2, k1, k2, o1, o2 = batch
ps1_out, ps2_out, pn1_out, pn2_out, t_dgout, mask = event_model.trigger_model_forwar... | [
"zychen0207@163.com"
] | zychen0207@163.com |
280e08aa5a71be49a6ff33f0eff15bc84e557215 | 42e4b4c175d343719391fcfd83e88a1a115472bb | /RNN/keras/tokenize_document.py | 9bd78a12526ccf0aad3a0bba4eaf4c36e8391f92 | [] | no_license | chensvm/FED | f78222490fa2d8d0bee64d06c032ea1283314e05 | c5b5576cac19d4179870efc8024b9cea26116068 | refs/heads/master | 2021-09-13T02:38:43.068661 | 2018-04-24T01:08:40 | 2018-04-24T01:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,683 | py | import numpy as np
import sys
import csv
import copy
from collections import Counter
from datetime import date, timedelta,datetime
import os.path
from keras.datasets import imdb
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers.embeddings import Embedding... | [
"martintw.kuo@gmail.com"
] | martintw.kuo@gmail.com |
eadc0f5424bbf0d72a7e881144c5af276bd26079 | b82a4db7d1df6879c9080997d8026edc50505fbb | /readNCFile_and_make_csv.py | 85d7e8068d08d42d9b3c701243c6082f911cbc05 | [] | no_license | hey-min/Python | a96b9c2f0ba3a9d9168ec92bd1e9b4aeaeeedd02 | 5dd55e615c947cc2c34c620a0551c6bdfd3da932 | refs/heads/main | 2023-07-12T05:40:25.352641 | 2021-08-10T01:33:07 | 2021-08-10T01:33:07 | 357,375,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | from netCDF4 import Dataset
import pandas as pd
import numpy as np
import os
file_name = 'nc_name.nc'
fh = Dataset(file_name)
print('================= NC File Group List =================')
print(fh)
for item in fh.groups:
print('==================='+item+'===================')
print(fh[item])
... | [
"noreply@github.com"
] | noreply@github.com |
ba9e2aaeec56566e4c76fb23dedbe343dbe8a2f2 | 4be95feeacf0e76a30db2c147dd2bd924b6be1a9 | /torchfm/model/tpmn_afm.py | acbdc10b5fb38d1b1a00444b6839d3dcc83b6c53 | [
"MIT"
] | permissive | Moon-Seona/pytorch-fm | e8f4eda4830a22316d5002d30471feee871708f2 | f217d79de0317157a50b1b449ce98d5bf149d3f1 | refs/heads/master | 2022-12-18T10:03:01.744374 | 2020-09-23T09:35:49 | 2020-09-23T09:35:49 | 277,729,115 | 0 | 0 | null | 2020-07-07T05:52:08 | 2020-07-07T05:52:08 | null | UTF-8 | Python | false | false | 1,626 | py | import torch
import numpy as np
from torchfm.layer import FeaturesEmbedding, FeaturesLinear, AttentionalFactorizationMachine
class AttentionalFactorizationMachineModel(torch.nn.Module):
"""
A pytorch implementation of Attentional Factorization Machine.
Reference:
J Xiao, et al. Attentional Factor... | [
"noreply@github.com"
] | noreply@github.com |
8017224993b84def64da1fb1cb8120e19a9fceb9 | 8aa2ff0c33fad8a2c5c903d8b59c5c2146a17451 | /rpm_web/migrations/0035_auto_20210315_1034.py | 0dd9722438b06695559add90b3a1637d56f4a407 | [] | no_license | alex-filgueira/RPM_plus | b8e0ba94a589f4ae9af78739ae261f5da30f0f7a | 7675a9032647f0ef1646e5cc3ca14c4004c690aa | refs/heads/master | 2023-04-18T11:53:33.508915 | 2021-05-03T09:16:30 | 2021-05-03T09:16:30 | 345,411,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # Generated by Django 3.2.dev20200924115306 on 2021-03-15 09:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rpm_web', '0034_alter_mtype_input2_fig1_name'),
]
operations = [
migrations.AlterField(
model_name='mplan2',
... | [
"alexandrefilgueiralago@gmail.com"
] | alexandrefilgueiralago@gmail.com |
8abf9d009530f947beb82d9428695d41f1da05e9 | 24a64a302c41cca18e559b0bc2522090934f76a4 | /3_greedy_algo_and_dp/huffmans_algo.py | 297a0a480862d035eab2679750b88a79624f9c8b | [] | no_license | shubham18121993/algorithms-specilaization | 0b987153ee2081ca28c9f94d028ef3e9ada1fdbb | 9c895d12fcf8ee2a276617ac1a61c031ed64d154 | refs/heads/master | 2023-01-05T06:05:00.203128 | 2020-11-02T19:06:58 | 2020-11-02T19:06:58 | 272,154,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | """
huffman algo with heap data structure
"""
def heapify(lst):
l = len(lst)
l_2 = l//2 - 1
for i in range(l_2, -1, -1):
k = i
while lst[k] > min(lst[k*2+1:k*2+3]):
if min(lst[k*2+1:k*2+3]) == lst[k*2+1]:
lst[k*2+1], lst[k] = lst[k], lst[k*2+1]
k = k*2+1
else:
lst[k*2+2], lst[k] = lst[k], lst[k... | [
"skkshubham99@gmail.com"
] | skkshubham99@gmail.com |
142f8fae0c98b8404d87fd204a29810f922b20a7 | 51a630e660f7013ed6f6cc74d5a0fb6276b67f9f | /18_modules.py | 8217ed08fd3f50d1fb2cca92606bd107ff9eb31c | [] | no_license | sev-94/introPy | 2e1f7a5ce6f1a182ecdb61dfc7ced76534c61762 | bac0f1e71ed657fa4fe08dc1968e2bae0f1e553d | refs/heads/master | 2022-06-17T21:13:22.671777 | 2020-05-16T18:27:44 | 2020-05-16T18:27:44 | 259,551,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | import usefulStuff
print(usefulStuff.roll_dice(10)) | [
"63986067+sev-94@users.noreply.github.com"
] | 63986067+sev-94@users.noreply.github.com |
dba2334ad69ae1751f9d09ef8e122c744ac27af7 | 59082cec57ecae95339728223fde902ba93762e3 | /mainapp/views.py | f9cc491f1888658380a6743891cfe7614bb9c878 | [] | no_license | zaid-kamil/django_website_npgc | edfb2c0db82862f2c83f54e7f16bd86d4f46deb1 | e283a6f0823bf77390d83318aee2507000ccb5d1 | refs/heads/master | 2023-03-30T12:15:14.704500 | 2021-03-30T08:21:21 | 2021-03-30T08:21:21 | 352,924,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.shortcuts import render
# Create your views here.
def index(request):
ctx = {'title':'Home page'} # data for html page
return render(request, 'index.html',context=ctx)
def show_data(request):
ctx = {'title':'Show Data'}
return render(request, 'data.html', context=ctx) | [
"xaidmetamorphos@gmail.com"
] | xaidmetamorphos@gmail.com |
0aae1e46ae4db10f380e7b2262fb78ccca1a59af | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/fbs_0324+379/sdB_FBS_0324+379_coadd.py | b7c16a493a38e073e0279cda675a539ce6841559 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[51.906917,38.136472], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_FBS_0324+379/sdB_FBS_0324+379_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
6a888b76417ad7b700068ba4113851993d378431 | 680faa43b6c763438642e076099694c233122dd9 | /Chap06/for.py | 00fe1140ba97a18c312b7c954a0ee9256dbf75f4 | [] | no_license | OVUSA/PythonCourse | 8c1bd476a8fdc922d822cdfe8d11711fb6a78607 | 1a33a4f6616ee35c5ea70b03d880b6c8088fd3ac | refs/heads/main | 2023-04-26T06:26:05.557316 | 2021-05-19T00:29:12 | 2021-05-19T00:29:12 | 358,404,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!/usr/bin/env python3
# Copyright 2009-2017 BHG http://bw.org/
animals = ('bear', 'bunny', 'dog', 'cat', 'velociraptor')
for pet in animals:
print(pet)
if pet == 'dog':
continue
if pet == 'bunny':
break
print(pet)
else:
print("that is all of the animals")
mylist = ("... | [
"noreply@github.com"
] | noreply@github.com |
7f84692e020f69435e34c845f4ac82c34a901ff1 | 54da7a4705d6fda98107e185e352138236f1a04a | /card/urls.py | bc476ade43438a941f41666e478d973af581fafc | [] | no_license | KasiaWrzalka/eMenu | f7611bf3baf380ae18150f58877eced0eb7b8d93 | 4ee08d99cc9387915b3fd67ab65bd7091d5a724d | refs/heads/master | 2020-03-27T20:23:44.002047 | 2018-09-04T19:39:12 | 2018-09-04T19:39:12 | 147,065,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('get_cards/', views.getCards, name='get_cards'),
path('card_list/', views.CardList, name='card_list'),
path('items/<int:card_id>', views.CardItems, name='card_items'),
] | [
"katarzyna@wrzalka.com"
] | katarzyna@wrzalka.com |
8242cab2e8becb92f7a019b83e90b12d8f90c412 | 5303dd477fc2dd5f0ec90d1a60a6ce62ec2b8862 | /venv/bin/django-admin | 4b77d0ba3310d3959474a049371458dff10385ab | [] | no_license | danielFilin/billboard | 633bfb4083ccc24411fa7ea46e56568d163a6077 | 02fdbdb2357ffcbdd84eeaf5498582f49249e0ce | refs/heads/master | 2022-12-16T12:36:36.503841 | 2019-08-03T18:35:38 | 2019-08-03T18:35:38 | 200,408,859 | 0 | 0 | null | 2022-12-08T01:48:08 | 2019-08-03T18:33:59 | Python | UTF-8 | Python | false | false | 312 | #!/Users/jeremyskornik/DjangoProjects/Billboard/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"filind85@gmail.com"
] | filind85@gmail.com | |
ca461012a0b6d63e4279c679121b59c086e6eb05 | 3adf04f33a2d09feddadcd8b6c7ae1f1c3ced2e9 | /tests/linter/test_name_checks.py | 2519e1be12477f13ea2358b7210d4a21681dee0f | [
"MIT"
] | permissive | F0rsaken/godot-gdscript-toolkit | d2f0cede170b1ef0ae935598e1008c70f090abb7 | fd7a985cb8d2c8d926f4ecb19b01b9c3155a3dff | refs/heads/master | 2022-12-17T03:20:08.155492 | 2020-09-14T17:48:02 | 2020-09-14T17:48:30 | 295,524,729 | 0 | 0 | MIT | 2020-09-14T19:59:11 | 2020-09-14T19:59:11 | null | UTF-8 | Python | false | false | 5,835 | py | import pytest
from .common import simple_ok_check, simple_nok_check
# fmt: off
@pytest.mark.parametrize('code', [
"""
func foo():
pass
""",
"""
func foo_bar():
pass
""",
"""
func _foo():
pass
""",
"""
func _foo_bar():
pass
""",
"""
func _on_Button_pressed():
pass
""",
])
def test_function_name_ok... | [
"pawel.lampe@gmail.com"
] | pawel.lampe@gmail.com |
7ac749b1aab219ebdca48873f52c5834e5ed540e | 3fc01457951a956d62f5e8cc0a8067f6796ee200 | /misago/acl/tests/test_roleadmin_views.py | ad9551935eee6abcae3d0f1f90f7f6995fe2799b | [] | no_license | kinsney/education | 8bfa00d699a7e84701a8d49af06db22c384e0e8d | 48f832f17c2df7b64647b3db288abccf65868fe6 | refs/heads/master | 2021-05-04T01:15:03.078130 | 2016-12-04T03:18:20 | 2016-12-04T03:18:20 | 71,164,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,597 | py | from django.core.urlresolvers import reverse
from misago.admin.testutils import AdminTestCase
from ..models import Role
from ..testutils import fake_post_data
def fake_data(data_dict):
return fake_post_data(Role(), data_dict)
class RoleAdminViewsTests(AdminTestCase):
def test_link_registered(self):
... | [
"kinsney@bupt.edu.cn"
] | kinsney@bupt.edu.cn |
f556ceb4101e22b775517d35c7cb495b3d3de9c8 | 41be196cdb24b8a6e2b62ea6f6852d77115a8e05 | /ops.py | 5bf941de0f7366ff3e7d26f0ab58cb9b3f56f32d | [
"MIT"
] | permissive | sananand007/genericImageClassification | c55cc31d6fa8f216b4c99f47b2448f44ee978b4a | 68d17ac1f34b32143260e8c2c72e4b70a2ad26b3 | refs/heads/master | 2020-04-17T15:50:02.945362 | 2019-01-30T15:20:47 | 2019-01-30T15:20:47 | 166,715,259 | 0 | 0 | MIT | 2019-01-30T15:12:50 | 2019-01-20T22:15:23 | Python | UTF-8 | Python | false | false | 1,508 | py | '''
Defining Group Normalization here
'''
import tensorflow as tf
import tensorflow.contrib.slim as slim
def norm(x, norm_type, is_train, G=32, esp=1e-5):
with tf.variable_scope('{}_norm'.format(norm_type)):
if norm_type == 'none':
output = x
elif norm_type == 'batch':
outpu... | [
"anandjairam@ufl.edu"
] | anandjairam@ufl.edu |
4d043aa331d154a5b007be6ce7499ac3f66ae85c | 524934f74db0a84be9965859ea789112752439b7 | /test_basium.py | 30911b5390ac9ebcbbd9708922d456412f4f5dc8 | [] | no_license | lowinger42/basium | 241f983a83aba2f465ca315ca8b8261780a20521 | 1f12474f005915fc9b8b191e60ad1f4f1676b4f1 | refs/heads/master | 2022-03-11T00:25:25.340228 | 2022-02-25T23:07:57 | 2022-02-25T23:07:57 | 5,907,835 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,712 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2013, Anders Lowinger, Abundo AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must ret... | [
"anders@abundo.se"
] | anders@abundo.se |
fc8b120b544b0a09985d1ede8655658e9c345fc9 | e3081df016b73719b51d6ae02a5d2af54aa21a8f | /VAMPIRE/clusterSM.py | a0c1d40381be451525e2804a31e7dc12a232817f | [] | no_license | samuramirez/cellmigration | 2b4008d9ffc030a8ae03edd5b503f2b8b8a8e78d | af64059da5f85f32e070a2dd679323ff12fef872 | refs/heads/master | 2022-05-04T19:17:01.843695 | 2022-03-23T15:49:17 | 2022-03-23T15:49:17 | 237,447,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,496 | py | #!/usr/bin/env python
# internal libraries
from __future__ import division
from copy import deepcopy
import time
import os
from tkinter import END
from datetime import datetime
# external libraries
import numpy as np
from scipy import stats, cluster, spatial, special
from sklearn.cluster import KMeans
from sklearn imp... | [
"noreply@github.com"
] | noreply@github.com |
8cce6883eff65047f33f3b771610a6d86e01321f | 20936bf43b550ff8514164738529d0f78b8d8c14 | /Zadanie 3/zad3_10.py | 937218b415392093de7106e192f6fa4b197e9985 | [] | no_license | kamilck13/Python2019 | 125f993324df5c37c4307be6db14d478de032678 | 88bcc231c662e29efd7a164ad3a6cc3c4f75b4a2 | refs/heads/master | 2020-08-21T19:58:35.515530 | 2020-02-12T19:40:44 | 2020-02-12T19:40:44 | 216,235,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | #3.9
#program zakłada, że podana liczba jest prawidłowa;
#program tłumaczy wszysktie możliwe poprawne liczby rzymskie na arabskie;
#zastosowałem słownik wybierający liczby na podstawie dopasowania z tabeli
#zawierającej możliwe kombinacje symboli rzymskich
def roman2int(tekst):
D = {}
D['I'] = 1
D['II'] = 2
D['II... | [
"kamil.ck13@gmail.com"
] | kamil.ck13@gmail.com |
74aa84bea1f33f8caee9faeb497d439917615c92 | 689b072a82862ec079d3490d131533517d551b06 | /mcan/utils.py | 9f2f00260edf39ca068d91d48264cb61a4ca5af1 | [] | no_license | BarCodeReader/MCAN | bd67b70b1ca5ecd6dce8c16e69bd65d063524701 | adad619b92c63a0829c7f1314e5ffc728be8697d | refs/heads/master | 2022-01-24T04:15:23.442051 | 2019-06-03T03:28:28 | 2019-06-03T03:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import skimage
from skimage import measure
import numpy as np
def psnr(im1, im2):
def im2double(im):
min_val, max_val = 0, 255
out = (im.astype(np.float64)-min_val) / (max_val-min_val)
return out
im1 = im2double(im1)
im2 = im2double(im2)
psnr = skimage.measure.compare_psnr(im1, ... | [
"macn3388@gmail.com"
] | macn3388@gmail.com |
5117270c2355a3fed6020f437ca52e12b9b6122e | a543a24f1b5aebf500c2200cd1d139435948500d | /satory074/abc231/d/main.py | 3f5d5f0b8ce8511ac0c5d49cf2197084b908b845 | [] | no_license | HomeSox/AtCoder | 18c89660762c3e0979596f0bcc9918c8962e4abb | 93e5ffab02ae1f763682aecb032c4f6f4e4b5588 | refs/heads/main | 2023-09-05T03:39:34.591433 | 2023-09-04T13:53:36 | 2023-09-04T13:53:36 | 219,873,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import sys
sys.setrecursionlimit(10**6)
N, M = map(int, input().split())
par = [-1 for _ in range(10 ** 5 +1)]
def root(x):
if par[x] < 0:
return x
par[x] = root(par[x])
return par[x]
def unite(x, y):
x = root(x)
y = root(y)
if x == y:
return
par[x] += par[y]
par[y... | [
"satory074@gmail.com"
] | satory074@gmail.com |
1b0112a85f56594fa5eaa5cb3dd1c128f188dbe5 | 1dc1ba80709ed2d2c9f9ff0598bca5ae2ae22d7b | /block.py | 911532bff618736b77d44806a8c95f4ad7ee3200 | [] | no_license | ashok133/KelleyChain | 62a8eab821ab5ef39cbe87e15153c86522381df9 | 920a9f131203661c1443f37c67a6a85ce326194c | refs/heads/master | 2020-03-19T10:42:24.295119 | 2018-06-06T22:58:46 | 2018-06-06T22:58:46 | 136,394,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | import hashlib as hasher
import datetime as dt
KelleyChain = []
class KelleyCoin:
# init for creating a KelleyCoin object
def __init__(self, index, ts, value, prev_hash):
self.index = index
self.ts = ts
self.value = value
self.prev_hash = prev_hash
self.hash = self.hasher()
# method to return hash of va... | [
"ashok05@somaiya.edu"
] | ashok05@somaiya.edu |
6bf3b982e3228dc763ab14b84530653fdead0ea9 | 5490b61d59191d3e256bde4ca9342eeff102d11a | /space/game_stats.py | e98f80e3ebc64ed9ae510c35e0be97b054c80d58 | [] | no_license | 91nickel/python | 9380b793792cf9ccf913fac356c8d046e5cedd8c | 7a42b23c49287df35bb8cb165b1ff6db65cfe718 | refs/heads/master | 2022-11-14T20:40:50.262905 | 2020-07-06T09:49:34 | 2020-07-06T09:49:34 | 277,503,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | class GameStats:
def __init__(self, ai_game):
"""Инициация статистики"""
# Рекорд не должен сбрасываться
self.high_score = 0
self.settings = ai_game.settings
self.reset_stats()
# Игра запускается в неактивном состоянии
self.game_active = False
def reset_... | [
"91nickel@gmail.com"
] | 91nickel@gmail.com |
4b2654e1a3a60d27ce231eafe8eef4f846d999a6 | 2d681847518351886bb0db850a2fb3db3a08a1ba | /Python/basics/conversion_m-cm.py | bbed48d02824b78454046b600b84c6f112922475 | [
"MIT"
] | permissive | mdoprog/Warehouse | 8b3fe2f98453422a1d2d57951cd7bec2cce431cc | 4afb88a32fc20b613d008b86371d505ddeb07e5a | refs/heads/master | 2023-01-03T03:50:06.069214 | 2020-10-17T00:18:11 | 2020-10-17T00:18:11 | 295,555,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # coding=utf8
# Entrada
metros = int (input("Informe a medida em metros: "))
# Processamento
centimetros = metros * 100
# Saída
print("{0} metro(s) em centímetros é: {1}cm ".format(metros, centimetros)) | [
"oliveira.demarco@gmail.com"
] | oliveira.demarco@gmail.com |
fdc8d035a2eb1b715c747baa05916ccae0b8558e | 476415b07a8ab773ac240989b481464961119b6a | /Funcionalidades/Cuaderno_Notas/cuaderno.py | dfe118765fb22aafd2632615db582496d0639730 | [] | no_license | rtejada/Universidad-Python | c4d46a91eee2a15d3c72035aced9d28f1527fb69 | a2c8035f57f5ae269b1b968ef187180879d14163 | refs/heads/master | 2022-12-16T21:32:47.181638 | 2020-09-17T17:42:49 | 2020-09-17T17:42:49 | 284,633,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from nota import Nota
class Cuaderno:
'''Representa una coleccion de notas que pueden ser ertiquetadas,
modificadas, y se pueden buscar'''
def __init__(self):
'''Inicializa un cuader con una lista vacia'''
self.notas = []
def nueva_nota(self, memo, tags=''):
'''Crea una n... | [
"rtejadasilva@gmail.com"
] | rtejadasilva@gmail.com |
cd08f2014e74c3f1479fc22bc7f78c10e2213441 | d338baf86800e3096a9c3c6ab3b234dc3f2354d5 | /milena/milena/wsgi.py | 409f5be81f2852d0ba00d278835ebf3de6cf6c13 | [] | no_license | rafaelakiyoshi/mimi | 0810c627604df9f2dfb1fa7b179a22d4b96f6710 | 204e63a53e991a6c063a7c5b730cb9f3238481cd | refs/heads/master | 2021-01-18T19:04:42.408172 | 2017-04-01T05:22:47 | 2017-04-01T05:22:47 | 86,886,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for milena 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("DJANGO_SETTI... | [
"rafah94@hotmail.com"
] | rafah94@hotmail.com |
bb14bb04807e9cca2a3b9a6955dc349377e3c09e | 9e96855f3c4bab694e1f421283edba0a2d22e17d | /webapp/urls.py | 613aaf53b45c7f5d17f16d603ca23b3ba72d0c7b | [] | no_license | Gorira-Banana/web_app | 01bfadaa349110f82491d778539e869904fd5eee | 215d039ea23e4bb2454287f0feadf583c6c01eda | refs/heads/master | 2020-03-23T23:15:16.462196 | 2018-07-29T19:31:10 | 2018-07-29T19:31:10 | 141,983,665 | 0 | 0 | null | 2018-07-23T08:17:59 | 2018-07-23T08:17:59 | null | UTF-8 | Python | false | false | 810 | py | """webapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"a5816083@aoyama.jp"
] | a5816083@aoyama.jp |
c8e3605deea6b08e522d95e4e4de9321515ea8f4 | e9539de5b8832e2a09365917fe201a945bf5d99b | /leetcode257.py | a337d1ce04c41835465bc7fa045d9b29077f0f17 | [] | no_license | JoshuaW1990/leetcode-session1 | 56d57df30b21ccade3fe54e3fd56a2b3383bd793 | 6fc170c04fadec6966fb7938a07474d4ee107b61 | refs/heads/master | 2021-09-20T16:18:15.640839 | 2018-08-12T09:40:51 | 2018-08-12T09:40:51 | 76,912,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def binaryTreePaths(self, root):
"""
:type root: TreeNode
:rtype: List[str]
"""
r... | [
"Jun.Wang@tufts.edu"
] | Jun.Wang@tufts.edu |
7dee9e54db2f61507fa445a883e0e7cae74ee732 | b78d49994cdedc2bde154be69dc9133fba9760e4 | /schedule/model_managers.py | 9e5ebbd22c5a295e2fb91fea59160867514ca304 | [] | no_license | Marik28/univer_api | 40c8863e6568757f09be06fb853f74504f659adb | f9dfb82d795e4367b74dfd0d9f88a5fc082a5e53 | refs/heads/main | 2023-06-25T11:38:34.315989 | 2021-02-28T14:14:38 | 2021-02-28T14:14:38 | 342,927,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | from django.db.models import Manager
class LessonManager(Manager):
def unarchived(self):
"""Пары, находящиеся в архиве"""
return self.filter(archived=False)
def archived(self):
"""Пары, не находящиеся в архиве"""
return self.filter(archived=True)
def numerator(self):
... | [
"markel20002000@gmail.com"
] | markel20002000@gmail.com |
b8cbb9dfd20b9ec3a2623bb6f7999a33b46231fe | 12555a9570d0b70ba4a95a53eeed0ab6f2961fe4 | /preprocess.py | 071a7c0e97056f42c6c9bad220b6aed4e5392339 | [] | no_license | terrypang/bupt-dr2 | 4f0428f8caa2291f36d3b001f51f94b4fb604f79 | 0762e527e6585d0aa81e390b2776c1b79cd02121 | refs/heads/master | 2021-01-01T04:48:15.595948 | 2017-03-19T13:50:07 | 2017-03-19T13:50:07 | 97,250,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | from __future__ import division, print_function, absolute_import
import numpy as np
from glob import glob
from tqdm import tqdm
from keras.preprocessing import image
import os
import pandas as pd
from sklearn.utils.class_weight import compute_class_weight
from utils import utils
def main():
RAW_DIR = 'data/conv... | [
"terrypang@aliyun.com"
] | terrypang@aliyun.com |
6041f60f57429335fe494f76d88fe71aa0c4a946 | 8547ab61487580bbcbd82eca3700c256997116dd | /password_encrypter2.1/encrypt.py | 31d53359bdd54b58f5d18486c218665ef292d19f | [] | no_license | hishamanver/python_learn | ae933338018e8423c4924460d78ab2325234c8a2 | 71998e8a7237374fb59eed780a3dba749411246b | refs/heads/master | 2020-04-11T21:28:36.711517 | 2019-02-27T02:03:26 | 2019-02-27T02:03:26 | 162,106,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | def generateEncryptionKey(key):
encryptionKey = []
for i in range(len(key)):
encryptionKey = encryptionKey + [ord(key[i])*((-1)**i)]
return encryptionKey
def generateEncryptionKeyOffset(key,start):
encryptionKeyOffset = start
for i in range(len(key)):
if encryptionKeyOffset<510:
... | [
"hisham.anver@team.telstra.com"
] | hisham.anver@team.telstra.com |
467e9c9e3f405462c8b33857ec240a11f34ada30 | c5c63f1de81cc3776189a8bdace8eb97eb671b9b | /make_enums.py | a9d5859fe24d5a58f1ee69c397c70a4857ecc657 | [
"Artistic-2.0"
] | permissive | rec/make_pyx | e2034ac8fdc20b48ac8cd5c7598a35fb8769a95a | 61790d5bd2664604b9788cbed5b70a9edea0772c | refs/heads/master | 2020-05-25T19:54:28.651141 | 2016-06-11T14:58:52 | 2016-06-11T14:58:52 | 58,406,182 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | def make_enums(enum_classes, header_file, namespace, classname):
enums, declarations = [], []
for ec in enum_classes:
enum_name, parts = (i.strip() for i in ec)
parts = [p.strip() for p in parts.split(',')]
if parts and parts[-1].startswith('last ='):
parts.pop()
enum... | [
"tom@swirly.com"
] | tom@swirly.com |
c326fc55d5140ef5f6cb40aa33c3f520b8b1e01c | 3b126fe5380cf6974305e931be0a44af9d3af83c | /worldometersCrawler/spiders/co2_emissions.py | 5baa979b9c332889870e8c5e54f60c26c2f60ec4 | [] | no_license | Noeti/worldometers-crawler | 621145daba0b9c74e85b5e20df3f0457345e49fb | 23b6135fe51d78c0127cd02a876c53e4a6c735e0 | refs/heads/main | 2023-05-30T21:26:34.272806 | 2021-06-25T07:55:27 | 2021-06-25T07:55:27 | 379,367,189 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import scrapy
from ..utils import clean_commas
class Co2EmissionsSpider(scrapy.Spider):
name = 'co2_emissions'
allowed_domains = ['www.worldometers.info']
start_urls = ['https://www.worldometers.info/co2-emissions/co2-emissions-by-country']
def parse(self, response):
table = response.xpath('//... | [
"noreply@github.com"
] | noreply@github.com |
eace0e45336cd4e4c5f4cb0395395d66f7ad620d | 4e369614a7435e7859600c2bd8fd95379a4d52d1 | /HelloWorld.py | 8d36c06abaf53df37e11096c0a869ed07e9ee9a3 | [] | no_license | MadanHar/python | 2fa8f647a985c6b23434edd8b39346560762e4bf | dc5ec3cc68c9c401a8c6c91ba698fa55c84f343c | refs/heads/master | 2020-04-19T07:51:20.706584 | 2019-01-29T00:19:39 | 2019-01-29T00:19:39 | 168,059,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
greeting = "Hello"
#name = input("Please enter your name ")
#print(greeting +" " + name)
splitString = "This string has been \n split over \n several\nlines"
print(splitString)
today = "friday"
print("fri" in today) | [
"madan.haraginadoni@auspost.com.au"
] | madan.haraginadoni@auspost.com.au |
11f96f363a4c550e8ad97f1b6840ff3a79a12c05 | e5a1e680f0d0422c84e2affc17e9f9abe1a8a024 | /comments/migrations/0003_auto_20160917_1802.py | bd4b1d43ae49d9ff51fa8c168efe090d50803e0f | [] | no_license | rayiyaoyao/blog | 978f42cfbb4e9bf7f746ace5f74314bb56bfd79f | 2be576cc6f977ae974c31be00902b858a2c3d7ec | refs/heads/master | 2020-07-01T03:43:25.137966 | 2016-11-22T11:18:27 | 2016-11-22T11:18:27 | 74,100,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-09-17 10:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('comments', '0002_auto_20160917_1226'),
]
operations... | [
"357837043@qq.com"
] | 357837043@qq.com |
3e008e77c888a0bd9dac49b61201295d4ca312f2 | 4633791da7676bdc98c67ba01a5608a2f09258bd | /ESP4T-2021/Templates/Day 4/Python/Digital Speedometer/Speedometer_Template.py | 32f88fa340ca0a8bdd247e42de84e2b733e9efe0 | [] | no_license | jlundholm/RaspPi | 63d7f452f736a92a978480d86a5876cbecc48f9f | af8e7305e244ff1265e1e502e66ed7d6f945e6a7 | refs/heads/main | 2023-06-29T10:18:06.416361 | 2021-07-22T21:23:26 | 2021-07-22T21:23:26 | 387,916,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | #Code for Speedometer module
#Import warnings to ignore warnings
import warnings
#Import Adafruit_CharLCD library (Adafruit_CharLCD.py)
import Adafruit_CharLCD as LCD
#Import DistanceSensor, LED, OutputDevice from gpiozero library
from gpiozero import DistanceSensor, LED, OutputDevice
#Import time to pause or delay the... | [
"lundholmj@gmail.com"
] | lundholmj@gmail.com |
ccfeb33b542d5a5f8190aee7931880440b221942 | 0e215b6cfcb5f5d3aefb6c12e2c91e6687609736 | /novice/04-01/todolist/task/models.py | c743334f04776d99cab556c0a8bd11559e65d0a1 | [] | no_license | Idfa001/praxis-academy | e266963db45d5b2c623f51afd9893861db7c357f | 13da3b696b8575f961ea787f21e59e17c802f920 | refs/heads/master | 2023-01-22T15:13:45.497082 | 2020-11-17T13:50:12 | 2020-11-17T13:50:12 | 287,203,217 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from django.db import models
# Create your models here.
class Task(models.Model):
name = models.CharField(max_length=255)
genre = models.CharField(max_length=255)
artis = models.CharField(max_length=255)
th = models.CharField(max_length=255)
lirik = models.CharField(max_length=255)
link = mode... | [
"idfa001@gmail.com"
] | idfa001@gmail.com |
2b83d02540acc758b0494239f5a7bff3d0febd56 | 3637ecfdd1d72e5d185c5750e8958726d209f408 | /bookaudi/settings.py | 838c2fc342fba284f4631575f24c0526242dee67 | [] | no_license | gaurav3030/auditorium | 9500adf7012d570e8891d36c5b8d30d962ee9287 | d34bbaf97b786a6549ccc63e3b3c13428951d1ec | refs/heads/master | 2020-07-31T06:30:58.619283 | 2019-09-24T06:33:15 | 2019-09-24T06:33:15 | 210,516,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for bookaudi project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"2018.gaurav.patil@ves.ac.in"
] | 2018.gaurav.patil@ves.ac.in |
3888552ed410581f959b7b2a94c250f2d5a6c385 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02594/s218362051.py | 9bf990062fc8899082dd871108c2046d91e7709c | [] | 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 | 70 | py | x = input()
x=int(x)
if (x<30):
print("No")
else:
print("Yes") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa7feba504552bf6887288c421f6b17eb24aae55 | 36837f70b26579f6f31bbc1757b4aa3e09d3ce0c | /test/test_jieba.py | c4e996d5d0449ee52d887eb13c8500cd662c1ef2 | [
"BSD-3-Clause"
] | permissive | dzc0d3r/flask-msearch | bee2cb920b1d9f26686c4f134ce4073ba7901142 | 8fb3fd441f251d42558e775cce5ac04a0a5a4e92 | refs/heads/master | 2021-06-13T02:29:26.811313 | 2020-03-18T15:58:43 | 2020-03-18T15:58:43 | 254,414,109 | 1 | 0 | BSD-3-Clause | 2020-04-09T15:48:24 | 2020-04-09T15:48:24 | null | UTF-8 | Python | false | false | 2,523 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ********************************************************************************
# Copyright © 2018 jianglin
# File Name: test_jieba.py
# Author: jianglin
# Email: mail@honmaple.com
# Created: 2018-05-18 13:22:46 (CST)
# Last Update: Tuesday 2018-12-18 11:32:46 (CST)
# ... | [
"xiyang0807@gmail.com"
] | xiyang0807@gmail.com |
4422e894f143c06a757ce613f676b66b6ab5b343 | 53dc2bac5b7eebd270f566d8a507be19f0dcb35a | /AI-work/sudoku.py | fbb5f805ee8887e5f8685e577c036934cb072c5d | [] | no_license | zetlan/dgz | eeaa08047032457b0273eb3a73aa97d9882c6a0f | 38fe658baab685114a0b2b818b5f52c7271ac011 | refs/heads/master | 2023-01-23T09:17:35.762713 | 2023-01-16T22:26:27 | 2023-01-16T22:26:27 | 91,821,079 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | #Name: REDACTED
#Date: November-11-2021
| [
"davis@zetlan.net"
] | davis@zetlan.net |
eb2155693700ae589cb897972606b032e528eb04 | 55e841a3df04476771622444959b4a140ca173ce | /ddpg/log-files/Hopper-v1/no-of-update_20/1/ddpg.py | 6883ee62cf35c0bd8bf4d395a2ff2f72cccd9145 | [] | no_license | Patel-Dhaval-M/MSC_project | e33fa5a083931841a602070c4967d116da117fd2 | 1ad02052e8f8cd2cb985d75cca19591dad9d54e4 | refs/heads/master | 2020-03-27T01:30:34.087131 | 2018-08-22T14:21:16 | 2018-08-22T14:21:16 | 145,717,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,806 | py | """
Implementation of DDPG - Deep Deterministic Policy Gradient
Algorithm and hyperparameter details can be found here:
http://arxiv.org/pdf/1509.02971v2.pdf
The algorithm is tested on the Pendulum-v0 OpenAI gym task
and developed with tflearn + Tensorflow
Author: Patrick Emami
"""
import tensorflow as tf
imp... | [
"dhavalp576@gmail.com"
] | dhavalp576@gmail.com |
eba16916ccb2a1173dce4d26831a9e14a24a5706 | caede12c673bd4d5866e7084fc850f36920f6e2c | /keylogger/control.py | 88c19ffc0afbebad897e9bd435e9ef6c813ed25f | [] | no_license | abubakr223/keylogger | 2b600fda9346cbf8202a4e39f52493e919644ff9 | 89f43439d56c4248ff6472c28dacf10a2d5e4030 | refs/heads/master | 2022-04-24T17:03:31.088415 | 2020-04-24T10:16:35 | 2020-04-24T10:16:35 | 258,477,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from pynput.mouse import Controller
from pynput.keyboard import Controller
def controlMouse():
mouse = Controller()
mouse.position = (10,20)
def controlKeyboard():
keyboard = Controller()
keyboard.type("i am hungry again")
controlKeyboard() | [
"noreply@github.com"
] | noreply@github.com |
977a8cefbd1ec35f6ef185b651476da96f58857f | c6bc01937480d68a9a272405d40695590c25fc3e | /src/cutout.py | 96cafd2001a3fb530be7a5a0dd7e47e94d20a89d | [
"HPND-sell-variant",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unicode",
"MIT",
"MIT-Modern-Variant"
] | permissive | LegalizeAdulthood/fontconfig | a01a1934ad96c90f366eca7d45bd84b3001ce4c3 | 401d521c1f68ce16c1fa62caf307a1869ba63c48 | refs/heads/master | 2023-03-03T14:39:59.924462 | 2021-01-16T14:20:41 | 2021-01-30T10:21:33 | 338,185,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import argparse
import subprocess
import os
import re
if __name__== '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('input')
parser.add_argument('output')
args = parser.parse_known_args()
print (args[0].output)
cpp = args[1]
ret = subprocess.run(cpp + [args[0].input], s... | [
"akira@tagoh.org"
] | akira@tagoh.org |
6c3e6eb4b5a783eaee91b0e08d792d179b4b47a1 | 3e49539cea2df0b22ed1c745f7a2ffa972ad1eea | /apps/profiles/migrations/0004_profile_occupation.py | e7636cc130bb981d21703ad1c10e17234614a9c8 | [] | no_license | nrzonline/portfolio_backend | 5c578c3de29634f71370a41f7ba4f9344a4cc00d | dfdfc35da299db11aef061b196d4d0e0795a95f3 | refs/heads/master | 2021-07-20T09:55:03.577312 | 2017-10-30T17:53:44 | 2017-10-30T17:53:44 | 107,800,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-08 18:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_profile_account'),
]
operations = [
migrations.AddField(
... | [
"contact@nrzonline.nl"
] | contact@nrzonline.nl |
ce32ce9f88f4ffa2802b6e394ff85ff44f9043ce | 02aa7379cf612d717f4ac2de9033fa6d032440e3 | /MasterThesis/ReportGenerator/Utility.py | 04c3ad128324b442a2c9f54601d256939e1ac1fa | [] | no_license | HenryYen/ITRI_RemAnalysisMethod | 6ff0fb298f8875167eba84bd2d42a62939cd69aa | aa397cbf84745461ded1d5c2642a6142d3553cf5 | refs/heads/master | 2021-09-22T11:47:49.842102 | 2018-09-10T06:30:41 | 2018-09-10T06:30:41 | 109,849,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,930 | py | import Parameter as pr
from Cell import *
from User import *
import random as rd
from math import sqrt, pi, degrees, atan2, log, pow
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import pickle as pk
import numpy as np
def get_dist(x1, y1, x2, y2):
return sqrt((x1-x2)**2 + ... | [
"r821231199307@gmail.com"
] | r821231199307@gmail.com |
88f69ea1d7520d5cab4e7bd9452368a1f0c34d3e | 991321d1a26a520dce563fa117e533787de1fc62 | /lib/environ_skew.py | c218ba7d760077615f18ba782074d7ee568c8afe | [] | no_license | Ryan-Ray-Martin/PPO_Stock_Trader | 6dd171e714db8c0eddd3ea1556b2d983878ab513 | 376759d66f68e26e8703fc5bd4e858e2a5be16c2 | refs/heads/main | 2023-04-06T17:34:30.863409 | 2021-03-18T04:41:59 | 2021-03-18T04:41:59 | 348,217,449 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,783 | py | import gym
import gym.spaces
from gym.utils import seeding
from gym.envs.registration import EnvSpec
import enum
import numpy as np
from . import data
DEFAULT_BARS_COUNT = 1200
DEFAULT_COMMISSION_PERC = 0.0
SKEW = .05
class Actions(enum.Enum):
Skip = 0
Buy = 1
Close = 2
class State:
def __init__(s... | [
"ryanraymartin@gmail.com"
] | ryanraymartin@gmail.com |
7c3290c6d79e793891bac2788edc3d45daa2fdd6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03796/s109452428.py | 7da43cd4b9f93444d016f1ca7372416bb9a2f552 | [] | 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 | 111 | py | import math
n = int(input())
result = math.factorial(n)
dividor = 10 ** 9 + 7
print (result % dividor) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
681c635d914e2b9de0e49bcab26a6ed36e8405a2 | 002df0ea1b3486456864b0c4f9c59db1dc9ae4b6 | /constants.py | 9f49a6850af08a21caa00b6d2d08d5f9cded32b5 | [
"MIT"
] | permissive | cosgais/Game | 998620ea16f982f6b12661f348808761c9f1d586 | 9b65600e7abde92aed22e08f9a3e18e637fdb475 | refs/heads/master | 2020-07-10T18:19:35.281762 | 2019-08-25T19:38:13 | 2019-08-25T19:38:13 | 204,333,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from pygame.locals import *
# game constants
SCREENRECT = Rect(0, 0, 0, 0)
FPS = 60.0
| [
"git@persignum.com"
] | git@persignum.com |
3fb11e79d90e6b79d17c275936cf0226a510c486 | 3f40191edb4e876c3734e44bfd73fa294247d083 | /p3iv_modules/src/p3iv_modules/interfaces/perception.py | 55ac7729c90dd59707ac6453a3ca0b8024bbef18 | [
"BSD-3-Clause"
] | permissive | philippbrusius/P3IV | 8f85920cb69c45cf896a076393d371d4d7d36269 | 2b0e44b166d699ace2b103d064e45e8da997bdb5 | refs/heads/master | 2023-08-06T00:39:23.988422 | 2021-10-11T07:44:03 | 2021-10-11T07:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | # This file is part of the P3IV Simulator (https://github.com/fzi-forschungszentrum-informatik/P3IV),
# copyright by FZI Forschungszentrum Informatik, licensed under the BSD-3 license (see LICENSE file in main directory)
import abc
import numpy as np
import p3iv_types
class PerceptInterface(object):
__metaclass_... | [
"sahin.tas@kit.edu"
] | sahin.tas@kit.edu |
f8a20cb8a638e3e55609979a69fadad0ab2becf1 | b722cd9b294651ce8c1d6f25867f4d72853c00a3 | /chengdu_ershoufang_guapai.py | 4dfa5a2def0410f63cbda3bf8c1a07444a589550 | [] | no_license | QZ1220/lianjia_spider | 838e9e2079d01acf9695307e4406864f92405c23 | 9b5487adce2f0e1e6fdf7fa6aa86defeb2f80bc9 | refs/heads/master | 2023-07-01T15:29:07.132279 | 2021-05-15T08:11:18 | 2021-05-15T08:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | import requests
import parsel
import time
import csv
import datetime
def parse_one_page(url, region, csv_writer):
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'
}
response = requests.get(url=url, headers=he... | [
"wangquanzhou@t4f-mbp-wqz.local"
] | wangquanzhou@t4f-mbp-wqz.local |
e297b38f6e2cdf429d8572fcf27d6ba7f9777a03 | dbbd518e46560bf7b26f6a494243d27f8d68709a | /core/base_test.py | 9dd2cd176213e03da4d3d2073e0b2ab082029407 | [] | no_license | b-kod/API-autotest | 063fa3d5a74056b03b229467e043778f1daa33f9 | 7bc9fb9550011632520f8277bd80357747c8301b | refs/heads/main | 2023-04-13T04:58:17.258852 | 2021-04-02T10:19:57 | 2021-04-02T10:19:57 | 353,649,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | from datetime import datetime
from requests import Response
from core.logger import Logger
class BaseCase:
def setup(self):
pass
def teardown(self):
Logger.get_instance().write_log_to_file()
@staticmethod
def get_cookie(response: Response, cookie_name):
if cookie_name in resp... | [
"bkodzokova@gmail.com"
] | bkodzokova@gmail.com |
69e20327eed61ccc8f6f46beb0c063a9bc435f12 | 094b77875a337de195e1df89cdb89a2acf9b60e8 | /app/templates/untitled.py | 274179fac1b12cb777e4816118e526a9e9abe67e | [] | no_license | jayarajsajjanar/linuxconfig | 0012bec91fccca0676b5a45c8ab2c7bb791383b5 | 9a271387f25c6e6ec59ac1c3f5584a9e3e37f95c | refs/heads/master | 2022-08-09T16:10:27.902279 | 2016-06-03T20:29:53 | 2016-06-03T20:29:53 | 60,275,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test1.db'
db = SQLAlchemy(app)
class Items(db.Model):
id = db.Column(db.Integer, primary_key=True)
Naming = db.Column(db.String(80))
Description = db.Column(db.String)
Cat_... | [
"jayarajsajjanar2010@gmail.com"
] | jayarajsajjanar2010@gmail.com |
cd78fd4a072a6b9d1afdc776829877011e52a27b | 7be31cf11c0277d988b081ed4047dbef221094cc | /canary/format.py | d73c51441d4e73610261c66952d3e5aca5e5730a | [
"BSD-3-Clause"
] | permissive | ryanpetrello/canary | a5f46b65febcaea889542421286de27f976f1998 | e9e327eec5eae992f3573e7ca4548d480da62a9c | refs/heads/master | 2020-12-25T18:18:13.010976 | 2014-06-10T11:54:21 | 2014-06-10T11:54:21 | 8,144,379 | 2 | 0 | null | 2014-04-03T02:18:16 | 2013-02-11T19:06:54 | Python | UTF-8 | Python | false | false | 1,466 | py | import json
import logging
import re
import socket
class LogstashFormatter(logging.Formatter):
"""
A custom JSON formatter intended for consumption by logstash
"""
DEFAULT_KEYS = ['fields']
def __init__(self, keys=DEFAULT_KEYS, *args, **kwargs):
log_format = ' '.join(['%({0})'] * len(key... | [
"lists@ryanpetrello.com"
] | lists@ryanpetrello.com |
ed3d5f9234b618fc176362712257fa446d816471 | a1f7fa39e4884c60223d1000670ed918f2ca4dc5 | /dm_control/locomotion/arenas/corridors.py | eb6c410ec05b1d5ba9521afb53ca5fcfb141284d | [
"Apache-2.0"
] | permissive | wilson1yan/dm_control | 7fb74e4b6a428a778d773230ec22d54f87d0ceef | 9b908bb501643a1152cc95b9dfa29b96fd3e7061 | refs/heads/master | 2021-07-12T04:56:09.951104 | 2020-04-10T23:40:00 | 2020-04-10T23:40:00 | 201,571,408 | 8 | 6 | Apache-2.0 | 2020-04-16T17:16:48 | 2019-08-10T03:01:12 | Python | UTF-8 | Python | false | false | 14,030 | py | # Copyright 2019 The dm_control 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 i... | [
"alimuldal@google.com"
] | alimuldal@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.