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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29659cb2a431301eaa1d979a85e3acb47598d4c3 | 92fca9ad364b4417a4f5e2cb6b25267dcaa46dc8 | /words/migrations/0003_auto__add_wordphrase__add_wordphraseword.py | 3ef258682c2ab2301961fabbd8d1f8357616e31c | [] | no_license | mrge/GsConcordance | ec2c90b4bd4a568f9db174697136fb7f007478cc | 4621debaf07b4f665efc6504da78a22de1cd6af7 | refs/heads/master | 2016-09-05T23:27:57.813910 | 2014-10-28T10:04:44 | 2014-10-28T10:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,847 | 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 'WordPhrase'
db.create_table(u'words_wordphrase', (
(u'id', self.gf('django.db.mo... | [
"gilad@feedsme.com"
] | gilad@feedsme.com |
aed24ef6f0151dc3d0b0297909366181b8fe4ca0 | 6bc2de83baa55a1d6f4371aa37da862ef8431b22 | /Main Tests/Wisconsin breastcancer/mycode_cancer_KMeans.py | 1fbfb716dbd4340928f7355ca41e5b0d613a0400 | [
"CC0-1.0"
] | permissive | nsid10/Hybrid-CRO-for-clustering | 6a83e51e49b4e4792847d93c63c28d2fe8b51d7e | 8adf309e6418e00720cb704d6fb35a54693ae92e | refs/heads/main | 2023-06-28T22:46:00.716254 | 2021-07-28T15:44:18 | 2021-07-28T15:44:18 | 384,775,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import numpy as np
import pandas as pd
from time import time
from HybridCRO import *
from utilities import *
t1 = time()
sum_scores = [0, 0, 0]
runs = 30
for seed in range(runs):
data = pd.read_csv('breastcancer.txt', sep=',', header=None)
data = data.sample(frac=1, random_state=seed).reset_index(drop=True)
... | [
"nsid10@hotmail.com"
] | nsid10@hotmail.com |
56c5b231ef1cce10af065f3892362b6d80a678c3 | 6f48788473bb8b9282ea5e26474b6d57fe2b5e11 | /vagrant/itemCatalog/test/puppypopulator.py | f2d2c14bcddc2b9cbaa1436957f3a1ff6f90c331 | [
"MIT"
] | permissive | MFry/pyItemCatalog | c37f25af0ace16ef5d9b90f52ce9fe109a26e64c | 0354cff516c513dfc7ebdbf63dd588be3b8a79d0 | refs/heads/master | 2021-01-17T05:09:26.775400 | 2017-04-25T06:42:00 | 2017-04-25T06:42:00 | 58,516,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,552 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from test.tutorial_shelter import Base, Shelter, Puppy
# from flask.ext.sqlalchemy import SQLAlchemy
from random import randint
import datetime
import random
engine = create_engine('sqlite:///puppyshelter.db')
Base.metadata.bind = engine
D... | [
"Michal.Frystacky@gmail.com"
] | Michal.Frystacky@gmail.com |
4e8f97eaf2956bf074e6ceac2cc2df3ac9c2adc3 | 0c8a5b8aa6ecacd8a65f4b7d8319bdc2d0f14fe8 | /waveshare-144inch-lcd-hat/driver/line.py | f02816a5819f0e2a02a912456ce6fb461624dc7a | [
"MIT"
] | permissive | drivebadger/ext-mobile-drivers | 38b9868abc667a722da5bd9ce45dd34c1f50e223 | 2b0ea644d7c48399d7ef2b96417cbd5337ae6b50 | refs/heads/master | 2023-08-15T19:51:16.314183 | 2021-10-09T11:34:12 | 2021-10-09T11:34:12 | 407,441,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | #!/usr/bin/env python
#
'''
## License
The MIT License (MIT)
Copyright (C) 2021 Tomasz Klim
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... | [
"github@tomaszklim.pl"
] | github@tomaszklim.pl |
4f99ed09da5d84107d097947ebe99d1fab1629b7 | 7d1fe1979bccfbe78308c047d40cb50fe87e6fdf | /Data Structure and Algorithms/bricks.py | f4674374a8b555593e6ec20702fc49294f9afc75 | [] | no_license | hbenr/pycookbook | ddd13ae13be94438efd20cf4376fe9fbde1da095 | 52e313eaa7b0d28f1accd7794aa323ab62647b9c | refs/heads/master | 2021-08-06T06:41:10.553534 | 2017-11-03T21:59:42 | 2017-11-03T21:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | def length(sizes, goal):
remainders = []
containers = []
container = []
fill = goal
for size in sizes:
qty = min(fill // size[0], size[1])
fill = fill - (qty * size[0])
remainders.append((size[0], size[1] - qty))
container.append((size[0], qty))
if any([size[1] ... | [
"homero.hbr@gmail.com"
] | homero.hbr@gmail.com |
50c839027554a107c32ed44afee3203ca1a24947 | e850175853111fe2ddb7db1b9dd4b6d28be5619c | /src/users/auth/serializers.py | f9d2c6b0cb8b13feaf8d9ccae0b3f9105d071f9a | [
"MIT"
] | permissive | gutsytechster/RemindMe | a8fbbf3c1bbf3fd71102ad6b6aea687a5484fc95 | f37b707308d1328979ea1f8b4705e82365644b7e | refs/heads/master | 2021-07-19T01:31:39.377171 | 2020-07-11T13:59:28 | 2020-07-11T13:59:28 | 188,368,562 | 0 | 3 | MIT | 2020-07-10T17:08:56 | 2019-05-24T06:51:22 | Python | UTF-8 | Python | false | false | 3,570 | py | from django.contrib.auth import get_user_model, password_validation
from rest_framework import serializers
from rest_framework_simplejwt.exceptions import TokenError
from rest_framework_simplejwt.tokens import RefreshToken
from src.base import exceptions as exc
from ..managers import CustomUserManager
from ..serializ... | [
"prashantsharma161198@gmail.com"
] | prashantsharma161198@gmail.com |
7c3bfba8a7948d4ff06e505d2951d585e938c6e7 | 3b55fd0857992fd82b33b5638ae9b48610fbbdef | /backend/src/entities/consumer.py | 86bb91f03090c80928d9e1ade926efb1068ca06f | [] | no_license | RafaIzu/RafaIzu-Jogos-tabuleiro-TheCatInTheBox | c1c0e9e57b5b504ef9ec35ed54051ccd55532c53 | 549b3c191e25afcd1a487d5c6974f717c3bf0db1 | refs/heads/master | 2023-07-13T08:32:21.953665 | 2021-08-22T22:11:53 | 2021-08-22T22:11:53 | 398,910,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from sqlalchemy import Column, String
from .entity import Entity, Base
class Consumer(Entity, Base):
__tablename__ = 'cliente'
name = Column(String)
email = Column(String)
password = Column(String)
cpf = Column(String)
def __init__(self, name, email, password, cpf):
self.name = name
... | [
"bomizukawa@gmail.com"
] | bomizukawa@gmail.com |
9b53c96323a0353b9d8abbe2050a618c3fefeb15 | d785876f2070e264cd4fc000c6cf3c46820f3045 | /utils.py | 2978dcd87111da41afa01dc83bcc6a1f1a74421b | [] | no_license | Damanpreet/ClassificationDataset | 5959b407eae9d5652263888557f6f0e353961c3a | 160b357a2ced0b4c9287913ab8a7962cb7f12cfd | refs/heads/master | 2021-05-18T10:13:52.715613 | 2020-03-30T05:05:34 | 2020-03-30T05:05:34 | 251,206,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,049 | py | """
Utility functions for finding the missing explants.
"""
import os
import numpy as np
import cv2
import math
import matplotlib.pyplot as plt
import config as cfg
class RGBPreprocess:
def __init__(self, crop_dims):
self.tw, self.th, self.bw, self.bh = crop_dims
def process_img(self... | [
"noreply@github.com"
] | Damanpreet.noreply@github.com |
3b5ce6f7873fbadb067a0f107b62d44ea9c5c06e | 75dbf493c64532514efa1ed5a0a54e6bb59a891b | /examples/churn-rate/main.py | f8bc619fd96ae085856540ab3244a2ebd283b822 | [] | no_license | ans-ari/annhub-python | e73c6664cf3fabcd8bede9764e653d6160f9653d | 83aef254ab8d10059554f2054630a601c2c39863 | refs/heads/master | 2023-08-23T02:30:14.864537 | 2021-10-23T14:35:07 | 2021-10-23T14:35:07 | 410,797,783 | 0 | 1 | null | 2021-10-05T08:01:52 | 2021-09-27T08:12:34 | Python | UTF-8 | Python | false | false | 207 | py | from annhub_python import PyAnn
pyann = PyAnn()
pyann.set_model(".\Customer_Churn_TrainedModel_c++.ann")
pyann.set_model_id(5122020)
pyann.set_input_length(30)
if __name__ == "__main__":
pyann.run() | [
"noreply@github.com"
] | ans-ari.noreply@github.com |
a2f848312032887fa4de5e6bd40fdf075a03f451 | a27d6e43ec8a4b1bbe6d7c93b6dd2a77c1384ab4 | /task4_mqtt_publish.py | 9f0e2e467285f2c81cc22fbb84c80c1afba9e218 | [] | no_license | AbhinandanVellanki/Raspberry-Pi---MQTT-GPIO | 40130b9142aead2eb05ba4a343a35796c1c3761a | b65a8eee73a518fccc5cba05c7e5608005cdba1a | refs/heads/master | 2020-05-30T16:23:29.233695 | 2019-06-02T12:31:17 | 2019-06-02T12:31:17 | 189,843,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import paho.mqtt.publish as publish
import paho.mqtt.client as mqtt
import time
hostname = "iot.eclipse.org" # Sandbox broker
port = 1883 # Default port for unencrypted MQTT
topic_emergency = "PC000/traffic_light/emergency" # '/' is used as the delimiter for sub-topics
def on_connect(client, userdata, flags, rc):... | [
"noreply@github.com"
] | AbhinandanVellanki.noreply@github.com |
ed7b4e5fa4f2c9918c8db347fea79999c5cd4034 | 99a29f80d4ff7a8ac8aafb4b83ac128366824238 | /credit_integration/enums.py | fcf559428e29110e0feb4326ac858dca4d65933c | [
"MIT"
] | permissive | City-of-Helsinki/mvj | 850ff85539186217112cddc0ea2a3ccb0a8ff842 | af8f297ff3c86a6045ec5290e0477029cc3917b8 | refs/heads/develop | 2023-09-02T17:44:50.616714 | 2023-08-30T07:50:36 | 2023-08-30T08:29:17 | 87,910,985 | 2 | 9 | MIT | 2023-09-14T12:12:28 | 2017-04-11T08:43:59 | Python | UTF-8 | Python | false | false | 458 | py | from django.utils.translation import pgettext_lazy
from enumfields import Enum
class CreditDecisionStatus(Enum):
"""
In Finnish: Luottopäätöksen tila
"""
YES = "yes"
NO = "no"
CONSIDERATION = "consideration"
class Labels:
YES = pgettext_lazy("Credit decision status", "Yes")
... | [
"tomi@jarvi.pro"
] | tomi@jarvi.pro |
f07e060a7ec708135a805bb6d422a5e2b35e1ef9 | 1f75352f6dcce73bb0318f8dfa13fce31e52594a | /util/loss_function.py | 375f786f06d6db8102b9d3d96d4200ab3e9369ec | [
"MIT"
] | permissive | PeterZhouSZ/cuboid_abstraction | 45f2e94296527b5cfedf64cc710f8a703274de02 | b0410d1cc574fef1fa77bf4d6428a5c46e755723 | refs/heads/master | 2020-08-01T05:07:13.000279 | 2019-09-24T14:10:19 | 2019-09-24T14:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,893 | py | import os
import sys
import numpy as np
import tensorflow as tf
sys.path.append('..')
# initial training
from cext import primitive_coverage_loss_v2
from cext import primitive_cube_coverage_loss_v3
from cext import primitive_consistency_loss_v2
from cext import primitive_mutex_loss_v3
from cext import primi... | [
"sunchyqd@gmail.com"
] | sunchyqd@gmail.com |
09a9c8f77464fbbf47ba9706a453552096fbc09c | baa793689613f514e6ab2bbb8c5cbf6f8ee28895 | /axis-bank-hackathon/scripts/tablextract.py | 5d07096fa3388284ca59ad9bf25baf4ed2585dc5 | [] | no_license | jvcrao/hackathons | 747a7e7a6689a1583bba1aac16a850ee4c9a072c | 4bb707fed400e1f193e07cfc288dfecbcb52ffcc | refs/heads/master | 2020-04-19T19:52:09.236255 | 2019-01-28T15:06:50 | 2019-01-28T15:06:50 | 168,399,960 | 1 | 0 | null | 2019-01-30T19:15:46 | 2019-01-30T19:15:46 | null | UTF-8 | Python | false | false | 16,220 | py | import os
import re
from math import ceil, degrees, floor, radians
import cv2
import numpy as np
from pdf2image import convert_from_path
from pdftabextract import imgproc
from pdftabextract.clustering import (calc_cluster_centers_1d,
find_clusters_1d_break_dist,
... | [
"pratik.bhavsar@morningstar.com"
] | pratik.bhavsar@morningstar.com |
4929911771b44fa32b45f7d6a4c614f3e2f8f8d3 | 27b25669c0110baa38378c1bb220dcebd5a4fcc8 | /desing of fpu/экономика ятц/дз/ввэр/Tepl.py | d5fa74901391e527691b62550d904a21302bacd7 | [] | no_license | kapibaara/diplom | aca5366f765b7741276c95e7e527a5f6cf03489b | 0de88fd74ff75d3514b0f609d3b36834973eaedd | refs/heads/master | 2020-04-24T19:37:23.121305 | 2019-08-17T13:38:35 | 2019-08-17T13:38:35 | 172,217,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,381 | py | import math
Nel = 1000
brutto = 0.36
Kcn = 0.06
K = 1.05e-3
Go = 70
n = 3
Go5Go9 = 1.0
Xn = 4.4 * 1e-2
Zn = 0
KH = 0.25
B = 40000
Xk = 1.3 * 1e-2
z0 = 0.25
c = 0.714 * 1e-2
y = 0.2 * 1e-2
Ei = 0.01 * 1e-2
Ti = 0.25
Tckl = 0.5
Txp = 0.5
Tvyd = 1
Tcl = 50
Cu = 100
Craz = 140
Cizg = 300
Creg = 1000
fi = 0.85
Aren = 3.7 *... | [
"kapibaara@mail.ru"
] | kapibaara@mail.ru |
eeb481a942ad5c995cacbebbd26dab2ef0510fce | 8c85e3f83d7db6ef4c508f8fddd7dd39fb23a07f | /evaluate_vg.py | 547364bd77e84e57e04db2941f6107dd3c3ed2f7 | [] | no_license | SarG93/interactive_scene_generation | b278a50ff097f402712ae3afd9f21efe0fa29344 | f7940b81b3a1d219a039d4578a36bcb482f34004 | refs/heads/master | 2023-03-03T07:32:12.006738 | 2021-02-15T22:31:36 | 2021-02-15T22:31:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,847 | py | import numpy as np
import torch
import os
import yaml
import tqdm
from addict import Dict
from collections import defaultdict
from matplotlib import pyplot as plt
import matplotlib.patches as patches
import pickle
import random
import pytorch_ssim
from skimage.measure import compare_ssim as ssim
from train import buil... | [
"azadefarshad@gmail.com"
] | azadefarshad@gmail.com |
e53b96bda612a0b0b46bc71765c908df882f82d6 | 3aad460b37d565e963a9ac99e032fce0f774a379 | /inputsheet/inputsheet/urls.py | 4c1cf854a4c277447c193c564e11801c5ebe4328 | [] | no_license | shajikantar/Inputsheet | c49cabfe18227cad40bb3bcd44a55114555a5cdc | f40404c803ccbad6b76f79df542e07a85578d019 | refs/heads/master | 2020-06-22T20:50:33.108228 | 2019-11-17T19:00:24 | 2019-11-17T19:00:24 | 198,395,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | """inputsheet URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"noreply@github.com"
] | shajikantar.noreply@github.com |
af95107c113f78235f9d81ecb9566795ad6dc883 | 8135b7684b95f28fb249ffe8b844fe2a2b026845 | /test_roles.py | b4cc8aba7f38ac772a3ee9f71ea9c1ad8bf2ce48 | [] | no_license | igorthedci/Python_02 | cafca3fabfa37f805439bcf8bb98c6e2e40a331c | 5ae159fce26c9b44702be359d890bd3a7392c740 | refs/heads/master | 2020-04-03T15:03:53.493084 | 2018-11-10T17:30:57 | 2018-11-10T17:30:57 | 155,348,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,665 | py | import requests
import unittest
from HtmlTestRunner import HTMLTestRunner
"""
HW06_01
Тестовое приложение с REST API ttp://pulse-rest-testing.herokuapp.com/
Создаём один скрипт:
1● Создаёт персонажа POST /roles/, вы запоминаете его id.
2● Проверяете, что он создался и доступен по ссылке GET /roles/[id]
3● Проверяете,... | [
"foumart@ukr.net"
] | foumart@ukr.net |
96cd5e74289dadeea430e3920b049093288eb0a1 | fcb628087b05031f2ffec5d6719714d210a9ebd2 | /sukonbu/json_schema_parser.py | 53b2420adf760f6b16937f06af94f854c676e54e | [
"MIT"
] | permissive | ousttrue/sukonbu | 165b4aa0dcbb416367fa51bd2cfb0724dcaa475f | aca6121c3afa1fe404e6208553070895829df780 | refs/heads/master | 2023-08-29T17:30:28.099703 | 2022-03-15T17:21:01 | 2022-03-15T17:21:01 | 224,555,772 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | from typing import Optional, NamedTuple, List
import json
import pathlib
from .json_schema import JsonSchema
class JsonSchemaItem(NamedTuple):
key: str
item: JsonSchema
parent: Optional[JsonSchema] = None
class JsonSchemaParser:
def __init__(self, dir: Optional[pathlib.Path] = None):
... | [
"ousttrue@gmail.com"
] | ousttrue@gmail.com |
045f2d16f48e868bd52b4458696469aa7ecd8b37 | 87563f4f941f9aca6bc75517af935a64f624c256 | /programmers/괄호변환.py | 93356493207151c8e579b80365e9acbbc9fae386 | [] | no_license | easyfordev/algorithm | d981b55703d7566fc7c10d6994f53cdceddcf397 | 70fda15698c5da15e9140b6974be70172677b7cc | refs/heads/main | 2023-06-29T10:43:09.554495 | 2021-07-27T23:29:44 | 2021-07-27T23:29:44 | 326,327,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | """
Programmers - 괄호 변환
- 처음에 일부 TC 틀렸다. 정확성 52밖에 못 받음
- 틀린 이유) 문제 해석을 잘못했다 ...
나머지 문자열의 **괄호 방향을 뒤집어서** => 이걸 reverse()로 해석했는데, ( 와 ) 를 바꾸라는거였다.. ㅠㅠ
"""
def is_correct(p): # p가 올바른 문자열인지 리턴
stack = [] # push는 append(), # pop은 pop(), top은 [-1]
for c in p:
# 스택이 비어있으면 넣는다.
if len(stack) == 0:
... | [
"easyfordev8@gmail.com"
] | easyfordev8@gmail.com |
c7e78f2dac8332929ecfb36ca5f2b834af0e9d86 | 15d0e5f6528c817396062f5af5029e0241127573 | /recognizer/crnn/lib/utility.py | a44714afde54e24f3f3fbbc80a3143be21206ead | [
"MIT"
] | permissive | happog/ocr-toolkit | a3db7d71c4324f2afcb9b99185096e2c354ac2f7 | 78a327637e0925a960d34aa4227989564a479960 | refs/heads/master | 2020-04-18T05:33:44.484302 | 2019-01-23T08:49:57 | 2019-01-23T08:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | #import dataset
import cv2
import os
import torch
from torch.autograd import Variable
import random
def scale_image(img, height, width, keep_ratio=False):
if not keep_ratio:
result = cv2.resize(img, (width, height))
else:
fy = float(height)/float(img.shape[0])
result = cv2.resize(img, ... | [
"lijunshi2015@163.com"
] | lijunshi2015@163.com |
fa71f8b6ce5d0fd4a486b6ab4164e7262e7a129c | ba9c40b70aa2d2471821a976176a61f7962c7e1b | /microblog/microblog_web/migrations/0002_auto_20161227_1515.py | e5928cc9350c297b40ad494272393e7dcc2c4593 | [] | no_license | matijaklj/SP_repo | 40e99b167b1e697fb9c1416e573af4c689d03133 | 2a4e4e11bec3b1f08a4989c502e854ae9710e1ba | refs/heads/master | 2021-01-11T04:43:49.425594 | 2017-01-15T16:18:18 | 2017-01-15T16:18:18 | 71,132,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-27 15:15
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.s... | [
"matija.kljun@gmail.com"
] | matija.kljun@gmail.com |
1461437e9ebeb4c81603608e67f1504f0e628c17 | ad5b72656f0da99443003984c1e646cb6b3e67ea | /tools/mo/openvino/tools/mo/back/offline_transformations.py | d4615aeb524e518a1b292b6c45fd267a8d1ac306 | [
"Apache-2.0"
] | permissive | novakale/openvino | 9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae | 544c1acd2be086c35e9f84a7b4359439515a0892 | refs/heads/master | 2022-12-31T08:04:48.124183 | 2022-12-16T09:05:34 | 2022-12-16T09:05:34 | 569,671,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import argparse
from typing import List
from openvino.tools.mo.front.extractor import create_params_with_custom_types
from openvino.tools.mo.utils.cli_parser import parse_transform
from openvino.tools.mo.utils.error import Error
from op... | [
"noreply@github.com"
] | novakale.noreply@github.com |
211c8d1dea0a1292702ddbbba2d36831e4da68c5 | eb1d01e91c6ac367768b5492eed8797b22b3b67e | /loggers_control/scripts/solo_escape_keyboard.py | bb16a4a76384f66fcce21cc7f389b7eec82ce5b9 | [
"MIT"
] | permissive | IRASatUC/two_loggers | f98e8c4e003f9fa7efefd92ae03221d95ffbceb7 | c5c99868a9c896aa2fdb940f2f7b7173abed9e00 | refs/heads/master | 2021-07-07T11:49:48.219574 | 2020-01-01T17:55:42 | 2020-01-01T17:55:42 | 191,430,727 | 0 | 1 | MIT | 2020-09-16T22:22:15 | 2019-06-11T18:41:49 | Python | UTF-8 | Python | false | false | 1,497 | py | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
import sys
sys.path.insert(0, "/home/piofagivens/ros_ws/src/two_loggers/loggers_control/scripts/envs")
sys.path.insert(0, "/home/piofagivens/ros_ws/src/two_loggers/loggers_control/scripts/utils")
import termios
import tty
import os
... | [
"linzhank@gmail.com"
] | linzhank@gmail.com |
f9475a30a8a9b70b7b251e01f37f24e6f7ff506c | e36fa29323b1c1e465e3f22620204d77b98776e3 | /envtools/django/__init__.py | 948797e66485452d5274034a7082b7d0840173a0 | [
"MIT"
] | permissive | pedroburon/python-envtools | 467deac445c2e64da133fc508ff119b898a6957a | c1f00c2f2df3cb01e55a31c3616ebd8f6bd8dda9 | refs/heads/master | 2021-08-24T02:27:57.330182 | 2017-12-07T17:10:50 | 2017-12-07T17:10:50 | 112,273,882 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # encoding=UTF-8
from __future__ import unicode_literals
from .database import configure_database # noqa
| [
"pedro@cornershopapp.com"
] | pedro@cornershopapp.com |
95ded74008ac385af34d46695aded4ae823915ff | d2305f41745172d3789736bdd31dcca9a848b4d8 | /rango/views.py | b1cccf4d23299090134812a7b9463ed695bed0e2 | [] | no_license | WangJintaoWJT/tango | 7257b00246c4dce86f656aa12102cef2860b3aeb | 7e6f91f86ab825ee23bd4131c3a85185666a3303 | refs/heads/master | 2020-04-22T06:47:54.455744 | 2019-02-15T03:59:40 | 2019-02-15T03:59:40 | 170,180,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,456 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth import authenticate, login
from rango.models import Category,Page
from rango.forms import CategoryForm, PageForm, UserForm, UserProfileForm
from django.core.urlresolvers import reverse
from django.con... | [
"2359479w@student.gla.ac.uk"
] | 2359479w@student.gla.ac.uk |
2fb0abfa71d37f8abf1c16dd7463a18cb37eee05 | f585e1f1e4bd28056a7cba7d6582cbb4ef8719fa | /src/UQpy/Surrogates/PCE/MomentEstimation.py | 1e480ddfd4e3dd24388e11b342d1d24b8d286912 | [
"MIT"
] | permissive | dimtsap/UQpy | 78af38b903dc000b16965be0280d1b435209950e | c19f4841499d12b3bbe0d98b5d32780199153a32 | refs/heads/master | 2023-07-06T19:20:56.973577 | 2021-08-04T07:33:37 | 2021-08-04T07:33:37 | 301,998,431 | 0 | 1 | MIT | 2021-02-10T22:42:14 | 2020-10-07T10:14:56 | Jupyter Notebook | UTF-8 | Python | false | false | 1,032 | py | import numpy as np
class MomentEstimation:
"""
Class for estimating the moments of the PCE surrogate.
**Inputs:**
* **surr_object** ('class'):
Object that defines the surrogate model.
**Methods:**
"""
def __init__(self, surr_object):
self.surr_object = surr_object
de... | [
"dgiovan1@jhu.edu"
] | dgiovan1@jhu.edu |
8873c29de6f4c58ad687cab584527af4c315a33f | 8366f74f63b5fabf6d9eb400dfebeac051d283e5 | /vir/lib/python2.7/site-packages/scss/cssdefs.py | 7b73805645565dae8cc2ef0a5d9601483dbfa661 | [] | no_license | matthewst/flask-skeleton | 6438d2fb4d57b7222d8b67b8bbee4eb9957b6db6 | 9aa62336ba21d464e854bf16f997cec034474d34 | refs/heads/master | 2020-05-29T18:40:15.896150 | 2015-03-04T12:45:04 | 2015-03-04T12:45:04 | 31,656,127 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,785 | py | from math import pi
import re
# ------------------------------------------------------------------------------
# Built-in CSS color names
# See: http://www.w3.org/TR/css3-color/#svg-color
COLOR_NAMES = {
'aliceblue': (240, 248, 255, 1),
'antiquewhite': (250, 235, 215, 1),
'aqua': (0, 255, 255, 1),
'aq... | [
"ykur@seznam.cz"
] | ykur@seznam.cz |
f78e5c01d33232dbfcf0b3cd0d2fba6a70e7875e | c20fc15dc845142c1837f8dec6f1b8e0abfd0023 | /django/serenade/settings/base.py | 643f32522fe1daa5e9d3d3bf6b864691db278531 | [] | no_license | dyxcode/reminisce | 4d634a46b99a7bc1efb408ff9edc6fc963538dbf | f62a821f8535166d3b03979d5641f925801ce98c | refs/heads/master | 2023-07-11T19:31:48.418837 | 2021-08-24T10:37:06 | 2021-08-24T10:37:06 | 320,478,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,687 | py | """
Django settings for serenade project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"dengyuxuan@kuaishou.com"
] | dengyuxuan@kuaishou.com |
e8a00afe7300225787e0a52fc29f1d00652f9011 | dabc3231a879d4d3350f95096fdd019f64f4e6a4 | /src/ScrapingLearning/MysqlExample.py | f682aa5c12fc5c9f31fc951482024af8c7a19d19 | [] | no_license | riskaamalia/python-project | 1aee4a43b53031c49596e3a0944b7689513c9cf9 | c1b948ec2ad29d191b25a8a31a73ccafc492640f | refs/heads/master | 2021-01-01T18:40:44.428836 | 2017-08-01T08:54:49 | 2017-08-01T08:54:49 | 98,404,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # from urllib.request import urlopen
# from bs4 import BeautifulSoup
# import datetime
# import random
# import pymysql
#
# conn = pymysql.connect(host='127.0.0.1', unix_socket='/tmp/mysql.sock',
# user='root', passwd=None, db='mysql', charset='utf8')
# cur = conn.cursor()
# cur.execute("USE scraping")
# random.seed(d... | [
"riska.amalia@mainspring.technology"
] | riska.amalia@mainspring.technology |
e4e91a1a3b9cd057958b90fad9fccdda23600bbd | 7e35f0e5406bb857744099922abaeb6094927c2f | /web/note/urls.py | c2ac1dfad879b82613fa20a734557f484126e59a | [] | no_license | estebie/Django_Rest_React | cc1c42eed328699f676697ab5d900f6d13123e04 | dc03a7dbf77f2c206453e201eb233d343d501cf5 | refs/heads/master | 2022-11-14T08:27:27.848886 | 2019-10-11T07:50:28 | 2019-10-11T07:50:28 | 214,325,063 | 0 | 0 | null | 2022-11-04T19:37:44 | 2019-10-11T02:21:58 | Python | UTF-8 | Python | false | false | 197 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.NoteList.as_view(), name='note_list'),
path("<int:pk>/", views.NoteDetail.as_view(), name="note_detail")
]
| [
"ceniza.sjs@AD.SPROBE.PH"
] | ceniza.sjs@AD.SPROBE.PH |
885bba253544091cd8f74e4b0acecbf3e9333f67 | 4f634179ea8cd9912c7ae0a0213bc57074cd4128 | /campo_minado_django/campo_minado/views.py | bebd3a5c4c331d17c158cdfb62305032f4125e79 | [] | no_license | andrelimabessa/sd2017.1 | 365a3fb75eea05ee3ad55361e26aa41fab4eaacd | 7df423f5cd3df5b6b687de3ea154a9215dfc211e | refs/heads/rodrigo | 2021-01-09T05:25:42.108646 | 2017-06-11T17:49:30 | 2017-06-11T17:49:30 | 80,764,585 | 0 | 3 | null | 2017-05-17T00:56:57 | 2017-02-02T20:15:25 | Python | UTF-8 | Python | false | false | 696 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from django.utils import timezone
from campo_minado.form import JogadaForm
def post_list(request):
if request.method == "POST":
form = JogadaForm(request.POST)
if form.is_valid():
... | [
"bbchagas@gmail.com"
] | bbchagas@gmail.com |
61fd12e1b4f06a4d9e023bf187d8e6137da5e8f9 | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/headieh_godwin/lesson08/assignment/inventory.py | f2fd4812a7947fa1585f756f5bf36d35655a7a99 | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 2,183 | py | #!/usr/bin/env python3
"""
A module that uses closures and currying to create and update an inventory CSV
file with all the information that is currently entered through the spreadsheet
program. Also includes functionality to to bulk-process a list of items, coming
from a separate CSV file, that have been rented out to... | [
"headiehg@mail.com"
] | headiehg@mail.com |
b1bc73b155ebdac0957e3171c68cc0331e10766f | 7f77a5e08f88d5fddfe8baa575081952a319258a | /fs/inodebitmap.py | 886865bb0d2bccaa5e9b964e8dd631823f91d057 | [] | no_license | fuxy97/Ext2Emu | 26fc29b35c7fad56bf0092fa478445bcf286e01f | d06573cbcbb86ddcd953ece202d4e1c0b3c8c15b | refs/heads/master | 2021-05-06T17:49:25.559929 | 2017-12-08T14:39:53 | 2017-12-08T14:39:53 | 111,847,846 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | __author__ = 'fuxy'
from fs import fs
from fs import sysblock
inode_bitmap = sysblock.SysBlock(fs.IB_TYPE)
def find_first_free_inode():
for i, b in enumerate(inode_bitmap.block_buffer):
if b != 255:
return fs.find_first_zero_bit(b) + i * 8
def set_used_inode(group_in):
byte = group_in ... | [
"dellight55@gmail.com"
] | dellight55@gmail.com |
37da069b7c6ef3f24016d280af692713c215486b | 202de3034ee3b159970d10e61ddfefe72bebce25 | /checklist/wsgi.py | 5af59d824254d963526b3917eacf8ee0aab29c84 | [] | no_license | floradsilva/checklist | ca4f2fdf1573629a37e775025537da1ed32f0e9e | fc9655fb29d783b850dd42abdf8915d2cd5119f9 | refs/heads/master | 2021-01-22T22:39:40.962571 | 2017-03-20T10:51:18 | 2017-03-20T10:51:18 | 85,566,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for checklist 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"dsilvaflora@github.com"
] | dsilvaflora@github.com |
39e7286cce56c746f2654da81f174586ee800196 | 19b2286f5a304437a0df2835348b831715948f3b | /models/we_product.py | 3d4a9374a1d069ee4a2191e3701612060fc51382 | [] | no_license | suningwz/WeOdooCotation | 02dec60d53e83b7fba32f7c51db9b79f6cc60e85 | efb3bbff7dd91b57529bfacf0f79be59aceb69aa | refs/heads/main | 2023-03-11T04:35:21.506156 | 2021-02-24T15:17:49 | 2021-02-24T15:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | # -*- coding: utf-8 -*-
from odoo import models, fields,tools, api,_
from odoo.exceptions import AccessError, UserError,ValidationError
class Product(models.Model):
_inherit = ['product.template']
_description = 'Product Quotation Extensions'
quotation_count = fields.Integer('Quotation',compute='_compute... | [
"jc.ambert@free.fr"
] | jc.ambert@free.fr |
c2fb539bc071787bca42c1d5bdc7550f71769d0f | 7def22f9e61a125a8a02d85018fdc3fa34f4d060 | /superlists/urls.py | 7ba2fb600869500c7397a9c0af482c74b3afb792 | [] | no_license | uglyboxer/superlists | 188e7c659f97e77ebddeba3b07dc1b5bc03c928a | e0cf2e828991f04c4050170c13f9c4b6cc2be0e8 | refs/heads/master | 2021-01-10T02:24:48.031207 | 2015-11-25T00:24:23 | 2015-11-25T00:24:23 | 46,455,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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-... | [
"uglyboxer@gmail.com"
] | uglyboxer@gmail.com |
b6e737fc4970354c2276689b73cc9062e97c3641 | cfd5bd319716a0a93653bbe70ff5e868cbd1eb1f | /src/MancalaBoard.py | 72dfe4b5bfb6e51496fe86fd8c04512892afc0e3 | [] | no_license | Ashurlol/Mancala | e5434f2f8955069c4243327248541b2b94eaf9b7 | 22aa6945ed534ccf72f1a8af4292d8b700668044 | refs/heads/master | 2020-12-02T23:42:31.358221 | 2019-12-31T23:50:14 | 2019-12-31T23:50:14 | 231,157,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,584 | py | from random import *
from copy import *
from play import *
import datetime
class MancalaBoard:
def __init__(self):
#Initilize mancala board
self.reset()
def reset(self):
#Reset the mancala board for a new game
self.Npits = 6 # pits per side
se... | [
"noreply@github.com"
] | Ashurlol.noreply@github.com |
359cf7c3dac736613c7ebff4364f35e0721ed001 | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /tests/unit/modules/network/fortios/test_fortios_firewall_address6_template.py | cad670fda6582598f43a5c2e43e0574e5e04c14d | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,805 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
2a422028e31d1f3057c37bdf2c77852fd516204c | c2608e0a530eb443bbda615762483b1d3bbb8e28 | /speedysvc/toolkit/encodings/hanzi_get_type.py | bc40f1ab426954a2217f8e8b88a09a62a62cbffe | [
"MIT"
] | permissive | mcyph/speedysvc | bffa39fbf5cb09d4bca7950c0a502cfc352ba140 | 93a70ece896eaaea9bfcd32de52b21c16aad8e65 | refs/heads/master | 2023-08-16T01:52:45.331622 | 2023-04-13T22:54:25 | 2023-04-13T22:54:25 | 237,712,966 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
import re
import zhon.cedict
simplified = re.compile('[%s]' % (
zhon.cedict.simp
))
traditional = re.compile('[%s]' % (
zhon.cedict.trad
))
def hanzi_get_type(s):
"""
Get the most likely hanzi variant for `s`,
"simp", "trad" or "both
"""
D = {
'simp': sim... | [
"20507948+mcyph@users.noreply.github.com"
] | 20507948+mcyph@users.noreply.github.com |
b4626ae83de9edef67405eccf3cf8720924b880f | c0ef03a5787e4aae8f2f099ccd17dc1e9eda8ad7 | /api/config.py | 996885be8715239a6dfccca87c990542d9987fc8 | [] | no_license | walidbousseta/tpgr_langs | 9433375520edbd219fc494517a53f44f7f3197e6 | 5c90cb46e4bd7e80762e106ffc2e31fd89c0f3b4 | refs/heads/main | 2023-07-28T05:17:20.756943 | 2021-09-08T06:38:05 | 2021-09-08T06:38:05 | 403,848,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | """
here we declare all configurations and const paramters
"""
BASEURL = "https://api.github.com/search/repositories"
| [
"walid.bousseta@gmail.com"
] | walid.bousseta@gmail.com |
8805a885442eb234a6deec918fabf62a57b7f574 | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190421184527.py | f8de310580a16f067b5c6a35f5dd7e7b18b58cac | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,731 | py | # Jiaxi Zhang
# George McAlear
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import numpy as np
from numpy.linalg import inv
import threading
import time
import sys
import asyncio
from PIL import Image
from markers import detect, annotator
from grid i... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
fa836cacf71cecbfc536fb1e6c30b15bf1963637 | f270068c6cbdcf14c10a8b5dbe209c6c712f43ef | /ex01.py | c453d07ed47f919c0e434e5b07ff2da3091ca891 | [] | no_license | edubs/lpthw | d8ed03b8df823357bc9b3e989a6677a96c71f1c8 | e06bfc6c539519f8d7ea9092db4261838f22add0 | refs/heads/master | 2020-03-15T07:58:54.559918 | 2018-05-07T18:42:21 | 2018-05-07T18:42:21 | 132,041,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Study drills:
# 1 print another line
# 2 make the script print only one of the lines
#print("Hello World!")
#print("Hello Again")
#print("I like typing this.")
#print("This is fun.")
print('Yay! Printing.')
#print("I'd much rather you 'not'.")
#print('I "said" do not touch this.')
#print("Another line."... | [
"noreply@github.com"
] | edubs.noreply@github.com |
56f5fd115f8df124a977109d96a1172f3fa21ab9 | 029778c3e3a33aa3d2e4547429bfd43f3b3643ae | /01-bash/q06/grader | 045684147be478e55e67568263cef0a6e382e239 | [
"MIT"
] | permissive | EdwinJUGomez/CDA_2021_EdwinJUGomez | b81fa3666cef4340e8bf27522fb5e227280fd56c | 541edac10b85cb1829444d5746a84b76c05ae3cc | refs/heads/main | 2023-07-27T15:47:44.638701 | 2021-09-10T18:02:26 | 2021-09-10T18:02:26 | 405,155,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | #! /usr/local/bin/python3
r"""Test cases
>>> run_answer()
3608-2968-5632-1214
<BLANKLINE>
"""
import doctest
import subprocess
def run_answer():
'''Codigo especifico para ejecutar la respuesta'''
#----------------------------------------------------------------------------------------------
# Ejecuta el c... | [
"82348237+EdwinJUGomez@users.noreply.github.com"
] | 82348237+EdwinJUGomez@users.noreply.github.com | |
fab28e897311fa3bf3eba130ecdc0ad323d369d3 | f2df5e03128a9cabbbb93deed000d463e295550f | /数组/739每日温度.py | 4c2864c1f778f2734f2bcb89e4625bc1ae7ddd75 | [] | no_license | yangyu2010/leetcode | 0d2c4bc331fed8b6f493190d63eaf6eb1241448d | d206da5a5cce79629ba298588b8bf55ee40a01bf | refs/heads/master | 2020-07-14T18:35:47.264455 | 2019-10-28T10:17:29 | 2019-10-28T10:17:29 | 205,374,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Yu Yang
# def dailyTemperatures(T: [int]) -> [int]:
# length = len(T)
# res = []
#
# # for j in range(9, 9):
# # print(j)
#
# for i in range(length):
# current_int = T[i]
# for j in range(i + 1, length):
# next_... | [
"yangyu2010@aliyun.com"
] | yangyu2010@aliyun.com |
0a9e7a6f204293778dc37164aff561a6817fcb7d | bbae6df729e03314064301f791af50d7f6ebcaa8 | /density_to_files.py | ced429cd23619ed1594d42c890cfbfae85494a64 | [
"BSD-2-Clause"
] | permissive | mbrothers18/lmatools | b240a4890ee7be23aace4b43e4e5e3ddf99470ed | 084137e265c8520322d5bbbd067ffab3e95801f3 | refs/heads/master | 2021-01-18T06:51:33.945343 | 2016-03-07T18:23:07 | 2016-03-07T18:23:07 | 50,527,487 | 0 | 0 | null | 2016-01-27T18:12:27 | 2016-01-27T18:12:26 | null | UTF-8 | Python | false | false | 13,707 | py | import glob
import gc
import numpy as np
from density_tools import unique_vectors
# --------------------------------------------------------------------------
# ----- This section could be replaced with stormdrain.pipeline imports ----
# --------------------------------------------------------------------------
de... | [
"eric.bruning@gmail.com"
] | eric.bruning@gmail.com |
38bc2e45b759955db714b53f5109ea30b42ce6d2 | 0da11f22b993c5ea543922b9f51ba83095b4c6f2 | /test.py | cd7e5189220e6e7187430a21f0be2b493b087ecd | [] | no_license | EamonnCarson/Python-Melody-Transcriber | 0e87dd8e892f56589fdbba69438906c3cafe4c94 | f057aa2dce962dadab597327fb008cbc781f6dbc | refs/heads/master | 2021-08-31T01:54:51.610173 | 2017-12-20T05:16:33 | 2017-12-20T05:16:33 | 114,843,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | import scipy.io.wavfile
import numpy as np
import mpm
import matplotlib.pyplot as plt
import tools
import note_detection as transcribe
wav_audio = 'audio/{}.wav'
def get_mono_wav(filename):
# open the wav file
try:
sampling_rate, wav_data = scipy.io.wavfile.read(filename);
wav_data = np.array(... | [
"eamonncarson@gmail.com"
] | eamonncarson@gmail.com |
0aaaf58350e06d33a4f5f9d3e54d2232b717e783 | 44d822c8c184be11cde1f239648b06de96946d59 | /0x01-python-if_else_loops_functions/8-uppercase.py | 1bee0edf8a03ef648b925f65d9beb729a57fa289 | [] | no_license | Cmart94/holbertonschool-higher_level_programming | 2f0e932f84f839bb9a0489a57d7363e2a9e71db0 | aeb91dcd8f63dcfef101d6e198aa7f3a8fc8ea22 | refs/heads/master | 2023-05-30T03:27:24.248369 | 2021-06-10T17:05:05 | 2021-06-10T17:05:05 | 361,920,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/python3
def uppercase(str):
for c in str:
if ord(c) > 96 and ord(c) < 123:
c = chr(ord(c) - 32)
print("{}".format(c), end='')
print()
| [
"cristian.313@hotmail.com"
] | cristian.313@hotmail.com |
27eb4f62b3dfa1d3801e6c6c10f088e5b1fdf4a7 | a4d540d20d8544380de4e676c8436afb667333a1 | /pseudocode_lang_1/pseudo_yacc.py | cb3458c81ab3b8eafbf359e66b29abd35b6a4b60 | [] | no_license | jamesHargreaves12/spokenProgramming | 3d3b271637c0573d9e2f59f2074e25cd55fa1bd1 | d40d1dd2e8a2d2c01e3d80b6f1f5b98af0d04fd1 | refs/heads/master | 2020-04-11T08:28:58.857663 | 2019-04-23T22:10:16 | 2019-04-23T22:10:16 | 161,644,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,124 | py | from pseudocode_lang_1 import pseudo_lex
import os
import ply.yacc as yacc
from data_prep_tools.constants import base_dir_2
tokens = pseudo_lex.tokens
lexer = pseudo_lex.lexer
# PROBS wanna lable all the tuples if using
string_input = ""
with open(base_dir_2 + "1/pseudocode/329759.txt", "r") as file:
string_inpu... | [
"jh2045@cam.ac.uk"
] | jh2045@cam.ac.uk |
8384fef2b16fdeea0adf1819f3c0122330a5d974 | e828c22a75dfaa7f3643352d4f1b08559a12edca | /ScrapyProject/TenxunSpider/TenxunSpider/pipelines.py | 8c9505521ec8a1ee4c05f3cdfcfa153491efb9f5 | [] | no_license | csgvsjay1000/spider | 9c545fac9c63f89e7503a7c045ce2b83df044e49 | 10f584440d23b0b17a3486cde6cbc39c9d13692e | refs/heads/master | 2022-02-16T20:29:53.384245 | 2019-08-12T03:06:37 | 2019-08-12T03:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json,codecs
class TenxunspiderPipeline(object):
def __init__(self):
self.file=codecs.open('duty_file.json','... | [
"593956670@qq.com"
] | 593956670@qq.com |
bd468671ee30a309f00d32c9c922a2edaf60e640 | 95dc4a5a799ece28e43cb373f037ea69c7051d32 | /robot_test/build/catkin_generated/order_packages.py | b735f657b6e3c600d26b123a12b8989af25fc44a | [] | no_license | MegaYEye/ur_robot_teleoperation | 21236048d531c7d5c8184ee66732dabb6cd58729 | 100294643141fd1edd9a3b625081c5f67ee72b6f | refs/heads/master | 2021-09-15T08:23:52.772860 | 2018-05-29T06:39:01 | 2018-05-29T06:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/dong/Project/robot_test/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/opt/ros/indigo".split(';') if "/opt/ros/indigo" != "" else [... | [
"dongyuewei@sina.com"
] | dongyuewei@sina.com |
d0adebe986595d0aea754646053e7d72f4cd994f | 115e59fea9c0b44dd7bb4a5434d97e9d8495daa7 | /web-service/utils/config.py | 28babe8fd1999309ad8e826258c3da3ba82c66aa | [] | no_license | ComputableBrain/MouseHistViewer | a4e691d6fd806c56e88cc00a5430be1002ccc57c | 843fe7a70b79a37093633b367be794589ea9039a | refs/heads/master | 2016-09-12T20:15:35.316860 | 2016-04-25T05:19:27 | 2016-04-25T05:19:27 | 56,972,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | #!/usr/bin/python
# - Reads the application configurations from app.cfg
# that will be used to setup the app.
# - Use default values provided here to fill in missing
# configurations and settings
import ConfigParser
def get_app_configurations():
"""
Get user defined settings from the configurations file
and us... | [
"mohammed.khalilia@gmail.com"
] | mohammed.khalilia@gmail.com |
6ad8c2e578a0cb6ab15070cb8096f5f080fdf4e8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03071/s708387820.py | 520d43f8cf4e6541711b3aeb0e5432df8395660d | [] | 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 | 99 | py | c,d=map(int,input().split())
a=max(c,d)
b=min(c,d)
if a-1>=b:
print(a+a-1)
else:
print(a+b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
796db6e171c1a13606a0514100555631b03955b9 | aa944f82c80fcac2aacac27b256d81a209fd4417 | /TreasureHunt/map.py | f46deff02b2d0a13ce8f3c28b58088d9aadfffee | [] | no_license | christiansallen/Lambda-Treasure-Hunt | 47edaf1a974830b40302c821f18698791c6056ba | 24bf82a348e46ec1470c40af621e3f2f2a42b884 | refs/heads/master | 2020-09-12T21:14:24.239497 | 2019-11-21T23:14:31 | 2019-11-21T23:14:31 | 222,558,485 | 0 | 2 | null | 2019-11-21T23:14:32 | 2019-11-18T22:38:15 | Python | UTF-8 | Python | false | false | 1,812 | py | from random import choice
from time import sleep
from server_actions import *
from support import *
world_map = file_to_json('map.txt')
reverse = {'n': 's', 'e': 'w', 's': 'n', 'w': 'e'}
backtrack = []
rooms_visited = 1
data = get_init()
rooms = make_blank_map()
sleep(data['cooldown']+1)
while rooms_visited < 500:
... | [
"christiansallen@gmail.com"
] | christiansallen@gmail.com |
c69b864f21b100901da859214899a8f7346b41a7 | 1796043fc26c958b8fc45d9c058e382473c4f3af | /Fabio 01 Parte 02/f1_p2_q2_metro_km.py | 9fa23256bbcf9cb486f2779b637e721651f19242 | [] | no_license | Lucakurotaki/ifpi-ads-algoritmos2020 | a69adec27dbb10aceab1bc7038a0b56a760f99d1 | 34d5fedd5825a85404cf9340e42be618981679c1 | refs/heads/master | 2022-03-22T04:44:14.211359 | 2022-02-19T18:48:36 | 2022-02-19T18:48:36 | 246,585,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | #Entrada
m = int(input("Digite a medida em metro: "))
#Processamento
km = m/1000
#Saída
print("O equivalente de {} m em kilômetros é: {} km.".format(m,km))
| [
"noreply@github.com"
] | Lucakurotaki.noreply@github.com |
7e06ed36cf76a5032f648844c4fc823ef07087d9 | 7390df0881c16492423cc9c88a504e33842b2af0 | /work001.py | 844b8e5bfdb14f68e3c2dddc4f91495c7fbde3ee | [] | no_license | STLLYM/STLLYM.work1 | f09e8d3c184740cc7b75bb8f1503cfed3d5956f8 | 15d273507e020f78b34a32bfb932dc67e0c2f6a8 | refs/heads/master | 2020-04-17T10:23:35.088837 | 2020-02-28T03:11:47 | 2020-02-28T03:11:47 | 166,499,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | a_list=[1,2,3,4] #定义数组包含1,2,3,4四个元素
sum=0 #定义计数初始值
for i in range(len(a_list)):
b_list=a_list.copy() #使数组a_list不发生改变的同时将b_list使用调用获得a_list及其数据
x=str(b_list.pop(i)) #以字符串形式将x赋予b_list.pop的返回值,方便后期直接将字符串表现
for j in range(len... | [
"167419431@qq.com"
] | 167419431@qq.com |
d3189a04f72cfe7a458cd7dad1a3ee5c8aaba3ce | 9f759b1739068ed811b796024b7a498c7f60a20c | /11.qnamaker/node_modules/dtrace-provider/src/build/config.gypi | dcbe7a8ce0cf24e49a06305afcaeec6791b58f10 | [
"BSD-2-Clause"
] | permissive | Himanshu11051/Nebula-Bot | 33f008a5329ab2b8728c554b303539ce07693bbf | fd72a34312eb40b1e9d695168b5d6904b1f6ff0e | refs/heads/master | 2020-04-20T06:12:25.050740 | 2019-02-10T10:33:57 | 2019-02-10T10:33:57 | 168,676,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,432 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"himanshu.kumar@newgen.co.in"
] | himanshu.kumar@newgen.co.in |
4093735ca3af4a42d6bb8b85700aa046e5c1677c | 52243c4a05a296e7c042663b5942faa47eb66aee | /common_nlp/classifier_legal_phrases_regex.py | e2b84d6ec884fb5abb3de73d4361f5b499d1dbe2 | [
"MIT"
] | permissive | joaoppadua/Pesquisas | fbe0311b59340c041732d6d1f7f4862fa6c53198 | 808d8b0ef9e432e05a4f284ce18778ed8b3acd96 | refs/heads/master | 2023-07-16T02:50:30.846205 | 2021-09-03T13:34:54 | 2021-09-03T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import re
from regex_classifier_legal_phrases import palavras_interesse
def break_sentences(text, nlp):
# return re.split(r'\w\.\s',text)
text = re.sub(r"\s+", " ", text)
text = re.sub(r"art\.", "art ", text)
text = re.sub(r"fls?\.", "fls ", text)
text = re.sub(r"inc\.", "inc ", text)
doc = nl... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
e882be5c62481dfe01e05dc2076dc494788b242a | 577ab02be20b264023c86af0b1f7598611b1d3bc | /mysite/urls.py | 98af82e60031a42f6647e718f392a3be3cbfc95f | [] | no_license | yoongyo/festigo | 323316d79796e4fc5a6ad42f26c0c8f181100e1e | 73c3f6c619acb70d8031efb62a90fb8d60acbc66 | refs/heads/master | 2020-05-18T09:49:35.673560 | 2019-04-30T21:56:49 | 2019-04-30T21:56:49 | 184,336,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from django.contrib import admin
from django.urls import re_path, include, path
from . import views
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
re_path(r'^$', views.main, name='main'),
re_path(r... | [
"jyg0172@naver.com"
] | jyg0172@naver.com |
0624acb274bdaacc13d24078b701c3efd0584ce4 | 43ab8c000781c073e6723b3e93013e5f509b84ea | /attractors/3D/Pickover.py | b1953fcdf4020eec7d0559a9c3155b2e2c0695d3 | [
"MIT"
] | permissive | tisnik/fractals | e6e25dbbf5675be5a78f15a2504b25f7de504cf6 | 2e852489cb473394e4dd9103d12d717fed53a51d | refs/heads/master | 2023-04-29T03:17:28.897352 | 2023-04-17T14:01:59 | 2023-04-17T14:01:59 | 202,321,272 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | """Výpočet a vykreslení Pickoverova podivného atraktoru v 3D."""
# MIT License
#
# Copyright (c) 2020 Pavel Tišnovský
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, i... | [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
e423a90ca449d2005f582d10a62ff2785420dc77 | b7d0a317f8d891b7aef337acd101bcb423c04f61 | /rigs/settlers/settler_mouth.py | c3904aecb85960434a9ccb38b3bd3e17592e52f8 | [] | no_license | intp1/CloudRig | ee4284095f61684ad5b8d65ee8f042a2846507cd | 5e4e6cf88487a24bd842edda45f7bed5ae2862e3 | refs/heads/master | 2022-08-23T02:31:03.914344 | 2020-05-26T10:26:38 | 2020-05-26T10:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | import bpy
from bpy.props import BoolProperty, IntProperty, FloatProperty, StringProperty, PointerProperty
from mathutils import Vector, Matrix
from rigify.base_rig import stage
from ...definitions.driver import Driver
from ..cloud_curve import CloudCurveRig
from ..cloud_utils import make_name, slice_name
class Sett... | [
"metssfm@gmail.com"
] | metssfm@gmail.com |
fb57ec2ac889bd19106480a25e5d589ebb4f700f | 3e2cfa180b02608e07a93ed983bf386be4327916 | /Single phase flow/Blasius (1913).py | d980d0fbd72a9b6b46a3a819bc86ef61de327c4a | [] | no_license | AndrejHan/Standard-models | c7611183c5a8f4159c2356428ce6bbce91de229f | 9e077f55efe0765a79bb01841974176ca6a656c5 | refs/heads/master | 2020-04-20T22:12:16.733328 | 2019-03-26T11:08:29 | 2019-03-26T11:08:29 | 169,131,925 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | def f_pred_Blasius (Array, Reynolds, limit, f_name = 'f_pred_Blasius [-]'):
'''Calculation of predicted friction factor by Blasius(1913) correlation (by Fanning) - smooth tube.
Inputs are: Array - final table, Reynolds - Reynolds number according to measured flow (liquid, gas, liquid-only, gas-only) [-], limit ... | [
"noreply@github.com"
] | AndrejHan.noreply@github.com |
48d254577be2dfe57ef8a4d19ba7c41709aced4e | 007ae03cfe5abf41a0ad864eade451141c267cca | /auto-docs/executables/python/legend_style.py | 6f09c9c36aef49e5259e1ae46fe2bd16241aee10 | [] | no_license | VukDukic/documentation | ca96eb1994eeb532fe60c542960b017354bcede1 | 8e5aefdc38788956cfe31d8fe8b4b77cdf790e57 | refs/heads/master | 2021-01-18T09:02:27.034396 | 2015-01-20T23:46:58 | 2015-01-20T23:46:58 | 30,007,728 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # Learn about API authentication here: {{BASE_URL}}/python/getting-started
# Find your api_key here: {{BASE_URL}}/settings/api
import plotly.plotly as py
from plotly.graph_objs import *
py.sign_in('TestBot', 'r1neazxo9w')
trace1 = Scatter(
x=[0, 1, 2, 3, 4, 5, 6, 7, 8],
y=[0, 3, 6, 4, 5, 2, 3, 5, 4]
)
trace2 ... | [
"andseier@gmail.com"
] | andseier@gmail.com |
eb1b1dd863033334ca3e889b83eb5570cd44298a | 442b7fc1771ca0999d35ea04512b450915d3d84a | /examples/07-filter/02-bump.py | b092f43bc68df3becc52f278460b526cb36772ba | [] | no_license | pepsipepsi/nodebox_opengl_python3 | 9a301755d926db2d185381de11f4f02b7a2e67a1 | cfb2633df1055a028672b11311603cc2241a1378 | refs/heads/master | 2021-01-10T05:33:43.636279 | 2016-01-13T14:23:07 | 2016-01-13T14:23:07 | 49,037,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import os, sys
sys.path.insert(0, os.path.join("..",".."))
from nodebox.graphics.context import *
from nodebox.graphics import *
from nodebox.graphics.shader import bump
img = Image("creature.png")
def draw(canvas):
canvas.clear()
# The mouse position controls the origin of the bulge.
# The bu... | [
"hi@email.com"
] | hi@email.com |
8681391c72c12f96d060575ded170877ae75b2d9 | 2768cada97d71bce0fc9a421939bdeeabe1e2958 | /rnn.py | dee6ccfd392cc567b38a665c0cbcdaedeb5d496a | [] | no_license | rbBItH0Le/DeepStuff | 15730804e85883e6ff7ec121b1aa446946b05201 | 427568340dee09a4b8e7a73b5c5ef258461d9c09 | refs/heads/master | 2023-06-06T13:26:12.023896 | 2021-06-18T19:36:15 | 2021-06-18T19:36:15 | 336,350,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
data_train=pd.read_csv('Google_Stock_Price_Train.csv')
train_set=data_train.iloc[:,1:2].values
from sklearn.preprocessing import MinMaxScaler
sc=MinMaxScaler()
train_s... | [
"rohan.kishan@yahoo.in"
] | rohan.kishan@yahoo.in |
a4500a6e912bcb644fb0a435b6909d8f23c787d4 | d2485ca7becceab8e8c3ed604f9c09fbdd61a4cc | /skk.py | ffe8dad73b1a2e982a41f33284f9ab736fc08f4e | [
"Apache-2.0"
] | permissive | sheng1124/KKparser | af6af83d3ee6b102d0aa745c635d6aaff7e9d7e1 | 77a0b9a97f968c7f92f20d1a043f574d9f0ebae8 | refs/heads/master | 2022-12-19T05:54:45.151743 | 2020-09-22T01:01:19 | 2020-09-22T01:01:19 | 297,492,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,310 | py | from glob import glob
import csv
import datetime
import os
import sys
import itertools
import shutil
import re
import socket
import requests
import json
class Dir():
def getParentDirByPath(self, filePath): #ff\gg\h\dd.txt = > ff\gg\h
r = len(filePath) - filePath[::-1].find('\\') - 1
return file... | [
"rhythm7321@gmail.com"
] | rhythm7321@gmail.com |
bfaee183e13e162c0b6e9fa041169e5513a2dce4 | 6a5db213a2d9b6c0bc0d2dcb25db0a562921bfc8 | /articles/migrations/0001_initial.py | eff778075b80de9ee4d6abd8483fb5ca0134d20d | [] | no_license | ishvlad/mlprior | 8d2a021f4cd59c24c4c1ae80285d06bcf653f6f2 | ef5e887d265418dec79c45107957332c69095ef6 | refs/heads/master | 2022-11-25T07:23:57.434007 | 2019-11-08T06:20:30 | 2019-11-08T06:20:30 | 168,481,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,429 | py | # Generated by Django 2.1.7 on 2019-05-31 15:39
from django.conf import settings
import django.contrib.postgres.fields.hstore
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_depende... | [
"dvolkhonskiy@gmail.com"
] | dvolkhonskiy@gmail.com |
10b9d528102a35f0bd93b41c8968c0d249af69bc | 694c07b2841578a1bb830ffbbac8d082bcfa0676 | /manage.py | 35a5e2a7c3688740e25f6a16ed73bcc5ac7dbac2 | [] | no_license | iiogmgo/deokuzzal | c5ef7641079282de7bf5e34338f8ea4990ee9021 | 81295d3d29fb987415ab655e02bf851eda333a17 | refs/heads/master | 2023-08-17T09:21:03.811801 | 2020-07-14T11:36:27 | 2020-07-14T11:36:27 | 279,336,931 | 1 | 0 | null | 2021-09-22T19:25:55 | 2020-07-13T15:11:28 | Python | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'deokuzzal.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"iiogmgo@gmail.com"
] | iiogmgo@gmail.com |
d6612826db3167305287e00458171da010bc260d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /3XtrKPMbxAf86QjjS_10.py | e7446c6b7139fcd63536aa540e62ca83c04cc65e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py |
def same_case(txt):
return True if txt.isupper() or txt.islower() else False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
880bb4ccdffc09dae4945f04e4d896cfb468e92c | 199f3f91ec71f7af34d379d285c1535c26dab976 | /articles/views.py | 0621f76c1e196d709ae355570f1ef1b093025928 | [] | no_license | umarhussain88/Akhbar | 0a78d3303346d06ea020a82f259b83b5bb3a202b | 0dba82cc4503b2192757c6702ee713c240bd65bc | refs/heads/master | 2023-03-04T09:34:15.615795 | 2021-02-21T22:55:45 | 2021-02-21T22:55:45 | 341,019,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | from django.contrib.auth.mixins import (LoginRequiredMixin,
UserPassesTestMixin)
from django.urls.base import reverse_lazy
from django.views.generic import ListView, DetailView, CreateView
from django.views.generic.edit import DeleteView, UpdateView
from .models import Article
... | [
"umar.hussain.da@outlook.com"
] | umar.hussain.da@outlook.com |
e6977d6dd44bf82a13a5f184e4f035a11668c00b | 40c578693ed88b52db0b5d45b581d72507596b76 | /03-Sentiment/CMP462 HW03 Data/python/NaiveBayes.py | 64a8d809395e59f3f32afa240d5ca1963db89188 | [] | no_license | Anwarvic/Dan-Jurafsky--Chris-Manning--NLP | 6eafaee56363007f15f15ca09e4441330b055e18 | 64c4870f9d89952f252eee9a238397220bb43061 | refs/heads/master | 2023-05-10T19:53:19.507959 | 2023-05-02T01:07:06 | 2023-05-02T01:07:06 | 114,249,702 | 44 | 25 | null | null | null | null | UTF-8 | Python | false | false | 9,290 | py | # NLP Programming Assignment #3
# NaiveBayes
# 2012
#
# The area for you to implement is marked with TODO!
# Generally, you should not need to touch things *not* marked TODO
#
# Remember that when you submit your code, it is not run from the command line
# and your main() will *not* be run. To be safest, restrict your... | [
"mohamedanwarvic@gmail.com"
] | mohamedanwarvic@gmail.com |
3d34621978530f38e593ab9a489b024ca4314ceb | a583a11063c82c1d2ea1e2a224015041cf83da24 | /2-work_queues/python/worker.py | fef48e46c84eef8b69eb40bd8242469a1b848d31 | [] | no_license | jlgerber/rustyRabbitEgs | ba2356dca0326707e9e0ecbd6d1212e84ca85385 | 362d4ccafc44fd63d3f7cf8b3a5fe4e9a0d2e8a6 | refs/heads/main | 2023-01-01T12:15:58.954357 | 2020-10-31T03:04:50 | 2020-10-31T03:04:50 | 307,557,568 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | #!/usr/bin/env python3
import pika, sys, os
from common import connect, QUEUE, DURABLE
import time
def callback(ch, method, properties, body):
print(" [X] Received %r" % body.decode())
time.sleep(body.count(b'.'))
print(" [x] Done")
# manual ack
ch.basic_ack(delivery_tag = method.deliver... | [
"jlgerber@gmail.com"
] | jlgerber@gmail.com |
3c6334a40e6ccc217c1d1245a7c301d15689b3d9 | cea7ae24ea3cbea50bfd22aeb53ac7096c0e7d5f | /main.py | d88240ebc494a0ac36535c4eb69483e83fba20a2 | [
"MIT"
] | permissive | Dao258/toutiao-hot-hub-1 | 15376cc672ba40b0aad16b952b875f04d3e548f9 | adc2dafc98f2fb39ffde62be55b224933fda63e6 | refs/heads/main | 2023-04-06T14:39:26.532349 | 2021-04-04T12:31:48 | 2021-04-04T12:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | import json
import os
import urllib.parse
import requests
from requests import Response
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
import util
from toutiao import Toutiao
from util import logger
def generateArchiveMd(items):
"""生成归档readme
"""
def search(item):
... | [
"lonnyzhang423@gmail.com"
] | lonnyzhang423@gmail.com |
00b1cbab25918390731f619547ab4a86739d7d02 | b212ec9d705fb77cac102dceb12eb668099fd1ae | /oop/inheritance_exercise/zoo/project/mammal.py | 9c5f6fb59f2fe47998752247f7a8b1a440eca991 | [] | no_license | xpucko/Software-University-SoftUni | 20ef91a0be91a8a09a56d9fdc15888f91409de2f | a1fc1781424f025954948299be7f75d317e32dc1 | refs/heads/master | 2023-02-04T11:58:33.068431 | 2020-12-24T00:39:11 | 2020-12-24T00:39:11 | 280,227,310 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from project.animal import Animal
class Mammal(Animal):
def __init__(self, name):
super().__init__(name) | [
"hristiyan.plamenov.valchev@gmail.com"
] | hristiyan.plamenov.valchev@gmail.com |
34cd5538526fee07eb981f2d6937354f1f70c30c | 967a5ec427a3332c289659fb3a529a0a0b353dc6 | /sbc_ngs/__init__.py | 78d9b9c0c571e83ad0d46d233c43cacd3ebf84de | [
"MIT"
] | permissive | neilswainston/SequenceGenie | 7807cd29dd3504ee33d98b704a9f57e8cf657997 | 65fce1df487afd2de32e9d3ebc487874e71436bc | refs/heads/master | 2020-05-16T11:36:32.206010 | 2020-03-09T12:15:45 | 2020-03-09T12:15:45 | 183,021,243 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | '''
sbc-ngs (c) University of Manchester 2019
All rights reserved.
@author: neilswainston
'''
| [
"neil.swainston@manchester.ac.uk"
] | neil.swainston@manchester.ac.uk |
458df27747a96c27b6715b5fa5ee1cdf5a4a7155 | 41810d1e523251a7bd669bbcdc99fc0af8b02e32 | /months/migrations/0004_auto_20150927_1745.py | 6ceef1b0402fab46770ddbca37a81500edec8ed4 | [] | no_license | EasonHung0807/PFM | 5c597893d3060a75f8fe35f4ed4c7c169c069434 | cb3037d21a15a4a36a5737d17c4fb264e6866ae8 | refs/heads/master | 2021-01-10T17:12:56.090832 | 2015-10-11T11:25:07 | 2015-10-11T11:25:07 | 44,049,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('months', '0003_auto_20150925_1403'),
]
operations = [
migrations.AddField(
model_name='fixed_short_cost',
... | [
"easonhung0807@gmail.com"
] | easonhung0807@gmail.com |
feaa0dc4338542902c631ef12caaff2d4a6f4f42 | a6d70100c17e24af4cbc0cb9e15ac6823973ae5a | /drinkz/test_app.py | 5211b55c6e2b12a870aeb65e18dd93c28be194e9 | [] | no_license | credwards27/cse491-drinkz | 79bec8154690f14976eba12a2a5a101bd035e797 | 0a616feb6963c6a43d658fa3e9236283da03691d | refs/heads/master | 2020-12-25T00:09:37.872131 | 2013-05-02T03:48:30 | 2013-05-02T03:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | import drinkz.db
import drinkz.recipes
from drinkz.convert import to_ml
from drinkz.app import SimpleApp
# test wsgi functionality
def test_recipes():
simple_app = SimpleApp()
simple_app.load_database('bin/database_file')
environ = {'PATH_INFO': '/recipes.html'}
d = {}
def my_start_response(s,... | [
"realstuff27@gmail.com"
] | realstuff27@gmail.com |
7041bb1082d5baec910b892c4c325173285c5c89 | 572c828b5ef8c17f48cceada08f7a373c2d31e91 | /DES_1_2020/quizG.py | 87ebfa5c0eceb5a8ccb76bec213b13d12a69e9da | [
"MIT"
] | permissive | refeed/PAlgoritmaTRPLA | 4262387011a4942e137674f92c5606eacfec4c1e | e0c79c1d57bee0869e2344651718e8cf053c035f | refs/heads/master | 2023-02-03T19:19:43.210447 | 2020-12-17T03:46:13 | 2020-12-17T03:46:13 | 297,596,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | py | '''
DESKRIPSI SOAL
Kali ini Adi belajar baris-berbaris. Ada N peserta baris-berbaris yang ikut. Seperti biasa, peserta harus berbaris sesuai urutan tinggi badan (yang paling tinggi di belakang). Setelah berbaris dengan urut, peserta akan diberi no urut. No 1 untuk peserta yang paling pendek dan no N untuk peserta pali... | [
"rafidteam@gmail.com"
] | rafidteam@gmail.com |
150a4b4cea6b36d6f4771da3f007d667e73a0ecf | dd3a28907c440d18f7c7c13591ad7c3587acdfbf | /juriscraper/pacer/docket_history_report.py | e26eb249f4192d6aeb13f496be7f6b9551a47b0c | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | swipswaps/juriscraper | f57aacf731c9c7682100db644f7d22be175890d8 | fec54f7fc53096db16345b35c73aca9a52aaecb2 | refs/heads/master | 2022-02-25T09:42:14.391641 | 2019-07-24T00:30:27 | 2019-07-24T00:30:27 | 198,718,908 | 0 | 0 | NOASSERTION | 2022-02-17T22:50:36 | 2019-07-24T22:42:51 | HTML | UTF-8 | Python | false | false | 10,009 | py | # coding=utf-8
import re
from .docket_report import DocketReport
from .utils import clean_pacer_object, get_nonce_from_form, \
get_pacer_doc_id_from_doc1_url, get_pacer_seq_no_from_doc1_anchor
from ..lib.judge_parsers import normalize_judge_string
from ..lib.log_tools import make_default_logger
from ..lib.string_u... | [
"mlissner@michaeljaylissner.com"
] | mlissner@michaeljaylissner.com |
09d9a00a2586e32ae6a152459eef73e86648effa | 94aaf6d4db0267fdfa84ec7fed86c93ed8f6e77d | /303-Python-Classes/class.py | 812dc75f823131ae7072eb804e61e9793b410b1d | [] | no_license | AmandaHenrique/Academia2019 | 29958b9436dfb2f04894100f666d065c783a0c40 | f8fa8d67a5c50c14d610cdf49a21831630b69b2f | refs/heads/master | 2020-05-06T13:58:57.347911 | 2019-04-25T14:35:25 | 2019-04-25T14:35:25 | 180,166,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Exemplo no java usamos this e no python self
# dentro de uma classe colocar um "constructor"
# def_init_(self, params1, params2):
#self.params1 = params1 = q é a variavel do prametro e o self o objeto dentro da classe me questao
# instanciação de classe: cadeira = Cadeira("params1", "params2")
# dellG... | [
"noreply@github.com"
] | AmandaHenrique.noreply@github.com |
17809481049e248d4877a7040deadadd7eb166fd | a7253510cc8c71ed05dc406f4f9ebda0ef681890 | /main.py | 041c2544a7168528563db65334cb5f041575caa7 | [] | no_license | jennieweemhoff/winc-assignment-strings | b59386e07f930f8b2dda421be6b11657dae7aad3 | a550d3ec1e3aa59e667b669225a7d3ffaa27441c | refs/heads/main | 2023-04-19T16:25:16.036769 | 2021-05-07T11:13:30 | 2021-05-07T11:13:30 | 365,207,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | # Do not modify these lines
__winc_id__ = '71dd124b4a6e4d268f5973db521394ee'
__human_name__ = 'strings'
# Add your code after this line
# Part 1
# Create variable for every player that scored
goal_0_player = "Ruud Gullit"
goal_1_player = "Marco van Basten"
# Create a variable for each minute of the mat... | [
"noreply@github.com"
] | jennieweemhoff.noreply@github.com |
e29a5b8149426f0ac14844a93857aca6fbf69220 | 9f5a8b31ad3191a78c88e58b0986778a2eac91ec | /GrnForest/src/CommonFunction/DataReader.py | 5e26e5ff6adfe6e342a6c8957321816c62879211 | [] | no_license | qllu/SeleniumTest | 7b0d608394f8c0267686ef075743c32a2f889a9c | d6aaf3d827a785316b1ad74b05e9e80c2245e088 | refs/heads/master | 2020-04-11T10:46:57.916425 | 2016-02-02T10:43:31 | 2016-02-02T10:43:31 | 42,507,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | #coding=utf-8
'''
Created on 2015年8月12日
DataOperations用来存放所有数据操作,用来读取xml中的测试数据
@author: QLLU
'''
# import MySQLdb
from xml.dom import minidom
global DOC,CONN
class DataReader(object):
'''
数据读取相关操作
'''
def __init__(self,filename):
'''
初始化xml文档
'''
global DOC, CONN
... | [
"rikufly@126.com"
] | rikufly@126.com |
020788dd43df00d42c0983df43325a8386611102 | 4a59e016fd400981095f5e9498c89f71e978a1fc | /questioner/apps/user/migrations/0003_auto_20190318_2021.py | 9daed692b3a823c319177639adcf49b0dbc93b89 | [
"MIT"
] | permissive | sam-karis/questioner-api | 00c51a4ca6e0eeaf217c74a2345d0a0135b1b11b | bbffe431cc94fc2eeaae29600fb546a1f483920d | refs/heads/develop | 2020-04-18T12:33:49.737637 | 2019-03-29T12:10:09 | 2019-03-29T12:10:09 | 167,537,421 | 0 | 0 | MIT | 2019-03-29T12:10:10 | 2019-01-25T11:31:00 | Python | UTF-8 | Python | false | false | 437 | py | # Generated by Django 2.1.7 on 2019-03-18 20:21
from django.db import migrations
import questioner.apps.user.models
class Migration(migrations.Migration):
dependencies = [
('user', '0002_profile'),
]
operations = [
migrations.AlterModelManagers(
name='user',
mana... | [
"samkaris75@gmail.com"
] | samkaris75@gmail.com |
9df4172983fa5bca29059914272d27d030de66b6 | 51d0eb345609796e4ec80d17b39929387a45cb0b | /models/DeepLearningModels/elmo/test_complete_pipeline_fever_blind.py | 1275540766bbe6636505c77760b25369055791f6 | [] | no_license | DeFacto/EvidenceRetrieval-ClaimClassification | ad9280b6c567ba11f5e1bb48161557e6900bbbba | 69eed6dae41b362936dfedf062c627adacc03063 | refs/heads/master | 2020-07-22T17:39:25.503776 | 2019-09-19T13:17:39 | 2019-09-19T13:17:39 | 207,277,548 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,580 | py | import numpy as np
import random
import jsonlines
import pandas as pd
from sklearn.metrics import precision_recall_fscore_support, accuracy_score
class TestPipeline:
def __init__(self, cc_results_path):
self.cc_results_path = cc_results_path
with jsonlines.open(cc_results_path, mode='r') as f:
tmp_di... | [
"rameshjesswani@yahoo.com"
] | rameshjesswani@yahoo.com |
dbea1e2f703f52422cd2ff921f3c74b39d260485 | 67dc60b68e6bba3dd2738af2cf83ff7b528069e0 | /krcal/core/map_functions.py | d869ae973cb0a80cff4060797fb4288f67cfdc02 | [] | no_license | jmbenlloch/KrCalib | 4693e5db288ae917f0c71328d7fc68ee99bfa225 | fe81e68cc6eb38474d739761448d272f88fb3cd9 | refs/heads/master | 2020-04-05T07:43:59.798504 | 2018-11-08T17:33:40 | 2018-11-08T17:33:40 | 156,686,578 | 0 | 0 | null | 2018-11-08T10:02:14 | 2018-11-08T10:02:14 | null | UTF-8 | Python | false | false | 12,278 | py | """Module map_functions.
This module includes functions to manipulate maps.
Notes
-----
KrCalib code depends on the IC library.
Public functions are documented using numpy style convention
Documentation
-------------
Insert documentation https
"""
import matplotlib.pyplot as plt
import numpy as np
impor... | [
"jjgomezcadenas@gmail.com"
] | jjgomezcadenas@gmail.com |
977cf1eb95b4bc398c818ca2182f457bce90d029 | 9b5e442ba9fdd64dafbfbb093ecf7545d1abf264 | /no8.py | cdc4030f2882da86a6f8fde4d7e8ad69b1393691 | [] | no_license | DowlutZuhayr/hello-world | a1e77747f814958f1d4a593d1a1f5c03499e822f | 05e97f5f5bf344ac7a2edcb4b9650fa4a2a77ba3 | refs/heads/master | 2021-07-05T17:52:23.205628 | 2020-10-21T15:27:15 | 2020-10-21T15:27:15 | 194,113,900 | 1 | 1 | null | 2019-06-27T14:57:28 | 2019-06-27T14:49:05 | null | UTF-8 | Python | false | false | 111 | py | list1 = []
if len(list1) == 0:
print("this list is empty")
else:
print("list is not empty")
| [
"noreply@github.com"
] | DowlutZuhayr.noreply@github.com |
1d92be69c218ae136fbcc85f6b467506f974b11d | 11b0d91ce356bb0dfa53b78dd509e182a0cca6b4 | /test.py | f34b7df6229b2e4283477476ff673c7033fa54bc | [
"MIT"
] | permissive | mukhater480/manimgui | 263f5f7b14a324d55d360189777225b985f0fa97 | 4f99ae863b62a500c431e1c9bcf8f7e43b938bc1 | refs/heads/master | 2021-05-16T23:41:55.502170 | 2019-12-21T17:45:18 | 2019-12-21T17:45:18 | 250,520,466 | 1 | 0 | MIT | 2020-03-27T11:47:10 | 2020-03-27T11:47:09 | null | UTF-8 | Python | false | false | 251 | py | from pathlib import Path
MANIM_DIRECTORY = Path("c://Users/jaybo/OneDrive/Documents/Manim")
# string = "python" + DIRECTORY / "manim.py" + DIRECTORY / "manimgui/presets.py"
# print("python", DIRECTORY / "manim.py", DIRECTORY / "manimgui/presets.py") | [
"jaybonthius@gmail.com"
] | jaybonthius@gmail.com |
8a2c661353af2491d8d1e6e6e286805964a4a508 | a23556101d483b9fe217a25b996195b007a31e7a | /assigment02/caller.py | 56b0b36e785453712a6cbdb5013603b1b3b33f3c | [] | no_license | tarajano/udemy_python_oop | b2344d7539b9722750432ea3a6d7cd7654190a10 | fbd412df490854c45073ae0b6dfe6d4de3437a3b | refs/heads/master | 2020-03-28T16:42:46.462635 | 2018-11-05T02:06:02 | 2018-11-05T02:06:02 | 148,721,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
from assigment02 import *
# Log file
lf = LogFile('file.log')
lf.write('Oye! Manu')
lf.write('Llegaron bebe y bebita')
# CSV file
csv = DelimFile('file.csv', ',')
csv.write('Oye!, Manu')
csv.write('Llegaron bebe ,y bebita')
| [
"tarajano@gmail.com"
] | tarajano@gmail.com |
b2298b14b495a0a6ef0917cd10dd12c5696e31d8 | d9601dc57737694b8f4fbc0b6f1a3d546ab448b3 | /django-test/mysite/learn/views.py | d420b05fbda606a667fb817f50898bbc1357d460 | [] | no_license | bimoQi/python-learn | 52d43315495a1a85f8f8fe2919d91d5da7a8249c | a8150b4b3c9f90a0021fc7be7a3e31e4e7b3ea37 | refs/heads/master | 2021-04-09T13:42:28.750916 | 2018-12-27T07:29:12 | 2018-12-27T07:29:12 | 125,451,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
string = u'变量string'
list = map(str, range(30))
return render(request, 'learn/index.html', {'string': string, 'list': list})
def add(request):
a, b= request.GET['a'], request.GET['b... | [
"1303445410@qq.com"
] | 1303445410@qq.com |
21716040706d0f2fc3b0bfeda465848f264c2dc5 | 95ffecc906f291f1633984bb8551bd01f7a76312 | /venv/bin/wheel | 44d05ab6b3697f7683a796dd176eac0dc8edbc42 | [] | no_license | mathur/voyager | 34071d0e0f36041b26b115c1e6e2f03c6dca65f2 | 1bfd160624dc58438d7835842f5551437cc92f39 | refs/heads/master | 2020-04-06T07:08:16.755461 | 2016-09-06T04:46:05 | 2016-09-06T04:46:05 | 61,466,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/rohan/Projects/voyager_backend/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rohan@rmathur.com"
] | rohan@rmathur.com | |
1b11885a42e4c1b0fd9ba5ae04a16cd73055d804 | e435c4574dee78132b4a5efdee033d520ddf6077 | /books_authors/settings.py | 910f43c265f7bf24a4989ce6e6d9b69a06dd583a | [] | no_license | klaytenr/books_authors | 35d540bc02737058d89d6621aeb9ce013766ccc3 | ba1de71bfb4608e1487114fcbd1f93671f664012 | refs/heads/master | 2021-09-08T18:56:30.940139 | 2018-03-11T19:19:48 | 2018-03-11T19:19:48 | 124,790,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for books_authors project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"klaytenrichmond@gmail.com"
] | klaytenrichmond@gmail.com |
1be199a1258f7dc409a71bac421e22de25e566e9 | 5ed9bc2e499bb9d6f21ee8158617bdb2e9ebfc49 | /musinsa_users.py | 5b9ecff5828ff1706a330b0f03a41ee9bfe0f0b2 | [] | no_license | elephantoid/proj_MUSINSA | 63c09dc0f61b154029e1b25354530f22dbf88ac2 | f33a8b47a3d180e8329bcda0a817c97531ba1ed3 | refs/heads/main | 2023-07-04T10:53:34.194179 | 2021-08-17T13:18:09 | 2021-08-17T13:18:09 | 341,494,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | #!/usr/bin/env python
# coding: utf-8
# In[29]:
import pymysql
import random
from faker import Faker
fake =Faker('ko_KR')
Faker.seed(3);
db= pymysql.connect(host='localhost',user='root',password='root',db='musinsa')
curs =db.cursor()
seq = 995
for _ in range(6):
while True:
ssn=fake.ssn()
if (ssn... | [
"70086728+elephantoid@users.noreply.github.com"
] | 70086728+elephantoid@users.noreply.github.com |
720913e42f3c7b14293c5f45456dfed817f068f6 | a6f7552b01f305b6ef8d9429e4ee95aeeaa5ff72 | /新年时钟/clock.py | e185f7436ea43644e9ad69014051543c883f46d4 | [] | no_license | royalday-hub/maishu | 11b83232fdef00b7e5a536b37ffba82ef4bf14e1 | 20bafdc3faf4ba9ecead4a63f2dfa039f6ae2721 | refs/heads/master | 2021-03-01T19:09:15.346904 | 2020-03-08T13:07:11 | 2020-03-08T13:07:11 | 245,808,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | import turtle as t
import datetime as dt
import time
#2. 画出背景
game = t.Screen()
game.bgcolor('black')
game.setup(600,600)
game.title("Python程序员打开新年的方法!")
game.tracer(0)
#3. 画圈
pen = t.Turtle()
pen.ht()
pen.speed(0)
pen.up()
pen.pensize(3)
def draw_clock(h, m, s):
pen.clear()
pen.up()
... | [
"noreply@github.com"
] | royalday-hub.noreply@github.com |
b366a560cc962b8a35af64cdeb311111005dbad4 | 4dade4f29881e99d8602144744e09ed870bd1034 | /Python/path_algorithms/greedy_best_first.py | d4296e908f40cc690cd6ffa05663905c49b40e48 | [] | no_license | alexbaryzhikov/codebase-archive | 9795347c19a82c098983c6d0fe4959c3162ca868 | c78c189002a26296a552f30078578cc0cf72e426 | refs/heads/master | 2023-02-19T21:54:21.310865 | 2021-01-11T15:47:50 | 2021-01-11T15:47:50 | 106,846,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,406 | py | from tkinter import *
import numpy as np
from queue import PriorityQueue
G = {}
MOVE_COST = 10
MOVE_COST_DIAG = 14
class MyCanvas(Canvas):
def __init__(self, master, shape):
self.cwidth = 50
self.shape = shape
Canvas.__init__(self, master, width=shape[0]*self.cwidth, height=sha... | [
"aleksiarts@gmail.com"
] | aleksiarts@gmail.com |
5dbfdb24f29942128a5169a17742ce17ac9fd1e3 | 89de54a5ee1628bceb08d804407e4d43434fa2e0 | /backend/home/migrations/0002_load_initial_data.py | 83735bcf6368729c0f275f5250287e0dd41ff7e4 | [] | no_license | crowdbotics-apps/tkabs-podcast-20287 | 430f4896c2b5ad2ec2c65ad145151569304469d6 | a3980e01490f67f3bcd2af18e970ba949780c3bb | refs/heads/master | 2022-12-13T02:10:38.199166 | 2020-09-15T15:25:22 | 2020-09-15T15:25:22 | 295,769,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "TKABS - Podcast"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e04dddf7f4e97b1500759adda3e6da7587b6f6a5 | a8c66b90f36abf754f50621667da801a41236b13 | /Past_experiments/rE1C5.py | 3b571d83093d28de3a4caa6d47d1767f854afd22 | [
"MIT"
] | permissive | abogdanova/FedMed | 41e840490a3ba4fa202aa67beccb80369d38737a | 72f238c31b6714c664e1b0e40204f9528f764182 | refs/heads/master | 2020-06-07T01:44:50.972247 | 2019-07-02T02:16:17 | 2019-07-02T02:16:17 | 192,894,857 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,925 | py | from __future__ import absolute_import, division, print_function
import collections
import numpy as np
from six.moves import range
import tensorflow as tf
import datetime
from tensorflow_federated import python as tff
from tensorflow.python.keras.optimizer_v2 import gradient_descent
from tensorflow.keras import layer... | [
"ann.bogdanova@gmail.com"
] | ann.bogdanova@gmail.com |
9aa8579aef6cb65e7eeb06396245e760f58e2a83 | 72c718739bc593acfa12a1975e3cabcdcc782556 | /app/views/helpers.py | 41af6915eb90b26333d22d5c7803bfb99c4a7bf9 | [
"MIT"
] | permissive | JasonThomasData/payslip_code_test | fed2e862395b796ebd09dc528a61c839b8bcffac | 1214b2526455d09078cc3ffaac3781c8d77205ee | refs/heads/master | 2021-04-12T09:55:29.777020 | 2017-06-21T02:03:48 | 2017-06-21T02:03:48 | 94,524,399 | 0 | 0 | null | 2017-06-21T02:03:48 | 2017-06-16T08:44:27 | Python | UTF-8 | Python | false | false | 942 | py | from datetime import datetime
from app import parse_config_vars
def pay_period_helper(start_date_obj, end_date_obj):
required_date_formats = parse_config_vars.get_required_date_formats()
view_format = required_date_formats['view']
pay_period_start = datetime.strftime(start_date_obj, view_format)
pay_p... | [
"jason.robert.thomas.123@gmail.com"
] | jason.robert.thomas.123@gmail.com |
52aaaf051d8b1c7a2c149e5497b364edba893284 | 56aa62212c59d0df0c3aa36feb613c52af93e6ed | /primetests.py | b29624acb77c66ef87c98ccaf3d470a189a43437 | [] | no_license | hoslack/AndelaBC-17 | d2ca4b3d401f3d169cd8153fe8761895c8cf1aaa | e778f18cb684750e27d844f398aa52c87846a4f6 | refs/heads/master | 2021-01-19T00:19:00.612803 | 2017-04-06T11:21:28 | 2017-04-06T11:21:28 | 87,152,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import unittest
from prime import primenumber
class PrimeTests(unittest.TestCase):
def test_result(self):
result = primenumber(10)
self.assertEqual(result, [0, 1, 2, 3, 5, 7])
def test_result_is_list(self):
result = primenumber(10)
self.assertTrue(result, list)
def test_i... | [
"hoslackochieng@gmail.com"
] | hoslackochieng@gmail.com |
1b4f5130233bfe869593d7745f2af1e06c6777f6 | 2e22cb8d0bdc4d0069153d9e076d5c3b209656d1 | /setup.py | 3a71a7bd4f7e7b12f68c6c3dafe3b816ca15cff7 | [] | no_license | kevinastone/django-tastypie-extendedmodelresource | 58cb9511d43dd41150c7d827af5bdeb27b7d7afa | 11435ce156b9533e653d6539b1cc11bc1f8e6693 | refs/heads/master | 2021-01-18T04:09:39.020357 | 2012-09-22T05:32:08 | 2012-09-22T05:32:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
VERSION = '0.1'
if __name__ == '__main__':
setup(
name = 'django-tastypie-extendedmodelresource',
ve... | [
"dekked@gmail.com"
] | dekked@gmail.com |
046e48003c5bea511c67085711ae1a3269a8078e | c6fa53212eb03017f9e72fad36dbf705b27cc797 | /SimG4CMS/Calo/test/python/runPhase0_cfg.py | aa9513f0a903b7fd6a2c67f3f7d9056b01e5ae00 | [] | no_license | gem-sw/cmssw | a31fc4ef2233b2157e1e7cbe9a0d9e6c2795b608 | 5893ef29c12b2718b3c1385e821170f91afb5446 | refs/heads/CMSSW_6_2_X_SLHC | 2022-04-29T04:43:51.786496 | 2015-12-16T16:09:31 | 2015-12-16T16:09:31 | 12,892,177 | 2 | 4 | null | 2018-11-22T13:40:31 | 2013-09-17T10:10:26 | C++ | UTF-8 | Python | false | false | 3,839 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD")
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
process.load("Geometry.HcalCommonData.testPhase0GeometryXML_cfi")
process.load("Geometry.TrackerNumberingBuilder.trackerNumberin... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
08a025d81f80adffff746115fa919a21066a3bdd | a0fb29f99a852089193e4cc9a11e7263dc3f8b5f | /mayan/apps/documents/serializers/document_file_serializers.py | e8d6fe80d51c51303bbc2cb48ba61d4ae2e18e07 | [
"Apache-2.0"
] | permissive | ikang9712/Mayan-EDMS | 0e22a944d63657cea59c78023b604a01a622b52a | d6e57e27a89805329fe0c5582caa8e17882d94e6 | refs/heads/master | 2023-07-28T19:41:55.269513 | 2021-09-07T14:16:14 | 2021-09-07T14:16:14 | 402,884,683 | 1 | 0 | NOASSERTION | 2021-09-03T20:00:09 | 2021-09-03T20:00:09 | null | UTF-8 | Python | false | false | 4,403 | py | from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from mayan.apps.rest_api.relations import MultiKwargHyperlinkedIdentityField
from mayan.apps.rest_api.serializer_mixins import CreateOnlyFieldSerializerMixin
from ..literals import DOCUMENT_FILE_ACTION_PAGE_CHOICES
from ..... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.