blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4602520b9d75f44ba3091499da30d0a0a18fd925 | 25701d3b2dab8693f319d5e3ac821f6dcf434cf3 | /evolving/fitness.py | 1236c71d07ea99bb0de860fcef5a3d474bb2b600 | [
"MIT"
] | permissive | Sablayrolles/evolving-algorithms | 25cac179c47308e7f0cd4f43ad2e423195627fa7 | 4bc5a3cfa7ccc8b9645847437d34e8e9c19030d4 | refs/heads/master | 2023-08-28T21:52:59.127448 | 2019-06-21T11:50:39 | 2019-06-21T11:50:39 | 180,795,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # -*- coding: utf-8 -*-
from . import constantes
from . import exceptions
class Fitness:
def __init__(self):
pass
def entity_fitness(self, entity):
#need to think of name of entity class method
if str(constantes.getTopLevelParentClassAfterObject(entity)) != "Entity" :
... | [
"louis.sablayrolles@gmail.com"
] | louis.sablayrolles@gmail.com |
aecd9b53dfc0f6dc6b969002346dc62541f907ee | c552cf5ed4714a3b5bdeab7af46092ff465b8c6a | /Python/SW Expert Academy/D4/6959. 이상한 나라의 덧셈게임.py | 480bd6b6edb1aadc98eabbbeeea28ef8a2dfe774 | [] | no_license | ksb8320/Algorithm | a786c5ab04e28ae9b3d180a77850899328075443 | 74b33f81eefa4cebf0dd8f1c3d65394d2aede372 | refs/heads/master | 2022-12-17T22:49:17.144572 | 2020-09-23T14:45:21 | 2020-09-23T14:45:21 | 253,751,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | import sys
sys.stdin=open("input.txt")
def plus():
global cnt
while len(lst)>1:
new=lst[0]+lst[1]
if new<10:
lst.pop(0)
lst.pop(0)
lst.insert(0,new)
cnt+=1
else:
lst[0]=1
lst[1]=new-10
cnt+=1
if cnt... | [
"ksb8320@gmail.com"
] | ksb8320@gmail.com |
1d26ebcb6308c083725f534bc37cd458961c8104 | eeea0bb8c9693918c9a1abeddb51b2c9e1ee43ca | /server.py | 7cbcc1c3a468c3be66cdc365d08e0ca8202ccbeb | [
"Apache-2.0"
] | permissive | garthtee/server-stats | 819ce311ea67518a769d48a188b9de84afecbf7e | 407c0792849e4894d7a2b3067d397c290b5e33f5 | refs/heads/master | 2020-04-06T07:10:47.915590 | 2016-09-11T15:42:06 | 2016-09-11T15:42:06 | 67,608,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,810 | py | # Python Server #
import socketio
import eventlet
import eventlet.wsgi
import json
import threading
import sensors
import time
import datetime
import urllib3
import psutil
from urllib3.exceptions import InsecureRequestWarning
from socketIO_client import SocketIO, LoggingNamespace
from flask import Flask, render_templat... | [
"tolandgarth@gmail.com"
] | tolandgarth@gmail.com |
886d2201fefef83111d3a14b1220eff983280a4d | 3ab7e700203054e104e6c60295c0a8455bc388b1 | /i_entity_extractor/extractors/annual_reports/annual_reports_extractor.py | c56bf238b41ab2c3c03321e7f2272902cc3de882 | [] | no_license | youfeng243/crawler | e8114ab5ef68bb9fd7e4296452d63b53d3d4080a | 59eaabef94de67444f09cfe5b25d481034d10f29 | refs/heads/master | 2021-07-11T10:12:27.946819 | 2017-10-12T11:35:27 | 2017-10-12T11:35:27 | 106,583,181 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,085 | py | # coding=utf-8
# 企业年报实体解析
import copy
import json
import time
from i_entity_extractor.common_parser_lib import toolsutil
from i_entity_extractor.extractors.default.default_extractor import DefaultExtractor
class AnnualReportsExtractor(DefaultExtractor):
def __init__(self, topic_info, log):
DefaultExtract... | [
"you@163.com"
] | you@163.com |
13acd6695268198a6ecd256d949c490e240b0b9e | 3cb61ff1999eb3045c6f942449e4c5b8510f8a9c | /trainOverSamplingWord2Vec.py | 192f25906a6341fb28176d4c36e05d3a8e15374c | [] | no_license | mixaverros88/Tweet_Sentiment_Extraction | c0b957a524f89244ac6706c7979f07853fd2854b | 4b7d3cb3708b93452f689eaedae5b9307bc57eab | refs/heads/master | 2023-06-18T23:35:26.007560 | 2021-07-17T16:46:39 | 2021-07-17T16:46:39 | 370,732,697 | 0 | 0 | null | 2021-07-17T11:41:27 | 2021-05-25T15:01:56 | Python | UTF-8 | Python | false | false | 6,855 | py | import utils.dataset as data
from models.text_vectorization.Word2VecModel import Word2VecModel
from utils.ComposeMetrics import ComposeMetrics
from models.machine_learning.LogisticRegressionModel import LogisticRegressionModel
from models.machine_learning.SvmModel import SvmModel
from models.machine_learning.KNeig... | [
"mixalisverros@hotmail.gr"
] | mixalisverros@hotmail.gr |
c0e24af9fc4625bbadc8ae14eb25a08f5d4af95a | e18fc3c03218e4fff5dd21804840b3093ffdd973 | /data/utils/kepler_io.py | 91e474252d0e1e4c9451f3e9b9800bd1b0b73557 | [] | no_license | Qkvad/exo_NN | c2b404b28128b020ce0e3343ec3fde0721ee50a1 | 53872356bc5061ed52b3249e6945980e11b9174c | refs/heads/master | 2020-03-18T10:03:32.591341 | 2019-03-31T22:45:10 | 2019-03-31T22:45:10 | 134,595,105 | 1 | 1 | null | 2019-03-31T22:45:11 | 2018-05-23T16:08:25 | Shell | UTF-8 | Python | false | false | 5,999 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 22 18:18:38 2018
@author: sandro
"""
"""Functions for reading Kepler data."""
import os.path
from astropy.io import fits
import numpy as np
LONG_CADENCE_TIME_DELTA_DAYS = 0.02043422 # Approximately 29.4 minutes.
# Quarter index to filename pre... | [
"lovnicki.sandro@gmail.com"
] | lovnicki.sandro@gmail.com |
db3e4556c2dbef3c156d5789d769964dbe1ee39e | 40bc43b50594357fcfcec2db16d1f735732d882a | /dao/__init__.py | db6b608711456ced938201ab923fd7b976e65dc0 | [] | no_license | mqsee/data_monitor | e1e5fa391788ccefbb1bc04cad42c6bd4932cf49 | 281640594cc5f6161c7d5e1f93b0dc2c23ea8b4e | refs/heads/master | 2021-01-18T22:21:30.220760 | 2017-04-03T07:38:22 | 2017-04-03T07:38:22 | 87,048,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | #-*- coding=utf-8 -*-
'''
Author: TianRan
Date: 7/18/16
Version:
'''
if __name__ == '__main__':
pass | [
"moqi@moqideMacBook-Pro.local"
] | moqi@moqideMacBook-Pro.local |
6355476cfb93b8ed838af833f12252e27623f0f5 | 316b8375a7ef8095f09973d13f5a49bc7fbe7580 | /leetcode/332.py | 06d41eae074e21c5ecfafeb7129b8286192a3c5d | [] | no_license | zhaolijian/suanfa | 9a8d23fbca01d994f7eef24631783c4b7ed25683 | 4f3b25f360f30c0e604ba4dc4d5774ccb5f25b32 | refs/heads/master | 2023-06-08T17:12:41.522937 | 2021-06-27T08:13:16 | 2021-06-27T08:13:16 | 313,269,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # 给定一个机票的字符串二维数组 [from, to],子数组中的两个成员分别表示飞机出发和降落的机场地点,
# 对该行程进行重新规划排序。所有这些机票都属于一个从 JFK(肯尼迪国际机场)出发的先生,所以该行程必须从 JFK 开始。
# 如果存在多种有效的行程,你可以按字符自然排序返回最小的行程组合。
# 例如,行程 ["JFK", "LGA"] 与 ["JFK", "LGB"] 相比就更小,排序更靠前
# 所有的机场都用三个大写字母表示(机场代码)。
# 假定所有机票至少存在一种合理的行程。
# 方法:Hierholzer 算法
# Hierholzer 算法用于在连通图中寻找欧拉路径,其流程如下:
# 1.从起点出发,进行深... | [
"820913569@qq.com"
] | 820913569@qq.com |
5768790264b72ba8533b41689c9363956c0ad02a | 54aa3f9cb708763dcfaabf8fb2a4bfacc3ace73d | /logReader/logReader.py | 5f471b5376d8b2dc30b64adb8f3cd357e4bf6005 | [] | no_license | wtysos11/InternetTrafficArchiveReader | 51c3bc02c53fdee5aae1459497b03bc16b9deeb7 | 9d9944c41e889ab71ba8dbc68f3533213fa0ea8a | refs/heads/master | 2023-03-30T05:18:54.459108 | 2021-04-10T07:50:11 | 2021-04-10T07:50:11 | 356,159,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | # datetime : https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior
# Calgary-HTTP
# ss[11/Oct/1995:14:04:06 -0600]
#
# match [ ]
# %d/%b/%Y:%H:%M:%S %z
from datetime import datetime
class logReader:
def __init__(self,directoryName):
'''
init mode using directoryName,... | [
"wtysos11@163.com"
] | wtysos11@163.com |
87824bb6740b0f89cbbe8967188145673e21f2fd | 67a7cbb7b69d3881f2c9452c277b26517f9d282a | /venv/bin/launch_instance | ef9606dd92f952601be5e41d0c9ba9008a8c0f2f | [] | no_license | daphneweinstein/critical-newsbot | 73a41cf5ce7decfd5c66c4fb1f170398c8c0f508 | 9bd609f1ba813f0682ba4e03835f081a08d6bd15 | refs/heads/master | 2020-02-26T17:03:31.930350 | 2016-09-17T19:56:20 | 2016-09-17T19:56:20 | 68,468,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,653 | #!/Users/daphneweinstein/Desktop/NewsBot/newsbot-1-3/venv/bin/python
# Copyright (c) 2009 Chris Moyer http://coredumped.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restrict... | [
"daphneweinstein@nat-oitwireless-inside-vapornet100-b-28556.Princeton.EDU"
] | daphneweinstein@nat-oitwireless-inside-vapornet100-b-28556.Princeton.EDU | |
d2a406a71dfd12ea3612c72858921cec8065d1ed | bdb5afdeb7927081cc01a541131f73f9057cfe65 | /global_model/reid/models/cross_entropy_trihard.py | 50680f328ada553917c90554c296a602da1f3494 | [] | no_license | intjun/AIC2020_ReID | 3c1528c8718c998a79fc40742859ad9de102140f | 674ff70fa62930bdea3a700d6fa8a40c9096202e | refs/heads/master | 2022-06-23T21:04:58.218919 | 2020-05-12T02:29:01 | 2020-05-12T02:29:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,630 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
from torch.nn import functional as F
import math
__all__ = ['cross_entropy_trihard_resnet18', 'cross_entropy_trihard_resnet34', 'cross_entropy_trihard_resnet50', 'cross_entropy_trihard_resnet101','cross_entropy_trihard_resnet152']
def conv3x3(in_p... | [
"cunyuangao@tencent.com"
] | cunyuangao@tencent.com |
c85e68503c3fb3a3f6b85df4e853c177004f7dc9 | 0b835d800431916a0626848ef4993753f031ef6c | /example_Face_verification/function.py | a9e5807c6d9f6b2c068749e3e9885a5d06233f83 | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | onejiin/Caffe_windows | b102e520526bb1cbc3d01c675092a9a76ebf018f | 2ee1c3610993de20b9720452aff6c4ae104438ad | refs/heads/master | 2020-04-13T07:13:05.735154 | 2017-03-09T08:56:28 | 2017-03-09T08:56:28 | 68,204,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,886 | py | import sys, os
from random import shuffle
import importlib
import re
import numpy as np
__author__ = 'wjung'
name = ["bumho", "chunghoon", "hotaek", "hyundong", "jinhee", "onejin", "soyeon", "sukjoong", "sungwun", "sunil", "wonjun", "woongjae"]
model_23_21464 = [[-2.54503125, 3.348480469, 20.40089844, -0.397976563, -... | [
"wonjin@vtouch.kr"
] | wonjin@vtouch.kr |
b8318f98d990a9b251f9980aff889b8aaf255d29 | f1a9a87621b541106e1e168ed0b70769120f766c | /tests/07.py | 3a459faff3fcf024b01bc9a3494765bb018ffd43 | [
"Apache-2.0"
] | permissive | Hanyi-Wang-DarkStardust/Game-of-Hog | 5b06cde01febfef7e1563f111faa02b2fe518331 | f06b5e0224531fa6595000f08480e78ac7ce6d13 | refs/heads/master | 2022-02-09T05:02:16.520012 | 2019-07-21T01:48:07 | 2019-07-21T01:48:07 | 197,995,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | test = {
'name': 'Question 7',
'points': 3,
'suites': [
{
'cases': [
{
'answer': '1b26ada5a58db30444f6f64d80a11c53',
'choices': [
r"""
A commentary function that prints information about the
biggest point increase for the current... | [
"noreply@github.com"
] | Hanyi-Wang-DarkStardust.noreply@github.com |
ecc8749699fe141989a90ac24d76dcd3e87327a3 | ea9d4ace4b706025c1069a350e4b3b0182022c70 | /hogwartstest/hanshu.py | ec7ec87061dcc5df064d4fc701c98e15a8c96422 | [] | no_license | 442920785qqcom/lagouerqiproject | a312ccca50e40e7018d5b882fd38a587a9a0da1e | 00d7ce9cb0c40414cea334fafe0988b088ed7f6d | refs/heads/master | 2022-11-14T17:37:31.806420 | 2020-06-27T16:08:27 | 2020-06-27T16:08:27 | 273,691,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | """
1.没有返回值的函数,返回值为NONE
"""
def test():
print('a')
print(test())
"""
2.有返回值的函数,t的值为11
"""
def test1(a):
return a
t = test1(11)
print(t)
"""
3.return语句不带参数,返回值为NONE
total的值为NONE
"""
def test2(a, b):
total = a + b
return
total = test2(1, 2)
print(total)
"""
4.有参数的函数
"""
def test3(a):
... | [
"442920785@qq.com"
] | 442920785@qq.com |
5095f0660d9382f5d1d97384535279c1d362de76 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/SHOffer/YCHF_KCBYCHF_SHBP_356.py | 5d466bcc423c69283f3b9c0e2fe9973b9b6699aa | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"418033945@qq.com"
] | 418033945@qq.com |
cd1a0b346588b26e5e3c55941f16f664ac60c8e5 | 81724f74e7603476c887dbdc2bfe2e913ee50334 | /fullAnalysisRoma/python/run_TaP_crab3.py | 4ecec855d120e97545029b1daf00a90fdaf52aa3 | [] | no_license | michelif/diphotons | 7fa6ccc826f212f7e9900f870cc85a7e13738893 | 6102de180e1c1743aca6df6b197aa5aa459dc68f | refs/heads/master | 2020-06-16T18:36:39.747819 | 2017-09-05T15:42:15 | 2017-09-05T15:42:15 | 75,076,132 | 0 | 4 | null | 2016-11-29T11:45:23 | 2016-11-29T11:45:23 | null | UTF-8 | Python | false | false | 1,223 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_('General')
config.General.requestName = 'EXOSummer15_diphotons_746p2_DoubleEG_Run2015B'
config.General.transferLogs = True
config.General.transferOutputs = True
config.section_('JobType')
config.JobType.pluginName = '... | [
"simone.pigazzini@live.it"
] | simone.pigazzini@live.it |
0b88ec4badafd9b2ae3dca8979aed0160c9e81ee | f3f7fc5bf1d5657e7a67e46aee4b105198767889 | /manage.py | f0c87e8e4ef01a8361270108fde7443535393ad4 | [] | no_license | xjr7670/12306 | a2a16b73ce3cdb8ff1f8646429c2dc40716706fb | 32f065798732de744ef3a66739598af53a63bb32 | refs/heads/master | 2021-01-21T02:55:53.997748 | 2016-09-24T02:07:23 | 2016-09-24T02:07:23 | 68,806,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python3
#-*- coding:utf-8 -*-
from app import create_app
from flask_script import Manager, Shell
app = create_app('default')
manager = Manager(app)
manager.add_command("shell")
if __name__ == '__main__':
manager.run()
| [
"xjr30226@126.com"
] | xjr30226@126.com |
00dea2bb991d68b96082803872b34674e89ada10 | fc71364e0de02b1a4cc60a380491ed15a361ad35 | /doRPC_new.py | 9fc055b38c382c1ca3be451ad319380b86a4926d | [] | no_license | minimrbanana/evaluate_RPC | c1dbcdde14daa41a9a85aabdfb2a5f62d1e86d6f | 4d08e26881cb88b2915b92d24365a3b741119b48 | refs/heads/master | 2021-01-17T16:02:37.703124 | 2016-06-24T08:53:25 | 2016-06-24T08:53:25 | 61,871,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,818 | py | #!/usr/bin/python
import os, sys
from AnnotationLib import *
from optparse import OptionParser
import copy
# BASED ON WIKIPEDIA VERSION
# n - number of nodes
# C - capacity matrix
# F - flow matrix
# s - source
# t - sink
# sumC - sum over rows of C (too speed up computation)
def edmonds_karp(n, C, s, t, sumC):
# ... | [
"zhongjie@wks-12-55"
] | zhongjie@wks-12-55 |
1df1cb69e5662a3b18bd470f7e50d0264f562071 | d6a7059a19c3d940f69b9acbe0c11044a41f94fe | /minmaxwrapper.py | f0fa1920d195ca3313bca2afb89043ee01452605 | [] | no_license | ptut-morpx/morpx | f92600cde714ed2e98e685cf7a37cbe6a6f471bd | 17b882c129923445ef353b390770bce67621923e | refs/heads/master | 2020-04-20T13:00:45.338623 | 2019-05-16T14:44:21 | 2019-05-16T14:45:02 | 168,857,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | if __name__=='minmaxwrapper':
from engine import Player, Game, State
from minmax.minmax import Minmax
else:
from .engine import Player, Game, State
from .minmax.minmax import Minmax
def install(game, boi, depth=3, weights=[1, 1, 1, 1]):
finished=False
def onEnd(game, winner):
finished=True
def onTurn(game... | [
"nathan.decher@gmail.com"
] | nathan.decher@gmail.com |
ebf10c635faeba2b5910b7e187fea1e9f26f56e4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/107/usersdata/195/52193/submittedfiles/questao3.py | 3ebb503b6b1fa43bc646831b23a3e4d72dde619d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # -*- coding: utf-8 -*-
p=int(input('digite p:'))
q=int(input('digite q:'))
contador=0
i=2
while i<p:
if p%i==0:
contador=contador+1
i=i+1
while i<q:
if q%i==0:
contador=contador+1
i=i+1
if contador==0 and p%2!=0 and q%2!=0:
print('S')
else:
print('N')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
95773dd8e69e486b1b58a8faf9ab464dfcc7785b | d7e2e07ea4b139bb70b99a79e34d44f8bca1e08f | /regex_operations.py | f22668cac6280a985a99c1630547a10167dc2f38 | [] | no_license | sriram10792/Lighting_label_verification | b38030790f2471d78d3de237cde0e106350e58b3 | 04f7781ce3736767ea4905ca47f14909c4e15a73 | refs/heads/master | 2020-04-15T13:20:56.027844 | 2019-01-08T18:54:43 | 2019-01-08T18:54:43 | 164,713,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | #To check for model match after performing few regex operations
import re
def reg_compare(data,model_number):
global rows_found
global results_df
global a
dataset=data
test_model=model_number
dataset_3=dataset.copy()
row_count=len(dataset_3)
rows_found=[]
... | [
"noreply@github.com"
] | sriram10792.noreply@github.com |
b4c299a4065fcde746b3f7843fc31b19b6eca454 | 22bf086e3e7d43b72f0d05aaa3359b766a688a79 | /workflow_simons.py | afc8b316ce4f06f00e2bb432169a8b48819982e7 | [] | no_license | kaspermunch/humanXsweeps | aa7a4e6a175be276713f17f79d7179a5dd644ff5 | 3a2c4aa496aaffa837eb15dd3d382f7712266f38 | refs/heads/master | 2023-04-07T13:36:11.619973 | 2023-03-18T08:05:18 | 2023-03-18T08:05:18 | 161,376,285 | 1 | 0 | null | 2023-01-11T14:12:39 | 2018-12-11T18:25:53 | Jupyter Notebook | UTF-8 | Python | false | false | 91,935 | py |
from gwf import Workflow
import sys, os, glob, itertools, re
from collections import defaultdict
#from pathlib import Path
from random import seed
seed(42)
sys.path.append('./scripts')
sys.path.append('./notebooks')
import simons_meta_data
import hg19_chrom_sizes
import analysis_globals
from templates import *
g... | [
"kaspermunch@birc.au.dk"
] | kaspermunch@birc.au.dk |
690313cbf83db05c3a09cb68f375a86b770771d5 | d548f1bde0d20dab787b59695e5467a44db1cef3 | /CarParkArcGisApi/CarParkArcGisApi/GetCurrentLocationApi.py | 8c5e60465173ffcf519b00b199168438cd385aaa | [
"MIT"
] | permissive | moazzamwaheed2017/carparkapi | 2f53ab5b823d9afa11adc14073d7e147ca1d1de6 | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | refs/heads/master | 2023-01-12T03:51:42.497815 | 2020-02-25T14:00:37 | 2020-02-25T14:00:37 | 236,687,771 | 0 | 0 | MIT | 2023-01-07T14:21:30 | 2020-01-28T08:20:00 | TypeScript | UTF-8 | Python | false | false | 345 | py |
import requests
ip_request = requests.get('https://get.geojs.io/v1/ip.json')
my_ip = ip_request.json()['ip']
geo_request_url = 'https://get.geojs.io/v1/ip/geo/' + my_ip + '.json'
geo_request = requests.get(geo_request_url)
geo_data = geo_request.json()
print('Latitude: ' + geo_data['latitude'])
print('Longitude: '... | [
"moazzamwaheed@gmail.com"
] | moazzamwaheed@gmail.com |
3286aaf84d933eee965302b09c1ddf8f8533c4fb | 4198c73550feb3feb8cbc3b2377f0cef85904391 | /dnscat/parser.py | b670ece7be01a9119e7a66e1399f9294f0813a40 | [] | no_license | sleirsgoevy/cc2020 | a820c6516e3e1d5708724d50c45c655ed9179544 | 8b71c4eda9fa797fcf087cc9030ffa45e49268bd | refs/heads/master | 2022-12-20T21:48:22.101590 | 2020-08-31T13:42:59 | 2020-08-31T13:42:59 | 291,726,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import dnsq2
for i in open('dnses.txt'):
pkt = eval(i)
data = dnsq2.decode_response(pkt)
if data[1] == dnsq2.DIG_CNAME:
print(data[0], 'CNAME', dnsq2.parse_cname(pkt, data[2]))
elif data[1] == dnsq2.DIG_TXT:
print(data[0], 'TXT', dnsq2.parse_txt(data[2]))
elif data[1] == dnsq2.DIG_M... | [
"sleirsgoevy@gmail.com"
] | sleirsgoevy@gmail.com |
622ead4d3b921e111a6b73c10fc7697055810632 | 4c583db8d1a8c8c84f9751de068632a90a3d85b8 | /aoc/2018/day11/part_2.py | 64d7b22ee11de74ceec6328c2f4b059095017b93 | [] | no_license | pvrs12/junk | 702d5762e38c8409c988264318b25b1b37fc0993 | ff48f764dcaca970bca5f98011257f6653f740b8 | refs/heads/master | 2020-05-21T04:42:11.559256 | 2018-12-21T00:46:18 | 2018-12-21T00:46:18 | 46,739,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # from itertools import range
def calc_power(x, y, serial):
rack = x + 10
power = rack * y
power += serial
power *= rack
if power < 100:
power = 0
else:
power = int(str(power)[-3])
power -= 5
return power
max_v = 0
max_x=0
max_y=0
max_r=0
n=301
grid = [[[0 for k in ran... | [
"pvrs12@gmail.com"
] | pvrs12@gmail.com |
9f9dc4a5884c478bd722643592074af7811098f6 | 4bc48e8e36d91752fc56efe00d7c11d38c6fb6b2 | /week2/printrandom.py | 5101b7fcaf6fe8a63c1191c16b4a5ac4c4b808f2 | [] | no_license | Artigmann/dotfiles | 90686e7fe678357f0ed44fd48d80f560c07844a8 | d79937c070295f603ea3014465da83022193c67f | refs/heads/master | 2016-09-01T09:48:12.305328 | 2015-11-13T12:14:46 | 2015-11-13T12:14:46 | 43,459,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #!/usr/bin/env python
"""
Prints random uniform number from -1 to 1.
"""
from random import uniform
print "{:.4f}".format(uniform(-1, 1))
| [
"yrjans@gmail.com"
] | yrjans@gmail.com |
1fb23b2832fa8ad3d8b5f3b2757274ad1463a27e | 02862f0b86638cd4e252bfd6bb92be931c10d569 | /algorithms/arrays/next_permutation/next_permutation.py | 1ad5e3cd64ea4b8252e014e068282398962daa08 | [] | no_license | Himstar8/Algorithm-Enthusiasts | ceb65df893d668a59018cbda278c3a03622a6311 | d3634daa7676e5a06646e0dbfc4ed30dac18ca9d | refs/heads/master | 2020-07-09T16:44:50.520423 | 2019-03-21T18:20:10 | 2019-03-21T18:20:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | def next_permutation(nums):
def find_min_larger_index(idx, n):
while idx < len(nums) and nums[idx] > n:
idx += 1
return idx - 1
i = len(nums) - 1
while i > 0 and nums[i] <= nums[i-1]:
i -= 1
if i == 0:
nums.reverse()
else:
idx = find_min_larger_in... | [
"zachliugis@gmail.com"
] | zachliugis@gmail.com |
1ad56451c606e61c3c242b3bcee2e4d2658715e0 | 393988ecbc84cc99941aa7e8b77f9035a694c5e2 | /autotest/pymod/webserver.py | 2d699502c5a13f37cff19f0b41cf7e28cf967fd7 | [
"MIT"
] | permissive | rbuffat/gdal | 625f29339aa3401fc02500ccc16969459aad1f76 | 9a563c54787d72271140150880227918ed141d34 | refs/heads/master | 2021-07-10T07:13:35.754922 | 2018-04-13T17:09:02 | 2018-04-13T17:09:02 | 129,447,856 | 0 | 0 | null | 2018-04-13T20:01:27 | 2018-04-13T20:01:27 | null | UTF-8 | Python | false | false | 14,441 | py | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Fake HTTP server
# Author: Even Rouault <even dot rouault at mines dash paris dot org>
#
##########################################################################... | [
"even.rouault@mines-paris.org"
] | even.rouault@mines-paris.org |
b0dc8fb9f2c594475c812fd9caf3e45d2e9fd16f | ec84ccb07890d5f3cf7b80cd0725875f213ab460 | /attendance/views/master/overtime_master.py | fc706e86aa8d2c12aa3e2a3b99d05ab1e2310da2 | [] | no_license | Imam-Hossain-45/hrm_app | c7a87e0e0572093dca47227c399cd3366bdf5ee9 | cde39d6638b5c14555913d263f6b544522added1 | refs/heads/master | 2023-08-03T05:22:23.398967 | 2021-09-07T15:09:56 | 2021-09-07T15:09:56 | 404,022,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,446 | py | __all__ = [
'OvertimeMasterListView',
'OvertimeMasterCreateView',
'OvertimeMasterUpdateView',
'OvertimeMasterDeleteView',
]
from cimbolic.models import Variable, Formula
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.forms import inlineformset_... | [
"imamhossain1310@gmail.com"
] | imamhossain1310@gmail.com |
aca3456ef40233f8108e92ebc0d3b876077facde | 0667449306c250d763f53aa2aa6375e6b2d24f28 | /lda_analy.py | b2cc107e37a728dd457fec1a81177a16f9623cc2 | [] | no_license | xulangping/shmily-lstm-wordsim | d2eae8717749187a2ee38b4430655d8b83a369a9 | bab92360bf0c1c410113bca02637b291b784743a | refs/heads/master | 2022-10-20T11:17:17.003244 | 2020-06-10T15:51:28 | 2020-06-10T15:51:28 | 271,318,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | from sklearn.decomposition import LatentDirichletAllocation
from sklearn.feature_extraction.text import CountVectorizer
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import math
import os
path = '/Users/xulangping/Downloads/nls-text-encyclopaediaBritannica'
df1 = pd.read_csv('data_all.csv')... | [
"xulangping@B-Q3UJMD6M-0605.local"
] | xulangping@B-Q3UJMD6M-0605.local |
de183b0867da57105653f428107297793038dc43 | 63d6a6809773c49edee2894fbe45915763756f90 | /authlib/admin_oauth/views.py | 5faeec307539ae210eeb130ba46e959308b12173 | [
"MIT"
] | permissive | barseghyanartur/django-authlib | faaba71d80bec3331f9cd1dcd745dbff0ff96f6b | 4b4159eba619f6174d1f1e1cf33adf4893fa2315 | refs/heads/master | 2021-08-23T08:22:56.390862 | 2017-12-04T08:52:50 | 2017-12-04T08:54:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | import re
from django import VERSION
from django.conf import settings
from django.contrib import auth, messages
from django.shortcuts import redirect
from django.utils.http import is_safe_url
from django.utils.translation import ugettext as _
from django.views.decorators.cache import never_cache
from authlib.google i... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
d935def320d855e04d6653648a09d46bda7d5817 | 8c42eaeb1cf21146276ed827c3f04f9cddda7d75 | /script/test_system.py | 4db9d1380ea6d51dfd63bebff660cad505a8ead9 | [] | no_license | 8W921E1021I/disk-F | 4d1331933aaaa7b3f489b803cb358fa1ba04930a | 464e7b5f7725aacb215c5dd45ea38020ab6a0591 | refs/heads/master | 2020-12-02T20:59:09.482246 | 2017-07-05T13:10:32 | 2017-07-05T13:10:32 | 96,239,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,219 | py | import spade
from os.path import dirname, join
from os import mkdir
import os
from pypower.loadcase import loadcase
from math import exp
import numpy as np
import pandas as pd
import time
import math
import matplotlib.pyplot as plt
import datetime
import dateutil, pylab,random
from pylab import *
f... | [
"noreply@github.com"
] | 8W921E1021I.noreply@github.com |
f86e2edac18dd5a144ac9e4e8e186ac315bc9758 | eb85b501de159dd2c549e4d2433a03592aae5e15 | /evernote_to_sqlite/cli.py | b2c550e3c6c38a26941cd9359960f032d9af4bb7 | [
"Apache-2.0"
] | permissive | ktaranov/evernote-to-sqlite | f6b3912da78ee74afcf9a43b4b2b2db05eba05c7 | 92254b71075c8806bca258c939e24af8397cdf98 | refs/heads/main | 2023-01-20T04:32:42.877585 | 2020-10-16T20:15:51 | 2020-10-16T20:15:51 | 319,658,620 | 1 | 0 | Apache-2.0 | 2020-12-08T14:11:02 | 2020-12-08T14:11:02 | null | UTF-8 | Python | false | false | 914 | py | import sqlite_utils
import click
import os
from .utils import find_all_tags, save_note, ensure_indexes
@click.group()
@click.version_option()
def cli():
"Tools for converting Evernote content to SQLite"
@cli.command()
@click.argument(
"db_path",
type=click.Path(file_okay=True, dir_okay=False, allow_dash... | [
"swillison@gmail.com"
] | swillison@gmail.com |
247dba3edb99ed499d9177b7581f4f26ec45e5ed | 52bb10ee7d49dfa81b428fb9698de1b4a742d6d4 | /Codechef/Practice Problems/20_chefRemisness.py | 7c728a5feff12d044113187342cd51e72e54f19a | [
"Apache-2.0"
] | permissive | Sheetal777/ds-algo | a2141c65c9571d8dd598d1867d0ffa8cc088d79e | c26896fd308d48b39092a2e62a07923f4f9abf3f | refs/heads/main | 2023-03-08T18:07:57.106286 | 2021-02-21T18:26:49 | 2021-02-21T18:26:49 | 312,129,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | for t in range(int(input())):
a,b = map(int,input().split())
if a > b :
print(a ,a+b)
else:
print(b ,a+b)
| [
"noreply@github.com"
] | Sheetal777.noreply@github.com |
5a5ac3f3cf3168bcd1f6664d29d3190000f99ce7 | 20904031d6d5ace07de3184ec5c03948c791dc82 | /2 - Aprendizado Supervisionado/2 - Classificação/kernel_svm.py | 6d5a8f8c7bddf040ef503d614872c9cf7e20b47c | [] | no_license | sziliotti/Curso-ML-Cetax | 1c78381d7a5248353af171ca33371d85a9cbde95 | e18b7668eab1ad8a991d85043283db4a676ea6ee | refs/heads/master | 2021-07-22T21:52:13.122852 | 2017-10-31T23:18:24 | 2017-10-31T23:18:24 | 106,128,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | # Kernel SVM
# Importando as bibliotecas
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importando o dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Dividindo em conjunto de treino e teste
from sklearn.cross_validati... | [
"sziliotti@gmail.com"
] | sziliotti@gmail.com |
739340323de5049f497694478d0336dab616ff62 | 4efaf39b2f95e227f9b710449d293a03cb69fa2a | /FireLeak/WLS/scraper.py | ebce3360649d0404c691f765231f6db330b2a207 | [] | no_license | spuqe/firebase | 1f63c6cde1babafb52c50ca45e6a7e443bd79714 | f8bbfb0bd22b0b15b43347614704f9f54a6db1d8 | refs/heads/master | 2023-02-08T19:23:19.994364 | 2020-12-30T19:58:44 | 2020-12-30T19:58:44 | 287,110,526 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | import os
import sys
import time
import string
import argparse
import itertools
# Made by agusmakmun
# Modificated by spuqe to work on FireLeak project
def createWordList(chrs, min_length, max_length, output):
"""
:param `chrs` is characters to iterate.
:param `min_length` is minimum length of characters.... | [
"noreply@github.com"
] | spuqe.noreply@github.com |
a9221ed4b7a9c89294debbcd8f295e48195a8098 | 9a9cffc79943e1846cfb2b7463b889aac102fcfe | /quickunit/vcs/git.py | e2d0143ff6c0ef3f14ee2b3d8262511f10e9f17b | [
"Apache-2.0"
] | permissive | dcramer/quickunit | 5c7483f7b33758df3bc3181409ec95fb2c3f87e1 | f72b038aaead2c6f2c6013a94a1823724f59a205 | refs/heads/master | 2020-05-17T09:20:43.604622 | 2013-07-29T21:32:50 | 2013-07-29T21:32:50 | 3,350,340 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from subprocess import Popen, PIPE, STDOUT
from quickunit.diff import DiffParser
from quickunit.vcs.base import ChangedFile
def parse_commit(parent=None):
if parent is None:
parent = 'master'
proc = Popen(['git', 'merge-base', 'HEAD', parent], stdout=PIPE, stderr=STDOUT)
parent_revision = proc.... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
d55ff4259d9907a3b4f3e14bec0b2d66025d4286 | 918dc00e174afe861e797c4fec059de5c7048ee0 | /caesar.py | 45e6cd5131eddc62e6dea22040d68f56ecc711e0 | [] | no_license | bchisomsvi/web-caesar | 593db87edf7c6c32cfc931861e532e106a1d9605 | 5e2c3a255b9cf778e4c7588737758b676ad3da51 | refs/heads/master | 2021-07-04T21:38:13.580111 | 2017-09-27T21:32:18 | 2017-09-27T21:32:18 | 104,604,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from flask import Flask, request
def alphabet_position(character):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
lower = character.lower()
return alphabet.index(lower)
def rotate_string_13(text):
rotated = ''
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for char in text:
rotated_idx = (alphabet... | [
"BrandonAdmin@Brandon-10.deckisnet.com"
] | BrandonAdmin@Brandon-10.deckisnet.com |
96940db9386ddb1089016400e3a545dda5a13801 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/Lbr/br-66_MD_NVT_rerun/set_1ns_equi_1.py | 4a79ed1108775404ea3880b83c80a1b28ee355a5 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/Lbr/MD_NVT_rerun/ti_one-step/br_66/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
fo... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
d3d1c831f63c2c3134ede70ab7c0b02b62d99b41 | c863a1349cde0217459fde44d969df7f04c8e57d | /tb/test_axis_eth_fcs_check_64.py | f05d1d677984fed35bdf5b4532f0129b23460834 | [
"MIT"
] | permissive | hermixy/verilog-ethernet | 5c09e4cb94590bc858a716ef764fd3776aad693d | b3f50ac2c724763c1c30ed9c33a3489517b7d457 | refs/heads/master | 2020-04-04T20:01:52.758794 | 2018-11-02T07:40:15 | 2018-11-02T07:40:15 | 156,231,015 | 1 | 0 | null | 2018-11-05T14:29:18 | 2018-11-05T14:29:17 | null | UTF-8 | Python | false | false | 12,125 | py | #!/usr/bin/env python
"""
Copyright (c) 2015-2018 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify,... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
27436bf65203665f1e775cd08464696bf984e191 | 67612c27c6d79ae180a5bc266833899abfefe9f5 | /面试题64. 求1+2+…+n LCOF.py | d42954a5bf567328df88e46091a401b867c5b820 | [] | no_license | Katherinaxxx/leetcode | 7e9d0bd7dc613a824116f1247f42bfc33e485ff3 | dcebf49d1e024b9e69c4d9606c8afb32b9d07029 | refs/heads/master | 2023-01-27T20:14:09.459296 | 2023-01-08T07:01:53 | 2023-01-08T07:01:53 | 215,688,672 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2020/6/2 上午11:20
@Author : Catherinexxx
@Site :
@File : 面试题64. 求1+2+…+n LCOF.py
@Software: PyCharm
"""
"""
求 1+2+...+n ,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。
"""
# math (1+n)n/2 O(1)time
class Solution:
def sumNums(self, n: int) -> int... | [
"359391236@qq.com"
] | 359391236@qq.com |
61d3b8f161b20a43c212230f387424d23e2ccf8a | db4247acc9bcaeb1527f2dbbd4c0067cfa4fb242 | /test/general/test_strings.py | 75ce4fabe6359f59557189d3d37e95ca1a96088a | [
"Apache-2.0"
] | permissive | skimhub/aws-utils | 50167c46a27dea9a5615896ad68a2053f71fff5c | 5496a7594ab90b1e658e8f9f8137e8943a39be1e | refs/heads/develop | 2020-04-05T11:44:44.785548 | 2017-08-14T10:19:59 | 2017-08-14T10:19:59 | 48,230,410 | 0 | 0 | Apache-2.0 | 2019-12-06T09:27:09 | 2015-12-18T10:56:13 | Python | UTF-8 | Python | false | false | 1,053 | py | # -*- coding: utf-8 -*-
import pytest
from aws_utils.general import strings as string
@pytest.mark.parametrize(('input', 'expected'), [
('', []),
('1234', ['1234']),
('abcd', ['abcd']),
('abcd efgh', ['abcd', 'efgh']),
('25 tests', ['25', 'tests']),
# preserves order of words in phrase
('... | [
"noreply@github.com"
] | skimhub.noreply@github.com |
6c81abb15ec51ae8ae2a373c103ac12960f24f05 | 0692cad11e14cced91b3731f63f46cb40199fd2f | /data/SALUS_output/0030_waterSA/0056_thetaC/03.45_SALUS_check_HPC_success.py | 6e7740f237ac063a5ce7de21eaa7095cca4d67a2 | [
"MIT"
] | permissive | jdeines/Deines_etal_LEMA_SALUS | 086937272d1370143792e1d4ba29a24e9a34c625 | 02ddbeca2d8f8bf7c13b3d00a9d5b4ddead074cf | refs/heads/master | 2023-03-04T02:06:58.845507 | 2021-02-09T06:59:18 | 2021-02-09T06:59:18 | 256,809,111 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | ####
# Lydia Rill
# updated 11/07/2017
# python 2.7
#
# This script looks at the scratch directory and checks if all the results (each state, chunk, and scenario) exist.
# It also checks to see if the log file end with "completed" or has been stopped unexpectedly with some error.
# if the result does not exist ... | [
"jillian.deines@gmail.com"
] | jillian.deines@gmail.com |
b192aa00bb558a094f7938faf8ec38fe54cca3d0 | 7fa7362ca02ac2432bab47aefd8ed637968a263f | /exercise5代码.py | 73d026bf329ec2c826c21ffbf0c58cbdb27ea413 | [] | no_license | LIWEI233/computationalphysics_N2014301020157 | d7c0124098c27e42aac82f1710c4cc452e686b5a | ede515a9bfd9a691d400252b878c3532c6084beb | refs/heads/master | 2020-04-11T09:57:02.491318 | 2017-01-06T13:37:29 | 2017-01-06T13:37:29 | 68,107,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import pylab as pl
from math import*
class cannon_shell:
def __init__(self, time_step=0.1, initial_velocity=1000, initial_vx=707,initial_vy=707,grav = 9.8,B_m=0.00004,a=0.0065,T=300,arf=2.5):
self.v = [initial_velocity]
self.g = grav
self.bm = B_m
self.a = a
self.T = T
... | [
"noreply@github.com"
] | LIWEI233.noreply@github.com |
68ac2c2bcee515d0ccbaf4e9b1ee1274ef800694 | 3c733b6f87122d1d9554adef58903ee0c856b071 | /handlers/packagehandler.py | 838658ae05515afed5f0d9045e70d45a75a8e535 | [] | no_license | antoniobarbuzzi/acid | 732e202e9021c5346af5b66e9ab1ce752bd026e7 | 53fe219fa125d738f21d8f4e84a416aa4308a7de | refs/heads/master | 2020-05-31T21:52:15.549646 | 2012-04-17T13:06:32 | 2012-04-17T13:06:32 | 3,652,157 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Antonio Barbuzzi"
__copyright__ = "Copyright (C) 2012 Antonio Barbuzzi"
__license__ = "GPLv3"
__version__ = "0.1"
import abstracthandler
import fabric.api
import fabric_libs.fab_utils
class PackageHandler(abstracthandler.AbstractHandler):
def __init__(se... | [
"antoniob82@gmail.com"
] | antoniob82@gmail.com |
72492bbc4449400e796665a80b2cffde0eefcb10 | 35c0ccc43740f858a935d4ce1a29449b3a71aa80 | /Memory_Test/old_memory.py | d68c9b08ab8ee08421e8c93acfa8c275319012a6 | [
"MIT"
] | permissive | CaptainFalco/Computer-Architecture | 1f09541c6ce213e701e58401ee849edea75f8076 | 66e360f021ed85162bb663d66ba6b8c1303da996 | refs/heads/master | 2021-04-12T08:27:10.574397 | 2018-05-02T12:43:50 | 2018-05-02T12:43:50 | 125,896,327 | 0 | 0 | MIT | 2018-05-02T12:43:51 | 2018-03-19T17:35:00 | Python | UTF-8 | Python | false | false | 2,446 | py | #!/usr/bin/python
# Open our instructions.txt file to read and obtain our instructions
from operations import operations
import sys
file_name = "instructions.txt"
try:
file = open(file_name, "r") # open file stream
except IOError:
print ("There was an error writing to", file_name)
sys.exit()
file_text ... | [
"falco.joseph10155@gmail.com"
] | falco.joseph10155@gmail.com |
a113f6ddabf9a79476bbda3120a7098aef56cbdd | 42705dad77dc092c62c463923dd6475116d343ee | /venv/bin/easy_install | 34ce9c72d2959d0b1504f59ec3abbb4d37c811d5 | [] | no_license | KimChunsick/Swp2-ADProject | 0a29be0adc70307873052464e237d36959f8b52a | 1aecf97e1585b986fc06ebc93b2ed317bba814cc | refs/heads/master | 2021-10-08T08:29:02.172641 | 2018-12-09T19:24:33 | 2018-12-09T19:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | #!/Users/proal/Desktop/ADProject/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"codevillain@naver.com"
] | codevillain@naver.com | |
eb391841dfec4fc0c7245010ddc0a470e83c44ae | 94db6c6a1c5343c4a59d39e17e574024e6cd5102 | /fibs.py | 5a48e0490b7c2503fa8367dda21e24849d47a9b7 | [
"BSD-3-Clause"
] | permissive | yurkao/joelgrus-fibonacci | d63a858d9d47ca9758a35cefaf9cab4d508c3390 | 8b949c4ba7fbf640dabb4c07d1bee1f963c5a5c0 | refs/heads/master | 2023-01-08T22:06:44.087286 | 2020-11-07T20:46:27 | 2020-11-07T20:46:27 | 310,924,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | from itertools import accumulate, islice, repeat
from typing import Tuple, Generator
def next_fib(prev_res: Tuple[int, int], _) -> Tuple[int, int]:
"""
Produces next pair of Fibonacci numbers
:param prev_res: previous pair of Fibonacci numbers (F[N-1], F[N])
:param _: ignored
:return: next pair o... | [
"yurii.oleynikov@verint.com"
] | yurii.oleynikov@verint.com |
5740cf426f53f5ded184e9b93c395a2990a7b582 | 2758788bdd9a3a493a38d8ffbbf24231a2b6c3b6 | /risk/graphics/__init__.py | 728236ff065a3b37135c4eef8e60b78f6f6f2a77 | [] | no_license | AxisAndAllies/risk | 0e0e2c771fc1baeee32ff84b7ff1aea55476f4e2 | 6fe2ea640aa6796039f267d37802d293c0b23fc8 | refs/heads/master | 2021-03-23T21:24:19.509373 | 2020-03-15T16:24:23 | 2020-03-15T16:24:23 | 247,485,236 | 0 | 0 | null | 2020-03-15T14:43:03 | 2020-03-15T14:43:02 | null | UTF-8 | Python | false | false | 28 | py | from risk.graphics import *
| [
"chuang.k.tang@vanderbilt.edu"
] | chuang.k.tang@vanderbilt.edu |
8dc8c4d4aaad3c923a9bc8a27a489a7b2f263aaf | 76afa70a5cc0efe8ab12eb81ab6f6d73af3548ff | /robot/behaviors/test_goto.py | ecb90b66bdff15e97a0a6eda8e1943cbbf51b885 | [] | no_license | jblee123/RoboSim_python | 8e1e277f61ab3e1c48251ffa8f14f153386eaeb0 | fb015bbf75eca7ec8a5bedd2f9fe0f76206735f9 | refs/heads/master | 2021-01-10T00:53:47.604861 | 2013-09-06T00:10:36 | 2013-09-06T00:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | from behavior_imports import *
#from avoid_obs import *
#from get_obs import *
################################################################################
class TestGoto(Behavior):
def __init__( self, name=None ):
Behavior.__init__( self, name )
self.move_robot = MoveRobot(
... | [
"blee@linux-dev-1.(none)"
] | blee@linux-dev-1.(none) |
c2bbe5c2c80a3218d3174224359a336702b77287 | 2566999443b7a9ec9ab8d674fee2d7088b810aec | /Python/13. Roman to Integer/romanToInteger.py | f97489b9ea6335587041667c8c58b26f715759d7 | [] | no_license | ws3109/Leetcode | 1f27fbd020fdc5a51e395a368dfd9bccc11bda88 | 0c1419550777dfa5f707887bc5c766e171dbc036 | refs/heads/master | 2021-05-08T07:19:11.586438 | 2017-11-03T03:53:34 | 2017-11-03T03:53:34 | 106,742,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class Solution(object):
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
'MMMCM = 3900 = 3000 + 100 + 1000 - 200'
l = {'I':1, 'V':5, 'X':10, 'L':50, 'C':100, 'D':500, 'M':1000}
num = 0
for i in range(len(s)):
num += l[s[i]]
... | [
"noreply@github.com"
] | ws3109.noreply@github.com |
0c6b797449a22309a265e557ebd1dadf4115400b | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/BLOG/Data-Structures/1-Python/Python-master/linear_algebra/src/rayleigh_quotient.py | 69bbbac119e80d48a3cd1670171c31e6020d8d95 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,451 | py | """
https://en.wikipedia.org/wiki/Rayleigh_quotient
"""
import numpy as np
def is_hermitian(matrix: np.array) -> bool:
"""
Checks if a matrix is Hermitian.
>>> import numpy as np
>>> A = np.array([
... [2, 2+1j, 4],
... [2-1j, 3, 1j],
... [4, -1j, 1]])
>>> is_hermitian(A)
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
abcf3e1e92b77456a927ebf49074037629e7384a | a1813b83ae931af35aff08bbcd6d90a52efa16f1 | /CountingWords.py | 915a56d413dcb176004dddcad4bc71ab2dee0523 | [] | no_license | Hershey15620/CountingWords-Harshil-Shah | 0badaeb1be3ff4bf0287945a4cc45cc1a68817af | 83f47f873b5333c579329ced9c07a9f584bda8d5 | refs/heads/main | 2023-05-01T11:16:15.405938 | 2021-05-13T00:58:55 | 2021-05-13T00:58:55 | 366,893,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | letterlist= input("enter string-")
Ccount=0
Wcount=1
for i in letterlist:
Ccount= Ccount + 1
if (i==" "):
Wcount=Wcount + 1
print("number of words in the string", Wcount)
print ("number of characters in the string", Ccount)
| [
"noreply@github.com"
] | Hershey15620.noreply@github.com |
9ea5f261da0ba782b238638a54b7846718445b3a | d0ec1fd74384f9164a9d99978c0cb4e13ae93d16 | /listas/lista-de-exercicio-02/Questao3.py | 5c30c403dc34b5693b1adb24f9445e52bf119ac7 | [] | no_license | NaraJulia/programacao-orientada-a-objetos | c595b31a0ba205269403984603a1bfb8f8863eda | 7397f3b3c3a48df19f94ed04ffe34e84e66f8e57 | refs/heads/master | 2020-08-21T01:07:34.197270 | 2020-03-19T20:40:17 | 2020-03-19T20:40:17 | 216,084,833 | 0 | 0 | null | 2019-10-18T18:29:07 | 2019-10-18T18:29:07 | null | ISO-8859-1 | Python | false | false | 193 | py | Questao 3
numero1 = int(input("Digite um número:"))
numero2 = int(input("Digite mais um número:"))
soma = (numero1 + numero2)
print("A soma dos numeros que você digitou é {}".format(soma)) | [
"narajuliafd@gmail.com"
] | narajuliafd@gmail.com |
12b17b67933a65c674641525b4b97b482e199282 | 0e52e14289e2eab798796a65f59e29e115689f50 | /GridSearchANN.py | 1c917ba858d30893e6b14dff4ddd4c2fef668c60 | [] | no_license | khorshidisamira/Audio-binary-classification-with-VAE | 371edf7d69e51878456b011baa393f1220e46b97 | d1d0e9253e33cd60b8eca851b804640c54cd48ec | refs/heads/main | 2023-07-23T03:49:11.647842 | 2021-09-01T19:53:00 | 2021-09-01T19:53:00 | 402,184,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
# Input data files are available in the "../input/" directory.
# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory
import os
for dirname, _,... | [
"noreply@github.com"
] | khorshidisamira.noreply@github.com |
8c480b2078a66abf54ce6123771ccd4e01ab3ecb | e05552e5ed1b8376187530804f95e56e1ce0d4ce | /src/nlpserver/urls.py | 2d7bb5ec5518da45d361e9f47fc675af5b4e65a0 | [] | no_license | harshgupta6789/NLIDB | bc15c3d0ce2af5e95cf3d1bda8c049aa8fc85e52 | 03b81dae1a0d53f6fcc778eb30ddfac93ecdeeb0 | refs/heads/main | 2023-05-13T11:12:35.949304 | 2021-06-01T09:10:10 | 2021-06-01T09:10:10 | 346,608,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """nlpserver URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-bas... | [
"harshhvg999@gmail.com"
] | harshhvg999@gmail.com |
4daacc6c8ece1b43de88c13d962aed6fcaab8bc7 | 44ba2c6848ff6416eb2a9b33954c47f9cf32208c | /populate_rango.py | ee4b3bd766c072d1a2041faf230a45885cb85a9b | [] | no_license | brodiee121/tango_with_django_project | ab0e70fb51041dd40fae1ff544886059800c0aba | 357e35dd72af3cc221e1a05dda6c18a4ce7b6817 | refs/heads/master | 2021-05-05T11:06:54.919347 | 2018-02-09T12:12:23 | 2018-02-09T12:12:23 | 118,112,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_pages = [
{"title": "Official Python Tutorial",
"url":"http://docs.python.org/2/tutorial/",
... | [
"dvieuan@gmail.com"
] | dvieuan@gmail.com |
ea2a94b11e56c33af059b4ac58bd339d2236378b | 2291be1c847169ebb4f9fde7d8f2251be73a3000 | /myapp/migrations/0004_user_image.py | 203a89900f3e477c2ca0057a85303c7847c89274 | [] | no_license | pythondjango45/eCommerce | 66253ad68c4ac0c488a8ae73836963b8cc76756b | 1f7d94ab7b5410d358c43bc97fb6603d698f6016 | refs/heads/master | 2023-01-02T05:20:59.498253 | 2020-10-23T06:57:09 | 2020-10-23T06:57:09 | 305,934,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.2 on 2020-09-18 07:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_user_usertype'),
]
operations = [
migrations.AddField(
model_name='user',
name='image',
fiel... | [
"pythondjango45@gmail.com"
] | pythondjango45@gmail.com |
0045816b540327646114c819f236b4e0032bbcba | a835dfcd4b5141b897b0219a71a43684923e7adf | /FaceAndGestures/create_csv.py | cc2b60221f150e3deb43fe9ade9964a81e760a57 | [] | no_license | Sen5or/Gestures | 3b2629853995bee9862efa2c9d0fbbaf8e11c2c8 | 8fcc1bce06b981a87c1de24970647a5e076fe1b8 | refs/heads/master | 2021-01-11T18:18:58.571176 | 2016-11-29T20:04:26 | 2016-11-29T20:04:26 | 73,218,975 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import sys
import os.path
# This is a tiny script to help you creating a CSV file from a face
# database with a similar hierarchie:
#
# philipp@mango:~/facerec/data/at$ tree
# .
# |-- README
# |-- s1
# | |-- 1.pgm
# | |-- ...
# | |-- 10.pgm
# |-- s2
# | |-- 1.pgm
# | |-- ...
# | |-- 10.pgm
# ..... | [
"dpradhan@eng.ucsd.edu"
] | dpradhan@eng.ucsd.edu |
8eec71b4f37a5b21bd210943268a2e37dbc36ce0 | 3e26aaca959373ce573969c30b9ceebf3db709a6 | /Bank_Statement.py | 8411082e20663da4449debeffc07ab0d0b6ec94c | [] | no_license | ThompsonBethany01/Office-Space | 6431931b623cb41bcc8d4358d189766554d5024b | d44c1faee754116312244106b2f5b25a06734f07 | refs/heads/main | 2023-01-13T14:35:27.668933 | 2020-11-20T01:02:31 | 2020-11-20T01:02:31 | 303,010,095 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | # import modules to create data and take the pennies from the 7-11 tray
import Data
import Floppy_Disk
# import python modules
import pandas as pd
import numpy as np
# import date function for bank statement
from datetime import date
def print_statement(deposit):
'''
Prints the statemnt for the balance of ou... | [
"thompson.bethany.01@gmail.com"
] | thompson.bethany.01@gmail.com |
9692c978ca5be684df4575155b6cfb1ec054ea6a | fbab57f64c1d7c7955c943a77b36c05cfa15847f | /hw1/makeSubmit.py | 251a96109416fecaece8f36cd00291d06e746456 | [] | no_license | YuehWu1994/Maching-Learning-Course | a8ba9343de49cc72a8c5a740d659bd0b38abe2f9 | ea85b22dd9589a84337b188e9d55897c79133a24 | refs/heads/master | 2021-03-24T09:25:36.830617 | 2019-04-13T07:56:25 | 2019-04-13T07:56:25 | 84,269,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import sys
import csv
from numpy import genfromtxt
numFeature = 18
arg = True
def feaSelect(featureRow, trainFea, ans):
numFea = 1
tmpSet = np.zeros((featureRow, int(trainFea/numFeature) * numFea + 1))
pm2_5 = 9
for i in range(0, feature... | [
"noreply@github.com"
] | YuehWu1994.noreply@github.com |
a73e346c5cac0c71e55d98f155ff1f4f623f7a33 | b3ccb46054bd6e414de8089e41def1df9ec274c3 | /binomial.py | 1896db8391acf9c4dc0cc2c9e8ed0ed1526abfb5 | [] | no_license | emadsadeghi/STAT679Notes | 3b90d090e347ac26590e6e864356bafa4872cf0a | d6e17730c851f69c513d478a1269bd3c697d4081 | refs/heads/master | 2020-03-30T11:18:58.961288 | 2018-11-06T01:22:24 | 2018-11-06T01:22:24 | 151,167,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py | #!/usr/bin/env python
"""
This module calculates binomial coefficients of the form C(n,k).
Calculating binomial coefficients is not easy numerically.
The number of ways to choose k elements among n is C(n,k) = n! / (k! (n-k)!) where factorial n: n! = 1*2*...*n becomes very big very fast. But many terms cancel each o... | [
"ssadeghi@wisc.edu"
] | ssadeghi@wisc.edu |
dca00441258318c4cf8b785daa51c1119b996d6d | c4e409a24eafa9f5ce371d48b8a392ed0c791304 | /scripts/messenger_profile.py | 70328d594a1a85aea95d5e444b8ac9dad116e940 | [
"MIT"
] | permissive | Albert-91/BARF-o-bot | d13ac74cb6abc95e185c33d71863684a37bef70e | e7e9cac96c85274d4c9600db56a168c14c91dd01 | refs/heads/master | 2023-05-27T06:27:58.536514 | 2020-05-02T13:48:59 | 2020-05-02T13:48:59 | 217,852,127 | 0 | 0 | MIT | 2023-05-22T22:31:55 | 2019-10-27T12:31:30 | Python | UTF-8 | Python | false | false | 569 | py | from config.settings import *
from utils.data_readers import get_page_access_token
from facebook.facebook_request import MessengerProfile
def set_messenger_profile():
token = get_page_access_token()
messenger_profile = MessengerProfile(token=token)
messenger_profile.set_get_started_button(GET_STARTED_BUTT... | [
"albert.suralinski@gmail.com"
] | albert.suralinski@gmail.com |
493e00b3314cc12549f165e35048eb2fd3159acf | d42675fc0fa37759acd8bfa8707530102c80eb1c | /Assets/Python/Screens/CvPediaProject.py | cee7642c7c96dc8c7d0fe8bfc1d9837d58d4a769 | [] | no_license | bptato/RFC-Greek-World | 26028f9188ca9e277aaf55f49ba26c5fc17004c8 | ac1d814ad46066b567f86a52a67279b83f63d665 | refs/heads/master | 2023-06-22T15:10:33.252772 | 2023-06-10T11:46:12 | 2023-06-10T11:46:41 | 255,673,818 | 4 | 6 | null | 2023-06-10T09:41:09 | 2020-04-14T17:12:02 | C++ | UTF-8 | Python | false | false | 6,604 | py | # Sid Meier's Civilization 4
# Copyright Firaxis Games 2005
#
# Sevopedia 2.3
# sevotastic.blogspot.com
# sevotastic@yahoo.com
#
# additional work by Gaurav, Progor, Ket, Vovan, Fitchn, LunarMongoose
# see ReadMe for details
#
from CvPythonExtensions import *
import CvUtil
import ScreenInput
import CvScreenEnums
... | [
"nincsnevem662@gmail.com"
] | nincsnevem662@gmail.com |
02a9f45c309156df89fd9db099c92f30b37ffe30 | 9ca41941cd43594bf50d7d07ad45d9368723409f | /classification/configs/resnet50/resnet50_pruning.py | 04d012859b07772cea6cbd9c88211028e845ceb9 | [] | no_license | smallccn/FisherPruning-Pytorch | 4c74beed70dfa9fbe966235e98ccec29c3f4d7e3 | f390d75b999ad50f4e15b4502123e614a0a66f62 | refs/heads/main | 2023-09-04T20:58:23.583404 | 2021-11-21T15:25:53 | 2021-11-21T15:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | _base_ = [
'../_base_/models/resnet50.py', '../_base_/datasets/imagenet_bs32.py',
'../_base_/schedules/imagenet_bs256.py', '../_base_/default_runtime.py'
]
optimizer = dict(lr=0.004)
custom_hooks = [
dict(
type='FisherPruningHook',
# In pruning process, you need set priority
... | [
"penglu2097@gmail.com"
] | penglu2097@gmail.com |
0340cbb153d9536081f60167c7edecce45697245 | a210bc73428084c04b07c19b705eb1e2baffb9d4 | /514A.py | f1fd06d3a87dc0ab80ef973800ff229adc0eb62b | [] | no_license | imanmousaei/CodeForces | 15067e49cf41bc4f34fd691a8267c79dea785962 | 1add0c41353e75b75f867304640b717aff60df49 | refs/heads/master | 2021-07-06T14:38:02.445337 | 2020-08-04T15:37:58 | 2020-08-04T15:37:58 | 137,961,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | def change_char(s, p, r):
return s[:p]+r+s[p+1:]
s = str(input())
for i in range(len(s)):
# print(i)
# print(int(s[i]))
if(i==0 and s[i]=='9'):
continue
elif(int(s[i])>4):
s = change_char(s,i,str(9-int(s[i])))
print(s) | [
"imanmousaei1379@gmail.com"
] | imanmousaei1379@gmail.com |
d744cf427d5a4532adb233352fb800ab09920eb6 | 7ae0527559b1e1260510dc38843235b98a97497e | /lale/lib/rasl/datasets.py | 7ac3f745d629de476a5c3b5865d998f44f6cd2df | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kiran-kate/lale | 180eacf0996f304639d093e2047d97226af4d1cd | f7939cb0ec1e154bcaa25a0182375a2c2b4cd409 | refs/heads/master | 2023-03-21T22:48:17.305540 | 2022-09-16T13:28:20 | 2022-09-16T13:28:20 | 213,433,982 | 0 | 0 | Apache-2.0 | 2019-10-07T16:34:00 | 2019-10-07T16:34:00 | null | UTF-8 | Python | false | false | 4,119 | py | # Copyright 2022 IBM Corporation
#
# 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, ... | [
"noreply@github.com"
] | kiran-kate.noreply@github.com |
61fcf1c0c742f10151a87f43a07789379e1bf9fb | bb9f18108ba989a019a4a5c4c225fbdbce69c132 | /Lógica/test_Gilded_rose.py | 5bcd41d6220014bd002192c82f60e0f738030c84 | [] | no_license | mmasso/project_olivanders | a2dfdd44d70af242bb9a9de25c83fb21c3721b05 | 9186cccc4e46400d379913c8f96038f0c50ef4f6 | refs/heads/master | 2020-11-30T07:11:36.938023 | 2020-01-11T10:32:23 | 2020-01-11T10:32:23 | 230,342,502 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,266 | py | from Lógica.Gilded_rose import Gilded_rose
from Lógica.Item import Item
from Lógica.Normal_item import Normal_item
from Lógica.Aged_brie import Aged_brie
from Lógica.Backstage_pass import Backstage_pass
from Lógica.Conjured import Conjured
from Lógica.Sulfuras_hand import Sulfuras_hand
def test_guilded_rose_brie_norm... | [
"mmasso@cifpfbmoll.eu"
] | mmasso@cifpfbmoll.eu |
0db192ab3136ad6f475f16d04168a79456bfdbda | 6b169dad5c00bdd15248aba63c0219fffee8f9bc | /mysite/urls.py | 8ef0cd05b2c18e4473b71e4a684b839f3124703b | [] | no_license | lakshit77/Django-Blog-Website | 78ddeb720f96493102c42690b44c02b5b6a29642 | 09ac9dcbaa0d82c2b2c1430e29854dc240aedc1c | refs/heads/master | 2021-07-02T17:14:49.426301 | 2019-03-27T15:34:35 | 2019-03-27T15:34:35 | 178,022,677 | 0 | 2 | null | 2020-09-30T18:36:50 | 2019-03-27T15:26:30 | Python | UTF-8 | Python | false | false | 877 | py | """mysite 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 ... | [
"lakshitukani77@gmail.com"
] | lakshitukani77@gmail.com |
dd9814f4339308678dd3b49ec818c02f22cb4071 | 32174f2b74b286a52a2f3b0bfd120a0711bfc6dc | /sample/web/app/blogs/views.py | 1eed5546a6795b31d89b50bb7d975bad02c62a42 | [
"MIT"
] | permissive | hdknr/django-mediafiles | d13172162506cba2abdab0d85bc2815e2e24b6e6 | 7526e35eb7f532e36c95e7aa76290bb95a9ac41a | refs/heads/master | 2020-06-04T03:16:28.824865 | 2014-10-30T04:10:40 | 2014-10-30T04:10:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | # -*- coding: utf-8 -*-
from django import template
from django.http import HttpResponse,HttpResponseRedirect,Http404
from django.shortcuts import render_to_response
#
import uuid
#
from models import Blog
from forms import BlogForm
from mediafiles.models import MediaFile
from mediafiles.forms import MediaFileForm,medi... | [
"gmail@hdknr.com"
] | gmail@hdknr.com |
39de8218dbf4b99aaa6290c59d2f7556322db935 | 371fe9a1fdeb62ad1142b34d732bde06f3ce21a0 | /scripts/extract_loops_seq_approx.py | 36d5e97c42658a9a6bd31287b6fd2f7138e26ba2 | [] | no_license | maickrau/rdna_resolution | 971f3b7e803565c9432be69b8e2a2852f55b8b79 | aab42310c31e655cbbc318331082fa3436d69075 | refs/heads/master | 2023-03-03T05:14:33.966930 | 2021-02-17T20:45:20 | 2021-02-17T20:45:20 | 339,851,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,706 | py | #!/usr/bin/python
import sys
import re
loop_middle = sys.argv[1] # format ACGTAGA...
# loop ends from sys.argv[2]
# loop ends from sys.argv[3]
max_edits = int(sys.argv[4])
# fasta from stdin
# loops to stdout
def revcomp(s):
comp = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
return "".join(comp[c] for c in s[::-1])
... | [
"m_rautiainen@hotmail.com"
] | m_rautiainen@hotmail.com |
966016a6c669ca24a56fb831863b51dfbec863e3 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/434e9e1d8f62ba49daa2f720956e048e336b3c9c-<clone>-bug.py | 3c358f1301ecb059826eef335a56b1bc630c3ce2 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py |
def clone(git_path, module, repo, dest, remote, depth, version, bare, reference, refspec, verify_commit):
' makes a new git repo if it does not already exist '
dest_dirname = os.path.dirname(dest)
try:
os.makedirs(dest_dirname)
except:
pass
cmd = [git_path, 'clone']
if bare:
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
ff9d6520d75bd583bea3af75aa2655a4acd61c63 | afb82bb9fbba347f34965ddb67877fc7fb4d38ce | /ml_scripts/naive-bayes.py | da25fabc4b7e92219e85a2eb024151d410843c7c | [] | no_license | aryeh-nigri/final-project-gui | 60ca822a014fe219546c825db60f6955ff309b63 | af8b912ad74aef4947b7603b694ea71067ab0614 | refs/heads/master | 2020-04-23T20:40:50.986891 | 2019-04-21T16:55:46 | 2019-04-21T16:55:46 | 171,448,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | import pandas as pd
base = pd.read_csv("./bones.csv")
base.describe()
previsores = base.iloc[:, 1:7].values
classe = base.iloc[:, 7].values
from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
previsores = scaler.fit_transform(previsores)
# separa o dataset em treinamento e teste, de acordo c... | [
"aryehnigri@gmail.com"
] | aryehnigri@gmail.com |
1bf74235f19d42cdd37b7dae2c3bd52851ba445d | 6d9bebbeb031f40065ddc5bcb18f303f6a9e0dbb | /pydjangoenv/grubfood/webkiosk/urls.py | ef9a0997d6b97716c50fa61cb7db8f69a700fe14 | [] | no_license | jondddddd/PROJECT2-CSCI22 | 137d8e024536227f08a630fefda12f75ef9ca248 | 6e311cbe0cfb63640245b51afd4fc96ef7f736ab | refs/heads/main | 2023-06-30T18:08:41.409357 | 2021-08-04T08:11:28 | 2021-08-04T08:11:28 | 392,091,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | #crating the url urlpatterns
from django.urls import path
#have to link urls.py to views
from . import views
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
#need a "." to look at the same folder u exist
#include funtion allows us to include other stuff
app_name = 'webkiosk'
urlpatterns = [
path... | [
"demosthenes.doplayna@obf.ateneo.edu"
] | demosthenes.doplayna@obf.ateneo.edu |
85be01f3a0b032f92796e0019322f26133fe9c4c | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4456378.3.spec | ebf34658cbfb5bf804c2d9a8c460a0edce625a5e | [] | 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,303 | spec | {
"id": "mgm4456378.3",
"metadata": {
"mgm4456378.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 |
f66363574209a1b21f420d8afe431fd62465530f | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/CSS/juejin_1165.py | 2b72076f6d4f211f941f1ba475b380432f75338d | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,321 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6957521363326205982", "article_info": {"article_id": "6957521363326205982", "user_id": "616164205017336", "category_id": "6809637767543259144", "tag_ids": [6809640394175971342], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "CSS... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
67d9459b98c02585b18afecaf8c3df0f88840736 | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /python/20190430/模块/demo09.py | b8805798af569441c98514893091d564e1240813 | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 369 | py | # pillow
from PIL import Image
# 打开一个jpg图像文件,注意是当前路径:
im = Image.open('1.png')
# 获得图像尺寸:
w, h = im.size
print('Original image size: %sx%s' % (w, h))
# 缩放到50%:
im.thumbnail((w // 2, h // 2))
print('Resize image to: %sx%s' % (w // 2, h // 2))
# 把缩放后的图像用jpeg格式保存:
im.save('thumbnail.png', 'png')
| [
"18537160262@qq.com"
] | 18537160262@qq.com |
6f5371f76a88a1c3070db0af82abb2248dbd8564 | 456703d469684b99d849bb386707359729af4e1e | /data.py | 50649d1c690eab4c7947b38c8524416fbd32fd2e | [] | no_license | blacklemons/userlist_mongo | 9c05949f4d2a8c4232c1126020b66ad892857bc6 | b341628cc5da8248c39e46f5a0e974807d9986d1 | refs/heads/main | 2023-05-05T11:49:13.272471 | 2021-06-03T06:56:56 | 2021-06-03T06:56:56 | 372,990,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | def Articles(title,description,author,edit):
articles = {
'title' : title,
'description' : description,
'author' : author,
'edit' : edit,
}
return articles
def Users(name, email, username, password):
users = {
'name' : name,
'email' : email,
'username' : user... | [
"you@example.com"
] | you@example.com |
a28de9ba4ac3649e71d0887904657edd23c54e07 | dd72fb99f499ec1a012941334a420c42b86e9756 | /Day9/day9_unpacking_enum_zip.py | 0bfa60aa26b26210b6721988a3082582858fe304 | [] | no_license | markPVale/thirty-days-of-python | 62c0ab2159ec423e9cb393b4658df83962942a05 | a68beae0631d503552174a644b46bce5c6cef1f6 | refs/heads/main | 2023-03-14T15:35:09.786369 | 2021-03-18T14:01:19 | 2021-03-18T14:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,841 | py | from itertools import zip_longest
# Unpacking - generally is used to perform several assignments at once by extracting
# individual values from some iterable. (aka - 'destructuring')
# e.g.-
movie = ('12 Angry Men', 'Sidney Lumet', 1957)
title = movie[0]
director = movie[1]
year = movie[2]
# or, to be more concise:... | [
"markpvale@gmail.com"
] | markpvale@gmail.com |
bf272d6795f2c4e27889d8bfa81efb7eb6cc2c24 | ded80174eb32e5022a5129842e9dcc1a89e00eac | /train_predict/num_stations/t_rh_1stn.py | 1821e9b63e731896cfdd74b932fb1a2ae93d209e | [] | no_license | joejoezz/boomgard-zagrodnik-brown-2021 | 504dfc9e22ce77edb6413b7e939816393c92e618 | 14a810114b062510e01d4909f412f8a721c05a4c | refs/heads/main | 2023-08-05T09:12:53.241891 | 2021-09-22T23:19:34 | 2021-09-22T23:19:34 | 409,367,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,529 | py |
"""
1) predict using SIMPLE imputed dataset plus ACTUAL y for each site
2) run as a loop
3) output predictions (y_predict) vs. actual (y_actual)
"""
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.linear_model import LinearRegression
from sklearn.model_selection ... | [
"joejoezz@gmail.com"
] | joejoezz@gmail.com |
29a83a517d5e0c654d480ff44dca55464a5a1fd0 | a42b9f1bac8bea562823c1a64b81f4857430b02c | /app/main/__init__.py | 155e33f20362b984ca8a257903a30d5b4348265f | [] | no_license | whytin/whytin-blog | f98afedcc25586aebd1c48b0d5ee408b6bb89fc9 | aad92e5422e395fc67049a80b95f266e309d58b0 | refs/heads/master | 2021-01-20T20:52:40.816194 | 2016-06-12T13:33:41 | 2016-06-12T13:33:41 | 60,965,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | ######################################################
#
#Author: whytin
#Email: whytin@yeah.net
#QQ: 583501947
#
#Filename: __init__.py
#Last modified: 2016-06-05 11:42
#Description:
#
######################################################
from flask import Blueprint
mai... | [
"whytin@yeah.net"
] | whytin@yeah.net |
032b19347775dd0641736995337ee7d8627e06f6 | 0b01aff00d226776b44c5a5e2f15da5e46aa9454 | /mathur_milind_ez_university/settings/base.py | 2575075154dc875e5cd81435df6f7464564f7863 | [] | no_license | milindmathur04/mathur_milind_ez_university | 59dbf7796f3b11761279c386067fce26f066f3e6 | 0bdd3ad78c2a34c4331314192556ed9137b30e5c | refs/heads/master | 2020-03-29T12:51:42.616052 | 2018-12-11T21:11:54 | 2018-12-11T21:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,501 | py | """
Django settings for mathur_milind_ez_university project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/setting... | [
"milindm2@illinois.edu"
] | milindm2@illinois.edu |
01845e4ab8efa1d0a94f33288d79b3bbbf995a8e | 1293799ec11de6c8e28f4c49c5db54d693629586 | /payton/scene/geometry/cube.py | 08a53a7618306a4acff282a9a080c1cd9e92b6e5 | [
"MIT"
] | permissive | behrooz5050/payton | 4a6fc8e96fd4a5b59c0bce35385fca7e3f38d181 | c6e70939537fd552459e2327a30b2991025cad50 | refs/heads/master | 2023-06-06T19:26:48.554327 | 2021-06-26T15:46:52 | 2021-06-26T15:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | from typing import Any, Optional
from payton.math.functions import min_max
from payton.math.vector import Vector3D
from payton.scene.geometry.mesh import Mesh
from payton.scene.material import DEFAULT
class Cube(Mesh):
def __init__(
self,
width: float = 1.0,
depth: float = 1.0,
he... | [
"sinan@islekdemir.com"
] | sinan@islekdemir.com |
6cbf272048c97ca2647317b0a23c36623b2f8459 | 072ecf83c3a8debe5e721290c3b25e478bafecc5 | /silk/webdoc/stencil.py | dc165a4928bd32aa18c1ed38dec4a97777ebda03 | [
"BSD-2-Clause"
] | permissive | ryanmarquardt/silk | 86318edf6d7dbd131564d16f29afd7f1842e168a | a139e11aaf824d593c9a828851c9e9d6b287000c | refs/heads/master | 2021-05-31T05:28:48.063394 | 2015-12-27T04:20:13 | 2015-12-27T04:20:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,473 | py | #!/usr/bin/env python
from io import StringIO
import re
class INDENT:
pass
class DEDENT:
pass
class IndentingPrinter(object):
def __init__(self, stream, indent):
self.stream = stream
self.indent = indent
self.level = 0
def __call__(self, text):
if text is INDENT:
... | [
"ryan.marquardt@gmail.com"
] | ryan.marquardt@gmail.com |
fc126098698f4812d3ae44fdb52a65136637642b | be820e7752c0d1972b73ba30d3909dde6c64afd5 | /HW5/advanced/__init__.py | 21568a2cf76e30381655adc0ee9e794efdd531fd | [] | no_license | laceystrahm/las2313-final | 68059b2870e3f86469c327d62aad59d54dadda23 | fee85ffcf7631e680d5c4918d86f9216b402f5a7 | refs/heads/master | 2022-07-30T16:11:22.179435 | 2020-05-23T16:00:46 | 2020-05-23T16:00:46 | 263,952,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from .pd import advancedStats
from .sb import scatterMatrix, correlationHeatmap
| [
"noreply@github.com"
] | laceystrahm.noreply@github.com |
4663c3bdc1a8d6c0fed0317b338f7b02dcab279f | f9d7ba2a70af92e4a9d1f6212fe0492b32c7f158 | /reports/everyday/migrations/0006_auto_20170302_1817.py | 036fbd2214232aa35a16e247319e3a42fb42f997 | [] | no_license | OldSem/ads | 34aca63f087ff532d22388d7cc78465edc586305 | f990e93a27c8cfc70135a0406b89b9c4e102ae5d | refs/heads/master | 2021-03-27T10:03:18.165318 | 2018-06-19T11:42:05 | 2018-06-19T11:42:05 | 114,092,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-02 16:17
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('everyday', '0005_auto_20170302_1813'),
]
operation... | [
"old_sem@meta.ua"
] | old_sem@meta.ua |
94099f7539dd29af5d9baf1b7e65aae919dc5eb1 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py | 6c03a7fcfbbe3990bd37e435d7afe3c07aa49f1e | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 4,699 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools ... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
9700f7b32038e32409736e25ab200fda2427f5dd | 46dd1ad6fe93777a4dce84166b64cb9adb679e62 | /test/functional/interface_bitcoin_cli.py | be8c48fd1a8c0abb45f0f9939a095625cc50b098 | [
"MIT"
] | permissive | aleomartinez/EducaCoin | 14266500dc3c5aabfe8bebf17c8903aecea0af8c | 2282d6affdd2192a79efdce579ddd0d8576d950d | refs/heads/master | 2020-03-31T01:28:49.612215 | 2018-10-05T14:43:36 | 2018-10-05T14:43:36 | 151,783,304 | 0 | 0 | MIT | 2018-10-05T22:11:11 | 2018-10-05T22:11:11 | null | UTF-8 | Python | false | false | 3,669 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test educacoin-cli"""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.uti... | [
"you@example.com"
] | you@example.com |
57cd86c82af3ca8f09914bb7f84fb48af68e9195 | d36a6e283f00cc650d7006d9542ee1d41b4d8b5d | /stacklesslib/replacements/greenlet.py | 54e0c8f2cf00567596d934769e852647a5a6d13d | [] | no_license | stackless-dev/stacklesslib | 0120f6cb3129238218703a063c6a6a2318c02dac | fc48c2d9f91e993708239944458124a53d648a8b | refs/heads/master | 2023-01-15T21:47:29.178045 | 2020-11-26T20:11:30 | 2020-11-26T20:11:30 | 316,323,041 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,883 | py | # A greenlet emulation module using tealets
import weakref
import sys
import stackless
from stacklesslib.base import atomic
__version__ = "0.3.2"
class Scheduler(object):
"""A scheduler that switches between tasklets like greenlets"""
def __init__(self):
self.prev = self.value = None
... | [
"sweskman@gmail.com"
] | sweskman@gmail.com |
3661c4738291a0e95f82f9a09fb7e70a92b3aebc | 679bec0cf6bc1204db05c6b77ca27ee32112c29e | /Jogo03.py | 496f2543409e9474af20210deec79d99d559dbde | [] | no_license | ca-ayumi/developer-raciocionio | fdaf57538e039943070c033fd71960c38469abe2 | 2a2cf5f6fe00085fdb1b14d4501ca98fc8f9af4b | refs/heads/main | 2023-07-14T05:27:26.631384 | 2021-08-19T12:32:42 | 2021-08-19T12:32:42 | 397,629,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from random import randint
c = int(randint(1, 20))
x = 6
nome = str(input('Qual o seu nome? '))
print('{}, descubra o número que estou pensando entre 1 e 20. Você terá 6 chances de acertar.'.format(nome))
while x > 0:
x = x-1
p = int(input('Digite um número: '))
if c != p and x > 0:
... | [
"noreply@github.com"
] | ca-ayumi.noreply@github.com |
f3f0deac2b8e2c21a2aac604325b675ec23a5076 | 276490c9a018666d3dbb696324bddbe5edb705a8 | /utils.py | a41cb059f2baba07376ddbb118b8c25602b54275 | [] | no_license | TwistedW/CAE-CGAN | b18e6dd4512e9d7cb1512c8e75530873df240edc | 89d341067414e5151ffcecc58735b42b3a75eb30 | refs/heads/master | 2021-04-12T10:22:58.017435 | 2019-02-26T01:50:07 | 2019-02-26T01:50:07 | 126,592,352 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,134 | py | #-*- coding: utf-8 -*-
"""
Most codes from https://github.com/carpedm20/DCGAN-tensorflow
"""
from __future__ import division
import math
import random
import pprint
import scipy.misc
import scipy as sp
import scipy.io
import numpy as np
import sys
import pickle
from time import gmtime, strftime
#from six.moves import x... | [
"twistedwg@hotmail.com"
] | twistedwg@hotmail.com |
55b0f8da040f005b7e982b66b39f8212ab883fc1 | 2415331fadb2319701e8e88dfe8a666f6082cfaf | /non_local_test.py | 0fc1affd5231a0068df6eaa389e6b5744dfcac53 | [] | no_license | lchia/rlt2 | 65a6592cbe4aa1f3c71a009010014ffa8486266c | 7b31c5c4842df47d7b52e1246413e59af66f2aae | refs/heads/master | 2023-03-01T20:42:56.316553 | 2021-02-05T13:29:20 | 2021-02-05T13:29:20 | 336,263,780 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import cv2
import numpy as np
if __name__ == '__main__':
img = cv2.imread("dataset/track3_HDR/Image198.png",cv2.IMREAD_GRAYSCALE)
img = cv2.resize(img,(8,8))
img_flat = img.reshape(-1,1)
relation = np.matmul(img_flat,img_flat.transpose())
cv2.imshow("1",relation)
cv2.waitKey(0)
None
| [
"lichenghua2014@ia.ac.cn"
] | lichenghua2014@ia.ac.cn |
469813b56c425874da03dbf5a91e246bbc880c24 | 90d4afbe27c1accc46627e3c219cb4a59496cd19 | /django/time_display/time_display/settings.py | 7d8361212f162a3907314314d0492c8c2cdfd653 | [] | no_license | jan-2018-py1/Python1-RyanKing | 7446828144b3b03f08316ba9fb0698cc221e9993 | 09cda2e0aea81de282372925f1390cdd6d2fd0e3 | refs/heads/master | 2021-05-11T11:18:18.470383 | 2018-02-26T21:53:00 | 2018-02-26T21:53:00 | 117,175,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for time_display project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"ryanmking62@gmail.com"
] | ryanmking62@gmail.com |
a3cddb14f4568125e0ea0d932da937365312500e | ae7cb8543a98b7d65295a422c7971e7a37f921cd | /minerals/models.py | 02bcb451cf3a5a60d68581cbcd838dfa627fcbad | [] | no_license | frankRose1/mineral-catalog | a74386278073d1b9e92fe44e1cc348a1b498380e | 88f91a55105532fe197c84d050a5d5bd67167a9d | refs/heads/master | 2020-04-16T12:49:23.715372 | 2019-03-14T00:23:27 | 2019-03-14T00:23:27 | 165,597,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | from django.db import models
# Create your models here.
class Mineral(models.Model):
"""
Not all entries will have every field as shown in the json file in "mineral_data/mineral.json"
"""
name = models.CharField(max_length=255, blank=True, default='')
image_filename = models.CharField(max_len... | [
"frank.rosendorf1@gmail.com"
] | frank.rosendorf1@gmail.com |
14b4d0089b4e2b8e65d9e95bec9a45f3a2d224f8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/dabbler.py | 1ea1b9cd70fbca21dc35207bee1746ae0a696f43 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 62 | py | ii = [('CrokTPS.py', 1), ('ThomGLG.py', 1), ('BeckWRE.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
d8d457d18bf39b70f109b94084363f9d7ad6a62d | c7d124bbd7ab66ad7acd50765a0d5c11e7925d16 | /generate_test.py | 402d03607f30aeb012c03c5f3127892e4e05fff1 | [] | no_license | lambdaloop/scheduling | aa240c568eb974d57d7fc93af3cd866293c1f417 | fd111594d2c5a652b42796027195a352db3a9fce | refs/heads/master | 2021-06-03T19:26:16.300509 | 2019-04-14T21:26:28 | 2019-04-14T21:26:28 | 29,323,677 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python2
import csv
import random
f = open('test.csv', 'w')
fieldnames = ['name', 'preferences', 'num_slots']
writer = csv.DictWriter(f, fieldnames)
writer.writeheader()
n_people = 20
n_slots = 9
for i in range(n_people):
#name = chr(65 + i)
name = str(i)
slots = random.randint(1, 3)
... | [
"krchtchk@gmail.com"
] | krchtchk@gmail.com |
533a8674b5a0ea2d97c2032ad2269f7fe0835047 | 818173671edf15d7c6d775ed003bcd35608233f9 | /demos/go/wscript | 13ea4561dd2b6d1e18137a02eb74523dc6ffdb69 | [] | no_license | zsx/waf | a1e87e079e22443ae3ed98e08cefc705b5f73906 | 66d1c6ede4ceda66a98dbbf9dd473f1d5c5752ba | refs/heads/master | 2021-01-13T12:56:12.379186 | 2010-07-12T17:27:13 | 2010-07-12T17:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | #!/usr/bin/env python
# encoding: utf-8
# Tom Wambold tom5760 gmail
# Thomas Nagy, 2010 (ita)
"""
if libgmp is present, try building with 'waf --exe'
"""
top = '.'
out = 'build'
def options(opt):
opt.add_option('--exe', action='store_true', default=False, help='Execute the program after it is compiled')
def config... | [
"tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85"
] | tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85 | |
70d6884ed1bc439ea94cc9f18b4779b55a433a01 | adf9ceb2e1a0bde267f1572e3b212a06b7516508 | /mouse-position.py | 1baef74a6bc2ad5e77bb16252b805965ad325c9a | [] | no_license | coderNamedPaul/science-project | b0f91c4cd6b713b0fee2c5a856979071dcf4af4e | a48fe12cdae6cca4f90830fdfb5b26abf14dcc75 | refs/heads/main | 2023-06-16T12:07:58.227004 | 2021-07-10T21:10:35 | 2021-07-10T21:10:35 | 324,540,587 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import pyautogui as pg # чтобы скачать в терминале pip install pyautogui
pg.mouseInfo() | [
"76406501+coderNamedPaul@users.noreply.github.com"
] | 76406501+coderNamedPaul@users.noreply.github.com |
f2c082aaea5475f69e76bd8ea7a0957ec48175a9 | f2988f9e611239f6faddf626f48f738993551eae | /394 Decode String/sol.py | e8043e26d7c7a3cd1466c68fb23529ee5b23f2f0 | [] | no_license | nagask/leetcode-1 | fcac32a9f0ca1463e020f53d41e706b82bf56a52 | 0ca1b241e4cefe18ba5c3c6f15b8f22542c092bb | refs/heads/master | 2023-08-04T01:09:00.445425 | 2021-09-16T13:53:11 | 2021-09-16T13:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | """
Letters outside square brackets can just be reported as they are on the output.
As soon as we face a digit, we have to parse it, to know its value, and then we will face an open braket:
from there on, keep reading and storing the input until a closing bracket is found. Then add the part of input
between the brake... | [
"nicolo.pomini@u-hopper.com"
] | nicolo.pomini@u-hopper.com |
15e4833e152e012912d6cad2a52ddc2ed68888fa | 3724a1b95e95e611cdd793d1af685f72dfea6b3e | /cloudcafe/compute/flavors_api/models/flavor_extra_specs.py | 99f9cfa4310eb118a59fcaaeaca0796e82bf7df0 | [
"Apache-2.0"
] | permissive | kurhula/cloudcafe | 1b1e41994959cf959a49e19fea5cbda893d9c9df | 7d49cf6bfd7e1a6e5b739e7de52f2e18e5ccf924 | refs/heads/master | 2021-01-20T22:45:27.425724 | 2015-02-20T16:49:35 | 2015-02-20T16:49:35 | 31,156,531 | 0 | 1 | null | 2015-02-22T07:56:08 | 2015-02-22T07:56:07 | null | UTF-8 | Python | false | false | 1,596 | py | """
Copyright 2013 Rackspace
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
dist... | [
"daryl.walleck@RACKSPACE.COM"
] | daryl.walleck@RACKSPACE.COM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.