blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a500e168da2f2576a4b62344379d23db199ed27 | 9e542ad03bdcaf163b0195b647dd3457d9bd65ad | /django-admin | e36921d3d982888833058efd9726d6a2417df756 | [] | no_license | avinashsingh3010/my-first-blog | 868e736798b0aa2885144f720c597c79ebc02511 | 7fcbd8e15c6514e849fc0ef9c471f982c0486985 | refs/heads/master | 2021-01-10T13:21:40.568128 | 2016-01-26T14:54:37 | 2016-01-26T14:54:37 | 50,435,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/home/avinash/myvenv/bin/python3.4
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"singh.avinash307@gmail.com"
] | singh.avinash307@gmail.com | |
4994613de7bb3f0abc0eba02456af7dd3f48de33 | 52409b1b5be08ddaa85fa3eae131d0d0a2e18848 | /기초 알고리즘 100제/6025. 값변환01.py | 3d0c8693e1583d67e2d97bdb0f6314f350ed30b5 | [] | no_license | colo1211/Algorithm_Python | 7cf72fd67157e514adadd2df4b2805e7c26cb0fd | 6a3cf918621994cf7c11cc4258991d2bc5af0824 | refs/heads/master | 2023-06-03T15:57:23.323594 | 2021-06-22T08:34:15 | 2021-06-22T08:34:15 | 368,016,588 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | a,b= map(int,input().split(' '))
print(a+b) | [
"colo1211@naver.com"
] | colo1211@naver.com |
3bbc9345e11ffb101dedbb47aed7f4f9a3961734 | 91d4757faa8d3fbdeb8f52ac32ffab60d1ee6ac1 | /snake.py | 1e6a87c2586f76e9a94bdbd2d2e58e168f740464 | [] | no_license | estebanmho/Snake | bf7d635766d075322f4feddf74cef3a368d1edde | 66cd385a4498c16f8fc2fa00edab1b5c7c96312a | refs/heads/main | 2023-07-01T04:37:50.875392 | 2021-07-27T07:44:22 | 2021-07-27T07:44:22 | 386,198,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | from turtle import Turtle, Screen
import time
UP=90
DOWN=270
RIGHT=0
LEFT=180
STEP_DISTANCE=20
class Snake:
def __init__(self):
self.snake = []
for i in range(3):
self.add_tail((0 - i * 20,0))
self.head = self.snake[0]
def move(self,screen):
for seg in range(len(sel... | [
"esteban.martinez.hoces@alumnos.upm.es"
] | esteban.martinez.hoces@alumnos.upm.es |
6f62f8248cf1f8f29498c4d1f9ee04383a26367e | 0a33d9c546edfc6f700c5bcff809b21b07950b78 | /ex25.py | 5d89959348e75e93a0efcb5525e7dd39e634fadd | [] | no_license | Chemistrier/Learn-Python-the-Hard-Way | 57660842242322dbd1db0d2d39083360e605f7f3 | 1126c6205d3acda69635e17d90c4c419dbb77c20 | refs/heads/main | 2023-08-02T09:29:13.789139 | 2021-09-25T11:52:08 | 2021-09-25T11:52:08 | 397,826,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py |
def break_words(stuff):
"""This function will break up words for us."""
words = stuff.split(' ')
return words
def sort_words(words):
"""Sorts the words."""
return sorted(words)
def sort_words(words):
"""Sorts the words."""
return sorted(words)
def print_first_word(words):
"""Prints the ... | [
"45254476+Chemistrier@users.noreply.github.com"
] | 45254476+Chemistrier@users.noreply.github.com |
140680f5e4c08ba3bb216609922f2d8cb5ec35e3 | e79c94b62427c0c7d2972cf7a7ef3cc3bf1299d5 | /Apps/Venta/api_views.py | 69e0df1ea7078a19373781590b00e967ad8732fd | [] | no_license | Ezla/PVenta | 21988d805a735b6a83a9bb9dd1e691d357fda23d | e1533d51ea7377cc6774bf26b4b19a31e0e85d8a | refs/heads/master | 2021-07-03T08:24:44.278733 | 2021-06-09T22:31:41 | 2021-06-09T22:31:41 | 43,174,685 | 1 | 0 | null | 2021-06-09T22:31:43 | 2015-09-25T20:46:02 | JavaScript | UTF-8 | Python | false | false | 6,154 | py | from decimal import Decimal
from django.shortcuts import get_object_or_404
from rest_framework.response import Response
from rest_framework import status
from rest_framework.views import APIView
from .serializers import SalesAccountSerialiser, SalesProductSerialiser, \
SalesCartSerialiser, ChangeProductSerialiser
f... | [
"bg_kuriboh@hotmail.com"
] | bg_kuriboh@hotmail.com |
069240fe041da4600557e9ba6ab166a4c5a27da8 | 0c6bd6305cbd128fe7426f66ec9bf4d01fb9b40c | /backend_apps_web_based/flask/RESTful_api_part3/test.py | fe6c099a291d13fe3bef662c606846c898e25092 | [] | no_license | yennanliu/web_development | 08dbffc549214952f7b02dc29837474b0ad6e980 | 8dc6b224040b3953999d5e8d4a7f26d8e92ca931 | refs/heads/master | 2021-05-24T03:12:24.344381 | 2020-12-30T09:31:15 | 2020-12-30T09:31:15 | 72,651,027 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import sys, os, json, requests
import pytest, unittest
from flask_sqlalchemy import SQLAlchemy
# main flask app
from app import app
db = SQLAlchemy(app)
def TestHelloworld():
response = requests.get('http://0.0.0.0:5000/')
assert response.status_code == 200
def TestApi():
response = requests.get('http:... | [
"f339339@gmail.com"
] | f339339@gmail.com |
3852f79d9598f3426deb8dde7be7ad93c215998e | bf3b129fc3e7d7e44d58a1e3fb8e857a523d8871 | /test_frcnn.py | 01e7f3eae5ea46ab7cf06a8b6ce0858cd9a6aca3 | [
"Apache-2.0"
] | permissive | sookmun716/Keras-FRCNN | dc7bc76335cec09fa5466eaaf1e267ad59cf22ea | 8e0c129af4f4b179a117f04ce2d6852fa7433454 | refs/heads/main | 2023-07-19T07:51:56.125523 | 2021-05-13T08:05:38 | 2021-05-13T08:05:38 | 403,980,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,987 | py | from __future__ import division
import os
import cv2
import numpy as np
import sys
import pickle
from optparse import OptionParser
import time
import tensorflow as tf
from keras_frcnn import config
from keras import backend as K
from keras.layers import Input
from keras.models import Model
from tensorflow.python.keras.... | [
"songshunnew@hotmail.com"
] | songshunnew@hotmail.com |
98c4fbb1482d0610607b2d758bd95fe01b6182c3 | 095f35858f26e1b1f456f5462512b1b42c6419da | /venv/Part2/CSV_3.1.py | e74db800d266ba42e22a259f830c8baf96a2b7fa | [] | no_license | rheehot/DataBaseWithPython | 9aa456880beea8195b8691854f2cf23f145f142d | 1261223a4b64ae8925ec0bc4cfbb7fc5138a302f | refs/heads/master | 2023-01-07T21:06:09.750691 | 2020-11-15T13:44:29 | 2020-11-15T13:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | # CSV 파일을 읽어서, DB Table에 쓰는 예제. (레코드를 리스트 형태로 읽음)
import pymysql
import csv
class DB_Utils:
def updateExecutor(self, db, sql, params):
conn = pymysql.connect(host='localhost', user='root', password='COYG1995!!', db=db, charset='utf8')
try:
with conn.cursor() as cursor:
... | [
"9h0jun1115@gmail.com"
] | 9h0jun1115@gmail.com |
046137975156944af1713f7c2309711ccc401970 | c93a754dae3a31b584b1945a44b1bdea5171c9b7 | /ngrams.py | 38bf126c314ff92ae547362be194476f8e419b4b | [] | no_license | jdbuysse/oldgrammarscripts | a1f9387743f19a164bbf2d8422c6aa32676c331e | bed6f47991acde8bb78f63db50f72a4af812a32e | refs/heads/master | 2020-03-22T22:35:24.689686 | 2018-07-12T20:13:52 | 2018-07-12T20:13:52 | 140,759,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from nltk.corpus import webtext
from nltk.collocations import TrigramCollocationFinder
from nltk.metrics import TrigramAssocMeasures
words = [w.lower() for w in webtext.words('tenderButtons.txt')]
bcf = TrigramCollocationFinder.from_words(words)
bcf.nbest(TrigramAssocMeasures.likelihood_ratio, 4)
##from nltk.corpus i... | [
"jdbuysse@gmail.com"
] | jdbuysse@gmail.com |
e119c0f86689c3eaed63d82bfcd0bd47ff934cf6 | 64f8acc96ce672063bae16083ebc32790f94f451 | /main.py | 8c7c212d1636b3721abc05b9b1d86a56eb8c2f57 | [] | no_license | simonmullaney/Handwritten-digit-recognition-using-compressive-sensing | 24c3018b99baddacad72dc66af0d83e0e8901e36 | aeb6f28e9c9201219ab0f5c2bbcd3cb8b5efc276 | refs/heads/master | 2021-01-11T14:23:52.828447 | 2017-06-22T16:23:43 | 2017-06-22T16:23:43 | 81,374,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # main.py
"""
Main file to call methods in mnist_dataset_compress.py and neural_net.py
This code has been developed from "Neural networks and deep learning" by Michael Nielsen
"""
#Libraries
import neural_net
import mnist_dataset_compress
import math
import mpmath
import numpy as np
import scipy
from numpy import ze... | [
"noreply@github.com"
] | noreply@github.com |
0b911b0fdffe3d062dd973975f90998b2c1b5d62 | c736c048046df0af90e391f22416f3264f9a3bdf | /script.py | f51e1ed24fc012ab2bb1cf3e586ce685ef3112d9 | [] | no_license | sbrink00/graphicsFinal | be2aec78eca6a940ffbea99d9046f2cb8c5ee089 | e58a5ca243384b8b6b3bca298e69ee38f44f5ae9 | refs/heads/master | 2022-10-10T08:55:36.537491 | 2020-06-12T10:53:29 | 2020-06-12T10:53:29 | 265,910,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,350 | py | from __future__ import print_function
import sys
import mdl
from display import *
from matrix import *
from draw import *
import subprocess
import time
def dc(ary):
return [x if type(x) is not list else dc(x) for x in ary]
"""======== first_pass( commands ) ==========
Checks the commands array for any animation c... | [
"sbrink00@stuy.edu"
] | sbrink00@stuy.edu |
e35602b4e63050a98f36b2620a2b840278beb790 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02972/s165580953.py | 33b7efe88d0ed61cd2af5b945b54fc7bd16ee28d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Created: Jul, 13, 2020 08:25:55 by Nobody
# $Author$
# $Date$
# $URL$
__giturl__ = "$URL$"
from sys import stdin
input = stdin.readline
def main():
N = int(input())
A = [-1]+list(map(int, input().split()))
D = [-1]*(N+1)
for i in range(N, 0, -1):
if i ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
983c775589fca76574d429630559d49f76019cd4 | 7bbfb46c21b8ab4103aab8536da76b7199266022 | /db.py | 261ed929b8658c895789998c2537577decf5332b | [] | no_license | jcemelanda/DevInVale2015 | 1c7ef18795735f6d412d62081a7b99e7a5119286 | 5c9f9b0890cae98cc80d000b91e7736f0004f1a2 | refs/heads/master | 2020-04-09T13:31:47.998120 | 2015-05-01T20:47:51 | 2015-05-01T20:47:51 | 30,668,659 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # coding: utf-8
import sqlite3
class DB(object):
def __init__(self, database):
self.connection = None
self.database = database
self._create_score_table()
def _connect(self):
self.connection = sqlite3.connect(self.database)
def _create_score_table(self):
self._co... | [
"satriani-16@hotmail.com"
] | satriani-16@hotmail.com |
06f7225f32288306aa9dd68809b6b1999ca3781d | d2ea7a5cb8c8cc0f0a3b3044d5572c0689a8f949 | /qoe_uc2_worker.py | 5d7e9ba4559c041b2100e079cf1ac1b9a5f00e3a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | 5g-media/mape-data-importer | 77ad2711db98fd4f1b4bae2b9019dca0d9ffe60e | 43f6627fb75d66f72f58a88fe783612061793f83 | refs/heads/master | 2022-04-21T20:39:57.009821 | 2020-04-16T09:46:44 | 2020-04-16T09:46:44 | 256,172,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | import json
import logging.config
from kafka import KafkaConsumer
from datetime import datetime
from influxdb import InfluxDBClient
from utils import format_str_timestamp
from metric_formatter import format_monitoring_metric_per_source_origin
from exceptions import InvalidStrTimestamp, NotValidDatetimeTimestamp, Metric... | [
"athanasoulisp@gmail.com"
] | athanasoulisp@gmail.com |
524f324282a601ddf6a39711fc86e9aa9f688e3f | 3cd7fd82a43375802aa25c697864cd2c89f1e782 | /code/gits_pr_update.py | 970a031961593a62cbee16c568fd0f4251061f82 | [
"MIT"
] | permissive | raksha-SE/GITS-test | 9a825813ea7fe3edbc4967ee80acf4733a029328 | a02eb9f05e6cdcb1ed2485e1a6b9a6561ff214d2 | refs/heads/master | 2022-12-18T05:36:44.211847 | 2020-09-21T18:13:21 | 2020-09-21T18:13:21 | 297,001,189 | 0 | 0 | MIT | 2020-09-20T04:25:05 | 2020-09-20T04:25:04 | null | UTF-8 | Python | false | false | 1,276 | py | import os
import sys
import subprocess
import argparse
def gits_pr_update(args):
print(args)
print("Hello from GITS command line tools- PR Update")
flag = 0
Untracked_file_check = os.popen(git status |grep "Untracked files").read()
if(len(Untracked_file_check)!=0):
print("Caution u hav... | [
"noreply@github.com"
] | noreply@github.com |
57ba84aabc962427d8bb568812dcabaa61ca840a | e705de3a44a7cc922e93c76c3aa6e6108222e538 | /problems/0128_longest_consecutive_sequence.py | 5e3a863543e3dfb214407f3bf1547862272121e1 | [] | no_license | sokazaki/leetcode_solutions | 34d4877dc7d13dc80ef067211a316c48c6269eca | 42cf52eeef537806c9e3ec7a6e5113c53d0f18a3 | refs/heads/master | 2021-06-21T22:23:25.403545 | 2021-02-21T16:47:19 | 2021-02-21T16:47:19 | 193,951,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # O(N) Solution with Hashmap
import unittest
def longestConsecutive(nums):
nums = set(nums)
res = 0
while nums:
first = last = nums.pop()
while first-1 in nums:
first -= 1
nums.remove(first)
while last+1 in nums:
last += 1
nums.remov... | [
"noreply@github.com"
] | noreply@github.com |
d59371b4b3f629d0d2aadcc57dae1b9823cea4ff | 63ad7bb64afc3a3c1a50e6ce8c7b87eae56e1bfd | /orders/urls.py | b1eea1833627700472c1e5ac8f4a175b183048bd | [] | no_license | hussainsajib/agora_ecom | fb60d92813c86b4e640d61a68370c409169cf402 | d0fecdd94821dfb57aadbbcff3548345b3f5d449 | refs/heads/master | 2023-03-11T10:04:26.280328 | 2021-02-26T20:54:45 | 2021-02-26T20:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django.urls import path
from . import views
urlpatterns = [
path('shippers/', views.ShipperList.as_view(), name='shippers'),
path('shippers/<uuid:pk>/', views.ShipperDetail.as_view(), name='shipper'),
path('orders/', views.OrderList.as_view(), name='orders'),
path('orders/<uuid:pk>/', views.Order... | [
"m.hussainul.islam@gmail.com"
] | m.hussainul.islam@gmail.com |
0fe81c1224239423b44bb199c4e0a6e9ea6319bc | e0e92ccea002817ab2b0abe70b48f1e11f5c1810 | /code/mother.py | d9317f27839a9a94bd6991ab0c4b4e02f1c430a1 | [] | no_license | FransvanHoogstraten/XMPPbot | b22019e73ad3da8691d0be3bf56dd5e7620a3b5d | 2965d45b84a53ba89fafbcc8fa5de2a7ba2d9041 | refs/heads/master | 2020-06-09T06:24:39.692608 | 2014-05-24T11:27:16 | 2014-05-24T11:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | #!/usr/bin/python
# $Id: xtalk.py,v 1.2 2006/10/06 12:30:42 normanr Exp $
import xtalk
x = xtalk()
print x
| [
"fransvanhoogstraten@gmail.com"
] | fransvanhoogstraten@gmail.com |
a8ea718c1bbb96735932df3415268aa4bd5b9077 | 2f07d79a9cb9aac51ed3889a5e8c9ebd43f7c1c0 | /latest/migrations/0002_auto_20180825_0012.py | 3fa9369da89307bea9245ab0718ee9d53f18ca45 | [] | no_license | techspaceusict/techspace-web | a0e0757cd28163e22c814719e72ba90cf509efa1 | 8f26c82c661527d4d5183d68bd562256f186092b | refs/heads/master | 2022-12-14T09:17:44.986055 | 2020-06-20T18:49:50 | 2020-06-20T18:49:50 | 102,638,580 | 14 | 18 | null | 2022-12-02T08:02:22 | 2017-09-06T17:32:51 | JavaScript | UTF-8 | Python | false | false | 498 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-08-24 18:42
from __future__ import unicode_literals
import cloudinary.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('latest', '0001_initial'),
]
operations = [
migrations.AlterF... | [
"akshatpapnoi1110@gmail.com"
] | akshatpapnoi1110@gmail.com |
d6805c37e700f30443e7c9dc8558cd6de173e5f3 | aee0fcbae0bf4d64c804850361299ff7cb919231 | /channels_demo/channels_demo/settings.py | 5f02a6856db1c60aea3aa7c500cdabf2577a1faf | [] | no_license | suyashl13/Django-Mini-Projects | 1ca15a6a39ed2101f981a743bc8932fa08a47ef3 | 0bffa5b5b635263ab84db284f7de8a1058c89818 | refs/heads/master | 2023-05-04T06:37:41.793681 | 2021-05-26T15:06:45 | 2021-05-26T15:06:45 | 276,897,626 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | """
Django settings for channels_demo project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import... | [
"suyash.lawand@gmail.com"
] | suyash.lawand@gmail.com |
90dfd10d500b640ee62fc6fd0666c4b2d4804062 | 9fb51c3fc9e3d2b3a4267bc1ecfc826109d0b60d | /test/LaneDetectionTest.py | 319478eb6ad1c3e17bce3cff37e2b897ccec2494 | [] | no_license | g41903/LaneDetection | 6b929dcac664d003851cf4b60eaa124fffe5908d | 1cfba5940ff25274147252f1169e737954ad29f4 | refs/heads/master | 2021-01-19T06:36:54.047242 | 2016-07-27T16:52:51 | 2016-07-27T16:52:51 | 64,326,062 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 20,631 | py | # ipm.py
import numpy as np
import cv2
import cv
# # focal length
# fu = 0.0
# fv = 0.0
#
# # optical center
# center_u = 0.0
# center_v = 0.0
#
# # extrinsic parameters
# pitch = 0.0
# yaw = 0.0
# # height of the camera in mm
# h = 0.0
#
# # ROI (region of interest)
# ROILeft = 0
# ROIRight = 0
# ROITop = 0
# ROIBotto... | [
"g41903@gmail.com"
] | g41903@gmail.com |
042eb90c4d3065ab75fc8c59d35336f3d37f6d12 | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/JaipurCity/smart_city/models.py | 4edef2ae9219cc2bf12785fae1060189c82a680f | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 2,081 | py | from django.contrib.gis.db import models
from django.contrib.gis.geos import Point
class SmartRestaurant(models.Model):
restaurant = models.CharField(max_length=254)
rating = models.FloatField()
type = models.CharField(max_length=254)
cuisines = models.CharField(max_length=254)
cost = models.CharF... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
302aa7fcfcb70ae7b00bf4454e552a70937189a5 | 9c741ccdf2ccfd27605eebee7e7010bcfd03785d | /tests/contrib/snowflake/test_snowflake.py | 2144dd2507a3f85590229cdd2c2da1c9e8e5f8ca | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | emjohnson20/dd-trace-py | 1b7f205250247c69ee19f120e5be07f28923c044 | 841df919ff9738ed9550b93ef7babb5c321fffd2 | refs/heads/master | 2023-09-02T13:20:09.458746 | 2021-11-10T14:35:36 | 2021-11-10T14:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,536 | py | import contextlib
import json
import pytest
import responses
import snowflake.connector
from ddtrace import Pin
from ddtrace import tracer
from ddtrace.contrib.snowflake import patch
from ddtrace.contrib.snowflake import unpatch
from tests.opentracer.utils import init_tracer
from tests.utils import override_config
fr... | [
"noreply@github.com"
] | noreply@github.com |
06a59e43096e806dd20c21c29f851772da55e59a | e2a0d262b5a3c26a30ed02c78cb905363df9241c | /com/11_class2.py | 2d657a02b7bdf2f9b0f1bb5a9fc78a3329a1a38c | [] | no_license | Kyeongrok/python_selinium | 75b158f0c46aa5d2b7b627dd4a6775c3c6ab66ef | 233c90b3294949813cc910a8b0b2f5fed7df80a9 | refs/heads/master | 2020-04-01T03:35:06.925347 | 2018-10-27T05:03:51 | 2018-10-27T05:03:51 | 152,827,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | class people():
name = "kyeongrok"
def sayHello(self):
print("hello")
def leftHand(self):
print("i'm left hand")
def rightHand(self):
print("i'm right hand")
def setName(self, name):
self.name = name
kyeongrok = people()
kyeongrok.setName("iu")
print(kyeongrok.n... | [
"kyeongrok.kim@okiconcession.com"
] | kyeongrok.kim@okiconcession.com |
01ab7bf6b8931b83ac0808ec3bb65b4eecca8aec | 68ac9e26abc4f1e43ecd9a2621b244100eb77e4d | /node.py | 5362b80b1b7da65ad15732d6fee1edccd637a361 | [] | no_license | PeterNerlich/search_parser | 21f4901931ad17ddfa70011348f50bbcf9d1866b | 39127dab14ca71e3d95a04e6c98815fc0f59d5f9 | refs/heads/master | 2023-06-24T04:44:17.607602 | 2021-07-26T03:15:24 | 2021-07-26T03:15:24 | 387,742,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | from token import tok_name
from search_parser.search_tokenize import TokenInfo
def short_token(tok: TokenInfo) -> str:
s = tok.string
if s == '' or s.isspace():
return tok_name[tok.type]
else:
return repr(s)
def alt_repr(x) -> str:
if isinstance(x, TokenInfo):
return short_to... | [
"peter.nerlich+dev@googlemail.com"
] | peter.nerlich+dev@googlemail.com |
4f5811d5affb7d56c9f5f07b0bd0e6594c5882cd | 1b127c73255a64f6341b5cdc7e563aeeff866199 | /algorithm-friday/case-converter.py | cdcef192f4fb634ca5cf1103e0f74c39e14c6427 | [] | no_license | manuscriptmastr/digitalcrafts | af0ab3d1edb2c74950c8c4b84ad3a30304b44641 | 08a6987a38e9a0fbe2f1b48d8975e7882e0e08fc | refs/heads/master | 2021-04-27T09:35:23.689504 | 2018-04-21T19:08:05 | 2018-04-21T19:08:05 | 122,505,626 | 0 | 0 | null | 2018-04-16T20:30:12 | 2018-02-22T16:38:46 | JavaScript | UTF-8 | Python | false | false | 792 | py | def caseConvert(str, conversionType):
strArray = str.split(' ')
print(strArray)
if conversionType == 'camelCase':
print('this is camelCase: ')
convertedStr = strArray[0].lower()
for i in range(1, len(strArray)):
convertedStr+=strArray[i].capitalize()
elif conversionType == 'snake_case':
pr... | [
"joshua@bluefishds.com"
] | joshua@bluefishds.com |
4dc955342c28aac7a9bf9c2f0272ce450110998e | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/formatter/indentInComprehensions.py | 7e88b6b3d3bd6218119837995f02a78b214acc0d | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 31 | py | attrs = [e.attr for e in
items] | [
"yole@jetbrains.com"
] | yole@jetbrains.com |
6902ebb6c877af91134200d3c24fdc44308f79c2 | ca8838da8b2b841eec3ad631e85a136643156dde | /MyGeoDataProject/geoload.py | 748d1903ecb37f2ae4c62738b8aa984b3cdad805 | [] | no_license | TopFlankerKiller/GeoCoding-Python- | f1a0687e5feb8dcf404c14bedf23d02beca33207 | fd631bd4e0378e3351312dc03ac65bb4537ef00a | refs/heads/master | 2021-03-08T19:34:12.671803 | 2016-05-17T15:14:59 | 2016-05-17T15:14:59 | 59,030,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | import urllib
import sqlite3
import json
import time
import ssl
serviceurl = "http://maps.googleapis.com/maps/api/geocode/json?"
scontext = None
conn = sqlite3.connect('mygeodata.sqlite')
cur = conn.cursor()
cur.execute('''
CREATE TABLE IF NOT EXISTS Locations (destination TEXT, geodata TEXT)''') #This is the table ... | [
"topal14@hotmail.com"
] | topal14@hotmail.com |
e6d16507892693a1ec49b7b01513ce515a0c9225 | 994ff1e5559b591d91a09f4c06c84537eee453b1 | /example/symbols.py | 009d5aa1b8c172f7e4e402d587d1ba51201268c9 | [
"BSD-2-Clause"
] | permissive | dropbox/plyj | b5a37310efc58c4e2f72fd1f90f9d1002666ffb6 | 8c59a576a5b35085fbd70e6c28c82aefdd7168db | refs/heads/master | 2023-07-31T15:22:18.770283 | 2017-03-01T01:00:03 | 2017-03-01T01:00:06 | 63,818,506 | 6 | 5 | null | 2016-07-20T22:17:32 | 2016-07-20T22:17:31 | null | UTF-8 | Python | false | false | 2,057 | py | #!/usr/bin/env python2
import sys
import plyj.parser
import plyj.model as m
p = plyj.parser.Parser()
tree = p.parse_file(sys.argv[1])
print('declared types:')
for type_decl in tree.type_declarations:
print(type_decl.name)
if type_decl.extends is not None:
print(' -> extending ' + type_decl.extends.na... | [
"werner_hahn@gmx.com"
] | werner_hahn@gmx.com |
828ddd9b11c31db79e3679d61bdcfd8ff092f648 | 08615d46baa6d2c33f837445fd0dd48d8fb183a3 | /Simple Addition/add.py | f58870bd135719a688fb2f8277b1fbb353d3a1df | [] | no_license | syafiq/kattis | 34c94ab6945eab5b0583ebeba98da5452365e51f | 7c29b7aa91556f903903e1194c29f0efbaeb635c | refs/heads/master | 2020-04-01T04:06:09.409969 | 2016-10-26T10:45:22 | 2016-10-26T10:45:22 | 71,081,429 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import sys
# main program
if __name__ == '__main__':
vals = sys.stdin.read()
inx = [a for a in vals.split("\n")]
print int(inx[0])+int(inx[1]) | [
"noreply@github.com"
] | noreply@github.com |
4b208c47d8b238082b1f0e0926b8ca03994e7acb | 50a20e25c1cb7ac05b0d7eb05bf174973a866a4b | /Day20/Day20.py | a80a573319bf5001f8c8df8dc3bb1248856c81d2 | [] | no_license | bakkerjangert/AoC_2016 | 1733b15bbb762d9fff0c986e33d404c5b7148591 | 3ccafab3f6d8b8efb4bf7de0549e22a4bd4de527 | refs/heads/master | 2023-02-04T06:09:32.862621 | 2020-12-18T14:39:00 | 2020-12-18T14:39:00 | 322,620,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | import numpy as np
import pylab as plt
with open('input.txt') as f:
lines = f.read().splitlines()
start = []
end = []
for line in lines:
start.append(int(line.split('-')[0]))
end.append(int(line.split('-')[1]))
# for i in range(len(start)):
# print(start[i], '-', end[i])
ips = np.array([start, end])... | [
"gert-jan.bakker@rhdhv.com"
] | gert-jan.bakker@rhdhv.com |
c10776661e8ee1d2cc480264d4b48f43d7c8ca71 | 06e22e5e253fec09afc9504d7b201518936d84b3 | /python/common/converter.py | 0196904eb8e52300a652848eb50e907386ee75be | [] | no_license | RaamN/Web-Crawler | 168a32deb1e276f10868eef7666e4cb340529148 | 9b41fcf269d28c64ce8c57df7a360f780fc18fe2 | refs/heads/master | 2021-01-01T16:43:43.168844 | 2019-12-04T19:56:23 | 2019-12-04T19:56:23 | 97,902,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | from common.recursive_dictionary import RecursiveDictionary
import uuid
class _container(object):
pass
def get_type(obj):
# both iteratable/dictionary + object type is messed up. Won't work.
try:
if hasattr(obj, "__dependent_type__"):
return "dependent"
if dict in type(obj).mr... | [
"rnachiap@uci.edu"
] | rnachiap@uci.edu |
7d6112f173be2b434f9779490f1979f1d893a056 | 01d92ca39cd4836aaef67e2efcf88a44671c7213 | /code_pack_19/basic_logger_2.py | 360836d78049880cad49c8acca8c494b507ccf7d | [] | no_license | manuelpereira292/py3_bootcamp | 247f411b80f09c46aeeba90a96e6a5d3fd329f2c | 1988553394cb993db82c39993ed397e497bd5ae8 | refs/heads/master | 2022-08-20T02:25:51.265204 | 2020-05-15T22:26:27 | 2020-05-15T22:26:27 | 263,367,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import logging
logging.basicConfig(filename="code_pack_19/sample1.log", level=logging.INFO)
log = logging.getLogger("ex")
try:
raise RuntimeError
except RuntimeError:
log.exception("Error!")
# Let's use our file reading knowledge to
# read the log file
with open("code_pack_19/sample1.log") as fi... | [
"manuelpereira292@gmail.com"
] | manuelpereira292@gmail.com |
adc306eabb7dbc0bfdb65f42a941a06a2541d9b8 | fbdd18eac2c5a3163f0a4154daf3e89ddef0507d | /day3/start/12_random.py | 703da11b1752801f5ef6c90fd8594635d546c62e | [] | no_license | techsharif/python_training_2021 | 562d891e40fe2410cebcdad841eb407fb40b7871 | 246dddc1c4dae683df4b006fe96a5a117d1aeaf6 | refs/heads/master | 2023-02-27T12:11:23.541408 | 2021-02-10T10:03:48 | 2021-02-10T10:03:48 | 333,330,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import random
print(random.random()) # 0.125
print(random.randint(0,9)) # 5 | [
"sharif.cse.hstu@gmail.com"
] | sharif.cse.hstu@gmail.com |
5a58a787ab85afbf656093287cdf31bb5fd3798e | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/get_hub_virtual_network_connection.py | a68415eeb18718c1b8b9c127daf3badcdf55b420 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,803 | 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
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | noreply@github.com |
71e10b0fa9854fb3dbb5c2d8ca87aae1ee0cb3e5 | 63d49eb2d9232adab8c69fe232abb1d52fa6c2ad | /novelWeb02/spiders/NovelSpider.py | 9a68de29f07230371d2d251275e0deb6b725b5c7 | [] | no_license | liuwenbin2012159/novelWeb02 | e7756e7a68fbc95db52c97b329cb891ef7822490 | a276fe163c71d617464c95e72668c0810bcc40b4 | refs/heads/master | 2020-03-10T17:53:54.592815 | 2018-05-26T15:32:40 | 2018-05-26T15:32:40 | 129,511,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,974 | py | import logging
from scrapy import Selector
from scrapy_redis.spiders import RedisSpider
import scrapy_redis
from scrapy.http import Request
from novelWeb02.items import *
class NovelSpider(RedisSpider):
start_urls = []
logging.getLogger("requests").setLevel(logging.WARNING) #
name = "novelSpider"
#... | [
"liumo@163.com"
] | liumo@163.com |
316c6f696121e8eb21ad87bd9966d1689f929134 | 37cfcdfa3b8f1499f5899d2dfa2a48504a690abd | /test/functional/p2p_disconnect_ban.py | 1886e64fb2499ff15b887e636597f96dd7018069 | [
"MIT"
] | permissive | CJwon-98/Pyeongtaekcoin | 28acc53280be34b69c986198021724181eeb7d4d | 45a81933a98a7487f11e57e6e9315efe740a297e | refs/heads/master | 2023-08-17T11:18:24.401724 | 2021-10-14T04:32:55 | 2021-10-14T04:32:55 | 411,525,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,354 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Pyeongtaekcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test node disconnect and ban behavior"""
import time
from test_framework.test_framework import ... | [
"cjone98692996@gmail.com"
] | cjone98692996@gmail.com |
6f136cc6daa5a8670845de0e72b5aa253d75137b | de5dc978e0a5b9fc4ecbbdd00c1cebe57c465775 | /wso2_apim_storeclient/models/__init__.py | 5c4b27271173e651942c4c622035cbca741cb8fe | [] | no_license | junetigerlee/python-wso2-apim-storeclient | 8c3502dfd039eca0093c218cb6ac1183c050edb5 | 60c84988a2417a0104aaa53ed082902012d6247d | refs/heads/master | 2021-01-01T16:12:12.197633 | 2017-07-25T06:21:21 | 2017-07-25T06:21:21 | 97,787,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | # coding: utf-8
"""
WSO2 API Manager - Store
This specifies a **RESTful API** for WSO2 **API Manager** - Store. Please see [full swagger definition](https://raw.githubusercontent.com/wso2/carbon-apimgt/v6.0.4/components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/main/resources/store-api.yaml) of the AP... | [
"junetigerlee@gmail.com"
] | junetigerlee@gmail.com |
d79e89cb39936866fa1bd8cece56bcf23e7dd51b | b3ec1af8c6e5b5017dc03cadc4c9880d9dac7c71 | /code/src/ble_hr.py | f9aedb4c48003eb64727d634f0bd1870a363bfd4 | [] | no_license | NSLog0/Open-Cycling-Computer | 4e46d009aec209ac3efcde479bc87f6b3cd2efa6 | cb42b35a54006c00a71cc37dea874348cc878e35 | refs/heads/master | 2020-03-22T08:54:15.101577 | 2018-06-29T14:01:23 | 2018-06-29T14:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,577 | py | #! /usr/bin/python
## @package ble_hr
# BLE heart rate sensor handling module.
from bluepy.btle import AssignedNumbers
from bluepy.btle import BTLEException
from bluepy.btle import DefaultDelegate
from bluepy.btle import Peripheral
import logging
import threading
import time
## Class for handling BLE heart rate sens... | [
"przemo@firszt.eu"
] | przemo@firszt.eu |
118884ad3346cd2d5b03f42e56f835bd3db83271 | 9644b66abf97b661caa36447a52ff09736915395 | /EulerPy/problem.py | 8bf9cd9ebc42f65079608069b67d9f322aa5cd8d | [
"MIT"
] | permissive | programmer-util/EulerPy | 8439da0068083761871e64acc21ba6ddb8c95bb6 | a2d150eefe1cc8c8d971dad009299f97db1f65e2 | refs/heads/master | 2021-01-16T18:12:05.067204 | 2014-07-23T00:28:38 | 2014-07-23T00:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | # -*- coding: utf-8 -*-
import os
import sys
import glob
import linecache
import click
class Problem(object):
def __init__(self, problem_number):
self.num = problem_number
@property
def filename(self, width=3):
"""Returns filename padded with leading zeros"""
return '{0:0{w}d}.p... | [
"me@kevinyap.ca"
] | me@kevinyap.ca |
379846869770f9f89d6795dbe0488b8a14b3397c | 15fe288d5f8983a6c185cd0bcb7e0deac97efb62 | /modelfile/model_dram24.py | fe46dea74db4b17cc21b9066ee8771c50f4ced49 | [] | no_license | oyucube/traffic | 98955cd37e1b64bed752c94e3e0f442afbd7fadd | 6f4bc3873281b6c8cce91a904836f887947de0f2 | refs/heads/master | 2020-03-20T12:56:52.718451 | 2019-02-08T05:56:13 | 2019-02-08T05:56:13 | 137,444,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,642 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 26 04:46:24 2016
@author: oyu
"""
import chainer.functions as F
from chainer import Variable
import chainer.links as L
from env import xp
from modelfile.model_dram import BASE
import make_sampled_image
import math
class SAF(BASE):
def __init__(self, n_units=256, n_o... | [
"y-murata@ist.osaka-u.ac.jp"
] | y-murata@ist.osaka-u.ac.jp |
effb9a8226ac5b93a6db35b1fd6185aa8e0f08ae | 365b6c93436a44a07f4481f24e7ee85c0b6e2b94 | /dnh/consumer.py | 123c5f361c6e64c5853272cc248ea28be2b8fe84 | [] | no_license | bopopescu/designate-notifications-handlers | 42dbf2aa00e7c89cb087d84d89dc1263cd7d5ab7 | 5db7c1da7daca89dbcec24a31dc5053dbbb0f7bd | refs/heads/master | 2022-11-26T06:07:12.494777 | 2013-12-05T22:26:10 | 2013-12-05T22:26:10 | 282,113,581 | 0 | 0 | null | 2020-07-24T03:30:01 | 2020-07-24T03:30:00 | null | UTF-8 | Python | false | false | 3,479 | py | # Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
#
# Author: Artom Lifshitz <artom.lifshitz@enovance.com>
#
# 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.... | [
"artom.lifshitz@enovance.com"
] | artom.lifshitz@enovance.com |
cb98bfc6916ec999360431323b0978cd822e9b71 | d136fbc5a98651702c62368fd7f7e7cb267c2a71 | /assignment.py.py | bdb3cd7dcf2991badecd89b6aae01b32a50e3086 | [] | no_license | manzartoflo/atdp-textile | dca72285e964937c964dd4b284c13c036c439faf | bd7de038c92d186214b3282f1029e3f976de3c00 | refs/heads/master | 2020-06-16T07:09:34.971453 | 2019-07-11T16:41:55 | 2019-07-11T16:41:55 | 195,509,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 23:31:49 2019
@author: Lenovo
"""
import requests
from bs4 import BeautifulSoup as soup
from selenium import webdriver
import time
import csv
import re
with open('atdp.csv', 'a', encoding='utf-8') as csvFile:
writer = csv.writer(csvFile)
heade... | [
"manzar.toflo@gmail.com"
] | manzar.toflo@gmail.com |
98697225e835037618221274549d17e44739d9f0 | b31e7898aa5131125f243eaff973049b17e08512 | /.venv/lib/python3.10/site-packages/anyio/_core/_signals.py | 8ea54af86c4be12340de02dc2a6f7eba387e0d98 | [] | no_license | ramsred/MyProjects | f2978eeda3d73421daf0da9f2d012caef6c3ccda | a7f90ef1ecfbc7517be61e71286bd14405985de5 | refs/heads/master | 2023-07-09T03:19:17.683705 | 2023-07-02T19:30:19 | 2023-07-02T19:30:19 | 71,980,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from __future__ import annotations
from typing import AsyncIterator
from ._compat import DeprecatedAsyncContextManager
from ._eventloop import get_asynclib
def open_signal_receiver(
*signals: int,
) -> DeprecatedAsyncContextManager[AsyncIterator[int]]:
"""
Start receiving operating system signals.
... | [
"venkataramireddy534@gmail.com"
] | venkataramireddy534@gmail.com |
44ff53b69d4d158f8be3d8611ddd30531b4e38dc | df7aa2eb2f0f1944f4099ef0e4377a3981b8afc5 | /pl_bolts/models/gans/pix2pix/components.py | c67cf691c8d9e5dafa2ffc3efe4283ff70c68cf5 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | lavoiems/lightning-bolts | b8b84c4fe25608ff2290426c61772860a2256f8c | 208e92ba3dcdbc029afd37e09ec9461fbcf3f293 | refs/heads/master | 2023-09-01T23:50:08.634388 | 2021-11-08T18:38:26 | 2021-11-08T18:38:26 | 426,646,437 | 0 | 0 | Apache-2.0 | 2021-11-10T14:09:52 | 2021-11-10T14:09:52 | null | UTF-8 | Python | false | false | 4,602 | py | import torch
from torch import nn
class UpSampleConv(nn.Module):
def __init__(
self, in_channels, out_channels, kernel=4, strides=2, padding=1, activation=True, batchnorm=True, dropout=False
):
super().__init__()
self.activation = activation
self.batchnorm = batchnorm
s... | [
"noreply@github.com"
] | noreply@github.com |
b8a190c7d9eb684df1e4de6a0cd214d974178610 | 9cd151c7ed1379514d05a9dcb2d4a47f52ae7b7c | /src/project/Utilities.py | c0e71c0dc6442b563ee3baeefb2abc01081abc91 | [] | no_license | COSC-4372-6370-MedicalImaging/FinalProject | a9fe1bf0d1cb6ec698dd447f687d0c8cb7569cb9 | 791d6effaf251a35be754fb39c2c4e67e7d36450 | refs/heads/master | 2023-01-18T23:47:06.700222 | 2020-11-23T16:54:34 | 2020-11-23T16:54:34 | 315,013,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | import cv2
import numpy as np
def loadImage(image_path):
image = None
return image
def loadMatrix(filename):
matrix = None
return matrix
def saveImage(filename, image):
return True
def saveMatrix(filename, matrix):
return True
# map input image to values from 0 to 255"
def normalizeIma... | [
"c3m.cmm@gmail.com"
] | c3m.cmm@gmail.com |
570bc08e2531a3c60bc6778ff86427b795d3d936 | 9e610e88158b973a2129cb794176dc1a9b0b6bfd | /juicer/util/jinja2_custom.py | 535940968e98e01641d04d94dbc96fd93dc925e3 | [] | no_license | eubr-bigsea/juicer | 8735b3aefcf66a5207364270e7ee9ec809b94ad4 | 4714187a6cb8ca7d1e09d8eae4cf4898ae7dcc58 | refs/heads/master | 2023-08-31T07:01:52.091443 | 2023-08-14T21:45:03 | 2023-08-14T21:56:48 | 68,124,762 | 6 | 8 | null | 2023-08-01T01:21:18 | 2016-09-13T16:09:11 | Python | UTF-8 | Python | false | false | 903 | py | # -*- coding: utf-8 -*-
from jinja2 import nodes
from jinja2.ext import Extension
import autopep8
class AutoPep8Extension(Extension):
# a set of names that trigger the extension.
tags = {'autopep8'}
def __init__(self, environment):
super(AutoPep8Extension, self).__init__(environment)
# a... | [
"waltersf@gmail.com"
] | waltersf@gmail.com |
9d40f78eda782f7c941d4efd9812316dc3de15cb | 7cbfe2050cfa2b52e96984f0d8b98b629b48e0c2 | /eventex/urls.py | 4d6982d5071acc502775827f657c98c8fc667cee | [] | no_license | rubensfunke/wttd | 7e113f931712c0aed827cbe751a52da4d4bff00e | bdc4a5514212a22e6c948bf886b8773e361f9406 | refs/heads/master | 2020-04-17T22:44:09.549522 | 2017-06-02T18:20:58 | 2017-06-02T18:20:58 | 67,041,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | """eventex URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"desenv.estag@dif10.cmc.pr.gov.br"
] | desenv.estag@dif10.cmc.pr.gov.br |
f20fd2bafe52ea95dc8e9a682545c1e25ddef966 | 8235896ca2e7c63277f0fa328c9983d7db7c539e | /my_new_env/lib/python2.7/site-packages/lxml/html/clean.py | 142a904091369d1e867c6fcf2b992f7459837cb3 | [] | no_license | tal42levy/scripts | 2461d28ae89171b74d9e38189c59baf997e71501 | 20938a490b49693d96c4b572e149b0a940ac4614 | refs/heads/master | 2020-06-01T18:31:53.231295 | 2012-11-13T07:46:38 | 2012-11-13T07:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,129 | py | """A cleanup tool for HTML.
Removes unwanted tags and content. See the `Cleaner` class for
details.
"""
import re
import copy
try:
from urlparse import urlsplit
except ImportError:
# Python 3
from urllib.parse import urlsplit
from lxml import etree
from lxml.html import defs
from lxml.html import fromstr... | [
"tallevy@usc.edu"
] | tallevy@usc.edu |
2e746a05f694bd11df7583c791fd56c5a10f3472 | cc9493d2bedbd051be026d300379243b7567b188 | /venv/Scripts/pip3-script.py | 20fe2d72a36c510951a477cdea7a796c6335bfa9 | [] | no_license | yenyen5566/selenium | dc65e34a48b3c1dc9ae2cf07ecf7144c0614cdb2 | dcfdffb672879f6e4b5d997a0360fd0eca0993a9 | refs/heads/master | 2022-12-13T03:40:55.799151 | 2019-05-29T01:57:44 | 2019-05-29T02:21:05 | 188,998,777 | 0 | 0 | null | 2022-12-08T05:11:05 | 2019-05-28T09:35:45 | Python | UTF-8 | Python | false | false | 418 | py | #!C:\Users\edwardyen\PycharmProjects\selenium\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__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.... | [
"edward18325@gmail.com"
] | edward18325@gmail.com |
fde8f7637af1083e389908304d5f527598d3171b | d349bd90a5325f42c77e884e60078f5220565a71 | /waterlinked_gps/scripts/math_helpers.py | e9fde0946a557eedd84dc2f9aaa1e8b0b881d86d | [
"Apache-2.0"
] | permissive | FletcherFT/bluerov2 | 54a3507652dbfc53e5a694b32813188d2bf05d71 | c416fc8530aac2b0ac52626001308d780347d639 | refs/heads/master | 2021-06-21T08:53:07.095082 | 2021-05-17T11:39:28 | 2021-05-17T11:39:28 | 211,705,368 | 10 | 7 | null | 2019-09-29T18:11:45 | 2019-09-29T18:11:44 | null | UTF-8 | Python | false | false | 222 | py | from math import *
def sind(x):
return sin(x*pi / 180.0)
def cosd(x):
return cos(x*pi/180.0)
def tand(x):
return tan(x*pi/180.0)
def deg2rad(x):
return x*pi/180.0
def rad2deg(x):
return x*180.0/pi
| [
"fletcherthompsonx@gmail.com"
] | fletcherthompsonx@gmail.com |
ba1956f67fab73f122a5b6ff81d0096134b45646 | 7c1b0dafe601c3c8fa3c2cc3cf02698eee87577f | /python_code/deep_neural_networks_for_youtube_recommendations/tfrecords_methods/read_sparse_tfrecords_1.py | 3ead6b86185dbd0afc6dc49d19e15a9b4cdc279d | [] | no_license | Cedarmo/deep_neural_networks_for_youtube_recommendations | 8e52939d648b15b1d21a34b753390d9985608564 | fe312fd54b8783a82e792b32f0f57998f0296a01 | refs/heads/master | 2020-09-25T23:57:38.382406 | 2020-04-14T11:58:07 | 2020-04-14T11:58:07 | 255,596,249 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | import tensorflow as tf
def parse_fn(example):
example_fmt = {
"embedding_average": tf.FixedLenFeature([8], tf.float32),
"index": tf.FixedLenFeature([], tf.int64),
"value": tf.FixedLenFeature([], tf.float32),
"size": tf.FixedLenFeature([], tf.int64)
}
parsed = tf.parse_singl... | [
"yqisong1992@163.com"
] | yqisong1992@163.com |
8ddd6776163ac3e893faaeb8720ebbbd8050f11d | eddd9d863af372398a880ee8c655163fc08f5cc3 | /myproject/myproject/settings.py | 8ce57115deb1bc604a6373423ab48eed1b3f4a80 | [] | no_license | architvashist/testing | 3f2fceb9cbd21db8b82ca9e4caf22ed77cdf7c86 | 1b5e0235f46a0639fb0eb2565e5f67de10a853cf | refs/heads/master | 2022-12-04T12:28:39.678054 | 2020-08-28T20:01:35 | 2020-08-28T20:01:35 | 291,131,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"architvashist@live.in"
] | architvashist@live.in |
baa70b530ef1e1da07fc29dfb1682599e5324464 | a4968baf57946133fadc507809194de0c98d8635 | /if_gpio_led3.py | e32e1308aba591d7c612c560944f84f97192d407 | [] | no_license | UedaTakeyuki/slider | 7f997790cbe5e494b0375f899fa0a93f84cadd14 | 59c90b65a343d8e26ef55062d7182ffb7a12c819 | refs/heads/master | 2020-04-10T22:43:17.049369 | 2018-09-04T02:11:22 | 2018-09-04T02:11:22 | 62,211,902 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # coding:utf-8 Copy Right Atelier Grenouille © 2015 -
import subprocess
import importlib
import led
import traceback
import sys
import getrpimodel
# RPi 3 は LED1(赤LED)を操作できない
pi3 = True if getrpimodel.model() == "3 Model B" else False
l = led.LED()
l.use(0) # green
pi3 or l.use(1) # red
l.off(0)
pi3 or l.off(1)
l_st... | [
"ueda@latelierdueda.com"
] | ueda@latelierdueda.com |
c724f9e60544ef5b2e831d6eb3592bd5b2079db6 | 972c9f77851d6adc155b07361a9abae6491a659c | /highlighter.py | afe628ca18bbb1759610d74db5488d88eeb9ab4d | [] | no_license | sameer55chauhan/text_editor | e7bf3f9a3a4eb692e33195233eb176cc9660a239 | 9d05c7df6bdaf20a75ec520f3231a95abf288272 | refs/heads/master | 2021-01-01T02:34:35.176072 | 2020-02-08T15:04:12 | 2020-02-08T15:04:12 | 239,143,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,281 | py | import tkinter as tk
import yaml
class Highlighter:
def __init__(self, text_widget, syntax_file):
self.text_widget = text_widget
self.syntax_file = syntax_file
# self.categories = None
self.numbers_color = 'blue'
self.strings_color = 'red'
self.keywords = ['True', '... | [
"noreply@github.com"
] | noreply@github.com |
84581f935a5eec53e4a6d85fa7ab76d43afe30a6 | 985793649de3cb282fbce83fec3fb941b47226bf | /Software/Preliminary code/LX-16A/lx_setup.py | 1754b0aee9309d6978b76e73c3f86b5d9c270a02 | [
"MIT"
] | permissive | sichunx10/OpenDoggo | 00969cb2d7a3712ffefd5a703d987cb334081bee | 6b0057d2423b28561407e8828e82cb9f509d0352 | refs/heads/main | 2023-04-24T03:59:33.022573 | 2021-05-15T19:40:36 | 2021-05-15T19:40:36 | 367,697,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | import sys, time
import serial
import lewansoul_lx16a
#SERIAL_PORT = '/dev/ttyUSB0' # For Linux
SERIAL_PORT = 'COM8' # For Windows (find port in Device Manager -> Ports)
ctrl = lewansoul_lx16a.ServoController(
serial.Serial(SERIAL_PORT, 115200, timeout=1),
)
def servo_info(id):
print("Servo id:... | [
"sichunx10@users.noreply.github.com"
] | sichunx10@users.noreply.github.com |
cf49845dcba0d0b385f3319bce27828d59e5b7fc | 3a0c0b876b0e91edd96d82cf957ac167d28e9f5a | /game_env/Battleroom.py | ed952e4ecb5c9cb5af53e34439a65b2e1b344d7e | [] | no_license | JayDBee/HackOR-Project | 5e5d88947f6cc49aca7cdeec046e4a7c33bf22ab | 4be02ebe3811de6b00253260ce69072ef46b8aff | refs/heads/main | 2023-03-31T00:40:06.667093 | 2021-03-28T20:44:15 | 2021-03-28T20:44:15 | 351,891,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | import Objects_and_stuff
import pygame
from pygame.locals import (
K_UP,
K_DOWN,
K_LEFT,
K_RIGHT,
K_ESCAPE,
K_z,
K_x,
)
running = True
screen = pygame.display.set_mode((Objects_and_stuff.main_room.length, Objects_and_stuff.main_room.width))
select = 0
HP = 100
EHP = 100
while running:
... | [
"79239855+JayDBee@users.noreply.github.com"
] | 79239855+JayDBee@users.noreply.github.com |
2ba8af9a37d1b2976828cea090385da648a31a6a | 45cb74f15ebf96b431e5689e554fcdc42062ee08 | /4-magnet_particles/solution.py | 2c864f0e918fe8e2abfb2ca11901b3067432a85e | [] | no_license | acu192/codewars | d296bc95fd067f0059045494fc445f62f95c060a | 905c5397461976335dbcf6a5bb0ffb6b359a29c0 | refs/heads/master | 2021-01-23T03:52:58.009582 | 2017-08-04T05:03:06 | 2017-08-04T05:03:06 | 86,128,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | """
https://www.codewars.com/kata/magnet-particules-in-boxes
"""
from math import pow
def doubles(maxk, maxn):
return sum(sum(pow(n+1, -2*k) for n in range(1, maxn+1))/k for k in range(1, maxk+1))
def assertFuzzyEquals(actual, expected, msg=""):
merr = 1e-6
inrange = abs(actual - expected) <= merr
... | [
"ryan@rhobota.com"
] | ryan@rhobota.com |
e78649e5c08756d7f0bd2c588219d7302dd0f4e2 | df716b2868b289a7e264f8d2b0ded52fff38d7fc | /plaso/parsers/sqlite_plugins/safari.py | 22bb6098cb41d93825e091cb3aafa5f5caee31fd | [
"Apache-2.0"
] | permissive | ir4n6/plaso | 7dd3cebb92de53cc4866ae650d41c255027cf80a | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | refs/heads/master | 2021-04-25T05:50:45.963652 | 2018-03-08T15:11:58 | 2018-03-08T15:11:58 | 122,255,666 | 0 | 0 | Apache-2.0 | 2018-02-20T21:00:50 | 2018-02-20T21:00:50 | null | UTF-8 | Python | false | false | 5,409 | py | # -*- coding: utf-8 -*-
"""Parser for the Safari History files.
The Safari History is stored in SQLite database files named History.db
"""
from __future__ import unicode_literals
from dfdatetime import cocoa_time as dfdatetime_cocoa_time
from plaso.containers import events
from plaso.containers import time_events
fr... | [
"onager@deerpie.com"
] | onager@deerpie.com |
2af7b855a643821f4ddf03bac9ca90fe10ce3dbc | 868615e1bd9d5025a10666c0464f863451ef574a | /pyladies_django_workshop/settings.py | 8dea85857aa59719674160234fe9a93441959a99 | [] | no_license | nbozoglu/pyladies-django-workshop | 828ada4c40308d764c6af293a5e406fc1533c9f0 | e61f716b8cb9a7c49431765accd2b4e920ba57b4 | refs/heads/master | 2021-01-15T20:38:29.687555 | 2015-03-17T19:28:09 | 2015-03-17T22:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | """
Django settings for pyladies_django_workshop project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(... | [
"eleyine@gmail.com"
] | eleyine@gmail.com |
aa31d2274c9ea171da4620dea8d4819399fee092 | 8c834212f9b74489afe0eae38513d209aac3f904 | /uchicagoldrclientmodules/ldr_staging_stagingHash.py | d6cb4f4c671621cfb435066d45a7184318e21ea6 | [] | no_license | uchicago-library/uchicagoldr-client-bin | ddf68d0873d4eac7c8a374a4460ef762a0a24e07 | 136062782ac7df03fb6bf122941950c2d52d11f9 | refs/heads/master | 2021-01-10T02:03:38.831625 | 2015-12-15T02:24:29 | 2015-12-15T02:24:29 | 48,051,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,506 | py | #!/usr/bin/python3
# Default package imports begin #
from argparse import ArgumentParser
from os import _exit
from os.path import split, exists, join
# Default package imports end #
# Third party package imports begin #
# Third party package imports end #
# Local package imports begin #
from uchicagoldrLogging.logge... | [
"tdanstrom@uchicago.edu"
] | tdanstrom@uchicago.edu |
80408feb60b9231d806b7c2eca95f935cdfb4a57 | a4fcf1dc0f9e59e650e3463efc4551abbcf1003b | /type.py | cf183ba892d5dacea746a4cc7a167fe8a40773c4 | [] | no_license | tomoya-1010/python-training | 14e5c1f530359d3f942df93d46fd4dd9223396fd | 3eb91bde69e8751a75b65c8ad36865625ca20169 | refs/heads/master | 2023-07-04T13:08:40.604841 | 2021-08-08T15:07:46 | 2021-08-08T15:07:46 | 365,253,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | #type関数は引数で指定したオブジェクトのクラスを返す。
class Sample ():
pass
s = Sample()
s_type = type(s)
print(s_type)
class Sample1():
""" 適当なクラス """
pass
class Sample2(Sample1):
""" Sample1を親とするクラス """
pass
obj1 = Sample1() # Sample1型のオブジェクトを生成する
obj2 = Sample2() # Sample2型のオブジェクトを生成する
# Typeを使用した場合、Sample2... | [
"tomoya.nakayama.ph@gmail.com"
] | tomoya.nakayama.ph@gmail.com |
5ba7735b6021d689b062a0762bcc9c07461fb075 | 6dd77c2b3b41b9df200756036a3673aa86e5e8ca | /Python/main.py | 554699886bed3ce526787471e0dee14cb1e6c9da | [] | no_license | michal1domanski/Praca_inz | 2c3492a41514f053c3331c5695e8425e900efdae | abe905476c74358c826b2b41bca0dff9dfb66964 | refs/heads/master | 2023-04-17T10:04:00.565093 | 2020-11-28T02:23:12 | 2020-11-28T02:23:12 | 271,671,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | from checkers_bot import Bot
from checkers_pygame import Plansza, Gra
import pygame
import pygame_menu
CZERWONY = (255, 0, 0)
NIEBIESKI = (0, 0, 255)
max_depth = 4
def menu():
pygame.init()
surface = pygame.display.set_mode((600, 400))
menu = pygame_menu.Menu(400, 600, "Witamy", theme=pygame_menu.themes.THEME_DAR... | [
"michal.domanski22@gmail.com"
] | michal.domanski22@gmail.com |
26d9cfa10eac41cfcee4883afb3f3344863a66a3 | 9b56240f5d0a7f787518085eb2945727c60c4e5e | /DjangoAPI/settings.py | bca2b60d33d55d4741f057e02989d5a8ad51481e | [] | no_license | Gruning/DjangoAPI | 920a399e58b814849a4b116e8e3c8c5f3004502a | aeab34e3a0cd2e6be176b7cc4d22e4fb4ad75bff | refs/heads/master | 2023-01-24T06:55:49.432324 | 2020-11-23T23:02:41 | 2020-11-23T23:02:41 | 315,436,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | """
Django settings for DjangoAPI project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"alberto.gruning.zen@gmail.com"
] | alberto.gruning.zen@gmail.com |
40f34e2b13d2dbd43ddbbdfaace14b75eac30a92 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_boot_pxe_ref.py | b14fd7196b588ad8b507fa7ab35924a40ec22fa7 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,851 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
b02950d3f7be17cb2494c4f1c7da78ce7e16ad39 | 4d200e1f225455c58e0dd89db587a29411f86245 | /venv/Lib/site-packages/openmdao/components/tests/test_ks_comp.py | 54350a75b335c227b0f75ed0c882dbd166d9b70d | [] | no_license | ManojDjs/Heart-rate-estimation | df0be78edbc70cc75c006c6f87c8169200de84e0 | d9e89fe017f1131d554599c248247f73bb9b534d | refs/heads/main | 2023-05-09T10:58:37.614351 | 2021-06-01T11:12:45 | 2021-06-01T11:12:45 | 371,493,498 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,252 | py | """ Test the KSFunction component. """
import unittest
import numpy as np
try:
import matplotlib.pyplot as plt
plt.switch_backend('Agg')
except ImportError:
plt = None
import openmdao.api as om
from openmdao.test_suite.components.simple_comps import DoubleArrayComp
from openmdao.test_suite.test_examples.... | [
"djsmanoj0000@gmail.com"
] | djsmanoj0000@gmail.com |
53b5bdffbad15e8d3b30c234be201c7e2a150e4d | d0c63b8f8ffe8fd961899de80c8f36635a93b6d5 | /mysite/urls.py | 0a9b991c3798c56e83d119577af710ba1663775a | [] | no_license | juhyun99/my-first-blog | fa39e90e3a1fa4bf5195cd4c7d02897018a50784 | 270ea634935c180e967bf2592787f4f85f22b1c9 | refs/heads/master | 2023-06-24T21:24:27.393924 | 2023-06-13T13:18:01 | 2023-06-13T13:18:01 | 258,571,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"juhyun1002@khu.ac.kr"
] | juhyun1002@khu.ac.kr |
cd2532340a41511f54565d952db8a3d8f0242397 | bedb44b4f80ab709d4cebeeefa6eae307e1a376f | /misc/local.py | 06def0294f06bd523ba81732c5dbf35ae68947c2 | [] | no_license | baodongli/exercise | bdf7562813ad8ded5da912f30e90258294b6934f | ffcddd30acefe037a7dcd6ba77ff150350a2c9b8 | refs/heads/master | 2021-07-15T17:09:03.807447 | 2020-05-27T20:01:34 | 2020-05-27T20:01:34 | 156,718,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | import gevent
from gevent.event import Event
import werkzeug.local
# import pdb; pdb.set_trace()
LOCAL = werkzeug.local.Local()
eve = {}
def task(name, value):
LOCAL.value = value
for _ in range(20):
eve[name].wait()
del eve[name]
eve[name] = Event()
LOCAL.value += 10
p... | [
"Robert.Li2@emc.com"
] | Robert.Li2@emc.com |
62babd634f08ee217fbd72eb3f4e5d26d5e29a4f | 88e0efa078c65b734bff3623cc1a275ecc20b032 | /Vorlagen/Hauptprogramm.py | ffa0fc97fd435f299f52a7e4d3e907f7a5d69ed8 | [
"Unlicense"
] | permissive | tommy010101/Python_Pygame-Zero | ea631257c7d1a89c67e7c627cabfb2f8da2dc49c | 6a0634017422a8b9a706e1f9935d5ddb6ce1e59b | refs/heads/main | 2023-08-01T11:35:23.312956 | 2021-09-25T08:49:34 | 2021-09-25T08:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | import pgzrun
# Beispiel: from figur import Figur
# Das Spielfeld
WIDTH=800
HEIGHT=600
TITLE = "Ein Spiel"
class Spiel:
def __init__(self):
self.aktiv = False
# Figuren erzeugen
# Beispiel: self.figur = Figur(10,20)
def start(self):
self.aktiv = True
def stopp(sel... | [
"der.hobbyelektroniker@gmail.com"
] | der.hobbyelektroniker@gmail.com |
0a8d6b547e400a711ed0eee606444ae39c1f0080 | 7ee89b154e61ca26ea7ecf5998bf8f5329579ff9 | /controllers/fit_mollie_controller.py | 646cb1414b771dc77adec0a687e75d8b3d298942 | [] | no_license | FundamentIT/fit_payment_mollie | f73fd0760bc71d833f7a588f02c503401a29e351 | e6c689999d35f6cc206eed28e6f6dd5abc848daf | refs/heads/master | 2020-08-21T15:19:21.722336 | 2019-11-14T07:55:53 | 2019-11-14T07:55:53 | 216,187,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,466 | py | # -*- coding: utf-8 -*-
import json
import logging
import requests
import werkzeug
import pprint
import locale
import decimal
import datetime
from psycopg2.psycopg1 import cursor
from odoo import http, SUPERUSER_ID, fields, _
from odoo.http import request, Response
from odoo.exceptions import ValidationError
from ..... | [
"thijs@fundament.it"
] | thijs@fundament.it |
69a4b84e569bc6eb927b4104ad9d6cc974aae864 | c916ec78d17c907f136b945c8b3496f5b4c60611 | /Functions/q10.py | bc4b886cea44fd25423fd7f3f7d4772671f22bc8 | [] | no_license | Sandesh-Thapa/Assignment-I-Data-Types-and-Functions | 69cd20158aa5da4cac860beb5c7cb81714594821 | 73ce000956dea3a1383d318ab381edfb413aa397 | refs/heads/main | 2023-01-20T05:43:05.055041 | 2020-11-30T05:55:49 | 2020-11-30T05:55:49 | 316,120,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Write a Python program to print the even numbers from a given list
def even_list(list1):
result = []
for i in list1:
if i % 2 == 0:
result.append(i)
return result
list = []
n = int(input('Enter number of items: '))
for i in range(0,n):
num = int(input(f'Enter {i+1}th number: '))... | [
"sandeshthapa426@gmail.com"
] | sandeshthapa426@gmail.com |
0b80a524d9546370b5bc9f255310199f66b0cdc1 | 40eab4d2fd15f9cab509918b315f9b6dc91d80b2 | /NJExportIPATool.py | 6034d70187a678b3bb2d372fa3453cb327845cc8 | [] | no_license | nijiehaha/NJExportIPATool | 47659eb4818eb9e140c93c8457099b3b94104faf | 80b224ecb06fe0d0ef5511c2940761b37f1a853c | refs/heads/master | 2021-06-04T14:34:34.827504 | 2020-09-30T08:50:35 | 2020-09-30T08:50:35 | 138,830,151 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | #! /usr/bin/env python3
import os
#################### 用户配置 ###################
# 渠道
channel = ''
# 项目路径
projectPath = ''
# 项目bundleID
projectBundleID = ''
# provisioningfile
provisioningName = ''
# Certificatefile
CertificateName = ''
# 项目名称
projectName = ''
# 打包路径
IpaSavePath = ''
# exportOptionPlist文件路径 此项... | [
"noreply@github.com"
] | noreply@github.com |
a323096e6b7bd55f5063ce02e8880ffba43feb9e | aed0016db7f4d22e7d66e6fddb7bf4ef68a3c692 | /neural_sp/bin/args_lm.py | 451d32dd41cc03cd73b2501e5b1c8b81a479d483 | [] | no_license | thanhkm/neural_sp | 6a5575111c83d1fdd97edec21f90fe647965cb69 | 1a5a5ed54f4cb79436007593dbd0d782b246a0c7 | refs/heads/master | 2020-12-26T23:22:56.964151 | 2020-01-15T23:40:22 | 2020-01-15T23:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,678 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Args option for the LM task."""
import configargparse
from distutils.util import strtobool
def parse():
parser = configargparse.ArgumentParser(
... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
ec359d94c54049b8b6f3db5b6474d5ff133111d4 | 1b9d054a5c21e4d044cfc9e8502c899d107cb24c | /main/views.py | 09c9a9e1306c8e5df4fa77dd7e4450e530d54d70 | [] | no_license | caesar84mx/perfosap | 75d1cb7f0c5b06d9a6ec188fc6166a678a7d4664 | 2c086bee381cb0f3246ce9de4f8fc1f94ad49b5d | refs/heads/master | 2021-08-30T18:11:01.577571 | 2017-12-17T23:30:19 | 2017-12-17T23:30:19 | 113,800,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'static_page/index.html') | [
"dymnov.dm@gmail.com"
] | dymnov.dm@gmail.com |
706a6e0e3eadc051f77cc3776ed9e746309a0916 | 362449a36bdd4960f3d90b9b364e1e422cc146eb | /ms/config/__init__.py | f897f51a1707d3175c8f8def3b08e663d99614d8 | [] | no_license | edcilo/flask_example | 23456d28dfb59fed9d50c35220cc91e1e272e80f | ee1d87f9cfd836f63db8bdfefed177d85283ecf0 | refs/heads/main | 2023-08-23T05:57:04.393584 | 2021-10-04T22:39:59 | 2021-10-04T22:39:59 | 409,757,769 | 0 | 0 | null | 2021-10-04T22:39:59 | 2021-09-23T22:13:29 | Python | UTF-8 | Python | false | false | 88 | py | from ms import app
from .app_config import app_config
app.config.update(**app_config)
| [
"edcilop@gmail.com"
] | edcilop@gmail.com |
7178b2e9d26d445a2122a1d4f731b76c8ee83375 | 23ee477d86581def925beb441f3ffa4f512c8f2d | /sr1.py | 5dce7462640268fd5840b96bf500ad390f562358 | [] | no_license | SebastianAGC/Graficas-por-computadora-Lesson-1 | 9fdbd74e2032b85cf1eddcc52cd625b32f533509 | 2af847832810574a60fc88b36e6b3e477c6f1f08 | refs/heads/master | 2020-05-04T03:47:15.530017 | 2019-04-01T21:56:17 | 2019-04-01T21:56:17 | 178,953,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from Bitmap import *
screen = None
viewPort = {"x": 0, "y": 0, "width": 0, "heigth": 0}
blue = color(0, 0, 255)
red = color(255, 0, 0)
green = color(0, 255, 0)
colorStandard = 255
def glInit():
pass
def glCreateWindow(width, heigth):
global screen
screen = Bitmap(width, heigth)
def glViewPort(x, y, w... | [
"sebastian28.gc@gmail.com"
] | sebastian28.gc@gmail.com |
805ac30029896cb4216131c094b637c999ababf1 | 5f7f89b77b88793723044c9ad9d575d22b9dbee4 | /test_multiple_inheritance.py | 688ca5c09366c8e46c1925cf07ee2891e733b3db | [] | no_license | chaingng/flask_v1_sampler | 3bd0da41d2612c401f2e98b9604c1f4d9db721ac | 4192dbc1a87f1fd79eaa98440b84635e99e349a7 | refs/heads/master | 2022-08-03T14:19:58.396773 | 2020-05-25T13:10:02 | 2020-05-25T13:10:02 | 266,781,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | def test_multiple_inheritance():
app = flask.Flask(__name__)
class GetView(flask.views.MethodView):
def get(self):
return 'GET'
class DeleteView(flask.views.MethodView):
def delete(self):
return 'DELETE'
class GetDeleteView(GetView, DeleteView):
pass
... | [
"chngng0103@gmail.com"
] | chngng0103@gmail.com |
3ba66f0eed8ec2ff6be93418deccfcb8dd27c404 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons/rigify/rigs/limbs/rear_paw.py | 74974bb632ee3d0b20de7f3eac7555dbf09bb20a | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 13,123 | py | import bpy
from .paw import Rig as pawRig
from .paw import parameters_ui
from .paw import add_parameters
IMPLEMENTATION = True # Include and set True if Rig is just an implementation for a wrapper class
# add_parameters and parameters_ui are unused for implementation classes
class Rig(pawR... | [
"admin@irradiate.net"
] | admin@irradiate.net |
39b25d8e29cb9e471281598f8a0a1165d686802a | cd614e86420cd43836e7f146752f5ad7da836194 | /downloads/resources.py | 5c97341ae0e3486deb59915c73b5bb59ef15e4fc | [] | no_license | tianyouzhu/you | 37a112f037694b655de1b7ca9912069a7895247a | 4c3f6fd212da2911c926817e96178250138ea192 | refs/heads/master | 2021-05-14T10:19:21.854773 | 2018-01-05T06:45:26 | 2018-01-05T06:45:26 | 116,349,771 | 0 | 1 | null | 2018-01-05T10:44:58 | 2018-01-05T06:19:32 | JavaScript | UTF-8 | Python | false | false | 7,907 | py | # -*- coding: utf-8 -*-
from tastypie.resources import Resource
from django.conf.urls import url
from django.core.servers.basehttp import FileWrapper
from yottaweb.apps.basic.resources import MyBasicAuthentication
from yottaweb.apps.basic.resources import ContributeErrorData
from yottaweb.apps.backend.resources import... | [
"718669269@qq.com"
] | 718669269@qq.com |
79bdd49ffe23533940e356f1c22e548a0f21a771 | 0f25422ea9af848bb753d6b4b94d3d22d441eada | /plresolution.py | 0eb46ed2e9453cab87da35fd552ea678f04159f8 | [
"MIT"
] | permissive | priyansha147/Solve-CSP-using-CNF-Resolution | d1e339c0a39d4861d83010dbc46e566a3acbc3cc | 58717c23b8a7613516d153735b7c8c3e791584b4 | refs/heads/master | 2021-01-22T20:44:55.403979 | 2017-03-17T20:54:20 | 2017-03-17T20:54:20 | 85,352,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | import copy
def pl_resolve(ci, cj):
citemp = copy.deepcopy(ci)
cjtemp = copy.deepcopy(cj)
print citemp, cjtemp
clauses = []
flag = 0
for i in ci:
for j in cj:
if i == "~" + j or j == "~" + i:
flag = 1
del citemp[citemp.index(i)]
... | [
"noreply@github.com"
] | noreply@github.com |
27af43c2fd6bbd823323415af19c855c3bcf4f67 | 6f515ce3664bf34974b755db4f7843f24a4d74a7 | /robinson/book.py | 6c1638e0e041e82bfa2e0e0321cf6184492b408e | [
"MIT"
] | permissive | byztxt/librobinson | dff3438dcc0e4624386ac3c04a936ca5b823a9c4 | 9acac9fbea409a767e020ff7e39018e43b0f6470 | refs/heads/master | 2021-07-10T06:18:58.642175 | 2021-07-03T16:35:45 | 2021-07-03T16:35:45 | 90,252,927 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,709 | py | import string
import sys
from verse import *
from chapter import *
from variant import *
from kind import *
import word
from booknames import *
myverseletters = ["a", "b", "c", "d", "e", "f", "g"]
verse_re = re.compile(r'\(?(\d+):(\d+)\)?')
class Book:
def __init__(self, filename, encoding):
... | [
"ulrikp@scripturesys.com"
] | ulrikp@scripturesys.com |
057418d9203386866b6b7fbc6ffe76f306489dcc | bddc40a97f92fafb8cbbbfdbdfe6774996578bb0 | /exercicioLista_funcoes/ex12.py | ee26987f60bcef8d32b6fc9a3cf3d93898187be6 | [] | no_license | andrehmiguel/treinamento | 8f83041bd51387dd3e5cafed09c4bb0a08d0e375 | ed18e6a8cfba0baaa68757c12893c62a0938a67e | refs/heads/main | 2023-01-31T13:15:58.113392 | 2020-12-16T02:47:44 | 2020-12-16T02:47:44 | 317,631,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # 12. Embaralha palavra . Construa uma função que receba uma string como parâmetro e
# devolva outra string com os carateres embaralhados. Por exemplo: se função
# receber a palavra python , pode retornar npthyo , ophtyn ou qualquer outra
# combinação possível, de forma aleatória. Padronize em sua função que todos os
#... | [
"andrehmiguel@outlook.com"
] | andrehmiguel@outlook.com |
305b085aea7fc9a1b2e6b0fdabaab2af23f5aa86 | facbe99cec567f5594684f1dac3165492bf0e015 | /outdated/tmxconverter/tmx_converter.py | ac1ba1d7b4fbb78e41c226ba7c11095024bce2e3 | [] | no_license | wushin/evol-tools | a00d14d99afd9e97dca1f9c8b68de59fdb42d093 | 357ae6673aae16f4f8bbddf9c70d0f6c3fc389db | refs/heads/master | 2016-09-05T15:57:28.714888 | 2015-03-02T07:18:27 | 2015-03-02T07:18:27 | 30,341,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,246 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
## tmx_converter.py - Extract walkmap, warp, and spawn information from maps.
##
## Copyright © 2012 Ben Longbons <b.r.longbons@gmail.com>
##
## This file is part of The Mana World
##
## This program is free software: you can redistribute it and/or modify
## ... | [
"reidyaro@gmail.com"
] | reidyaro@gmail.com |
760fca7069b4c7a199b99b11039f29ba0852d614 | a02200ad85d910028a835d238cc4997a375ea51a | /examples/verifier/src/client.py | 24e1d4b2f442e338b3487b793c34332fda877847 | [
"Python-2.0",
"MIT"
] | permissive | Mafroz/pact-python | f35864f8ac9880f356a44409fcf0e8dcc626d852 | d4072ed7c3b9d9a1e91feb6eaafdfa71b1129624 | refs/heads/master | 2022-11-19T04:42:50.688077 | 2020-07-16T12:31:18 | 2020-07-16T12:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import requests
class UserClient(object):
""" Our Client app """
def __init__(self, base_uri):
self.base_uri = base_uri
def get_user(self, user_name):
"""Fetch a user object by user_name from the server."""
uri = self.base_uri + '/users/' + user_name
response = requests.ge... | [
"elliottmurray@gmail.com"
] | elliottmurray@gmail.com |
93a505b770010b32dabd0f8de4288b2109e92206 | 4e6dcb09ac3dc0bb71daa14cbeab057dd0ebf439 | /public_data/migrations/0004_migrate_data_20190508.py | 97f1b690cd3633c74a0e058b7964c18d269bc6d6 | [
"MIT"
] | permissive | madprime/open-humans | 8bfbbab06fbc5aa18242c0ab479da662c0a067a6 | a2e3bf3b95d7fcfb2cdffe3a42f86cb6e09674e4 | refs/heads/master | 2021-09-26T14:20:20.404380 | 2020-07-16T20:54:51 | 2020-07-16T20:54:51 | 118,983,936 | 2 | 0 | MIT | 2018-12-19T04:34:15 | 2018-01-26T00:24:12 | Python | UTF-8 | Python | false | false | 1,674 | py | import re
from django.db import migrations
def add_project_member(apps, schema_editor):
# Using historical versions as recommended for RunPython
PublicDataAccess = apps.get_model("public_data", "PublicDataAccess")
DataRequestProjectMember = apps.get_model(
"private_sharing", "DataRequestProjectMe... | [
"mad-github@printf.net"
] | mad-github@printf.net |
abd5f1d47d424c48879e81354ee767f0ea7dca2f | 1621268ca344adae53a7880c26253e0c32aa2b99 | /Minimiza/Minimiza.py | ad1c395ab910f1083969a2a2b165f11f348001c8 | [
"BSD-2-Clause"
] | permissive | k4t0mono/regex-to-code | 414f4ee77999eeaba9ec24af4621cc92faa2122a | 51e4864b51179ca624de05bafc71c102193d8090 | refs/heads/master | 2020-03-08T21:36:19.660943 | 2018-04-17T17:08:15 | 2018-04-17T17:08:15 | 128,410,025 | 0 | 1 | BSD-2-Clause | 2018-04-16T22:49:20 | 2018-04-06T15:04:56 | Python | UTF-8 | Python | false | false | 655 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from Minimiza.Estruturas import Automato
import sys
def Minimiza(args):
#~ if(len(sys.argv) != 4):
#~ print("Modo de execucao: ")
#~ print("python Main.py <arquivoEntrada> <arquivoTabela> <arquivoNovoAutomato>")
#~ else:
entrada= args[0]
ta... | [
"arthucruz@hotmail.com"
] | arthucruz@hotmail.com |
e0df8ad5a39893b498b03f95307e010de3baf42c | bff9ad91d3304b85f77a56878d5960d16eb76731 | /tornado_exaple.py | 60dce663957db2011e9d75bcaf01c6705d97d2a5 | [] | no_license | cherrydocker/TestCI | 5f6be24644e488cc1808e78fa3b7194608ccdc43 | 487eddddb748f57f2a0ffec8097eb71d26af2290 | refs/heads/master | 2016-08-07T11:26:55.619044 | 2015-06-19T09:44:52 | 2015-06-19T09:44:52 | 37,650,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
application = tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
application.listen(8888)
tornado.ioloop.IOLoop.instance().start()... | [
"cherryskyj@gmial.com"
] | cherryskyj@gmial.com |
938ec58068b336e3a878035a0fe6e58e451e118c | f47da21943f600644f81a46c050a6083d4f60201 | /experiment3/processing/per_position_analysis.py | 82025e0dbf5a6e433518acc2823917dde3399a3d | [] | no_license | Stautis/detecting-inosine-master-thesis | 9163320282b068cacba6236accaf41252265c729 | accae8af4f5d538da7d56a4e521157d0cdbb3d3d | refs/heads/main | 2023-07-09T01:02:16.624191 | 2021-08-10T19:39:18 | 2021-08-10T19:39:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | import csv
import pandas as pd
import os
################################################################################
#
# This script simply prepares the data gathered by the fast5_processing.py
# script for further analysis. The formatting here is conducive to further
# position-by-position analysis of each of ... | [
"noreply@github.com"
] | noreply@github.com |
4c3c0468f63cea5bff5bb6f7efcfb911f37463bf | d8fae39bcfdff1974c5fecd96ed156c4db80e280 | /tensorflow/core/function/capture/capture_container.py | fc8bae0ddc34784edcf9c98d1fb7b1b3ad30d7d4 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | enowy/tensorflow | d2834bda2ff35995637acc55321fc00113d212c1 | b4276073ea8e3bd51229c0726f052f79d8dd239d | refs/heads/master | 2023-04-11T02:02:19.956400 | 2023-03-23T09:06:17 | 2023-03-23T09:10:43 | 62,356,730 | 0 | 0 | null | 2016-07-01T02:38:38 | 2016-07-01T02:38:38 | null | UTF-8 | Python | false | false | 11,537 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
03b7471fa66a93b6df009f3a053bc78e732024dc | bc0a71321b5fccd6f4c13ec0c76062ca6ed18fe6 | /venv/Scripts/easy_install-3.7-script.py | b20fd7c6960e5728be1e0867a8f1cd2e4d88f890 | [] | no_license | liangxioa/indev | fc95b567d8ddc97f7c80abaf86aa2fdae91bced1 | 334f126be5a6aebf6637c4b341e89a229c62f9cc | refs/heads/master | 2020-08-08T17:48:53.867256 | 2019-10-12T00:46:58 | 2019-10-12T00:46:58 | 213,644,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!C:\python\indev\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.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.ar... | [
"804092147@qq.com"
] | 804092147@qq.com |
5dd552a5a78b85cdb055b52651dfb140b36eca81 | 7255a09821deba655309b74927091ac9ab8b6075 | /example/ROAD/code/reborn2.py | de7caa75976e48d03da9d5e55344d7728e2b4973 | [] | no_license | summer1719/pytorchgo | 2814141d6fc0b5c3369d2b9d37e1140e410b25ec | 1ffd561a53d583ca4098297e585e786e472ddd1a | refs/heads/master | 2020-04-25T20:45:04.203802 | 2019-01-10T15:03:31 | 2019-01-10T15:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,138 | py | import argparse
import torch
from pytorchgo.utils.pytorch_utils import model_summary, optimizer_summary
from pytorchgo.utils.weight_init import weights_init
import torch.nn.functional as F
from torch.utils import data, model_zoo
import math
import os
import os.path as osp
import shutil
import numpy as np
from torch.au... | [
"taohu620@gmail.com"
] | taohu620@gmail.com |
fc674de2b25e4e61c7efac41f15ad65666a3a62c | 7040614095a27b63bbe20abeb135d2279a241304 | /jwt_auth/migrations/0003_auto_20190909_1043.py | 56c47bf2fcaadd5bfa568cf9bc90cf2b73b79a72 | [] | no_license | FreddieHoy/GA-P4-YesChef | c71e3dabeef1a1097d7dd09085b998d43b81bda1 | 42fb478d471fcce0001cacbe2640cddad58b0632 | refs/heads/master | 2023-01-11T09:11:38.769647 | 2019-12-07T14:38:24 | 2019-12-07T14:38:24 | 206,760,129 | 0 | 0 | null | 2022-12-22T12:31:52 | 2019-09-06T09:27:03 | JavaScript | UTF-8 | Python | false | false | 552 | py | # Generated by Django 2.2.5 on 2019-09-09 09:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jwt_auth', '0002_auto_20190906_1311'),
]
operations = [
migrations.AddField(
model_name='user',
name='bio',
... | [
"freddiehoy@hotmail.com"
] | freddiehoy@hotmail.com |
a0119b8ac14af6b3fbb394c98318e84129f4bdd8 | 9fbff44b162417cedb2374b72e06504762097ed0 | /2016/SuperASCIIStringChecker.py | 15ab9e5ca083f021764d52b570936759c5fefded | [] | no_license | Hemant-1821/codevitaSolutions | 91c16d536d3d4c0e62014e9b74f1526a28250839 | 6e61ec65eb35927ecbf0390538176df869da6557 | refs/heads/master | 2021-04-23T08:25:41.391032 | 2020-12-25T05:09:24 | 2020-12-25T05:09:24 | 249,913,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | alpha = list('abcdefghijklmnopqrstuvwxyz')
for _ in range(int(input())):
inp = input()
inp = inp[:-1]
flag = True
for i in inp:
if inp.count(i) != (alpha.index(i))+1:
flag = False
break
if flag:
print('Yes')
else:
print('No') | [
"singh.hemant9583@gmail.com"
] | singh.hemant9583@gmail.com |
b30e15f9d459d3c6dac4676c2b09149fd535c3c2 | 4e390eca570591d388352700eaf9c935ec640b5f | /django_ussd_airflow/wsgi.py | 7971acf1a05dae294b7be1ef2b4a9b867be782fc | [] | no_license | gitter-badger/django_ussd_airflow | 9914fe01643c33dee4cccd6bc5650d9370603998 | dbe669fc22517c3d5a7b2f02cb44e8605a4eb8c0 | refs/heads/master | 2021-01-09T08:15:52.926871 | 2016-07-08T06:14:05 | 2016-07-08T06:14:05 | 62,930,497 | 0 | 0 | null | 2016-07-09T03:38:35 | 2016-07-09T03:38:34 | null | UTF-8 | Python | false | false | 455 | py | """
WSGI config for django_ussd_airflow project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from django_ussd_airflow... | [
"francismwangi152@gmail.com"
] | francismwangi152@gmail.com |
14e785874ed21813aa27b9ec0783c649c2c093b3 | b07606136e416a05f9f8c54ce708fe5e0705ac24 | /python_gp/setup.py | c0c1661afded4aa090c73f6daad01c8ab6802c33 | [] | no_license | enkun-li/pythonlib | 1e40257825e4100663f4e9d30a874f0f38788b44 | 8ef4f47e1830ef485575afa9eddd03efc233170f | refs/heads/master | 2020-12-13T16:22:24.357285 | 2020-01-17T04:30:05 | 2020-01-17T04:30:05 | 234,468,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#==================================
# File Name: setup.py
# Author: ekli
# Mail: ekli_091@mail.dlut.edu.cn
# Created Time: 2018-12-25 21:25:47
#==================================
from distutils.core import setup
from distutils.extension import Extension
from Cython.Dist... | [
"enkunli1990@outlook.com"
] | enkunli1990@outlook.com |
9c5cc58d6c8f05c09dea9f53023f41ba10f69326 | d1fb1b780e8a20122081b82cb9685895464c1430 | /Flipkart/flipkart.py | 689d3aa7856e72801d0e386d35cc6fab436cd3ca | [
"Apache-2.0"
] | permissive | liuzuofa/FlipKartSpider | 193b83d347843e02d72d26587e534bfb4f451593 | 50bb5c82f84637714de708653e5ee32f49ee273d | refs/heads/master | 2020-05-18T12:04:20.979840 | 2019-05-01T10:01:17 | 2019-05-01T10:01:17 | 184,397,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,304 | py | import requests
import time
from requests.exceptions import RequestException
from output import Output
from lxml import etree
# GET /realme-3-dynamic-black-32-gb/product-reviews/itmfe68wrbfnzqwz?pid=MOBFE68WZM7UFMDA&aid=overall&certifiedBuyer=false&sortOrder=NEGATIVE_FIRST&page=4 HTTP/1.1
# Host: www.flipkart.com
# C... | [
"91000315@realme.local"
] | 91000315@realme.local |
c30e374daa6ef0b7e7871e69274c82dbb29e3f50 | e314c25746cd04cfc1e0c88d5044293c10a7c67e | /Exercícios/ex111/utilidadesCeV/teste.py | ccbe5e6cf9043c0379c9789a96ff77f0031d3e38 | [
"MIT"
] | permissive | JosevanyAmaral/Exercicios-de-Python-Resolvidos | 0c4dbbd12ec4593a6a82d7aeed64a3ef4e0fbccd | 210e02ed05831a09d5445eab53cd907a09aaa280 | refs/heads/main | 2023-02-07T15:41:24.796702 | 2020-12-31T14:09:53 | 2020-12-31T14:09:53 | 324,603,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from ex111.utilidadesCeV import moeda
p = float(input('Digite um número: R$'))
moeda.resumo(p, 35, 22)
| [
"Josevanyamaral2004@gmail.com"
] | Josevanyamaral2004@gmail.com |
9c62b402c3b1f139bb32ee59fe7ca4513ccf9723 | 06d9dddc81fbbaccee0e6cc5798d0104a5febc3a | /Askisi9.py | 8fb5113eff5d10c1e0df0cab6f02eb8fb5949db1 | [] | no_license | chrsBlank/Askiseis_Python | e178418fd049334e653a5384de1bb06c4008da52 | 1c9dc9a24d15280e76885001fdc0d3bc8db33cbb | refs/heads/master | 2023-08-08T03:28:40.409076 | 2018-02-21T11:15:42 | 2018-02-21T11:15:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import sys
def execute(filename):
f = open(filename, "r")
evaluate(f.read())
f.close()
def evaluate(code):
code = cleanup(list(code))
bracemap = buildbracemap(code)
cells, codeptr, cellptr = [0], 0, 0
while codeptr < len(code):
command = code[codeptr]
if command == ">":
cellptr += ... | [
"christiangrece45@gmail.com"
] | christiangrece45@gmail.com |
e6c86286a352b6e8be637ea94f7acb30ed3348f1 | 854d0673d18cf1db557d2b9b27c248dd879ba28a | /venv/Lib/site-packages/pymavlink/dialects/v20/paparazzi.py | 930bc5ac439eecddc6e991a9774529639ab527a7 | [] | no_license | Miao1127/code-charpter3 | 51e141c0e463f1ea63f371a498d967b520f59853 | 313dae0b53f1f68fb7ce713ac3eab7e1a2d1b001 | refs/heads/master | 2023-07-15T21:27:22.688910 | 2021-08-23T01:13:59 | 2021-08-23T01:13:59 | 398,937,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161,977 | py | '''
MAVLink protocol implementation (auto-generated by mavgen.py)
Generated from: paparazzi.xml,common.xml
Note: this file has been auto-generated. DO NOT EDIT
'''
from __future__ import print_function
from builtins import range
from builtins import object
import struct, array, time, json, os, sys, platform
from ...... | [
"Miao@DESKTOP-AJA95IE"
] | Miao@DESKTOP-AJA95IE |
c75536852e252b5c4f8293e45f4008fa0530ec2a | 18b741084bda1f1500e9accd2a52b8e75b23c8be | /mootdx/tools/__init__.py | 23308c243ebde3e3097759557232e2deaccfc518 | [
"MIT"
] | permissive | adam1iu/mootdx | bd55baaf10a10c9862f81776a045a3ae3c1ee8ad | 704e2d20d6d81a16b82c67e028de54e48a7cae9c | refs/heads/master | 2023-08-25T09:33:54.619594 | 2021-10-29T06:21:05 | 2021-10-29T06:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # -*- coding: utf-8 -*-
# @Author : BoPo
# @Time : 2021/9/18 10:00
# @Function:
| [
"ibopo@126.com"
] | ibopo@126.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.