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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf3e00e18c62ceff4ee2e392754a7ae771574aa9 | 5b0a71b1b9ff85ea107406f804936035af2352a3 | /question_ask/question_temp.py | bd7a0b8148e41585de7496596c82fa2e41183678 | [] | no_license | FantasticCode2019/kg--demo-Computer-network-course | 58d7c8763d3dc530dc0d833dad734db78b6ffc9b | e8024153c4473e67cd95695bf55071faa1e6d221 | refs/heads/master | 2023-04-12T05:09:59.828476 | 2021-05-10T01:19:46 | 2021-05-10T01:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,339 | py | # encoding=utf-8
"""
@author: xuzelin
@file: question_temp.py
@time: 2020/12/20
@desc:
设置问题模板,为每个模板设置对应的SPARQL语句。demo提供如下模板:
1. 某实体的兄弟关系有哪些
2. 某阶段之后是哪个阶段
3. 某实体包含了哪些实体
4. 与某实体内涵相同的是
5. 与某实体内涵相反的是
6. 某实体继承自哪个实体
7. 某实体参考自哪里/那本教程
8. 与某实体可以相互变换的实体有哪些
9. 与某实体有因果的实体有哪些?
10.某实体的某属性是什么
11.某实体是正确的吗?
"""
from refo import ... | [
"1127485560@qq.com"
] | 1127485560@qq.com |
06e27836ec9ad1be7688bc3689db92957c6d74ec | 7f2aae79774d166173b2e003bf63c88369159d6f | /game_types/Board.py | fc76f18aafb07cf33d67913ed478c918b6a7d68d | [] | no_license | enisnazif/battleships | 6605df2c8581491b302daed26f0e697fcfb47cab | d99ecb60defb69996ac32cb3fe9661e263aec56a | refs/heads/master | 2021-06-11T13:59:25.088685 | 2019-05-19T10:53:12 | 2019-05-19T10:53:12 | 180,877,603 | 0 | 0 | null | 2021-05-06T19:33:56 | 2019-04-11T21:03:35 | Python | UTF-8 | Python | false | false | 5,196 | py | from typing import Tuple, List
from config import BOARD_SIZE
from exceptions import (
InvalidShotException,
InvalidShipPlacementException,
)
from game_types.Orientation import Orientation
from game_types.Point import Point
from game_types.Ship import Ship
from game_types.ShipType import ShipType
class Board:... | [
"e.nazif@warwick.ac.uk"
] | e.nazif@warwick.ac.uk |
34b242e509f466f320688594ae1b456377f19fc0 | 3cd5de408139f0be09bf58ba406043819aca1d2c | /program1.py | 8500ead54844d796387e618284300bc569f77521 | [] | no_license | nadgabriel/first_repo | 79417e8ae9c73a00a7cd4ef0da836c109149761b | 500ea88fbd6da9c7cb60e363a9e733b9d5a6cb35 | refs/heads/master | 2023-04-01T14:08:43.941135 | 2020-12-23T22:30:25 | 2020-12-23T22:30:25 | 271,045,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # Do premennej mozme ulozit hocijaky datovy typ
pocet_jablk=2
pocet_hrusiek=3.4
number_of_windows=10
print("pocet_jabl = ", pocet_jablk)
# Premenna je case sensitive cize tieto dve premenne su rozdielne
cars=1
Cars=2
# Premennu mozme definovat aj niekolko krat
jablka=4
jablka=3
# Nazvy premennych mozu pozostavat ... | [
"nadgabriell@gmail.com"
] | nadgabriell@gmail.com |
992131d644d1a04bd07ae41cf367774e1e0adef0 | fb7cb229a8f68f9ba3cc23ce51238008841516e8 | /Sensorslab2/Task2/first_pkg/first_pkg/publish_gps_messge.py | b99bf288a6eb3c6f23f35d8631db0fca8795ff89 | [] | no_license | RozanMagdy/ITI-Labs | 24852442c8cae3f9d0fe44e55e5995853f18a9b5 | 3e3a4b85a415492c6eb539c79be128504fefaf96 | refs/heads/master | 2023-06-04T18:07:58.256689 | 2021-06-17T11:43:30 | 2021-06-17T11:43:30 | 359,421,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | #!/usr/bin/env python3
import rclpy
import csv
from rclpy.node import Node
from sensor_msgs.msg import NavSatFix
#TODO Import needed messages
class my_node (Node):
def __init__(self):
super().__init__("Node_name")
self.csv_file_path = "GGA_GST.csv"
self.lines = []
with open(self.... | [
"rozanabdelmawla@gmail.com"
] | rozanabdelmawla@gmail.com |
224ec89ac931e042e1944042b2a3f733ec7c52c3 | 5894844ffd7edfe04047a1310535679904f23b31 | /app/api/serializers/lesson.py | c2e9d0608a6e2745d2a10a7d73fac58208370d86 | [] | no_license | kevbrygil/dacodes-API | 778108017584be01f88a7b74f4a5fbdd258ca886 | ec51c4e8103236e9302db419ab1bce1b14526ac1 | refs/heads/master | 2022-07-25T16:30:11.831860 | 2019-10-23T14:38:33 | 2019-10-23T14:38:33 | 216,649,135 | 0 | 0 | null | 2022-07-05T21:47:09 | 2019-10-21T19:29:20 | Python | UTF-8 | Python | false | false | 507 | py | from marshmallow import Schema, fields
from .validations.validators import validate_mandatory_courses, validate_mandatory_courses_code
class LessonSchema(Schema):
id = fields.Str()
name = fields.Str(required=True)
course_id = fields.Str()
description = fields.Str()
question_details = fields.Str()
... | [
"tamayo_144@hotmail.com"
] | tamayo_144@hotmail.com |
ad3ee97e6a9f4657ce8b2dda99cafee6dda6323b | 2f7f6dda2a7fc1c949450e03cbd567ac7f9a46d9 | /tools/batch/submit-job.py | 9bbbc6fe81ee4b2045ef15802d86cbf469148ea1 | [
"Apache-2.0"
] | permissive | cuulee/gluon-nlp | fe31952925a483b14df4a9faaf1e5259805f9856 | 46c9d014ac0a022b208ce335cb6ee8a54771bae4 | refs/heads/master | 2022-12-19T16:00:32.269318 | 2020-10-22T03:33:47 | 2020-10-22T03:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,565 | py | import argparse
import random
import re
import sys
import time
from datetime import datetime
import boto3
from botocore.compat import total_seconds
instance_type_info = {
'g4dn.4x': {
'job_definition': 'gluon-nlp-g4dn_4xlarge:5',
'job_queue': 'g4dn'
},
'g4dn.8x': {
'job_definition'... | [
"noreply@github.com"
] | cuulee.noreply@github.com |
2018328ca867ccc87ff04f9b378c17cac512df31 | 747f759311d404af31c0f80029e88098193f6269 | /addons/sale_payment/sale_payment.py | 807c9c55bec7e7ec51aae95ef58e50ca79e28d7c | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | /home/openerp/production/extra-addons/sale_payment/sale_payment.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
98d57a8478c682b8842dbf0da010110c3fcd6a8c | 90e10e5fe73272557b01bc600d3b0f1121b0ce0e | /worldbuildr/schema.py | 6a6350b487e09c3ac9177321e61102c1d591cc2a | [] | no_license | nanderv/worldbuildr | e18809599bfdc573e398cb35b65caca528f4a552 | 3c69ef51408350c9b215996d16ac4f63837785c2 | refs/heads/master | 2020-03-30T02:01:44.498920 | 2018-09-29T10:13:01 | 2018-09-29T10:13:01 | 150,608,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import when.schema
import graphene
from graphene_django.debug import DjangoDebug
import who.schema
class Query(when.schema.Query, who.schema.Query, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query)
| [
"nander@nander.net"
] | nander@nander.net |
a7f52a070ab9786932134e6185e25c4294abacda | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/113677/KaggleBillionWordImputation-master/scripts/test_to_train.py | d6a8b8242d2e01d61592d440427057247ee7db57 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/env python
'''Convert test file format to train file format'''
import sys
if __name__ == '__main__':
header = sys.stdin.readline()
for line in sys.stdin:
i, sentence = line.rstrip().split(',', 1)
print(sentence[1:-1].replace('""', '"')) | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
996df91cc5baeba8d648a84074940c67fb599b8c | 9a811b17415c7a19731c42cffd18177f15adf56e | /list_all_pixels.py | efb3ef048aebe8777b914caa5513c8d0e8e93616 | [] | no_license | sanjitk7/ImageSpacialIntensityTransformations | 2e8fcd16e896374ecf05688e425b772b6d14bffc | 337c3661fdb631afe096b697c5ae064f49db8d46 | refs/heads/master | 2022-12-24T19:52:03.391437 | 2020-09-29T11:56:14 | 2020-09-29T11:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # Listing All The pixel Values of the Image
def list_all_pixels(im):
for i in range (im.size[0]):
for j in range(im.size[1]):
print("f(" + str(i) + "," + str(j)+") = " + str(pixelMap[i,j][0])) | [
"sanjitk2018@gmail.com"
] | sanjitk2018@gmail.com |
e9da2dde9e797e1e181779543be225efdc001fb3 | 0fe003ace0c47ff027de3c5497ef9bd04925939a | /day23.py | 0d5fffbeb3b042325ecfb43ede3588fa80f58148 | [] | no_license | russford/advent2016 | 132dde45adadf2c78e1ab9544af66a72541700ac | 1e92cf36a5870e05297ddba3d5d254213e4f0aaf | refs/heads/master | 2020-06-15T14:49:43.566431 | 2017-01-02T12:26:27 | 2017-01-02T12:26:27 | 75,284,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | test_code = """cpy 2 a
tgl a
tgl a
tgl a
cpy 1 a
dec a
dec a"""
# cpy x y copies x (either an integer or the value of a register) into register y.
# inc x increases the value of register x by one.
# dec x decreases the value of register x by one.
# jnz x y jumps to an instruction y away (positive means forward; negat... | [
"russford@gmail.com"
] | russford@gmail.com |
34c4d58dbc00a029cccf06bca3604352c7a3dc0b | 833e9e3b34b271aa2522471bd0b281b892adff78 | /backend/forms.py | 9f1014a729fa0d32ce2cc205096f506180fa41c4 | [] | no_license | emilte/case | b3fcd869468e093ec754980824c6b155f283caa7 | 35eadb05bdd224f845353a952c9aa18b03d95591 | refs/heads/master | 2021-06-27T13:19:32.550253 | 2019-11-24T23:21:36 | 2019-11-24T23:21:36 | 223,599,299 | 0 | 0 | null | 2021-03-19T08:42:52 | 2019-11-23T14:10:19 | JavaScript | UTF-8 | Python | false | false | 2,377 | py | from django import forms
from urllib import request
from captcha.fields import ReCaptchaField
from django.conf import settings
def between(x, a, b):
return x >= a and x <= b
class Info(forms.Form):
applicant = forms.CharField(initial="emil", required=True, widget=forms.HiddenInput)
name = forms.CharField(... | [
"emil.telstad@gmail.com"
] | emil.telstad@gmail.com |
b17cc3de2699bc9c2e6d1909d80eeecd1bc07a76 | 62e27febb6c9891d02c792620ca2a8b3e4e8fd09 | /ai.py | e2ef16676cd84e6ca95beaf9071498d8365f2f5c | [] | no_license | ffidni/tictactoe | cc08cb736cc6eb277bee6c211c09aed0a7c6e006 | 125e9497ffa38abd72b9488b66945c5797c7790c | refs/heads/master | 2023-06-10T14:23:08.861220 | 2021-07-06T04:08:09 | 2021-07-06T04:08:09 | 375,467,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,477 | py | from random import choice
#Credit to divyesh072019 for this code
def isMovesLeft(board) :
for i in range(3) :
for j in range(3) :
if (not board[i][j]) :
return True
return False
def evaluate(b, bot, opponent) :
# Checking for Rows for X or O victory.
for row ... | [
"realityinaship@gmail.com"
] | realityinaship@gmail.com |
950ec69546022992c15201e1068609a18c452f15 | 835566e5f9ab26bf459c47678728719775d96c33 | /venv/lib/python2.7/codecs.py | a708b1569ffa72266e1aebcd14af601581eff916 | [] | no_license | BrandonWalk/bacon | a0e15898bcd8ba0ab2871a7021a0c0e92e58cf98 | 22e674da1bc94e7f608675a022b51c99e47e58e2 | refs/heads/master | 2020-04-18T20:20:59.896319 | 2019-01-26T20:32:33 | 2019-01-26T20:32:33 | 167,735,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | /Users/brandonwalker/anaconda2/lib/python2.7/codecs.py | [
"branwalker19@gmail.com"
] | branwalker19@gmail.com |
af1029b1cb2a722afefefe70be3427a8519bf118 | 10f3e91eb6b7d155f0421f836a2fd9696bd4f184 | /getWeather.py | 466b96ed80f369d7e097565df13eafab22a31e8e | [] | no_license | Claire0223/Python_demo | b61fdcd9448bc7c57a4f13241f48a732406f4ec3 | 9c266503defeca8fae717797482303e126c66ebf | refs/heads/master | 2022-11-15T04:06:19.964521 | 2020-07-10T06:09:58 | 2020-07-10T06:09:58 | 276,874,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | #coding=utf-8
# 微信聊天+天气预报机器人
# 和风天气https://dev.heweather.com/docs/legacy/api/s6
#
import requests
import json
def weather_forecast():
city=input('请输入想要查询的城市名称,如‘江门’:')
api='https://free-api.heweather.com/s6/weather/'
weather_type='forecast'
value={
'location':city,
'ke... | [
"1327686271@qq.com"
] | 1327686271@qq.com |
0bb8dade96e13574b8b889e8b669455156c204b5 | e3d756f8723dc133fc8ed8339ade09ed3fde4bfe | /src/0_CD/src/interpolate.py | 2e85244f686e5dbaed290eef016eaee049f4ab78 | [] | no_license | chomamat/fit-bp | 6efb89711a4070d6d6b0cbf0f9d4560af2b64a69 | ba8261ba07cd5c36683a30526126ccc0808caf03 | refs/heads/master | 2020-04-24T02:53:48.026649 | 2019-05-19T19:44:49 | 2019-05-19T19:44:49 | 171,653,155 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import getopt
import cv2 as cv
import numpy as np
import sys
import torch
import torch.nn as nn
from models.interpolation import Model
# Device for running computations
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
# Not computing gradients for better computationl performance
torch.set_grad... | [
"chomamat@fit.cvut.cz"
] | chomamat@fit.cvut.cz |
7914eab270311d6a94213bb0d0fa5edfa4c36fb0 | 863d32f9adc6890600a7a114574be66e80dc4ec7 | /models/seg_model.py | 0e3d6fddf9a0d4b5e475694ffe2eb863038fda1d | [] | no_license | dsl2009/dsl_instance | 9e60dc36a3106a9500a9486208533c2eb23578ae | ca299c16feaf58eadfd21f282bf681194b6c118f | refs/heads/master | 2020-04-24T15:18:08.246023 | 2019-07-26T08:38:19 | 2019-07-26T08:38:19 | 172,060,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | from models import resnet
import torch
from torch import nn
from torch.nn import functional as F
from layer import renet
class SegModel(nn.Module):
def __init__(self):
super(SegModel, self).__init__()
self.cnn = resnet.resnet50(pretrained=False)
self.cov1 = nn.Sequential(
nn.Conv... | [
"dsl"
] | dsl |
44f3dee156facd70866135a80c736611e2656831 | ce88c0222e5c770ecfc4e05bf61c55371e8d9a92 | /termext/abs_kw_pair.py | fdbe8a9e205b722f7db84f8d23657b3267f917af | [] | no_license | melsk125/ner | 31683f83fc6343a49421ae3879f5aae80c601267 | 77d9ccad029f1d5d9c916f5d3d73a7132a6e411a | refs/heads/master | 2021-01-10T21:59:30.940959 | 2012-04-01T08:44:33 | 2012-04-01T08:44:33 | 2,889,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | import lib
import sys
import re
from optparse import OptionParser
from nltk import word_tokenize
optionParser = OptionParser()
options, args = optionParser.parse_args()
if len(args) == 0:
raw = sys.stdin.read()
else:
f = open(args[0])
raw = f.read()
lines = lib.get_dat_sgml(raw)
"""
Assume the inpu... | [
"mel.sk125@gmail.com"
] | mel.sk125@gmail.com |
aa7749e5a5c46e9b294ba65e63edbafd2bdc540c | e63e8963f36689e525876dd877017352e96df12d | /DFCM_Electricity.py | 00f385ba96cff565eea8439932912a7aba1a0fba | [] | no_license | FieldDoctor/DFCM | b966d01b945e8ba0d233cc353d0c9815c743f5e2 | 7da7eecbdfd2c3b34c92ef79029de47364f2eded | refs/heads/master | 2023-03-28T23:39:19.861009 | 2021-03-26T10:17:39 | 2021-03-26T10:17:39 | 321,042,829 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,511 | py | configure = {}
configure['SourceFilePath'] = './1-Electricity/1-temp.csv'
configure['InputFilePath'] = './1-Electricity/2plus-supervisedDataSet_zscore.csv'
configure['OutputFilePath'] = './1-Electricity/6-DFCM.csv'
configure['PltFilePath'] = './1-Electricity/6-DFCM/'
configure['AllAttributes'] = 8
configure['TargetAttr... | [
"963138743@qq.com"
] | 963138743@qq.com |
d49733bfac92a4f491e624790358f0aa6cb9d05f | a65cdc270f7c900c8f0dce75c88f4eb23bfcd856 | /tryzero.py | 77cf02d8b20fd5a1942b87b1b5e7e16c09235699 | [] | no_license | noufila/python-programs | a31ff0916d987f8307f809c12c44d11989245a0a | 8ddfeeb0aae757bdf4e269cb28b55271f3888726 | refs/heads/master | 2020-03-28T01:25:00.730879 | 2018-09-11T10:37:19 | 2018-09-11T10:37:19 | 147,503,389 | 0 | 0 | null | 2018-09-11T10:37:20 | 2018-09-05T10:51:57 | Python | UTF-8 | Python | false | false | 187 | py | try:
n=int(input("enter a number"))
n1=int(input("enter a number"))
print(n/n1)
except ZeroDivisionError as err:
print("second number cannot be zero")
print(err) | [
"noreply@github.com"
] | noufila.noreply@github.com |
485d3cc56b43af702b13d75f3c85981c119aa6fc | f8908de51fdee29875c7720efb3ef1584328086b | /tools/RemywikiSonglistScraper.py | 491726b3a629c4ad4878e48d975681e731ccc1ae | [
"MIT"
] | permissive | cyberkitsune/DDRGenie | 634e2e24323022181ed39a541d6594db958bcb16 | 6d2a78c84e33049c1541d761744da0868f23e0bb | refs/heads/master | 2022-08-07T09:52:17.850326 | 2022-07-25T04:16:21 | 2022-07-25T04:16:21 | 241,182,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | import sys, requests
import wikitextparser as wtp
base_uri = 'https://remywiki.com'
query = '/api.php?action=query&prop=revisions&titles=%s&formatversion=2&redirects=1&rvprop=content&rvslots=*&format=json'
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: RemywikiSonglistScraper.py [Page_Name... | [
"cyberkitsune09@gmail.com"
] | cyberkitsune09@gmail.com |
87cb6e36d3ce8f25552e58055a81a96c81d016d0 | 9994911f0ff388c92c21ca8178eec2d3af57082d | /teamup/cli.py | 8379e8bc873e2b905aca6bd2f170758de61ca15c | [
"MIT"
] | permissive | BruceEckel/TeamUp | 2809b36b8946b51bf96fcc113ef24ef02508f3c9 | 23e29301b462c329ad17253b4d4fb7f56fb7881b | refs/heads/master | 2023-01-05T19:06:21.010258 | 2022-12-26T23:30:44 | 2022-12-26T23:30:44 | 127,565,232 | 7 | 1 | MIT | 2022-12-26T23:30:45 | 2018-03-31T19:42:07 | Python | UTF-8 | Python | false | false | 1,527 | py | # -*- coding: utf-8 -*-
"""
Combine people for group activities
"""
from pathlib import Path
import os, sys
import click
import webbrowser
from teamup.pairings import Pairings
from teamup.PersistentLoopCounter import PersistentLoopCounter
attendees = Path("Attendees.txt")
html = Path() / "html"
@click.group()
@c... | [
"mindviewinc@gmail.com"
] | mindviewinc@gmail.com |
051eb317acccff8a7d27506a3e72e3c1e18d19f3 | ebce276eb1e7391fd33ce3b6488846c9907b889e | /mymodule_demo.py | 77859133138abb9e4d3670598557130e5212f278 | [] | no_license | junlongsun/PythonDemo | 9630eec7ff3de5ee92ae2d2f00906a9155e7c4bb | 086d72ae3228756fd3155ba1a3f1128be534c317 | refs/heads/master | 2016-08-06T06:07:46.951234 | 2015-08-29T19:02:52 | 2015-08-29T19:02:52 | 41,603,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #!/usr/bin/python
# Filename: mymodule_demo.py
import mymodule
dir(mymodule)
mymodule.sayhi()
print 'Version', mymodule.version
| [
"junlong.sun@colorado.edu"
] | junlong.sun@colorado.edu |
2665b0d21ad75e4516c94f4328876d29cfbd5752 | 5c52589d28b48539eacf034bb3eaf2ab7efbed58 | /venv/Scripts/pip-script.py | eef5a04da23847758712b0c627c4d6c93ac05638 | [] | no_license | ShaeLin983/pythonTestProject | 9a96844d69b23af6779c88afdac5273e8ca83f36 | 788de2be7696028552dd9316d74de2ab77363d53 | refs/heads/master | 2020-06-09T17:03:33.331876 | 2019-07-01T13:10:32 | 2019-07-01T13:10:32 | 193,473,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!f:\PycharmProjects\pythonTestProject\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"linx0220@163.com"
] | linx0220@163.com |
6e99c540a9920a214daca8c0db37c178bf0617b8 | 6a2a0ba0b3bb304fe8c844474f874619dd5b7df4 | /week1/ex8.py | 247891629a29d1b0bf731d0d4d7d07e8d5f97038 | [] | no_license | pbenipal61/iot-data-analysis | 583e1491c0819fd10c7e07b31d93c5ef11f37d57 | 7e2f3ed4b85f83cf6bc9e3ccf1d8b250ead0e995 | refs/heads/master | 2022-12-15T07:00:25.305896 | 2020-09-17T21:18:04 | 2020-09-17T21:18:04 | 291,765,540 | 0 | 0 | null | 2020-09-17T21:18:05 | 2020-08-31T16:20:14 | Python | UTF-8 | Python | false | false | 88 | py | import numpy as np
matrix = np.reshape(np.arange(100, 200, 10), (5, 2) )
print(matrix) | [
"t8sipr00@students.oamk.fi"
] | t8sipr00@students.oamk.fi |
15974039e082f50a6ca79584bc79968741955199 | dbdc26d866057457f2e511bd881148faf2996643 | /old/refers/_search_word_old.py | e17cdb015856eb428308920e267259d06a14fd47 | [] | no_license | yzyDavid/furigana | 2dc3376e8779ea3cfed57b6fdb4f6d31ffe68df4 | cc72db866d539687532808d69d6be5ac1a95443e | refs/heads/master | 2021-01-10T00:58:37.260389 | 2018-04-04T06:16:03 | 2018-04-04T06:16:03 | 51,136,928 | 0 | 1 | null | 2018-04-04T06:16:04 | 2016-02-05T09:14:27 | Python | UTF-8 | Python | false | false | 1,856 | py | # -*- coding:utf-8 -*-
# import urllib.request as ur
# import codecs
import requests
import re
DEBUG = False
BASIC_URL = r'http://dict.hjenglish.com/jp/jc/'
# def search_word(word):
# basic_url = r'http://dict.hjenglish.com/jp/jc/'
# search_url = basic_url + word
# #search_url = search_... | [
"yzyDavid@qq.com"
] | yzyDavid@qq.com |
1c5daec5e4fda16f1120b32e7f9d688b02254b60 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/IB-DHCPONE-MIB.py | aea222e97e72ae77fa4c45e1500e93446cf69240 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 11,349 | py | #
# PySNMP MIB module IB-DHCPONE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IB-DHCPONE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:50:35 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
6bb0bb620a727e137539fa2541dcdc9c70c36bb4 | c9bc95759aef6c068a9fbb170c40c255b2f4e451 | /plugin/CutsceneSkipper.py | c85430b6ee289a25d0abf2093ca399f891c71bd7 | [] | no_license | lumptyd/FFxivPythonTriggerPlus | 52847420d866414024330bf8ff074fea65f6b239 | d7d783f7f4412f4c2fa965d12f74585010d12e09 | refs/heads/master | 2023-06-06T00:55:59.194873 | 2021-06-23T18:46:20 | 2021-06-23T18:46:20 | 379,401,467 | 0 | 0 | null | 2021-06-22T21:27:03 | 2021-06-22T21:10:01 | null | UTF-8 | Python | false | false | 2,865 | py | from FFxivPythonTrigger import PluginBase
import logging
"""
patch code to skip cutscene in some zone
command: @cutscene
format: /e @cutscene [p(patch)/d(dispatch)]
"""
nop = b"\x90\x90"
pattern = b"\x8B\xD7\x48\x8B\x08\x4C\x8B\x01"
command="@cutscene"
class CutsceneSkipper(PluginBase):
name = "Cutscene Sk... | [
"hhh"
] | hhh |
482dcaf3edc7af83efcf3fa4d13ebaf71dfa5d7b | e9e6ce520a2abae5e13363b47fbd6e9ebfc6c73f | /descriptions/three_pi_description_copy/scripts/move.py | ab89d306bb17e85d91a935f83254f8d8ee76dcd8 | [] | no_license | Lizzylizard/ReinforcementLearningByElisabeth | 755b5fff13f06f3f452e12a7eb6b48722e3bf3c2 | 10d612d454864028462e85d5349d4440833a3797 | refs/heads/main | 2022-12-29T07:52:47.828097 | 2020-10-16T13:04:07 | 2020-10-16T13:04:07 | 304,057,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | #!/usr/bin/env python
import rospy
#from /home/elisabeth/catkin_ws/src/ROS_Packages/my_msgs.msg import VelJoint
from my_msgs.msg import VelJoint
def move():
# Starts a new node
rospy.init_node('move_three_pi', anonymous=True)
velocity_publisher = rospy.Publisher('/cmd_vel', VelJoint, queue_size=10)
ve... | [
"elisabeth.milde@informatik.hs-fulda.de"
] | elisabeth.milde@informatik.hs-fulda.de |
29b762ec133fdade4911774d3363521b2f7f9ba4 | 3a5c7d812fac93b4a2543a36a07149f864d4ed0b | /Hmm/hmm_new/2H.py | 59a37551d7613858f64e6cebb22695e8f0e26a66 | [
"MIT"
] | permissive | MrAlexLemon/GeneratorOfPoems | d54a17476cd3cc581f0bcc03865d5adb7e1063df | 467f798153fed967c9c5994c9a796b90d565f597 | refs/heads/master | 2020-04-23T08:36:43.411172 | 2019-02-16T19:30:45 | 2019-02-16T19:30:45 | 171,042,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,861 | py |
from HMM import unsupervised_HMM
from Utility import Utility
import re
import copy
def unsupervised_learning(n_states, n_iters):
'''
Trains an HMM using supervised learning on the file 'ron.txt' and
prints the results.
Arguments:
n_states: Number of hidden states that the HMM should have.... | [
"lileynuk@gmail.com"
] | lileynuk@gmail.com |
4f6302572228b7efcecdd72f4d4e5d237a66da92 | a8577e7ad1652458de236b85636069a1ca0c9c96 | /oscn/parse/docket_report.py | 88017f3e596727cda11a3d9842e190147e4cbcc4 | [
"MIT"
] | permissive | codefortulsa/oscn | 596678649b9e5e0db58ad6ad7313cfcd90b907b0 | 012f721127849ff24f3f8b3c17c640c388e82591 | refs/heads/main | 2023-02-11T15:11:59.651899 | 2023-01-26T23:16:05 | 2023-01-26T23:16:05 | 140,227,962 | 11 | 10 | MIT | 2022-12-26T21:31:55 | 2018-07-09T03:42:54 | Python | UTF-8 | Python | false | false | 890 | py | import urllib.parse as urlparse
from bs4 import BeautifulSoup
def cases(oscn_html):
case_list = []
soup = BeautifulSoup(oscn_html, "html.parser")
case_tables = soup.findAll("table", "clspg")
for case in case_tables:
case_link = case.find("a")
parsed = urlparse.urlparse(case_link["hre... | [
"johnadungan@gmail.com"
] | johnadungan@gmail.com |
4271d8331175e5148e8949a67e93f8ab2c93e395 | 8a3cc7cee5da2cfc69270feb502e71a52ebe7684 | /MinMax & Alphabeta/game_agent.py | 3d65c7087bdcaaab87a1284fcdf6485d3a1c0e29 | [] | no_license | LearnedVector/AI-Foundation | 1ff6287cee2c92e8f9ead03b106431307ea64c07 | f191feb10ca47d5281c8002ee990228723ab850f | refs/heads/master | 2021-07-13T19:43:25.282277 | 2017-10-16T01:33:55 | 2017-10-16T01:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,501 | py | import random
class SearchTimeout(Exception):
"""Subclass base exception for code clarity. """
pass
def center_score(game, player):
if game.is_loser(player):
return float("-inf")
if game.is_winner(player):
return float("inf")
w, h = game.width / 2., game.height / 2.
y, x = ... | [
"ppnguyen91@gmail.com"
] | ppnguyen91@gmail.com |
70dea9681850a7d8176cc8fc66d927d5f1513732 | d9b48edd175aadbacf47c94872217b652e3a0add | /cvxpy/reductions/cone2cone/approximations.py | d4d8bff936acd93d4cb10a9c3aa978eb58ae6b55 | [
"Apache-2.0"
] | permissive | Fage2016/cvxpy | 106149f5f9a1b9bb957f41ecdca72194c4d065c3 | 2a23c109e49577d8da4b97bbf6c866400da105c4 | refs/heads/master | 2023-08-03T21:28:48.143370 | 2023-03-08T20:53:07 | 2023-03-08T20:53:07 | 86,796,794 | 0 | 0 | Apache-2.0 | 2023-03-18T04:56:08 | 2017-03-31T08:31:20 | C++ | UTF-8 | Python | false | false | 7,058 | py | """
Copyright 2022 the CVXPY developers
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, so... | [
"noreply@github.com"
] | Fage2016.noreply@github.com |
6180214e717d6e06e85875f87e397b17f6826576 | d61711ceb3c505067956b37be08cf9edab2ee4d4 | /I0320014_Soal2_Tugas4.py | 7916dee501d70ba0813698ae9479a45c38c7d618 | [] | no_license | audreyalexandra/Audrey-Alexandra_I0320014_Wildan_Tugas4 | de8b4debb0a66be097360bf530c0fc4e41c13b82 | 46fc9966a42c4e0305c86e79bdd37843e5b7912f | refs/heads/main | 2023-03-15T05:02:07.011153 | 2021-03-27T01:34:01 | 2021-03-27T01:34:01 | 351,607,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | bil1 = int(input("Masukan Bilangan bulat pertama : "))
bil2 = int(input("Masukan Bilangan bulat kedua : "))
print("Hasil %d // %d = %d" % (bil1, bil2, bil1//bil2)) | [
"audreyalexandra18@gmail.com"
] | audreyalexandra18@gmail.com |
9770331cc4ed8b9caba652786a87ec8aced75466 | e94c7bd97d8b8b3b2945d357521bd346e66d5d75 | /test/lmp/script/gen_txt/test_signature.py | 1a75301a671acbdfbd9ac9ea870cb204b57d9bc1 | [
"Beerware"
] | permissive | ProFatXuanAll/language-model-playground | 4d34eacdc9536c57746d6325d71ebad0d329080e | ec4442a0cee988a4412fb90b757c87749b70282b | refs/heads/main | 2023-02-19T16:21:06.926421 | 2022-09-25T13:35:01 | 2022-09-25T13:35:01 | 202,471,099 | 11 | 26 | NOASSERTION | 2023-02-16T06:39:40 | 2019-08-15T03:57:23 | Python | UTF-8 | Python | false | false | 1,040 | py | """Test :py:mod:`lmp.script.gen_txt` signatures."""
import argparse
import inspect
from inspect import Parameter, Signature
from typing import List
import lmp.script.gen_txt
def test_module_method() -> None:
"""Ensure module methods' signatures."""
assert hasattr(lmp.script.gen_txt, 'parse_args')
assert inspe... | [
"ProFatXuanAll@gmail.com"
] | ProFatXuanAll@gmail.com |
da6a4ecd79cdde4a64fed17365c2700d3e0e3243 | b801f7f8258660ab5e186aa64108f9a1e481c785 | /eithne.py | ac1437d6922c8f5dfbb3580b43d10ed6519d4137 | [] | no_license | aureoares/eithne | 8ab9c094c6bf49861e86fda9f6a23b2a4e5bf844 | 4d8020753a272d283b7e14c6ae9b5129853dd17f | refs/heads/master | 2021-01-22T06:58:46.730744 | 2010-04-06T18:07:29 | 2010-04-06T18:07:29 | 37,327,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,772 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ConfigParser
#import optparse
import pickle
#import BeautifulSoup
import MySQLdb
import SocketServer
import BaseHTTPServer
import SimpleHTTPServer
import ansley
def loadConf(conf_file):
"""Carga la configuración de un fichero y la guarda en un diccionario."""
c... | [
"?ureo Ares@localhost"
] | ?ureo Ares@localhost |
26d03fcefa5d70539bb6d822b5978722de681a0c | a9e578a66a4706dedf83838ec3288adb893e57fd | /src/impute.py | e82f2af49047a8a2aa131493f61070eb732b20a6 | [] | no_license | jgondin/predict-water-pump-failure | 4e741c9385717c9f802e7ccc5fbc1c5032b81129 | 73d7664fb6b0ab605b6b3d6605ede256a56024fa | refs/heads/master | 2020-12-25T17:16:36.944533 | 2016-07-09T22:53:14 | 2016-07-09T22:53:14 | 62,754,230 | 1 | 0 | null | 2016-07-06T21:22:52 | 2016-07-06T21:22:52 | null | UTF-8 | Python | false | false | 13,041 | py | import pandas as pd
#import matplotlib.pyplot as plt
#import statsmodels.api as sm
#import seaborn as sbrn
import numpy as np
#import re
#import trainetime
import pickle
#from collections import OrderedDict
#import sklearn
def imputeTrain(trn):
"""
Input: Training dataset
Output: Returns copy of imputed trainin... | [
"ashirwad08@yahoo.com"
] | ashirwad08@yahoo.com |
36e937ed9a02e89828503fe4075624dadcde6ed4 | bf3bc3abdb7b2660c02bc1375ba146461b188364 | /modules/loto/loto.py | 7328f3cabee6872a53226de8c3ab6bb8d672bf29 | [] | no_license | JeremyMet/matrix_bot | 39a3d942ad091f49445b5e5bcd8600175c919b8f | be76fb8276d031dc796ce3c329c871ec8854c30b | refs/heads/master | 2023-05-13T00:36:39.384341 | 2021-05-01T19:44:03 | 2021-05-01T19:44:03 | 143,750,633 | 0 | 0 | null | 2023-05-01T22:16:13 | 2018-08-06T15:49:40 | Python | UTF-8 | Python | false | false | 7,150 | py | import json;
import random;
import datetime;
from collections import namedtuple;
import os.path
import pickle
Draw_Time = namedtuple("Draw_Time", "hour minute");
class loto(object):
pt_table = {} ;
pt_table[0] = 0 ;
pt_table[1] = 1 ;
pt_table[2] = 5 ;
pt_table[3] = 75 ;
pt_table[4] = 3400 ;
... | [
"metairie.jeremy@gmail.com"
] | metairie.jeremy@gmail.com |
e578ca55d3417235a395630d3703b4a15be034e3 | 0d16ed8dffd7b951abd66bf895c254749ed8195a | /Lab4_Data_Structure__And_Iternation/List_questions/Three_largest_Four_smallest.py | d88b064b48df1c3232635c99c3140107e8c2ceb9 | [] | no_license | sanjiv576/LabExercises | 1cfea292e5b94537722b2caca42f350ab8fc7ab8 | ef5adb4fbcff28162fe9e3e80782172b93127b33 | refs/heads/master | 2023-07-22T08:13:04.771784 | 2021-08-17T12:23:21 | 2021-08-17T12:23:21 | 372,397,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # Write a Python program to get the largest number from a list.
# Write a Python program to get the smallest number from a list.
ThreeFour = [23,11,5,12,4]
print(max(ThreeFour)) # max() gives the largest number of the list
print(min(ThreeFour)) # min() gives the smallest | [
"83968516+sanjiv576@users.noreply.github.com"
] | 83968516+sanjiv576@users.noreply.github.com |
fb2ac13cd6ae9f98927d9133160b287216fab5b2 | 2d7c21a793c8080a090ce8c9f05df38f6477c7c7 | /creator/referral_tokens/apps.py | 1e50dca4c827c703ff396ac486c4cdb4d6185f08 | [
"Apache-2.0"
] | permissive | kids-first/kf-api-study-creator | c40e0a8a514fd52a857e9a588635ef76d16d5bc7 | ba62b369e6464259ea92dbb9ba49876513f37fba | refs/heads/master | 2023-08-17T01:09:38.789364 | 2023-08-15T14:06:29 | 2023-08-15T14:06:29 | 149,347,812 | 3 | 0 | Apache-2.0 | 2023-09-08T15:33:40 | 2018-09-18T20:25:38 | Python | UTF-8 | Python | false | false | 104 | py | from django.apps import AppConfig
class ReferralTokensConfig(AppConfig):
name = "referral_tokens"
| [
"xzhu.fg@gmail.com"
] | xzhu.fg@gmail.com |
667fbc214431aa1477babf4a3224675a2d8da21f | 63e3d4bfd14b1bc7eb0fdb735312dfa23210051e | /credentials.py | aeba98bbb4d23c799c98f05cc2981ff77b91febc | [] | no_license | Arcadonauts/BES-2018 | 1ec7331c4882603acdafa261a5c92de8d768fa42 | c73dc15e7178ea565cde24702ac69611e31324cc | refs/heads/master | 2023-02-21T03:48:34.418590 | 2022-01-08T05:15:42 | 2022-01-08T05:15:42 | 128,519,979 | 0 | 0 | null | 2023-02-02T03:47:29 | 2018-04-07T10:59:09 | JavaScript | UTF-8 | Python | false | false | 1,127 | py | from twitter import OAuth
from oauth2client.file import Storage
yieldcurve = OAuth(
token = "952297957788971008-kecr8AFjWcsTPMoXfsmmbnp7gbldcX2",
token_secret = "GMEDO1ZJEbPuI2LWSd1b7Kk95NymnreYQ6xrR7KdT7yXB",
#owner = "DailyYieldCurve",
#owner_id = "952297957788971008",
consumer_key = "DOWlrAasc9... | [
"fegleynick@gmail.com"
] | fegleynick@gmail.com |
d614a2dc512cfe4f235594be6aaf24e0db8ac8fd | bc8b9ca228fb90ce3e0aefd53b135cdd68329caa | /telethon/events/chataction.py | 2927c8d0f0b65e052e3609fbb2fae46a45097883 | [
"MIT"
] | permissive | huangdehui2013/Telethon | 1147ce9acba4db087efa39514a7cab6276becb92 | dd954b8fbd1957844c8e241183764c3ced7698a9 | refs/heads/master | 2020-03-16T18:49:25.989083 | 2018-05-10T07:44:25 | 2018-05-10T07:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,657 | py | from .common import EventBuilder, EventCommon, name_inner_event
from .. import utils
from ..tl import types, functions
@name_inner_event
class ChatAction(EventBuilder):
"""
Represents an action in a chat (such as user joined, left, or new pin).
"""
def build(self, update):
if isinstance(update... | [
"totufals@hotmail.com"
] | totufals@hotmail.com |
16c9a46a2c9d733a15e6609b93e0c2dda7c13452 | 12a6a68913fa5772973af9b2b2c4c90bc0656a57 | /assignment03/mdp-simulator/ai982-mdp/utilities.py | 5ec736a82ac011e00107bc86d94110542ff535c6 | [] | no_license | homasms/AI_projects | 42b944166617f76a106edcafe7d940dd240be0b1 | c66c2e6c7e1965e6579b9ed849b7d6415c6e5e9a | refs/heads/master | 2023-06-01T05:03:27.160197 | 2021-06-10T14:28:36 | 2021-06-10T14:28:36 | 276,040,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | import enum
class Actions(enum.Enum):
N = 1
W = 2
S = 3
E = 4
EXIT = 5
def initialize_world_parameters(world_type):
if world_type == 'smallWorld':
return (3, 3), {(0, 2): 1, (1, 2): -1}
if world_type == 'largeWorld':
return (10, 10), {(0, 9): 1, (1, 9): -1}... | [
"homasemsarha@yahoo.com"
] | homasemsarha@yahoo.com |
dc2c1061b024a7d9902210c6ee216bf9908e7be1 | 1511bc3e1dac288855e0757f199e5f505afb8e6c | /Senior(2018-2019)/Python/Chapter 4/P4.3-B.py | 42a71b3597b3d64dcf32077b45bf2392ed09c958 | [] | no_license | jakelorah/highschoolprojects | a629fa36cc662c908371ad800b53bbdb2cc8390f | dfe8eec9894338933ce4eb46f180d7eeadd7e4d3 | refs/heads/main | 2023-02-26T03:01:55.570156 | 2021-01-31T19:05:41 | 2021-01-31T19:05:41 | 308,147,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | #Name: Jake Lorah
#Date: 10/18/2018
#Program Number: P4.3-B
#Program Description: This program prints every second letter of the string.
#B:
string = input("Please enter a string: ")
n = len(string)
for n in range (1, n, 2) :
print(string [n])
| [
"jlorah@highpoint.edu"
] | jlorah@highpoint.edu |
68b259649181c54eea9faebc337711ab016af534 | 5c4289608693609de3d755674cba53b77cbc4c69 | /Python_Study/2课堂练习/Python基础班/06_名片管理系统/cards_main.py | 32a8e9caa251e2f2c3000e3de1f3a1e6e5ad5bcf | [
"Apache-2.0"
] | permissive | vipliujunjie/HouseCore | 95892e632f840f22715d08467d6610195d562261 | e9fa5ebc048cbede7823ac59a011a554bddf8674 | refs/heads/master | 2021-02-05T13:09:43.962224 | 2020-02-28T14:46:26 | 2020-02-28T14:46:26 | 243,783,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #! /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
import cards_tools
# 无限循环 由用户决定什么时候退出循环
while True:
# TODO(刘俊杰) 显示功能菜单
cards_tools.show_menu()
action_str = input("请输入希望执行的操作:")
print("您选择的操作是【%s】" % action_str)
# [1,2,3] 针对名片的操作
if action_str in ["1", "2", "3"]: # 判断在指定列表内... | [
"1520997065@qq.com"
] | 1520997065@qq.com |
5accaca4d79de6e89aeddb67971165259bec460b | 7a866c210bba93fa33e02305e221338541d6ec9b | /Direction JOL/Timed JOL/Output/Merged/EX2_conf_plots.py | 912af24af1f000dedf77b86d611584c4bba457a1 | [] | no_license | npm27/Spring-2019-Projects | afbb6d3816e097b58f7d5032bc8d7563536a232a | 52e0c1c4dc3de2e0399e5391dd2c8aff56754c1c | refs/heads/master | 2021-12-20T01:01:11.218779 | 2021-12-08T14:49:18 | 2021-12-08T14:49:18 | 168,214,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | ##set up
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
dat = pd.read_csv("Delayed conf.csv") #JUST NEED TO ADD DATA
dat['diff'] = dat['Upper'].sub(dat['Lower'])
dat['diff2'] = dat['diff'].div(2)
##make subsets
datF = dat[dat['Direction'] == 'F']
datB = dat[dat['Direction'] == 'B']
datS = dat... | [
"35810320+npm27@users.noreply.github.com"
] | 35810320+npm27@users.noreply.github.com |
8dcb22ca5cfbfea727ccfbf086dcd7217f807a28 | e5487abf1270a8b14f003c444b199483c6d825d2 | /Code/lambda/skill_env/bin/rst2s5.py | 28d30c28e7838663dfad221a9f679ae1e398e04c | [] | no_license | tmoessing/Coin-Collector | 8828c789da2fa7a46fbfc741487d1a6dc533c7c8 | c5e9dccee6ed393c81db7350bdab89111033ac33 | refs/heads/master | 2020-11-26T01:23:03.131189 | 2019-12-18T21:02:07 | 2019-12-18T21:02:07 | 223,520,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | #!c:\users\tmoes\appdata\local\programs\python\python36\python.exe
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the S5 templa... | [
"tmoessing@gmail.com"
] | tmoessing@gmail.com |
202bff332bc7441a918f1a1ed187ec533a4b32cf | 04bae28a2eefc1db77097a94af558d3df6a1e713 | /20191009/Deblur_GAN/deblurgan/losses.py | c5c6dfc84d0af0c2ed18a1f853911c052d194acb | [] | no_license | Armida220/DIPHomeWork | 8fc56df852fdedf26ef852ca2cc62f7be4067005 | 1753c1ad9783aba8a5402c98421d1126d5081aaf | refs/heads/master | 2020-11-26T06:10:24.752413 | 2019-10-31T08:11:08 | 2019-10-31T08:11:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | import keras.backend as K
from keras.applications.vgg16 import VGG16
from keras.models import Model
import numpy as np
# Note the image_shape must be multiple of patch_shape
# image_shape = (256, 256, 3)
image_shape = (1024, 1024, 3)
def l1_loss(y_true, y_pred):
return K.mean(K.abs(y_pred - y_true))
def percep... | [
"754037927@qq.com"
] | 754037927@qq.com |
6557c40afa926f83bc0721834c9ee2d158e8fd46 | 0d0988d2afeba6539ab3802f0cac9a25ff862076 | /metodosConjuntosSTR.py | f42cea1cbd2300014f65169bbb193579f1ddd1e4 | [] | no_license | alexisflores99/Repo-for-Python | a5e967c17c0938dc5a8e91db2a6ea7302e2cd109 | d4339edcee3d2b1f57129df8059eb32c41ce4864 | refs/heads/master | 2023-04-18T18:43:06.864806 | 2021-05-02T04:05:41 | 2021-05-02T04:05:41 | 363,562,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # set_conjunto1 = set({1,2,3,4})
# set_conjunto1.add(5)
# print(set_conjunto1)
#************************************
# set_conjunto = set({1.0, "Auto", True})
# otro_conjunto = set_conjunto.copy()
# set_conjunto == otro_conjunto
# print(otro_conjunto)
#************************************
# paquete = set({"Hola",2 ,3... | [
"hector.flores6@unmsm.edu.pe"
] | hector.flores6@unmsm.edu.pe |
9e6666d6b99be4eaa286ee65de5946bc52dde225 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_managed_instance_vulnerability_assessments_operations.py | b81f57346b44a5fb1b5e3a63d654f6f168e9144d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 21,802 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
6affbb678c0509cdb3dd5674c2edb67dd98dcb75 | e53d920751b86ae09a16913c7531a806c334265f | /mmdet3d/ops/furthest_point_sample/points_sampler.py | 9a3bd2ae42d625cc19355492246d4967a8e96b92 | [
"Apache-2.0"
] | permissive | destinyls/mmdetection3d | e959e4a1a9316b385cec73a654bc8a016cb43a02 | f2247c2471dbb429512353b3f0802f839655dd16 | refs/heads/master | 2023-03-20T21:12:32.105859 | 2023-01-24T01:45:12 | 2023-01-24T01:45:12 | 279,744,471 | 1 | 1 | Apache-2.0 | 2020-07-15T02:42:54 | 2020-07-15T02:42:53 | null | UTF-8 | Python | false | false | 5,373 | py | import torch
from mmcv.runner import force_fp32
from torch import nn as nn
from typing import List
from .furthest_point_sample import (furthest_point_sample,
furthest_point_sample_with_dist)
from .utils import calc_square_dist
def get_sampler_type(sampler_type):
"""Get the typ... | [
"noreply@github.com"
] | destinyls.noreply@github.com |
6388a2abfd90b416b71fb102e7f2bdc93ad8f6ca | 23da742e7b7fd998f499abda3d26d4a8689f681f | /split_list.py | 3b3f52e747e063226bbd99bd7574ca6f7c7cdadf | [
"Apache-2.0"
] | permissive | JustDoItGit/daily_utils | 57c25f7beb57f887d69e1244ecac518e0f357d63 | 503937f284bca021e10a11d846dfae2fcae808d8 | refs/heads/master | 2023-01-22T04:34:31.114116 | 2020-12-04T05:28:30 | 2020-12-04T05:28:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | def split_list(ls, num):
"""
拆分list
:param ls: 带截取的列表 [0, 1, 2, 3, 4, 5, 6]
:param num: 除最后一个列表之外其他列表长度 3
:return: 所有拆分的列表 [[0, 1, 2], [3, 4, 5], [6]]
"""
a = len(ls)
if a <= num:
return [ls]
quotient = a // num # 商
remainder = a % num # 余数
res_split = []
for i ... | [
"noreply@github.com"
] | JustDoItGit.noreply@github.com |
78f30f4848d93d075ba4bebcbc215dde6d0351fd | f777be3ca7cfe3c4ac24a1f962ea4c4d4e0aada3 | /testing.py | b672b936e7b0c0fe9bbfe3fdaf65b82198dabdb3 | [] | no_license | rogelio08/text_based_story | ab7419865b34c6c1b47f87fc768a02eddcc5c2ea | e7c646335ead1cf552e382dff3025157b4540ecf | refs/heads/master | 2023-07-02T03:49:46.080875 | 2021-08-08T05:07:09 | 2021-08-08T05:07:09 | 393,861,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,411 | py | import sys
import time
#I changed this
a = 2
b = 0.2 # slower time between characters getting spaced out
c = 0.08 # quicker time between characters getting printed
def intro():
print("\n")
time.sleep(a)
string_1 = '"Very well, remember to answer truthfully... Or don\'t, either way you\'ll pro... | [
"noreply@github.com"
] | rogelio08.noreply@github.com |
ad42586e96c02a379336285a2bc1b60cb0230dec | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/containerinstance/v20180401/container_group.py | 393f32a489204ca350e64cfea46921dc0a2db827 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,452 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
468ec6b362681d9a3018b5f0182ef31622ef30b1 | 1b0a729f6e20c542a6370785a49c181c0675e334 | /main.py | 35fb3f77ad0ea393411e9e0c57d85315d85bd310 | [] | no_license | fans656/mint-dev | 68125c4b41ab64b20d54a2b19e8bf0179dc4636b | 408f6f055670b15a3f3ee9c9ec086b1090cce372 | refs/heads/master | 2021-05-04T11:43:44.740116 | 2016-09-07T13:43:44 | 2016-09-07T13:43:44 | 45,515,119 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from mint import *
from mint.protocols.test import Retransmit
a, b, c = Host(), Host(), Host()
s = Switch()
link(a, s.tips[0], 1)
link(b, s.tips[1], 2)
#link(c, s.tips[2], 3)
a += Retransmit()
a.send('hi')
#b.send('me').at(5)
start()
| [
"fans656@yahoo.com"
] | fans656@yahoo.com |
47b2fcaa1e74c97b42be077420a4335f38b24f8d | a7ff1ba9437204454c6b8639e99b007393c64118 | /synapse/tools/aha/enroll.py | a643a485268842bbc531afab92dd9b5e8bf84112 | [
"Apache-2.0"
] | permissive | vishalbelsare/synapse | 67013933db31ac71a4074b08a46b129774f63e47 | a418b1354b2f94e32644ede612c271a6c362ccae | refs/heads/master | 2023-09-01T10:45:34.439767 | 2022-05-13T21:07:20 | 2022-05-13T21:07:20 | 164,022,574 | 0 | 0 | Apache-2.0 | 2022-05-15T07:45:07 | 2019-01-03T21:01:32 | Python | UTF-8 | Python | false | false | 2,609 | py | import os
import sys
import asyncio
import argparse
import synapse.common as s_common
import synapse.telepath as s_telepath
import synapse.lib.output as s_output
import synapse.lib.certdir as s_certdir
descr = '''
Use a one-time use key to initialize your AHA user enrivonment.
Examples:
python -m synapse.tools... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
40d836471602038f8e490438807b48014491d9e2 | df97d5b25d40b54e0714ed9c0a6dd7a579011e2e | /mikadocms/flikr_grabber.py | 966050a532ec3be0269d2f1bc60375d21d2ae39b | [] | no_license | mikadosoftware/mikadoCMS | 90ac1910b06f32bc3e808d1df656ba38a30e781c | 7bb1ca4f66b74d4529a601540e1bf469f44d3b01 | refs/heads/master | 2021-01-17T00:20:34.489198 | 2018-06-13T15:27:53 | 2018-06-13T15:27:53 | 8,103,422 | 0 | 0 | null | 2013-05-03T23:07:59 | 2013-02-08T23:27:27 | JavaScript | UTF-8 | Python | false | false | 2,740 | py | #!/usr/bin/env python
#! -*- coding: utf-8 -*-
### Copyright Paul Brian 2013
# This program is licensed, without under the terms of the
# GNU General Public License version 2 (or later). Please see
# LICENSE.txt for details
###
"""
:author: paul@mikadosoftware.com <Paul Brian>
Flikr.com provides a useful outle... | [
"paul@mikadosoftware.com"
] | paul@mikadosoftware.com |
a006f031a6bef10a643b1366ee30edb96ede4562 | 7e40fdb15a67e3b53162bbcd2b1f091805837d9f | /article/migrations/0006_auto__add_newslettermain.py | ee4e4c7d24923010ed32341a3a741fa9e7bb03f5 | [] | no_license | brentcappello/newsdub | 79a5eecd92dcaf44aa07314eedbc7d5183683689 | cdfc6619cc8b89bc224100e913cb85378d0d8cea | refs/heads/master | 2016-09-01T20:53:07.784968 | 2012-11-15T02:53:41 | 2012-11-15T02:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,992 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'NewsletterMain'
db.create_table('article_newslettermain', (
('id', self.gf('djan... | [
"brent@gmail"
] | brent@gmail |
07ed4b9273137675fff9b21384eac1a28eb95b43 | 137524b533472fd4b2752078e0a6d7f4c0fcf2d7 | /tasksLab1/task2/TaskC.py | fcb64df58dd9a0784cd9d4db227026f85e35aa2e | [] | no_license | blazejmichal/inteligencja-obliczeniowa | 8666869c227006fdae5dc1ab3a1b549c1db91548 | 4ffef53cddd82711d559eafd5c9d47e09c0e048d | refs/heads/master | 2023-02-17T05:42:43.522395 | 2021-01-17T16:09:34 | 2021-01-17T16:09:34 | 319,463,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import matplotlib.pyplot as plt
import csv
class Task2c:
def __init__(self):
pass
@staticmethod
def execute():
x = []
y = []
with open('miasta.csv') as csvfile:
reader = csv.DictReader(csvfile)
for column in reader:
x.append(column... | [
"Blazej@DESKTOP-P8SE49K"
] | Blazej@DESKTOP-P8SE49K |
1ad67f537ad7c367ceee20cd2b88f9124ff2566a | 6971681df75216216f4b0a196b49077361ed6829 | /src/olympia/migrations/335-perms-locales.py | 6e210baccd4f36e7d0b22701cea1f573819fb9dc | [
"CC-BY-3.0",
"CC-BY-NC-4.0",
"CC-BY-4.0",
"CC-BY-ND-3.0",
"CC-BY-NC-ND-3.0",
"CC-BY-SA-3.0",
"CC-BY-NC-3.0",
"CC-BY-NC-ND-4.0",
"CC-BY-NC-SA-3.0"
] | permissive | piyushmittal25/addons-server | fb6eafc2c1239608c435e3afc7a6bd3db3e38e77 | 1527d1542f0e025940b7b370bf98350869737e2f | refs/heads/master | 2020-03-18T21:44:06.420678 | 2018-05-29T11:08:31 | 2018-05-29T11:08:31 | 130,405,465 | 0 | 0 | BSD-3-Clause | 2018-04-23T10:56:40 | 2018-04-20T19:29:28 | Python | UTF-8 | Python | false | false | 1,140 | py | from django.conf import settings
from access.models import Group, GroupUser
LANGS = sorted(list(
set(settings.AMO_LANGUAGES + settings.HIDDEN_LANGUAGES) -
set(['en-US'])))
def run():
Group.objects.create(pk=50006, name='Senior Localizers',
rules='Locales:Edit')
for idx, lo... | [
"chudson@mozilla.com"
] | chudson@mozilla.com |
230c05c7d30324adcb69a3442767523215dea7ec | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/sklearn/metrics/cluster/supervised.py | 31d1a45b74047c04f16b5e95a5fec55fca7b256f | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 26,696 | py | """Utilities to evaluate the clustering performance of models
Functions named as *_score return a scalar value to maximize: the higher the
better.
"""
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Wei LI <kuantkid@gmail.com>
# Diego Molla <dmolla-aliod@gmail.com>
# License: BSD 3 clause
fr... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
a66207933164a09184cfbafd8103be05a5840217 | 204833b06d6b62a66cf60c966835d0876f84432e | /Constants.py | ee09c1a8cfc4c6f068b2057c868b723727983bbc | [] | no_license | dariodematties/Dirichlet | d03a9067bcedd882f9e3421dc5a35c592da0c360 | 7a69ea351e64110b699290268379b6ef2fc86e4b | refs/heads/master | 2018-11-10T11:02:49.439077 | 2018-08-21T17:37:26 | 2018-08-21T17:37:26 | 109,689,246 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | ENABLE_RANDOM_BEHAVIOUR = True;
| [
"dariodematties@yahoo.com.ar"
] | dariodematties@yahoo.com.ar |
17edec3a0cbd5397bc360dc2289f7aa23fef2f2b | 02122ec38633c178ced34d8a027addc919b4c200 | /Nutrients/api/urls.py | 757826e0b86fe90b0ab82e9e332d35f5dd0ee419 | [] | no_license | SIBU99/serverCVKM | 07907b3c416892bcc432b9317506927112750a93 | 8182f2274216016a15a2a98ea5a31d7e05222ed5 | refs/heads/master | 2023-01-12T10:19:54.966211 | 2020-11-10T08:33:41 | 2020-11-10T08:33:41 | 311,407,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.urls import path
from .views import NutrientExamination
urlpatterns = [
path("nutrient-examination/", NutrientExamination.as_view(), name="nutrient-examination"),
]
| [
"kumarmishra678@gmail.com"
] | kumarmishra678@gmail.com |
2f42da8393cd536ef56b1a0bef15efe947177b66 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/mgr/model_edit/trade_shop.py | d402834b28b5ad1f8056bc5d4ec9eec808d29ae6 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.mgr.model_edit import AdminModelEditHandler,\
AppModelForm, ModelEditValidError, AppModelChoiceField
from defines import Defines
from platinumegg.app.cabaret.util.api import BackendApi
from platinumegg.app.cabaret.models.TradeShop import TradeShopMaster, Tr... | [
"shangye@mail.com"
] | shangye@mail.com |
b27a50e038b03e30c82265c12688de6cc9a21df9 | 0ac34d1fad3ed7e18b3803a25878a8e3d74a259e | /messages_app/forms.py | 39b210591b39588f92dd76cf69d3813ca820b149 | [] | no_license | predictnonprofit/PredictME-WebApplication | b20a35a3ca9fcd0f8349cca83a75576afe96841c | 557864cf9b98188478b9661cba23477d3e16ff85 | refs/heads/main | 2023-08-12T12:01:53.865143 | 2021-10-06T18:40:01 | 2021-10-06T18:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # -*- coding: utf-8 -*-#
from django.forms import ModelForm
from .models import MemberMessages
class MemberMessagesForm(ModelForm):
class Meta:
model = MemberMessages
fields = ('sender', 'subject', "other_subject", "attachment", 'message', "reply")
| [
"ibm_luq95@yahoo.com"
] | ibm_luq95@yahoo.com |
0829499a37fc13ac636386433fe887068436789a | b8ab0e1ac2634741a05e5fef583585b597a6cdcf | /wsltools/utils/faker/providers/date_time/fil_PH/__init__.py | 42a736439193745ecd672678cc198a9d48ef49e4 | [
"MIT"
] | permissive | Symbo1/wsltools | be99716eac93bfc270a5ef0e47769290827fc0c4 | 0b6e536fc85c707a1c81f0296c4e91ca835396a1 | refs/heads/master | 2022-11-06T16:07:50.645753 | 2020-06-30T13:08:00 | 2020-06-30T13:08:00 | 256,140,035 | 425 | 34 | MIT | 2020-04-16T14:10:45 | 2020-04-16T07:22:21 | Python | UTF-8 | Python | false | false | 829 | py | from .. import Provider as DateTimeProvider
class Provider(DateTimeProvider):
"""Provider for datetimes for fil_PH locale"""
DAY_NAMES = {
'0': 'Linggo',
'1': 'Lunes',
'2': 'Martes',
'3': 'Miyerkules',
'4': 'Huwebes',
'5': 'Biyernes',
'6': 'Sabado',
... | [
"tr3jer@gmail.com"
] | tr3jer@gmail.com |
42e1c516f36f4fbc2863cfbb85713138553946f4 | e62ade72c9808b806a523a73908fa1032b10f9fc | /AlgorithmPrograms/InsertionSort.py | 42bdf35e24078997b64c895332640f2b507087c1 | [] | no_license | manjumugali/Python_Programs | 40b0b77586cc20d1f77b6035cdc67f62b5e9955e | 06934cb8037594dd4269f8c2fee3d301c27f624f | refs/heads/master | 2020-04-17T06:54:55.571579 | 2019-02-13T04:37:25 | 2019-02-13T04:37:25 | 166,344,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | """
******************************************************************************
* Purpose: Reads in strings from standard input and prints them in sorted order.Uses insertion sort.
*
* @author: Manjunath Mugali
* @version: 3.7
* @since: 16-01-2019
*
***************************************************************... | [
"manjumugali111@gmail.com"
] | manjumugali111@gmail.com |
ace388a41b74682d643ef7c6c7176d8cf1f6b831 | 3a5d8cdc7ac14c389fd9426f3f39c3b1dc906dda | /nautobot/extras/tests/test_jobs.py | e04668889b1dffc9a3853d2e190027a5f793514f | [
"Apache-2.0"
] | permissive | nammie-punshine/nautobot | f3cdb9d269c37a74706c105d237b883650f10465 | d6227b211ad89f25233a8791937cd75092421c8a | refs/heads/main | 2023-03-08T10:51:29.437859 | 2021-02-24T20:44:32 | 2021-02-24T20:44:32 | 342,080,836 | 0 | 0 | Apache-2.0 | 2021-02-25T01:01:36 | 2021-02-25T01:01:36 | null | UTF-8 | Python | false | false | 1,970 | py | import os
import uuid
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from nautobot.extras.choices import JobResultStatusChoices
from nautobot.extras.jobs import get_job, run_job
from nautobot.extras.models import JobResult
from nautobot.utilities.testing import TestCase
... | [
"lampwins@gmail.com"
] | lampwins@gmail.com |
9e0d2453761f2903b984c6806664e6a9cfb0d256 | acac3cf012920dc027ee4343a2e27f02338b342f | /pattern_matcher/dto/project_dto.py | 0f5eca12d949e8f11e254de62cc59310aa4eb2a3 | [] | no_license | HYUNMIN-KIM/flask_start | ff60592d27cdc510402b6b18f7c8642db929de44 | 8897e00dd29e5f7b3db5d1cec6d597a8edb2980e | refs/heads/master | 2023-01-19T01:32:27.202743 | 2020-11-18T03:52:17 | 2020-11-18T03:52:17 | 291,651,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | """
Project 전체에 대한 DTO
사이즈가 매우 큼
지식관리및학습서버와 대화작업서버간의 데이터 교환을 위해 사용됨
"""
from pattern_matcher.dto import triggering_pattern_dto
class ProjectDTO:
def __int__(self):
self.triggering_pattern_dto_list = triggering_pattern_dto()
# getter
@property
def triggering_pattern_dto_list(self):
r... | [
"hogay88@wisenut.co.kr"
] | hogay88@wisenut.co.kr |
a56825bd2f75c83393aad08f9a63136c9a6cd561 | 393f30495e9cecebd6f8950d51b10c0817ed7d28 | /venv/task2_10.py | ad6a65bf495eaffc67787979cd14e929bce47380 | [] | no_license | Skornel/NNGASU_Domrachev_Python | 8f741d99a9b689e4c09a739ff42b0648da0cf24c | 9a996925ca6729178b7a439025508aad72d633ae | refs/heads/master | 2020-12-19T15:36:24.546269 | 2020-04-13T15:48:24 | 2020-04-13T15:48:24 | 235,776,259 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | s=[]
for i in range(4):
b=[]
print("Введите данные ",i+1," списка")
for row in range(4):
print("Вводи ",row+1," элемент ",i+1," списка ")
b.append(input())
s.append(b)
print(s)
maximum=0
minimum=1000
for i in range(len(s)):
for j in range(len(s[i])):
if int(s[i][j])>int(maxim... | [
"Suslova2907@gmail.com"
] | Suslova2907@gmail.com |
40830d2e202a0447d24f36b58b901c90eba955bd | d1e3399db6973d639082bd24865bc0df538c0d8d | /ricommender_backend/settings.py | a51b80864b9dc2f358ec683a497db12f165cc5bd | [
"MIT"
] | permissive | reeechart/ricommender | a0c505f8eab6b7c381a41b919d3f5c3da02f61a2 | c5cdf1cb9db27b9fc4a2553aee2b705b9ad0b95a | refs/heads/master | 2020-04-22T12:13:35.198868 | 2019-05-12T16:42:25 | 2019-05-12T16:42:25 | 170,365,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | """
Django settings for ricommender_backend project.
Generated by 'django-admin startproject' using Django 2.1.3.
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/settings/
"""
... | [
"ferdinandusrichard@yahoo.co.id"
] | ferdinandusrichard@yahoo.co.id |
6316d5bbf61b883c8a1230ade79e25d1b8b68ce4 | 8b4521c046779bee7f0499d73e183851f198af14 | /server.py | b5d0f09fbb907e26b62a438d288a204612cc22b5 | [] | no_license | sugrospi/RPSLS | 80fa53a88f1531af03809716c44f10a937a125e4 | 1c50c9b3019dcc8f244f6ae2d1cba87d409bbd56 | refs/heads/master | 2023-07-24T15:21:35.423381 | 2021-09-07T15:13:47 | 2021-09-07T15:13:47 | 403,999,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | import socket
from _thread import *
import pickle
from game import Game
server = "IP_ADDRESS"
port = 5555
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.bind((server, port))
except socket.error as e:
str(e)
s.listen(2)
print("Waiting for a connection, Server Started")
connected = set()
games ... | [
"s.shaggypi@gmail.com"
] | s.shaggypi@gmail.com |
b3cffcaaac0bef8d65f8fdbae1aa31e4b48f15ed | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/FiltersAndTransformers/Scripts/JoinIfSingleElementOnly/JoinIfSingleElementOnly.py | c91e49454d83bdef53b8f6eeabbd9dcc16b073fc | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 466 | py | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def return_first_element_if_single(value):
res = value
if isinstance(value, list):
if len(value) == 1:
res = value[0]
return res
def main(): # pragma: no cover
value = demisto.args()["valu... | [
"noreply@github.com"
] | demisto.noreply@github.com |
9265eec49a0e583e02e5cb8418f517c93695b206 | be25988b4b92e16144315b3f3a45bb31c9036d87 | /FinalProject.py | a4cc0cff617ba3e9e95bdafd188cff1566c19015 | [] | no_license | cormag128/Python_Checkers | c658cd3ce9bbc03e770df6faed5ec1acb83326e1 | 4068b25a54d195a223c7bf73dfc4d4e18ac6c1cb | refs/heads/master | 2021-01-19T21:23:50.391239 | 2017-05-03T00:58:52 | 2017-05-03T00:58:52 | 88,652,979 | 1 | 0 | null | 2017-04-30T19:49:40 | 2017-04-18T17:38:32 | Python | UTF-8 | Python | false | false | 6,292 | py | # Final Project: Checkers AI
# Written by Thomas Walters and Trevor Jenkins
# The purpose of this project is to demonstrate a complex state-based
# program using heuristic programming to create a Checkers AI capable of
# beating a human in checkershttps://askubuntu.com/questions/827005/how-to-install-eric-6-on-ubuntu-1... | [
"noreply@github.com"
] | cormag128.noreply@github.com |
2e2f74124954a3985bfb08d9d40e0bc56bc5fff2 | 6e373b40393fb56be4437c37b9bfd218841333a8 | /Level_6/Lecture_9/enroll/forms.py | a24e95e08208751aa12e95e489b7e6bdfa3638eb | [] | no_license | mahto4you/Django-Framework | 6e56ac21fc76b6d0352f004a5969f9d4331defe4 | ee38453d9eceea93e2c5f3cb6895eb0dce24dc2b | refs/heads/master | 2023-01-22T01:39:21.734613 | 2020-12-04T03:01:17 | 2020-12-04T03:01:17 | 318,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.contrib.auth.models import User
from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
class SignUpForm(UserCreationForm):
password2 = forms.CharField(label='Confirm Password (again)', widget=forms.PasswordInput)
class Meta:
model = User
fiel... | [
"mahto4you@gmail.com"
] | mahto4you@gmail.com |
6249e0ffb60185954c5323d646f6ee5e4b97a4cc | 2be8a9f06d4003d12c0a727fb83d284c31a53050 | /HoudiniHotBox17.0/lib/PastFbx.py | a984bb3fb35778efa1d77ea747bb869b4f43016f | [] | no_license | LiuLiangFx/SmileHotBOX | 7551d9578b2defe612950cb8e3bffdb85024cede | 8bd8eac69b3c2a9824b9aa4488ca77789bea8d85 | refs/heads/master | 2021-01-01T10:22:26.959731 | 2020-02-09T03:16:32 | 2020-02-09T03:16:32 | 239,236,801 | 0 | 0 | null | 2020-02-09T02:47:18 | 2020-02-09T02:47:18 | null | UTF-8 | Python | false | false | 3,133 | py | import hou
class PastFbx:
def __init__(self):
pass
def checkNode(self,node, name,temp1 =0):
for childrenNode in node.parent().children():
if childrenNode.name() == name:
temp1 =childrenNode
return temp1
def checkInput(self,qian,hou1,temp=0):
... | [
"change52092@yahoo.com"
] | change52092@yahoo.com |
2ffa30e97c07a6799d516290ff2c899a4253a39e | eff8f2e795566c7aad10e9e3e7b0ffcafcc19145 | /Set_difference().py | 727190aca895eb0eb82fe4954ad9530732eca9d6 | [] | no_license | Siddu02june/HackerRank-Sets | b27aa2f3679a6f3324d4daa3c5dffe28f08ebed7 | a5a3b56d1bfbdd8b58b2df246e397000deaddbf6 | refs/heads/main | 2023-05-31T08:10:31.756639 | 2021-06-14T09:24:10 | 2021-06-14T09:24:10 | 376,763,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | #Set_difference()
E = int(input())
English = list(input().split()[:E])
F = int(input())
French = list(input().split()[:F])
print(len(set(English)-set(French)))
'''
Input (stdin)
9
1 2 3 4 5 6 7 8 9
9
10 1 2 3 11 21 55 6 8
Your Output (stdout)
4
Expected Output
4
'''
| [
"noreply@github.com"
] | Siddu02june.noreply@github.com |
b1cbde3a104f2e0b81d5ab63350c31dd2307980a | 0a4432a13600e025937af3b2554ae048321a50bb | /sphinx/conf.py | e717ad87e5ed58f5acf5bbcd3588642b18e4451a | [
"Apache-2.0"
] | permissive | PourroyJean/ProgrammingNote | 343c6a7fa3324b85cb7ed88e1bb794599d645c80 | 33fc7e64b3e5f44d1acde266df280f944d56674b | refs/heads/master | 2023-01-08T17:52:39.833582 | 2020-06-09T08:09:08 | 2020-06-09T08:09:08 | 87,910,140 | 2 | 0 | Apache-2.0 | 2022-12-27T15:01:06 | 2017-04-11T08:35:30 | Jupyter Notebook | UTF-8 | Python | false | false | 4,880 | py | # -*- coding: utf-8 -*-
#
# Notes Jean documentation build configuration file, created by
# sphinx-quickstart on Fri May 12 14:54:18 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"jean@Nano-ubuntu-VM.ielbyy3bjwuuredtcfjnooi3gd.ax.internal.cloudapp.net"
] | jean@Nano-ubuntu-VM.ielbyy3bjwuuredtcfjnooi3gd.ax.internal.cloudapp.net |
bb69649a492b5bb2e5ee249630dca2d8b04e8c78 | 8f1996c1b5a0211474c7fa287be7dc20a517f5f0 | /batch/batch/cloud/driver.py | 96349e4c4d578c9209d5ffabef4590256096a62d | [
"MIT"
] | permissive | johnc1231/hail | 9568d6effe05e68dcc7bf398cb32df11bec061be | 3dcaa0e31c297e8452ebfcbeda5db859cd3f6dc7 | refs/heads/main | 2022-04-27T10:51:09.554544 | 2022-02-08T20:05:49 | 2022-02-08T20:05:49 | 78,463,138 | 0 | 0 | MIT | 2022-03-01T15:55:25 | 2017-01-09T19:52:45 | Python | UTF-8 | Python | false | false | 936 | py | from hailtop import aiotools
from gear import Database
from gear.cloud_config import get_global_config
from ..inst_coll_config import InstanceCollectionConfigs
from ..driver.driver import CloudDriver
from .azure.driver.driver import AzureDriver
from .gcp.driver.driver import GCPDriver
async def get_cloud_driver(
... | [
"noreply@github.com"
] | johnc1231.noreply@github.com |
c9982973398a7bada2df68e8686fc6deee8ab7a5 | 3251eb404404da4f2cd49d7a77baf67c928453a2 | /src/membership/migrations/0003_coordinator_coordinator_image.py | 469ac79a801237f480cb16c68c332d19318926e5 | [
"MIT"
] | permissive | gatortechuf/gatortechuf.com | 6575abd26ce1382cfcb6255a28e1d202910c86ba | 8d0ad5f0772a42113c41bf454e96c2fa2c22d1f3 | refs/heads/master | 2020-05-22T06:49:09.580887 | 2018-02-03T17:42:02 | 2018-02-03T17:42:02 | 61,415,657 | 2 | 0 | MIT | 2018-02-03T17:42:03 | 2016-06-18T03:47:11 | Python | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-28 18:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('membership', '0002_leader_leader_image'),
]
operations = [
migrations.AddFiel... | [
"ryandsheppard95@gmail.com"
] | ryandsheppard95@gmail.com |
5dfb79becde51feb01c67400ff548446d6963775 | 0cb38adedbe3a5192076de420e1aa0fd10ae3311 | /return_merchandise_authorizations/admin.py | 213dea63a59221b56ba699e6a457f59ff5076d67 | [] | no_license | fogcitymarathoner/rma | 73ada816b98f068b6c00b2e1fcf39461259453fa | 133d6026f99820d0702f0578b8a3b4574671f888 | refs/heads/master | 2021-01-11T00:32:47.797673 | 2016-10-10T18:34:54 | 2016-10-10T18:35:11 | 70,516,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | from django.contrib import admin
from return_merchandise_authorizations.models import Rma
from return_merchandise_authorizations.models import Item
from return_merchandise_authorizations.models import RmaAttachment
class ItemInline(admin.TabularInline):
model = Item
class AttachInline(admin.TabularInline):
m... | [
"marc@fogtest.com"
] | marc@fogtest.com |
7796231c8f937912e9ccd9dd1399da035526bee6 | 55c0254b9889235844ca2fcfa5b80e6aedeb4841 | /Book_app/wsgi.py | ea116599419347d50d5b310f5c940541109e1334 | [] | no_license | AKSHAY-KR99/book_project | a75761a40c544fe4ad38ebcdd01b9d524e5f8ea8 | 019b316ec97395ac080be86333d7902b7c590271 | refs/heads/master | 2023-05-30T05:09:12.888518 | 2021-06-15T11:03:47 | 2021-06-15T11:03:47 | 377,130,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Book_app 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"ashayakr4@gmail.com"
] | ashayakr4@gmail.com |
ce174f06a5f69d56fb0614a1766754e87ea39d0d | 0a983eebf91ad9a4342c8be92e1223b5d6ac28e1 | /setup.py | 13acd1717a2d8232655e0886d603d21d4dc7db71 | [
"MIT"
] | permissive | davidkwast/db_tools | 7bb1c6eeb01be81863e33edc38c60df8b31785b9 | 6881a3ce1d5bfb8634e01fc797d5e1dec6cd4891 | refs/heads/master | 2020-03-26T06:03:43.874788 | 2018-09-04T23:16:18 | 2018-09-04T23:16:18 | 144,587,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from setuptools import setup
setup(name='db_tools',
version='0.0',
description='Python database tools',
url='https://github.com/davidkwast/db_tools',
author='David Kwast',
author_email='david@kwast.me',
license='MIT',
packages=['db_tools'],
zip_safe=False)
| [
"david@kwast.me"
] | david@kwast.me |
d86790151df1e4863c98a6064062d24f7876ecb4 | 192cc298bc78889873fc932041c543bdc7b54bbb | /Cashier program.py | 05d4371d74c7fd8262e8a02db5d9de3ddfc59112 | [] | no_license | winter4w/Cashier-Program | 01af06ccbd9d06fa509861e9a57094ad8ed100d6 | 8126ae412d7de21e95a415b5242508cb6d9df126 | refs/heads/master | 2020-09-22T16:41:06.845507 | 2019-12-02T06:59:42 | 2019-12-02T06:59:42 | 225,275,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,397 | py |
import os
import time
import sys
import math
class Cashier():
def getDollars(self, a):
dol = int(math.floor(a))
return dol
def getQuarters(self, a):
qua = int(math.floor(a / .25))
return qua
def getDimes(self, a):
dim = int(math.floor(a / .10))
return dim
... | [
"winter4w@users.noreply.github.com"
] | winter4w@users.noreply.github.com |
abb8c70131d77c3c5abbae2840f52ba202b21851 | fb56624f35821c0714b516c30831953da8f8d131 | /run_fm_exp/scripts/select_params_ps.py | 6067d585576b36567a88aa013e419cab74d70423 | [] | no_license | jyhsia5174/pos-bias-exp-code | b27e31f6604420afae4aa4f2c9e6161ae7705bc4 | 913a00e6707482fd2122ec2c957e0dc8ebc3e7cc | refs/heads/master | 2022-12-26T20:09:50.893942 | 2020-10-05T07:23:04 | 2020-10-05T07:23:04 | 222,909,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import os, sys
root = sys.argv[1]
flag = 1 if sys.argv[2] == 'auc' else 0
log_paths = [os.path.join(root, f) for f in os.listdir(root) if f.endswith('log')]
records = {}
for lp in log_paths:
records[lp] = [0., 1000., 0.] # iter, min_logloss, max_auc
with open(lp) as f:
for i, line in enumerate(f):
... | [
"d08944012@ntu.edu.tw"
] | d08944012@ntu.edu.tw |
659788c034719b344f80307e0abf95f56aae99d2 | d16f2636a1157fde2eda16064b89dc6299d6c1fa | /main.py | 67691a8900c0347a4823718220af8a4e5fbfb262 | [] | no_license | razer89/Calculator | a762dd200074c7bd143fe087bf3752b92777f5c1 | cd2477c641f9f1ae08f72aea5f93bc5854dc240b | refs/heads/main | 2023-07-04T04:09:32.166568 | 2021-08-10T13:36:09 | 2021-08-10T13:36:09 | 382,019,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | num1 = int(input("Enter num1: "))
num2 = int(input("Enter num2: "))
action = str(input("Choose action: Add(a), Sub(s), Mult(m) Div(d) ->"))
print("The result is ",end="")
if action == "a":
print(num1+num2)
elif action == "s":
print(num1-num2)
elif action == "m":
print(num1*num2)
else:
print(num1/num2) | [
"49878506+razer89@users.noreply.github.com"
] | 49878506+razer89@users.noreply.github.com |
3a3bf2a75f8238a4f8a98e775a43ea60086f6668 | 87521e0ce35095d06f8cd2e0890f8b73f9ec0511 | /training_window.py | 3a083317b9c5a9109bcbb974ec32216694347011 | [] | no_license | chamara96/voice-command-rnn | 20fa6446e44a72c78113528b598756b545c1529d | e6847af88e09e01ddf06f1d6cdd1b0835d30ba4f | refs/heads/main | 2023-01-02T12:12:28.542385 | 2020-11-01T06:52:28 | 2020-11-01T06:52:28 | 308,967,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,464 | py | import sys
from PIL import ImageTk, Image
import time
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
py3 = False
except ImportError:
import tkinter.ttk as ttk
py3 = True
from tkinter import messagebox
import neural_network
import dataset_handling
def updat... | [
"cmb.info96@gmail.com"
] | cmb.info96@gmail.com |
9ffedfdbb5aa841be3b526cd48ec2b1a4d37799e | 459e0f34dfbc818763edf153152711a11c2efbe3 | /pythonscript/billing.py | 65cc9ddd17973536698c22abf0b14a204bd7a018 | [] | no_license | tariqcoupa/experiments | 15523c7f60edcb3078169fb9f407915f859ef91d | 3323add34d66ebc76d91124c7358abd639d9317a | refs/heads/master | 2021-04-05T23:52:21.718538 | 2018-03-03T12:31:49 | 2018-03-03T12:31:49 | 124,418,067 | 0 | 0 | null | 2018-03-08T16:26:12 | 2018-03-08T16:26:12 | null | UTF-8 | Python | false | false | 566 | py | #!/usr/bin/python
import SoftLayer
import json
import sys
client = SoftLayer.Client(username='prod.tariq', api_key='53c53cba25872849417fcc1794f9acdeb91c6680f597ddf76488aa4e4d999e51')
object_mask = "mask[id]"
object_mask2 = """mask[hostname,billingItem.nextInvoiceTotalRecurringAmount]"""
user_info = client['Account'].... | [
"tarsidd@gmail.com"
] | tarsidd@gmail.com |
d7e5e857f01d9f595c4e22550aeb3ed978f814ef | f7378f4038882c3de627a7d1262790f649f5e89b | /dataset.py | 77564e166a38e75ee487cdf75078cb3d77632132 | [] | no_license | edui/imogiz-mobileunet | 176301a5238b0ab354b2fcf0a666c2820cbc165d | 49757428b9fc320211b417450f2e883d9d444225 | refs/heads/main | 2023-08-10T18:32:55.037061 | 2021-09-27T22:39:39 | 2021-09-27T22:39:39 | 408,748,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,710 | py | import random
import re
from glob import glob
import cv2
import numpy as np
import pandas as pd
from PIL import Image
import torch
from torch.utils.data import Dataset
import torchvision
from config import IMG_DIR
def _mask_to_img(mask_file):
img_file = re.sub('^{}/masks'.format(IMG_DIR),
'... | [
"edui.bin@gmail.com"
] | edui.bin@gmail.com |
50b929b62405be6ed8aacd6a49a420bd9ba63219 | 23ac56d6e024a69ae9f6f9e471ddefd71c9f0243 | /reverse_list.py | 3ce059eb10cf84065d68099596ca3be2bda56c8f | [] | no_license | erenat77/data_structure_in_Python | c70538f2c510b5525b230f84f7b455a0524d7313 | 216b173ab27cbbd3440c783efbd671be47645457 | refs/heads/master | 2020-08-11T10:16:48.352675 | 2019-11-05T01:03:07 | 2019-11-05T01:03:07 | 214,548,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | l = [1,2,5,4,8,9,87,9,9,6,4,5]
# recursive solution
def rev(l):
if len(l)<=1 : return l
else: return [l[-1]] + rev(l[:-1])
rev(l)
#easy solution
print(l[::-1])
| [
"noreply@github.com"
] | erenat77.noreply@github.com |
7e41be08a3a77a30cf7becf9259474bda1cdf940 | 6bde544edbda4291b8fd10533e3ec0cca4855a1f | /problem_2.py | ac9fd9e6bef2503460e546c4ca2608d9b641bf76 | [] | no_license | ekdeguzm/project_euler_problem_2 | 5d2ba3806a1679e188eee293ada334e53f5175bc | 6ba89ca7b181236d4c916bd31aeedbb2ceb8665a | refs/heads/main | 2023-08-24T23:50:26.581516 | 2021-09-29T06:57:09 | 2021-09-29T06:57:09 | 411,562,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Probem 2 of Project Euler
# Python 3.9.5
# Even Fibonacci numbers
# Create Fibonacci list and even Fibonacci list
fib_list = []
even_fib_list = []
# Create Fibonacci sequence
def fibonacci(n):
a, b = 0, 1
for x in range(1, n):
a, b = b, a + b
return b
for i in range(1, 34):
fib_list.appen... | [
"noreply@github.com"
] | ekdeguzm.noreply@github.com |
7e6dccde1c6ea2ba3cbd360b3009d30db942726a | b1e7481f8b5bf40c2547c95b1863e25b11b8ef78 | /Kai/python/modules/JetMETLogic.py | 9fdf533765af3ae52ed238853b1aaaeac74dfcea | [
"Apache-2.0"
] | permissive | NJManganelli/FourTopNAOD | 3df39fd62c0546cdbb1886b23e35ebdc1d3598ad | c86181ae02b1933be59d563c94e76d39b83e0c52 | refs/heads/master | 2022-12-22T22:33:58.697162 | 2022-12-17T01:19:36 | 2022-12-17T01:19:36 | 143,607,743 | 1 | 1 | Apache-2.0 | 2022-06-04T23:11:42 | 2018-08-05T11:40:42 | Python | UTF-8 | Python | false | false | 48,234 | py | from __future__ import division, print_function
import ROOT
import math
from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import Collection, Object
from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import Module
from PhysicsTools.NanoAODTools.postprocessing.tools import * #DeltaR, match ... | [
"nmang001@ucr.edu"
] | nmang001@ucr.edu |
8cfa0564a630a016ac91663a5dbcade279afd639 | 144b54b91cbd541421c12df1074920c1bd635780 | /utils.py | 71aca180b475fef8fb48cacb903d2616b5893e9b | [
"MIT"
] | permissive | jajcayn/re_hippocampal_model | 777956b93476051202e10c908f419c69e9349c0e | 5dc984cec0591d27ed6dedf8e8e2ddd8e07b20c7 | refs/heads/main | 2023-04-19T05:29:14.064024 | 2021-04-21T09:37:45 | 2021-04-21T09:37:45 | 353,683,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,481 | py | """
Helper functions
"""
import logging
from functools import partial
from multiprocessing import Pool, cpu_count
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from tqdm import tqdm
def run_in_parallel(
partial_function,
iterable,
workers=cpu_count(),
length=N... | [
"nikola.jajcay@gmail.com"
] | nikola.jajcay@gmail.com |
d2d8d1a76517bf0cbfed79f32e7b7f96acb604a2 | a7a8e79ba13962d792d9aa1ee758f095083044b9 | /gened.py | 6eedddca46433cccfb8e35171c9c33fc5f66edd9 | [] | no_license | vannjo02/Gen_eds | 96744091a8f08504fe68739ecee5e8b7b1b17b4a | 5fda16f2531e38358fdfadadf890037c4ad56fe5 | refs/heads/master | 2021-01-20T09:55:02.222524 | 2017-05-04T19:15:36 | 2017-05-04T19:15:36 | 90,300,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,804 | py | from flask import Flask, render_template, request
import psycopg2
from flask_bootstrap import Bootstrap
import os
app = Flask(__name__)
Bootstrap(app)
conn = psycopg2.connect(os.environ['DATABASE_URL'])
print('READY')
@app.route('/')
def index():
reqlst = ["Human Expression—Primary Texts", "Intercultural", "His... | [
"vannjo02@luther.edu"
] | vannjo02@luther.edu |
835a35a0816d80e070b145914b614c4079752764 | 680d9e12f9916f68f84921e1b0328786454f2d50 | /cmd_line_sample.py | 3485a5f3ce5e52b1f0b411f971f00a44f69189b3 | [] | no_license | vkarpov15/hydra-injector-py | 24c791fd1bc3c90681b48f7515fc0e359fd14a94 | 3948b5056c4cf563db77c7172c6660daa7c62b19 | refs/heads/master | 2020-12-24T13:52:41.541934 | 2012-11-09T01:39:32 | 2012-11-09T01:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | #
# cmd_line_sample.py
#
# Created on: November 3, 2012
# Author: Valeri Karpov
#
# An example usage of CommandLineInjector - a very general method for stripping
# padding from a sample file. While this is a somewhat trivial example, it
# highlights some of the more useful features of this library - managing object
# (... | [
"valkar207@gmail.com"
] | valkar207@gmail.com |
d9c4b8a7de6dbd3755b12d629a970ee4b0778798 | 49197a748adea1618a2cece7a1ae057006da090c | /jgodwin/micro/micro.py | f1132e04bc3d6e7e46ac6817121583f752dcc324 | [] | no_license | psava/cwp12 | 0bbb1f213c66737509280fc4b0ac5c53b52d017a | 3f47c1bf358caa5ebe608ab88fc12b85fd489220 | refs/heads/master | 2021-01-10T21:24:57.572992 | 2012-10-10T15:52:18 | 2012-10-10T15:52:18 | 2,213,082 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,263 | py | from rsf.cluster import *
import random,fdmod
def getpar():
par = {
###############################
# Model/Image dimensions
###############################
#'nx':501, 'ox':0, 'dx':0.002, 'lx':'x', 'ux':'km',
#'ny':151, 'oy':0, 'dy':0.002, 'ly':'y', 'uy':'km',
#... | [
"jgodwin@mines.edu"
] | jgodwin@mines.edu |
0f6b34fbcc11d1d36e1186122b4196348d01de41 | 15d3a10db27128c06f84c30fa8d64b2e1c629fd9 | /express/express/api_exception.py | 50d8121033b83ac36e6070744f39d492bda13465 | [] | no_license | yiyuhao/exp | 7cba6650e3113ba05698f90a7baf75b680dd6435 | 866a90b2e6f0d113559b0674f514cdd56020f7d6 | refs/heads/master | 2020-03-19T20:20:04.799355 | 2018-07-15T14:55:24 | 2018-07-15T14:55:24 | 136,897,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # -*- coding: utf-8 -*
from rest_framework.views import exception_handler
def custom_exception_handler(exc, context):
# Call REST framework's default exception handler first,
# to get the standard error response.
response = exception_handler(exc, context)
# Now add the HTTP status code to the response... | [
"yiyuhao@mixadx.com"
] | yiyuhao@mixadx.com |
a3b8ebb9edc3184f04b98b58d25d2ad29b4d644c | 3b21c2a5422dc2b900f65894849e7e2e765fc7cc | /CameraField.py | 8e4d25c66f759a3b7ebfd2a2dfdccca52657da95 | [] | no_license | mrbhjv/dft_python | 2c519dcdb5100511376c35db63c0248628fb9b3e | 480fffd81374f37f6a62c362fb551b2021772429 | refs/heads/master | 2020-04-24T09:04:28.412581 | 2011-07-21T12:23:47 | 2011-07-21T12:23:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | import naoqi
from naoqi import ALProxy
import numpy
import DynamicField
import math_tools
class NaoCameraField(DynamicField.DynamicField):
"Camera field"
def __init__(self):
"Constructor"
DynamicField.DynamicField.__init__(self, dimension_bounds = [[40],[30],[15]])
self._vision_proxy ... | [
"mathis.richter@ini.rub.de"
] | mathis.richter@ini.rub.de |
65e87e100e5ca37ed1bf10f7336709b79e1b9140 | b558b4348ff88bb670bf1a318d3c22d48ebf5627 | /src/manage.py | 7325504ca062609d3ef47b1c19939d4ae8762ec9 | [] | no_license | rnjane/Flight-Booking-API | 540fe63d47a6ac622633b8560603ce34600857e2 | 05f974c1f6b3dafe18b7cdc417f11f314271625b | refs/heads/develop | 2022-12-10T13:21:57.567096 | 2019-02-04T11:06:11 | 2019-02-04T11:06:11 | 162,910,819 | 0 | 0 | null | 2022-12-08T01:34:12 | 2018-12-23T17:26:58 | Python | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bookingproject.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djang... | [
"robert.njane@andela.com"
] | robert.njane@andela.com |
9f9308863eec758d41777158b11d291e1b437a83 | 9b63ade6dd9c166b2e9dc363de94d6a02149bc69 | /app/core/migrations/0001_initial.py | dd8e72540712189dd4156237b574b3e1e3799370 | [
"MIT"
] | permissive | nafeesahyounis/recipe-app-api | 25244f7a12772a0281d99c03a0c6cf9b434ba849 | ff9f42de65d9b0185d9ab9fb565e4a881831cb15 | refs/heads/main | 2023-03-07T13:00:00.005410 | 2021-02-24T10:02:04 | 2021-02-24T10:02:04 | 338,332,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # Generated by Django 3.1.6 on 2021-02-23 11:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"nafeesah.youniss@gmail.com"
] | nafeesah.youniss@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.