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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a02ba1bdd360a58f588d063d7f1b9793a9d9412d | fb8a82d8cdedf9095b455e6457f312a90f791745 | /10926_놀람.py | 177d862f26381a0c0a9cb380b4377e12673eb15c | [] | no_license | Napol-Napol/Practice-algorithm | 07885a42205e9ff67403feaf6f65e2c40f1b0ab5 | dca90b016cc1e3303e8ee8e42102655f06e256b6 | refs/heads/master | 2023-07-10T01:56:57.041349 | 2023-06-29T04:38:40 | 2023-06-29T04:38:40 | 279,951,280 | 0 | 1 | null | 2023-06-29T04:38:41 | 2020-07-15T18:49:28 | C++ | UTF-8 | Python | false | false | 32 | py | name = input()
print(name+"??!") | [
"gc9612@naver.com"
] | gc9612@naver.com |
c3814fd79b1a1d8c165a84db0088b1cace467d56 | 417e6eb589d3441c3c8b9901e2d35873dd35f097 | /src/structural/observer.py | 0ea844bf4d99f8480fb048987da3a1e944975507 | [] | no_license | vmgabriel/pattern-python | 4fc6127ebdb521d0a4a7b10b4b68880f691ee630 | 74f1cd1314a79060d1df1a6df018c39572bc2b4c | refs/heads/master | 2023-04-24T06:45:16.773415 | 2021-05-10T21:14:51 | 2021-05-10T21:14:51 | 365,394,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | """Observer Pattern"""
# Libraries
from abc import ABCMeta, abstractmethod
class Publisher(metaclass=ABCMeta):
def add_observer(self, observer):
pass
def remove_observer(self, observer):
pass
def notify_all(self):
pass
def write_post(self, text):
pass
class Platzi... | [
"vmgabriel96@gmail.com"
] | vmgabriel96@gmail.com |
04407c4c0c2cfb2ea993f25ad431233d54a4a666 | 8261e5d7497ed5625626c5bb727d58dce6b37f5c | /参考项目/生鲜/fresh/fresh/settings.py | 4c5f03da73032f392d1ad09ef5a504ae9a9be5a9 | [] | no_license | zhonglimei001/shop | d66ebf987d15ddaf6abf262fa8cfc10ceb4c53e3 | 76c7ea8c021ef5fe1f3dfa12fc120a79d1fc7e74 | refs/heads/master | 2020-12-04T01:07:50.034728 | 2018-03-08T07:12:53 | 2018-03-08T07:12:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | """
Django settings for fresh project.
Generated by 'django-admin startproject' using Django 1.8.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths ... | [
"794564669@qq.com"
] | 794564669@qq.com |
154dd920bb3f0c68406acde29d4f1f926d2bcda0 | a66a95e79a6f99e9324627203965d33bf4825697 | /hast_gazebo/src/gazebo_logger.py | c6a320c61d8d38152188658d68b996b0563d1be0 | [] | no_license | benjaminabruzzo/idetc2019_code | e991bae4f7f94525e8f71509390954e976446fd3 | e0b196558878bd142c37b72fc1e30bb1665f947e | refs/heads/master | 2020-05-07T09:29:05.929147 | 2019-04-09T13:58:58 | 2019-04-09T13:58:58 | 180,377,895 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,245 | py | #!/usr/bin/env python
# Import required Python code.
import cv2
import roslib
import rospy
import yaml
import tf
import message_filters
from cv_bridge import CvBridge, CvBridgeError
from sensor_msgs.msg import JointState, Imu
from std_msgs.msg import String
from geometry_msgs.msg import Twist
from nav_msgs.msg import ... | [
"abruzzo2@gmail.com"
] | abruzzo2@gmail.com |
cf80066c8c1ffe7e982e03699686c97fbdc57858 | 4f5142b5aef2d854110e38eaf26900109b82e9e2 | /try_11_for insert data and create collection.py | 2d15b98552ef745a0617ccebc0b6994bd80ae8b8 | [] | no_license | lll-Mike-lll/botstock | baa24dac67b4af4b17f24ce5f8f7bd4f44fb9f78 | b1b168f9e8ef9d63a97369760d29ea3d0b7544fd | refs/heads/master | 2020-06-10T07:17:58.743776 | 2019-07-31T08:51:45 | 2019-07-31T08:51:45 | 193,616,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 26 08:21:07 2019
@author: Lenovo
"""
import pymongo as pm
cli = pm.MongoClient()
db = cli['stock']
for i in range(6):
coll = db['list'+str(i)]
data = {'no':i+10}
coll.insert_one(data) | [
"wuttinun.code@gmail.com"
] | wuttinun.code@gmail.com |
41b415f39a4e7aa21b0dd6f22df937506a667106 | 6ab851422ff96d236d054a34e90b321985adc307 | /2126.py | 54c5169ffd27308425636c9f18159af50c4378fe | [] | no_license | glaucodasilva/PythonURIJudge | 65712ef6d5e703ae1c6a5e8ee21c8e51a1e17d93 | a3411ffd7921a84ac173411eaf38081cd0185459 | refs/heads/master | 2020-04-08T14:09:50.252637 | 2019-01-13T03:22:09 | 2019-01-13T03:22:09 | 159,424,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | caso = 0
while True:
try:
n1 = input()
tn1 = len(n1)
n2 = input()
caso += 1
sub = 0
for i in range(len(n2)):
if n2[i:i+tn1] == n1:
sub += 1
pos = i + 1
if sub > 0:
print('Caso #%d:' %caso)
pri... | [
"glaucodasilva@live.com"
] | glaucodasilva@live.com |
73bb5d61351977675a9d0a5e2f4b1565d14ad573 | 60d6fa9b911f246560835c5c30da62afdb3fbc11 | /station_statisticsV3.py | aeb927d68d6aacfce98a3d844d4b628b914bcc88 | [] | no_license | MichaelLee826/TS_data_analysis | 2d09f12cdbaf688851b397bdcda1df15acd9abdb | 6d9da7f558b560b592ee143f1a4784e719673ec6 | refs/heads/master | 2020-05-13T19:07:09.726931 | 2019-04-24T03:14:05 | 2019-04-24T03:14:05 | 181,651,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | import os
import csv
def process():
# 输出文件
station_dict = {"3": "东方绿洲站下行站台", "4": "东方绿洲站上行站台", "8": "朱家角站下行站台", "9": "朱家角站上行站台",
"12": "淀山湖大道站下行站台", "13": "淀山湖大道站上行站台", "20": "赵巷站下行站台", "22":"徐泾北城站下行站台",
"23": "徐泾北城站上行站台", "26": "诸光路站上行站台", "29": "虹桥火车站下行站台", "32": "虹桥火... | [
"michaelleef2008@gmail.com"
] | michaelleef2008@gmail.com |
2281dc7d58f87cd50fac735a74771b84d58ba8c3 | 55a311eb02403f8fa7e4d1e148e9bb5e80619984 | /businessLogic/methods/updateEntryQuery.py | c4c91ca1c79619937408f6a8dbd731469235be5e | [
"Apache-2.0"
] | permissive | kethan-kumar/Custom_Database | f5f3e5478a6b4c66f88fde5305f822ebacdb6ca2 | 0d44ab8748631b806b3711b8ae7d68e5f6474b1d | refs/heads/main | 2023-05-07T15:12:27.703962 | 2021-05-12T11:37:35 | 2021-05-12T11:37:35 | 365,336,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | import pandas as pd
from businessLogic.methods import ConcurrencyControl
global filepath, filepath_slash
filepath = "C:\\Users\\kethan\\Documents\\databases"
filepath_slash = "\\"
def updateValuesinTable(query, path, database, tableName):
con_status = False
try:
con_status = ConcurrencyControl.concu... | [
"kethankumar.nasapu@gmail.com"
] | kethankumar.nasapu@gmail.com |
62ee73f02dacd7db1d18db9daf85fad9474cc82a | c7f08cadd13b6a08dcbb279189ffbc3155e9cd14 | /models/base_joint_trans.py | 6933ee6398bc3bd20b229a736c891e28268afbb6 | [] | no_license | pranavpawar3/dialog-nlu | 8172c65456d792dc1a963affade63c37fd8f2d2a | c5fd9a6f9a425d443e4b22af5709af43115e772d | refs/heads/master | 2022-12-11T22:45:23.844852 | 2020-09-03T10:35:42 | 2020-09-03T10:35:42 | 292,539,199 | 0 | 0 | null | 2020-09-03T10:34:34 | 2020-09-03T10:34:34 | null | UTF-8 | Python | false | false | 4,868 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 3 09:22:32 2020
@author: mwahdan
"""
import tensorflow as tf
from models.nlu_model import NLUModel
import numpy as np
import os
import json
from .callbacks import F1Metrics
class BaseJointTransformerModel(NLUModel):
def __init__(self, config, trans_model=None, ... | [
"mahmoud.a.wahdan@gmail.com"
] | mahmoud.a.wahdan@gmail.com |
02c6cf6316d9fba40d964e94fe32779ecdb147ba | d5a3aa96b30a5a6a355b4e004e494a6ef41a339c | /dataviz/flagsuscities.py | 8d13d262bdf8130e129cc5277372acdda3014e45 | [
"MIT"
] | permissive | Udzu/pudzu | 4c1c134503f62fd1cc08a56e257b864033b38561 | df5019802bc32064870f31cda8397ad14868cda0 | refs/heads/master | 2023-07-10T06:16:35.342990 | 2023-07-04T06:28:00 | 2023-07-04T06:28:00 | 97,936,607 | 120 | 28 | MIT | 2021-02-21T16:15:31 | 2017-07-21T10:34:16 | Roff | UTF-8 | Python | false | false | 1,598 | py | from pudzu.charts import *
df = pd.read_csv("datasets/flagsuscities.csv")
groups = list(remove_duplicates(df.group))
array = [[dict(r) for _,r in df.iterrows() if r.group == g] for g in groups]
data = pd.DataFrame(array, index=list(remove_duplicates(df.group)))
FONT = calibri
fg, bg="black", "#EEEEEE"
default_img = "... | [
"uri.zarfaty@gmail.com"
] | uri.zarfaty@gmail.com |
19671f3686631379163ed2b10f584200efc261bf | 9403a2dc1ae4a15a10466aa929af403b94426f8d | /10-进程和线程/test.py | 8314a540c720001679ebc5c9d11623cf44336f98 | [] | no_license | IceBlueX/py | 8efaed3805eaeea0e1909ebd416f22f75fa2fa86 | 0cfcbfcf30f6d8c0da41a9ebbc3c92b06e821666 | refs/heads/master | 2021-06-24T21:04:24.118942 | 2019-08-06T06:15:38 | 2019-08-06T06:15:38 | 159,289,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from multiprocessing import Process, Queue
import os, time, random
def write(q):
print('Process to write: %s' % os.getpid())
for value in ['A', 'B', 'C', 'D', 'E']:
print('Put %s to queue...' % value)
q.put(value)
time.sleep(random.random())
def read(q):
print('Process to read: %s'... | [
"baokun.li@orgneering.com"
] | baokun.li@orgneering.com |
8aa8e5ab07a85782e717ab582bad1cf7628c4502 | 2779605165853981c961db1ad9f1d2faa8b4e709 | /includes/wordforms.py | 7675f681c2b8151dc7336da7f3095a58ddab4bf5 | [
"Apache-2.0"
] | permissive | lebedevsergey/poet-ex-machina | 5de7a747818d4db2a8968d011fd20fc39973a590 | 94e94dcce06be027248f9071d995659be200d827 | refs/heads/master | 2020-05-27T21:22:08.698749 | 2019-09-22T16:23:02 | 2019-09-22T16:23:02 | 83,671,293 | 42 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | # -*- coding: utf-8 -*-
# Copyright 2016 Sergey Lebedev
# Licensed under the Apache License, Version 2.0
import re
class wordFormsDict:
WORD_FORMS_DATA_DIVIDER = ','
WORD_FORMS_FILE = "dictonaries/odict.csv"
wordForms = {}
wordMainForms = {}
def __init__(self):
self.__... | [
"diacomltd@mail.ru"
] | diacomltd@mail.ru |
c1c819095b0fa0a1b0f9af06e428c396c3e6f389 | 834eec52f4f75f881b957efcce5aa2ac987d28cd | /HTTP API.py | 242f79523ec7776309c175f408c31a80dc0039c3 | [] | no_license | kenigteh/KODE | 15d42a25f443e3c652cf435285e008265b01b905 | 660c321b0d3131362bc2a168e365262e7c5dc773 | refs/heads/master | 2020-04-27T02:59:21.665558 | 2019-03-11T21:57:00 | 2019-03-11T21:57:00 | 174,011,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,622 | py | import traceback
import DataBase
import threading
from time import sleep
import requests
import flask
from flask import request
from flask_mail import Mail, Message
app = flask.Flask(__name__)
# Данные для почты администратора
my_email = ""
password = ""
# Проверить, строка == дробное число
def check_float(numbe... | [
"34108059+buispro@users.noreply.github.com"
] | 34108059+buispro@users.noreply.github.com |
140ae757e445ed1d7b00ea50be8cec6572a71591 | ec6e5746d81c4cda00640e35c302435e3aa6ea54 | /download.py | 22b086704eefdf05147490a997f82dd02d611d23 | [] | no_license | tinyhhj/began | cdb437fd98e18556621b93a37db6c91a33eeba2d | e12e4330b4e425aa43fe454dc62a53935eb6e635 | refs/heads/master | 2021-02-13T14:21:15.732736 | 2020-04-01T08:38:07 | 2020-04-01T08:38:07 | 244,703,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | """
Modification of
- https://github.com/carpedm20/DCGAN-tensorflow/blob/master/download.py
- http://stackoverflow.com/a/39225039
"""
from __future__ import print_function
import os
import zipfile
import requests
from tqdm import tqdm
import argparse
import time
def download_file_from_google_drive_by_id(id, destinat... | [
"krwsim@gmail.com"
] | krwsim@gmail.com |
46b0bb07d7705bd5f2793a879f995b8b719136d5 | cc4640f3540250ba1ec749e989c7044270ade09e | /Orders/models.py | ee5aa9ccacf4d1ae6c01b18625822bd7197ddcd6 | [] | no_license | nusk003/royal_marketing_api | aa86d0ca40067c2a847080d06acf975eca8827bc | e311bc0bfddfd4aa3aa4f656c94c7b76ca2446ec | refs/heads/master | 2022-12-14T03:03:29.572632 | 2019-04-02T02:18:56 | 2019-04-02T02:18:56 | 178,981,569 | 0 | 0 | null | 2021-09-08T00:55:45 | 2019-04-02T02:16:31 | Python | UTF-8 | Python | false | false | 6,033 | py | from django.db import models
from django.db.models import Sum,Count,Avg,F
from User.models import (User,PromoCodes)
from Products.models import (
ProductCombinations,
ProductVendor,OfferProductVendors)
from optimized_image.fields import OptimizedImageField
# Create your models here.
class PaymentType (models.Mode... | [
"nusk003@gmail.com"
] | nusk003@gmail.com |
722dacc742fa6c8689b0fc77c01ef3c20e230816 | 63f7520cecdf33f5e095d445cffe97257afed2bc | /gRPC/protolib/setup.py | 82d6de3af1b25c54c07d458f0e0a0766b928b1af | [
"MIT"
] | permissive | HarryMWinters/gRPYPI | e64cf2795d2504653ae31834ea95d75b3961af03 | 0ff0d61940a950d6d4b9395889ea4d94bd428184 | refs/heads/master | 2022-12-11T15:18:41.390730 | 2021-04-06T20:41:58 | 2021-04-06T20:41:58 | 224,575,210 | 0 | 0 | MIT | 2022-12-08T07:44:30 | 2019-11-28T05:17:41 | Python | UTF-8 | Python | false | false | 790 | py | import os
import setuptools
REQUIRED = ["google"]
cwd = os.getcwd()
with open(os.path.join(cwd, "README.md"), "r") as fh:
long_description = fh.read()
setuptools.setup(
name="protolib",
version="0.0.1",
author="Turkey M. Gobbles",
author_email="thanksgiving_sucks@freebird.com",
description="... | [
"harrymcwinters@gmail.com"
] | harrymcwinters@gmail.com |
011f5397d4715b048e12513c08e693c65f7515ec | 2b08c18c5ac84dc170eefb05d69e24800d34983e | /Datos/models.py | c0a351f24316205c077542e209c821d7d17c1885 | [] | no_license | wottan32/website | fda48f2f9c177f2aaf008c7b9bd94fbb06cb1de4 | db05b866badab8d046ea9eeb8c061d2e66312f98 | refs/heads/main | 2023-06-17T00:51:28.821850 | 2021-07-14T17:50:41 | 2021-07-14T17:50:41 | 385,640,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from django.db import models
from django.utils import timezone
class Datos(models.Model):
id = models.IntegerField(primary_key=True, max_length=255, blank=False)
empresa_id = models.IntegerField(max_length=255, blank=False)
nombre = models.CharField(max_length=255, blank=False, default='')
razon_socia... | [
"mariotorreslagos@gmail.com"
] | mariotorreslagos@gmail.com |
44509062537c690a06e88cd48b1ca7dd496cfaa1 | 96120b14b37c5b9472459918e26a7d45f38c800e | /deals/tests/test_urls.py | 923fcd1baf5c16fd0a8a736734d6f29a6d4af5dd | [] | no_license | AnnaKPolyakova/todo | 9a96fe1ff57dedb2272b9bde38aabeb4cf487494 | aca22815df14f3a7f3a763f7c32f4f77d05cf425 | refs/heads/master | 2023-01-14T09:30:39.647293 | 2020-11-18T14:16:53 | 2020-11-18T14:16:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,848 | py | from django.contrib.auth import get_user_model
from django.test import TestCase, Client
from deals.models import Task
class TaskURLTests(TestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
# Создадим запись в БД для проверки доступности адреса task/test-slug/
Ta... | [
"proninc@yandex.ru"
] | proninc@yandex.ru |
8b4cfe11d4422ccf18a27d988b129c8663adfe53 | acab80334c3a031e0418e3b98933d73bbebb9add | /PICK3_LOTTO.py | 616e8e87758e72df407bf027100de7aa19af7d38 | [] | no_license | aneeshpartha/PICK3_LOTTO_GAME | 1272141dd110cbbbe9e6749f24592f1aa9d50dbd | b43e5f687a9b724fb2b6a817b8c87fd6322c15f1 | refs/heads/master | 2020-03-18T00:04:53.685455 | 2018-05-19T16:01:06 | 2018-05-19T16:01:06 | 134,076,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,316 | py | from datetime import datetime
import random
import sys
# Global variables
value1 = 0 # User input 1
value2 = 0 # user input 2
value3 = 0 # user input 3
randomnum = [] # Random number variable
fireball = "N/A" # fireball value
fboption = "N/A" # fireball option
attempts = 2 # Attempts to user
total = 0 # Total prize mo... | [
"aneeshpartha5@gmail.com"
] | aneeshpartha5@gmail.com |
225a59db64cf10c4d3f3a469aebb5ebcd3451d82 | da09119e2d5a6b46b3ea82060efd560fb003bb63 | /answer_search.py | 596491e68f32fb0db81203942cf6d081ef5e5e9c | [] | no_license | sc1054/KGQA | 1c1fa6c05253e6b97355fb1b4645755fbaf6130f | f40c64de9521bfb8747cb7f53d4532978faabd7e | refs/heads/master | 2023-06-05T17:08:28.689485 | 2021-07-06T06:14:38 | 2021-07-06T06:14:38 | 382,249,511 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,045 | py | #!/usr/bin/env python3
# coding: utf-8
from py2neo import Graph
class AnswerSearcher:
def __init__(self):
self.g = Graph(
host="127.0.0.1",
http_port=7474,
user="neo4j",
password="admin")
self.num_limit = 20
'''执行cypher查询,并返回相应结果'''
def se... | [
"sunchao1054@163.com"
] | sunchao1054@163.com |
17b2a62cc4f1f857d00ed0ae85f43453c9c534de | baa2d5c22a2164e5c8f6a3608578ffd9ad05133e | /model.py | 4efec9e66f03de034c62f1ffd746efa5f785eb6d | [] | no_license | DruidKuma/Self-Driving-Car-ND-Project-3-Behavior-Cloning | 844b0a7041beeb92df296ebafbdb8e7811167b70 | 99cf8dd95b09701d4da28d67965460da826484b1 | refs/heads/master | 2021-08-26T08:35:42.771051 | 2017-11-22T15:05:51 | 2017-11-22T15:05:51 | 111,692,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | import numpy as np
import keras
import matplotlib.pyplot as plt
import csv
import cv2
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
from keras.models import *
from keras.layers import *
#resized image dimension in training
img_rows = 16
img_cols = 32
#batch size and epoch
batc... | [
"druidkuma@gmail.com"
] | druidkuma@gmail.com |
d113113170e962dbff65c3230b93efbbfc374af5 | d5daac6b925b5cbe93002cec47db0d87f52d2353 | /gradient_descent_method.py | 10bede50334cd8bfa66c1dd240acbcf779fd4994 | [] | no_license | mfouda/Convex-Optimization-Algorithms | 5b1c2beb3992812ec3c0741f2aba48215a89a15c | f3a77fc4ff4e5bb600c25955b4e826795fe9a379 | refs/heads/master | 2021-01-19T10:27:04.372432 | 2017-04-02T07:04:31 | 2017-04-02T07:04:31 | 87,868,241 | 1 | 0 | null | 2017-04-10T23:53:56 | 2017-04-10T23:53:56 | null | UTF-8 | Python | false | false | 1,478 | py | import numpy as np
import basic_algorithms as ba
def gradientDescentMethod(func, initialX, displayDetail= False, decimal= 3, accuracy= 1e-6):
counter = 0
while True:
if displayDetail == True:
print("ITERATION TIMES: " + str(counter))
negativeGrad = - ba.numerical_differentiate.G... | [
"bk20130048@my.swjtu.edu.cn"
] | bk20130048@my.swjtu.edu.cn |
f608b00977c20e9a0507628e7f62a20068ff2af6 | cae13e31d802bd011af10f2b7c943e01ec8ba3a0 | /curve.py | 57250375b079cb6575871dacb8fcaf711ef7cd3f | [] | no_license | VKAnirudh14/C-PRO-98 | 546e82dfb0dd5fe135854094108931a37e06a2ab | f4c51aec783b6697872c303e356c3bd3bc896d75 | refs/heads/main | 2023-04-05T03:10:26.362438 | 2021-04-05T03:40:28 | 2021-04-05T03:40:28 | 354,707,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import plotly.figure_factory as ff
import pandas as pd
df = pd.read_csv('data.csv')
fig = ff.create_distplot([df['Avg Rating'].tolist()], ['Average Rating'])
fig.show()
| [
"noreply@github.com"
] | noreply@github.com |
627b37547257bf028218c394028ba638d78fb0a6 | bdd8fe60144b364dade0c383ba9ac7a400457c69 | /freight/api/task_log.py | 1f03bac3b2cbdff6275b4d8d6b4886d30a94c799 | [
"Apache-2.0"
] | permissive | thoas/freight | 61eda7cb397696eb2c3a7504d03f2f4654ad7e8f | 9934cfb3c868b5e4b813259ca83c748676d598a0 | refs/heads/master | 2021-01-18T17:24:25.758448 | 2015-09-03T20:45:35 | 2015-09-03T20:45:36 | 41,413,179 | 1 | 0 | null | 2015-08-26T08:13:07 | 2015-08-26T08:13:06 | Python | UTF-8 | Python | false | false | 2,200 | py | from __future__ import absolute_import
from flask_restful import reqparse
from freight.api.base import ApiView
from freight.config import db
from freight.models import LogChunk
from .task_details import TaskMixin
class TaskLogApiView(ApiView, TaskMixin):
get_parser = reqparse.RequestParser()
get_parser.add... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
dd1a1863ce60dfb7b86fcd62c682a6bc2ad6f9a1 | 189ed26b70c45291e5b3659945dcc36b0c764570 | /SmartDepot-MotionDetect/Motion.py | e886c0f65d93bfbabb75aa5c9b8b64cff5b02f28 | [] | no_license | shivendra29/SmartDepot | 0c0bc3d6a24d656e712b5efa0b643b1ba298a289 | 6b07f90a10b4981a94efa1b9f874df876f5c7ccb | refs/heads/master | 2020-04-27T09:02:41.312370 | 2018-10-01T10:42:16 | 2018-10-01T10:42:16 | 174,198,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,492 | py | #Import OpenCV for processing of images
#Import Time for window time logging
#Import DateTime for saving time stamp of motion detection events
#Import Pandas for dataframe and CSV creation
import cv2, time
from datetime import datetime
from SendEmail import sendmail
#reference background frame against which to compare... | [
"33812863+shivendra29@users.noreply.github.com"
] | 33812863+shivendra29@users.noreply.github.com |
a1cf5368c4eea778d041c5af86d0bf3a3f4abd62 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_sodden.py | 9a58a5d33739918fea93b36c32416d0d46ba6316 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py |
#calss header
class _SODDEN():
def __init__(self,):
self.name = "SODDEN"
self.definitions = [u'(of something that can absorb water) extremely wet: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
54b746939497754c0edd8dc3570743f4ee22d180 | 9258ae775a26916853c4c42ec7569a1368dbd2af | /config/settings.py | b2688aa1626a40c71d917a15997884dfff0609d8 | [] | no_license | rornfl9731/airBnB_Project | 0a7a6de9bb7afcf5b038acd757523287c9e70a20 | d80f5c3d7869e4e6a1968d45ff6cb4b909327994 | refs/heads/master | 2020-08-24T03:20:33.779450 | 2019-11-28T19:41:21 | 2019-11-28T19:41:21 | 216,754,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"inx0930@gmail.com"
] | inx0930@gmail.com |
561baf6fe72f9366e547ec35dbdac517d7c39548 | dbbdb45032ca3e5ffe9b0681fcb3d44ec6f2a189 | /singapore/nea_api/__init__.py | 2f8da51ee1cfc2336e522d2470fea10aa816702f | [] | no_license | codelah/singapore | c63666a4c24ee123e293e875453afb088c60024c | fea6bad783c07894338f92700c18d5b42de07ede | refs/heads/master | 2021-01-19T00:59:49.106203 | 2017-08-12T03:29:00 | 2017-08-12T03:29:00 | 61,871,329 | 16 | 2 | null | 2017-08-12T03:29:01 | 2016-06-24T08:55:20 | Python | UTF-8 | Python | false | false | 22 | py | from nea_api import *
| [
"zhchua@gmail.com"
] | zhchua@gmail.com |
282399609317833cf35a9418fdac25bece55fe85 | 5afc3043b9b43a0e72bc94a90ed832a9576bb580 | /base/skill_59/py_06/py_44_copyreg.py | d527bd7b1839bbf108f061884156436b5976dfb3 | [] | no_license | JR1QQ4/python | 629e7ddec7a261fb8a59b834160ceea80239a0f7 | a162a5121fdeeffbfdad9912472f2a790bb1ff53 | refs/heads/main | 2023-08-25T00:40:25.975915 | 2021-11-07T14:10:20 | 2021-11-07T14:10:20 | 311,769,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# 第 44 条: 用 copyreg 实现可靠的 pickle 操作
# 内置的 pickle 模块,只适合用来在彼此信任的程序之间,对相关对象执行序列化和反序列化操作
# 如果用法比较复杂,那么 pickle 模块的功能也许就会出问题
# 我们可以把内置的 copyreg 模块同 pickle 结合起来使用,以便为旧数据缺失的属性值、进行类的版本管理,
# 并给序列化之后的数据提供固定的引入路径
| [
"chenjunrenyx@163.com"
] | chenjunrenyx@163.com |
88562a0aab5a88242fbd50593bb4ab3c914d7b46 | 86338779e91ed9b822fa5e0b213a4e3ad85ecadc | /configs/project_config.py | 2f1e1e6887ac8b9f6169ba2daaead553e0ad6bbb | [] | no_license | goddoe/weakly-supervised-detector | b423d1a4e534629961288c5b647f136d616e49f7 | 901c0a83e65dd438ae995412f2a59d299b9d4f24 | refs/heads/master | 2021-07-05T07:10:53.791119 | 2019-03-29T09:39:02 | 2019-03-29T09:39:02 | 120,253,624 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | import os
project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
| [
"goddoe2@gmail.com"
] | goddoe2@gmail.com |
6c249c704fb9dcad286b896aac14b4023e741304 | 98dbb9cd9523809b4ee0e6b92334fa6a2a6af2a3 | /bingads/v13/bulk/entities/audiences/bulk_campaign_negative_product_audience_association.py | 80d8c4fc61c6babc61466c3ac50597c9c0a847f1 | [
"MIT"
] | permissive | BingAds/BingAds-Python-SDK | a2f9b0c099b574a4495d0052218f263af55cdb32 | 373a586402bf24af7137b7c49321dbc70c859fce | refs/heads/main | 2023-07-27T15:31:41.354708 | 2023-07-10T03:21:03 | 2023-07-10T03:21:03 | 31,927,550 | 105 | 182 | NOASSERTION | 2023-09-04T06:51:20 | 2015-03-09T23:09:01 | Python | UTF-8 | Python | false | false | 586 | py | from bingads.v13.bulk.entities.audiences.bulk_campaign_negative_audience_association import *
class BulkCampaignNegativeProductAudienceAssociation(BulkCampaignNegativeAudienceAssociation):
""" Represents an Campaign Negative Product Audience Association that can be read or written in a bulk file.
For more in... | [
"qitia@microsoft.com"
] | qitia@microsoft.com |
8a5591e66fcadfc9f649b0d75c3579d01549b7b8 | 2e5c0e502216b59a4e348437d4291767e29666ea | /Flask-Web/flasky/Lib/site-packages/dns/tokenizer.py | 3e5d2ba92e8762532c2b3c5d6cbd0170298b26c7 | [
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | fengzse/Feng_Repository | 8881b64213eef94ca8b01652e5bc48e92a28e1f5 | db335441fa48440e72eefab6b5fd61103af20c5d | refs/heads/master | 2023-07-24T04:47:30.910625 | 2023-02-16T10:34:26 | 2023-02-16T10:34:26 | 245,704,594 | 1 | 0 | Apache-2.0 | 2023-07-15T00:54:20 | 2020-03-07T20:59:04 | Python | UTF-8 | Python | false | false | 20,833 | py | # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
# Copyright (C) 2003-2017 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permis... | [
"fzhuse@gmail.com"
] | fzhuse@gmail.com |
222f0e68d1e3968f67a837653d786d78e9316e0c | 56b174addb87128ef54c85d2701b222b21877bbb | /settings_tornado.py | cfe56e91c425ecd2e6699d4db0e35992861de686 | [
"BSD-2-Clause-Views"
] | permissive | kwarodom/bemoss_web_ui-1 | f8abbe7defc099bc40ff3c9c2b10c143a22ddbe5 | 6c65c49b8f52bc7d189c9f2391f9098ec0f2dd92 | refs/heads/master | 2020-12-11T01:37:47.205927 | 2016-03-16T21:35:38 | 2016-03-16T21:35:38 | 54,082,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,265 | py | # -*- coding: utf-8 -*-
'''
Copyright (c) 2016, Virginia Tech
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of condi... | [
"aribemoss@gmail.com"
] | aribemoss@gmail.com |
ccda7e8a0c61a04ef2333397f33e10f530c1f1e3 | 24c084fb46ef0192b742d81d7ffcdeaa89e62909 | /testes/GLC/teste_geradores.py | 0fdce56e3aa7c7002dd15a2687aef57d16b83a56 | [] | no_license | MarcosECarvalho/Teoria-da-Computacao | 88e4a59b4de1efd5144599ed0f706ae4f7d82db4 | df74ea3c7080b2183ace5928a0865e250b8d1767 | refs/heads/main | 2023-08-26T21:31:55.293326 | 2021-11-08T14:51:03 | 2021-11-08T14:51:03 | 425,864,238 | 0 | 0 | null | 2021-11-08T14:13:09 | 2021-11-08T14:13:08 | null | UTF-8 | Python | false | false | 767 | py | import tc.glc as glc
#ALUNO : ADEOYE SUNDAY LADELE
#TESTE DA FUNCAO GERADORES()
#IMPLEMENTACAO 66
V = {'E', 'I'}
T = {'+', '*', '-', '(', ')', 'a', 'b', '0', '1'}
P = {('E', ('I')),
('E', ('E', '+', 'E')),
('E', ('E', '*', 'E')),
('E', ('E', '-', 'E')),
('E', ('(', 'E', ')')),
('I', ('a')),
... | [
"glasscar46@gmail.com"
] | glasscar46@gmail.com |
7115c90cccdb2651de2a3381d355671fc1837512 | f3b9d2f2524c95f474eaa977fbe2affad0d09fd3 | /综合内容/github_pull的笔记/Django框架笔记/组件合集/django-admin-master/admin_web/king_admin/form.py | 203e61cb1826f3eb0640bbf79d1a8bdefc6292fc | [] | no_license | weiinng/down | 4e42bc84477d9caa94923be3201023faa646c278 | 5fb88636ac6832ea5e0f101a3483a866a10c3f9e | refs/heads/master | 2021-07-20T01:38:50.959998 | 2020-09-11T09:15:34 | 2020-09-11T09:15:34 | 209,210,195 | 2 | 0 | null | 2019-09-18T04:03:03 | 2019-09-18T03:35:26 | HTML | UTF-8 | Python | false | false | 3,186 | py | from django.forms import ModelForm
from django.forms import ValidationError
from django.utils.translation import ugettext as _
# 动态生成modelform
def dynamic_class(rquest,admin_class):
def default_clean(self):
# 默认给所有的form添加一个 clean方法
print('----- run clean',self.cleaned_data)
error_list = []
... | [
"51934867+zhangwiening@users.noreply.github.com"
] | 51934867+zhangwiening@users.noreply.github.com |
417b6ec0940ae33da0face74e31339022328e995 | c54acc4ca303442fbad7e69b3f41233df8383c3e | /db_importer/preprocess_service.py | e633ddcd97f5ba76e7780e7ed633e69c874a00e0 | [] | no_license | konskoehler/ma | e6f702d22437ccd0d01479c7cef25e9b6ecf0eac | 780b4e327a5b22dc798aa16d3168c36c40998309 | refs/heads/main | 2023-06-18T06:10:40.965685 | 2021-07-09T09:36:15 | 2021-07-09T09:36:15 | 382,626,921 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | from pyproj import Proj
import utils
from geopy.distance import great_circle
def preprocess_basics(df):
df_shift = df.shift(1)
df['l_lon'] = df_shift['lon']
df['l_lat'] = df_shift['lat']
df = df[~df['l_lon'].isnull()]
df['duration'] = (df['timestamp'] - df_shift['timestamp']).dt.total_seconds()
... | [
"kons.koehler@gmail.com"
] | kons.koehler@gmail.com |
da357a59f717ba6b355112edd5e138ae805e755d | f93651fdbfd70aa483893ecd371218a4a71072f5 | /commands/greet.py | 4c1ed0f6300b67d965a2337a87dc4b2f311e25a0 | [
"BSD-3-Clause"
] | permissive | Pinacolada64/NOW | 000a0394d2124eac936c7c97261ef99454d935dc | c8b1d6a47505667c7a83d3e162c53ff379c6d039 | refs/heads/master | 2023-08-14T20:43:06.551444 | 2023-07-18T04:01:02 | 2023-07-18T04:01:02 | 53,027,731 | 14 | 8 | null | 2023-07-18T04:01:03 | 2016-03-03T06:43:59 | Python | UTF-8 | Python | false | false | 1,950 | py | # -*- coding: UTF-8 -*-
from evennia import CmdSet
from evennia.utils.evmenu import EvMenu
from commands.command import MuxCommand
class ConvoCmdSet(CmdSet):
key = 'talk'
def at_cmdset_creation(self):
"""Add command to the set - this set will be attached to the vehicle object (item or room)."""
... | [
"orkyporky@gmail.com"
] | orkyporky@gmail.com |
5a77e38b0dc9b3603f365cc6ddc687a2fe351dcb | deb83f04935f6f8084d6731b4b7284739abb9e1d | /16.py | 07447812a9d94f2a12a1f7268d4d8502e49b1338 | [] | no_license | nilofar20/pythonnn | efdbe58a7d38f60117aaf77081feebc596166bb0 | 904c08bf796396759a7ec379201f3eca5d0f1d36 | refs/heads/master | 2020-06-11T06:41:50.720523 | 2019-07-27T08:12:22 | 2019-07-27T08:12:22 | 193,879,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | z,y=map(int,input().split())
for n in range(z,y):
if n>1:
for i in range(2,n):
if(n%i)==0:
break
else:
print(n,end=" ")
| [
"noreply@github.com"
] | noreply@github.com |
0f63546dde37b4f558b0a06b0b9db13717c4d47a | 871ad716e6e9ceaa783e5ba914fbe678d0e6819a | /bubbly/util.py | ae9aac625d05659c200c9109fbd41d1daab4dddb | [
"MIT"
] | permissive | linan7788626/brut | d653b8e3110fd0025e8c5279d3a36c8acbbad3d0 | f4223b84448d1db1b0e98e043dc6670adf05ee5d | refs/heads/master | 2020-12-02T15:08:57.724313 | 2014-06-25T12:34:55 | 2014-06-25T12:34:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,461 | py | import os
from cPickle import load, dump
import logging
from skimage.transform import resize
from sklearn.metrics import recall_score, auc_score
import numpy as np
def lon_offset(x, y):
"""Return angular separation between two offsets which possibly
straddle l=0
>>> lon_offset(0, 1)
1
>>> lon_of... | [
"beaumont@hawaii.edu"
] | beaumont@hawaii.edu |
d8fe887c75da4284e8c82abb54a0e1df679b17a1 | 7e06308b5575271bf8d7a9a6d1038b65d48f2917 | /extension.py | 7f48efe1aa6a7d9bb9588e0db70dde7a20d24586 | [
"MIT"
] | permissive | ComputerNetworks-UFRGS/ManP2P-ng | 3befa44d3299c1de69019f49e3271d5c01f84a88 | 41257f46c11e30c6aa663c67c791044c04bbf4e0 | refs/heads/master | 2021-01-20T12:38:09.040382 | 2013-11-24T00:58:27 | 2013-11-24T00:58:27 | 14,405,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,144 | py | # -*- coding: utf-8 -*-
from overlay import MessageNotHandledError
class ComponentManager:
modules = [ ]
@staticmethod
def load(data):
errors = [ ]
for d in data:
try:
m = getattr(
__import__('components.' + d['name'], fromlist=['*']),
d['class'])
except ImportError as e... | [
"fabiojrb@gmail.com"
] | fabiojrb@gmail.com |
09e7fc498c8663d84e8683b399ecfb42c89177b5 | b290171490c849a5248396a2ee980a42815935c1 | /delete_wo_uv.py | 5cc11994ede008bc761f574f645d30d3226549b8 | [] | no_license | jiangzhongshi/BlenderScripts | 787f12cc37e8d71b03bc68b9876733ee184c5f76 | 835ccf9a90739e967989b7b9620cc692e545f85e | refs/heads/master | 2021-01-25T06:36:10.874329 | 2020-05-20T21:01:32 | 2020-05-20T21:01:32 | 93,593,725 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import re
def check_uv(f):
with open(obj) as f:
for l in f:
if l[0] == 'f':
slash = l.find('/')
if slash != -1 and l[slash+1] != '/':
return True # UV exists leave untouched
else:
return False
if __name__ =... | [
"jiangzs@nyu.edu"
] | jiangzs@nyu.edu |
8dcecbb2db91f0781c70434f88392b4d940ba544 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/ankiandroid/testcase/firstcases/testcase4_014.py | be1af9489a3d62454bebe7063c442ec02f4fe4d7 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,621 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
2842a61d2bc8bd155811ada5e647135f21f9b544 | b482b2b957fedbe331a957b12f2ec5b42b6983f6 | /code/06/assembler/SymbolTable.py | d2ffb61d958d101c107d0fac39898296a2b7429f | [] | no_license | avidsapp/nand2tetris | 4d735f6d3c137055c6c9dc31d0489492a174cbaf | f93c8731dc8e65d0d09653cf72ce0fd56e4e7391 | refs/heads/master | 2021-06-21T14:15:07.672570 | 2017-08-14T16:10:47 | 2017-08-14T16:10:47 | 100,281,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | #!~/.pyenv/shims/python3
# User specific shebang line. Change to your Python interpreter dir
"""
SymbolTable.py is a hash-table store used to store and resolve symbols with their associated addresses
"""
class SymbolTable(dict):
def __init__(self):
super().__init__()
self.update({ #pre-def... | [
"david@mobius.digital"
] | david@mobius.digital |
a1dc42cf0d23cc2c38aa40141b882672f825d98e | 0e02ddbeec803067bc86b4675f2ff8ff2d388e62 | /people/urls.py | d33d1425dfff5e46007582aec9f7bd16b5f13180 | [] | no_license | BruceMWhealton/familytree | 4ef6a8cce5ebf23a89b2e05a915d33a13c9b5b5e | c8e8fe0278615a9803c2c89c13e8ea8f5804ddee | refs/heads/master | 2021-08-28T10:46:33.482088 | 2017-12-12T01:17:57 | 2017-12-12T01:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | from django.conf.urls import url
from people import views
urlpatterns = [
url(r'^$', views.index, name='people.index'),
url(r'^person/(?P<person_id>\d+)/$', views.person, name='person'),
url(r'^person/(?P<person_id>\d+)/edit/$', views.edit_person, name='edit_person'),
url(r'^person/(?P<person_id>\d+)/r... | [
"dan@uncommons.org"
] | dan@uncommons.org |
ce641dbede6f04804b41a0a8460de2268bda2a1e | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/TraitsGUI/enthought/pyface/key_pressed_event.py | 0072c81aca8d415f585dffb9111cb439544649df | [
"BSD-3-Clause"
] | permissive | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | """ The event that is generated when a key is pressed. """
# Enthought library imports.
from enthought.traits.api import Bool, HasTraits, Int, Any
class KeyPressedEvent(HasTraits):
""" The event that is generated when a key is pressed. """
#### 'KeyPressedEvent' interface ##################################... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
6e4847b3cbbfd143ca52188e94d598173a3e3fd7 | 31379309fedf19f04b307dab141a969ea38ebe9b | /button.py | 596dd06a7ed83e216eab138dcbdb90c9443a7a85 | [] | no_license | Alexandros-Panagiotopoulos/alien-invasion | b3c3496323946c8774fcdd90bcc5e17a8fb253fe | a6728d8022b3305a4f4019ffccaefea2f079fc41 | refs/heads/master | 2020-03-22T14:31:45.919567 | 2018-07-15T04:28:33 | 2018-07-15T04:28:33 | 140,186,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | import pygame.font
class Button():
def __init__(self, ai_settings, screen, msg):
"""Initialize buttons attributes"""
self.screen = screen
self.ai_settings = ai_settings
self.screen_rect = screen.get_rect()
# Set the dimensions and properties of the button
self.widt... | [
"panagiotopoulos.alexandros@gmail.com"
] | panagiotopoulos.alexandros@gmail.com |
7e5e4f719b75a501b9e069ca581e0344b89df260 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/brocade_mpls_rpc/clear_mpls_auto_bandwidth_statistics_lsp/input/__init__.py | c69003159bbe860e7c9e51d4eb0d278fd1ce133e | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,711 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
0653e3849f60d88cb438d1f81e12055160057477 | c71bdf7d24207c2a39c3ad7be3ede1043be81569 | /tensorflow/dataset/datasetbase.py | 56ca81ab1e6b73dfceac8ee6992620267f6f7a45 | [
"MIT"
] | permissive | Red-Eyed/dnn_models | 72056b621e7d6e186c6993edfcdfa951e985b9b9 | 66bee227e66e5432cf5ddecdc6cd18f5dcf372ba | refs/heads/master | 2020-04-10T09:55:17.578256 | 2019-09-10T09:56:58 | 2019-09-10T09:56:58 | 160,950,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from abc import ABC, abstractmethod
class DatasetBase(ABC):
def __init__(self, batch_size, prefetch_size, shuffle_size):
self.batch_size = batch_size
self.prefetch_size = int(prefetch_size)
self.shuffle_size = int(shuffle_size)
self.train_init_op = None
self.test_init_op =... | [
"vadim.stupakov@gmail.com"
] | vadim.stupakov@gmail.com |
d3d78b6323a240c91879de1759e6bfd3665bf0bc | fd4d6d898a7c2114ca214657bc5ed448540859c6 | /18. Day 18/1/main.py | 0fa2b58931ca44a815e90eac1dcdbd2d322fee2b | [] | no_license | TonyBiz9999/python | ecccf30966a3370b73b1cf9b84c0ff48fd34b790 | 983d9f7410fa0f15a1428191210bf8d8dbcc6ac8 | refs/heads/master | 2023-08-01T16:48:09.192126 | 2021-09-10T13:51:52 | 2021-09-10T13:51:52 | 403,551,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | from turtle import Turtle, Screen
import turtle as t
import random
# timmy = Turtle()
# for i in range (0,4):
# timmy.forward(100)
# timmy.right(90)
t.colormode(255)
arrow = Turtle()
# for i in range(15):
# arrow.forward(10)
# arrow.penup()
# arrow.forward(10)
# arrow.pendown()
corlor_list=["o... | [
"tienbui.media@gmail.com"
] | tienbui.media@gmail.com |
4ea1a680bf746e4095f60102406d9cd4862f5d90 | 8794c1e2c37c91b6fc84ad9dade98ce3e01975dd | /XML_Database.py | 416fa1a590ad4c933db130bd1b507bcc48f2725b | [] | no_license | LanHikari22/GModDB | 818ce2a23f7c796d079ca7f1191f3e319fb809a6 | 6b1bad21965793b7f59ad1f971d6f2ba783db4d0 | refs/heads/master | 2021-01-23T12:43:43.599137 | 2017-06-09T13:49:27 | 2017-06-09T13:49:27 | 93,187,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py |
class Database:
def __init__(self):
pass | [
"lanhikarixx@gmail.com"
] | lanhikarixx@gmail.com |
0208d8c9105a00b94dcccc70689221f0e0f20db1 | 7d7e1993e18dfd0ece507629e4cc13092a20d718 | /hello.py | 806d56aac9bae17d44f0521e3802737eea0947fb | [] | no_license | thiswind-inclass-example/hello_echarts | a1df604609f0549a670eb015941592f312e4dc69 | c6de8090394e17cb73b4f700f9f7361b9270ada0 | refs/heads/main | 2023-06-04T00:48:19.337261 | 2021-06-25T10:15:15 | 2021-06-25T10:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from flask import Flask, render_template
from pyecharts.charts import Bar
import pyecharts
app = Flask(__name__)
@app.route('/')
def index():
page_contnet = """<html>
<header>
<title>Hello Echarts</title>
</header>
<body>
<p>
<a href='/1'>查看 1</a>
</p>
<... | [
"thiswind@gmail.com"
] | thiswind@gmail.com |
d94eac8d709bc2eb7d4ac8bf5765e1247c5dc9c7 | 67ceb35320d3d02867350bc6d460ae391e0324e8 | /practice/easy/0231-Power_of_Two.py | 2937bb2cf84cca61705c0d77d1f846cbe4ef3766 | [] | no_license | mattjp/leetcode | fb11cf6016aef46843eaf0b55314e88ccd87c91a | 88ccd910dfdb0e6ca6a70fa2d37906c31f4b3d70 | refs/heads/master | 2023-01-22T20:40:48.104388 | 2022-12-26T22:03:02 | 2022-12-26T22:03:02 | 184,347,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | class Solution:
def isPowerOfTwo(self, n: int) -> bool:
while n > 0 and n % 2 == 0:
n /= 2
return True if n == 1 else False
| [
"noreply@github.com"
] | noreply@github.com |
b66a4a2f642675fb2d503b1ba324ad2dfb908ba2 | 6f872bc6ee101f165c3dbf19e3e64283b4d4e391 | /flaskr/flaskr.py | 024259837e66338450c6f12d1a81b250ebec8540 | [] | no_license | zsy23/CMU_15_441_P1_WebServer | d088a762ae293d157d4998e942b7f7238a1893e7 | e589d15bcbbf1cc56c99b22d73633780fdaa4237 | refs/heads/master | 2020-06-12T23:53:18.199418 | 2017-01-28T06:24:08 | 2017-01-28T06:24:08 | 75,475,379 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,329 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Flaskr
~~~~~~
A microblog example application written as Flask tutorial with
Flask and sqlite3.
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import os, sys
sys.path.append('/usr/local/lib/python2.7/... | [
"1181856726@qq.com"
] | 1181856726@qq.com |
ecd0c908b212976fa19ea77f224a14198775ffde | 6d86f4c4af6a1619ca651439437f71d7b77d23bd | /137_single-number-ii.py | ceb436c309bc077bcc559e641e9aa5ba5e70bd21 | [] | no_license | kooshine/LeetCode | 653e7bc9254ef3000b65d2929bf522d19a0deea6 | 14b0e09230620824cd1a09c015c29f2dfea932cf | refs/heads/master | 2020-11-29T22:29:34.808235 | 2020-05-25T13:54:27 | 2020-05-25T13:54:27 | 230,230,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | # -*- coding: utf-8 -*-
#https://leetcode-cn.com/problems/single-number-ii/
| [
"18919027903@163.com"
] | 18919027903@163.com |
f56a99f41b31f61b5cda6eaf7c5801aafb70c027 | f2f2e1af1d5fcf33aad4e5b3637d9ed7cdf32d40 | /VentInfo.net/home/nick/csc344/ventcomments/get-comments.py | 4378a46416bb3e01a14ea95aca36580bab8ad199 | [] | no_license | KWMalik/CSC344-A3-Python | d4b43b44500ed37627d5646d92d9c4ad848d2309 | 671401b35ff44300223947d6904521a089c690d9 | refs/heads/master | 2020-12-25T13:07:57.152119 | 2012-05-17T14:22:08 | 2012-05-17T14:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | #!/usr/bin/python
####################################################
# Nicholas Poorman - 2010
# This program will parse the information
# returned from the ventrilo_status program
# and persist it into the sqlite3 databse file
#
# Be sure to set the rootdir of the comments.db file
#
###############################... | [
"nickpoorman@gmail.com"
] | nickpoorman@gmail.com |
e32fbfc28aaebe4651e0b4db22c3c3e34a56302e | 82e021f8de203648418ef164f57570e11fe93f11 | /test.py | 103a9d85894016738288eb3355a24b64a15fe0fa | [] | no_license | ivanatome/upi_ivanatome | 6b6135de6c118e6f88901f1cf779ef93fa0e7f7a | 91a1ce3144d1d4985569b78b74545f6ac8651aee | refs/heads/master | 2020-09-17T05:31:04.560376 | 2020-01-30T11:01:10 | 2020-01-30T11:01:10 | 224,006,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | import unittest
from korisnici import Korisnici
import os, sys, sqlite3, datetime
from baza_metode import DRUGA, TRECA, MOJIPOSTOVI, BRISANJE, KOMENTIRANJE, LAJK, PRIKAZKOMENTARA, NASLOVNICAPOREDAKLAJK, NASLOVNICAPOREDAKKOM, MOJPROFILadd, MOJPROFIL, NASLOVNICA, AZURIRANJE, FILTER
from korisnici import Korisnici
dirna... | [
"ivanaradalj1234@gmail.com"
] | ivanaradalj1234@gmail.com |
61d0306f57193f18fb78a7a65113f9032dece319 | 62b4b732a3af0e9df01f310279381edd0dfb49a8 | /src/webapps/HyperMap/views.py | 834f12e483def59a071f21f013ddfd98e92451c7 | [] | no_license | JiawenPengV/HyperMap | b51c8f432cbb7c20c45873a05e7295c1a1c18c3b | 3f55390e21ef7da45ff8f409f1a9fe6c0d88b9ed | refs/heads/master | 2021-09-01T00:30:27.432447 | 2017-12-23T21:09:16 | 2017-12-23T21:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,475 | py | from HyperMap.models import *
from HyperMap.forms import *
from HyperMap.serializers import *
from datetime import datetime
from rest_framework import status
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser, MultiPartParser
from rest_framework.decorators import api_view
... | [
"JiawenPeng@outlook.com"
] | JiawenPeng@outlook.com |
e66e5b07f2b980fa29cac57dc2a86131d909b972 | a645dee437b903f34fdcb9539edfc273cd66581f | /Class/database.py | 9d3dddc260bc3b8841dfae02bae5f4122873b11d | [
"MIT"
] | permissive | HectorPulido/Simple-python-blog | fda8148b7b9cc8f731370d08807d41ea265051ab | 09bd57afa1616340ea9bb960613c34eddb3dcd19 | refs/heads/master | 2020-11-28T03:00:57.580847 | 2020-01-22T20:21:14 | 2020-01-22T20:21:14 | 229,688,143 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import os
import mysql.connector
class Database:
def __init__(self):
host = os.environ.get("db_host", "10.10.1.54")
user = "root"
password = os.environ.get("db_password", "")
db = "blogtest"
self.con = mysql.connector.connect(
host=host,
user=user,
... | [
"hector.pulido@red5g.co"
] | hector.pulido@red5g.co |
cc429011abb682a23be907ab306190a8d6757291 | 05d81c8afdbac6086b4285ab2b40d62ab332ff8b | /pythontuts/abstract_bc.py | ebaefa5667acb3d9463180c08824686ae6d9ae17 | [] | no_license | Jay952/Basic_python_programming | ba39abea5a924771b38dd23e3b8d25b4a20eeca0 | 13ca5609a6968076befc58ade70286dbcb8e59b9 | refs/heads/master | 2021-03-04T14:28:58.818920 | 2020-10-20T07:52:27 | 2020-10-20T07:52:27 | 246,041,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from abc import ABCMeta, abstractmethod
class shape(metaclass=ABCMeta):
@abstractmethod
def printArea(self):
return 0
class Rectangle(shape):
type="Rectangle"
sides=4
def __init__(self):
self.length=6
self.breadth=4
def printArea(self):
r... | [
"[jaydeep4420@gmail.com]"
] | [jaydeep4420@gmail.com] |
1fd326c668976a25f4d7ec9f323b8131d00ae05c | bee96035e18ce20b30a544861183bc304d80a044 | /prepwork/data_transform.py | 1c83539dea12ff14d01a44711b74fec3d6fc539f | [] | no_license | mpucci92/Logma | 53239f675a4b02016aca459c5169e9d5bdbe03e0 | 57dccb090110e4653fd3986ac7816a67cd0f172e | refs/heads/master | 2020-04-29T09:57:02.154614 | 2019-03-17T01:48:59 | 2019-03-17T01:48:59 | 176,044,486 | 0 | 0 | null | 2019-03-17T01:51:02 | 2019-03-17T01:51:02 | null | UTF-8 | Python | false | false | 3,027 | py | import pandas as pd
import numpy as np
import sys, os
import matplotlib.pyplot as plt
import seaborn as sns
from argparse import ArgumentParser
from consts import dir_
n_periods = 60
n_candles = 480
def filter_weekends(df):
df['Datetime'] = pd.to_datetime(df.Datetime)
df['DayName'] = df.Datetime.dt.weekday_n... | [
"zach.barillaro@gmail.com"
] | zach.barillaro@gmail.com |
18c407c5a3c8dc798d1d01274a618e2610d84d82 | b45b4aa92d3659583ae290437e23e5999c6c2d5a | /main.py | 281896e76ba0586a5f18d522bdf0fed349e3d4f3 | [] | no_license | GudiedRyan/day_71 | b67321dc992b8aa2198fe9b0a8e60a2cc37aecab | 241b3612a8bfdf6f3a1e2a688042eab3619f2ad1 | refs/heads/main | 2023-06-21T04:24:21.563035 | 2021-07-16T20:37:30 | 2021-07-16T20:37:30 | 386,758,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | import tkinter as tk
import math
import random
# --------------------- CONSTANTS ----------------------#
WORD_BANK = ['green', 'yellow', 'gorilla', 'cheese', 'virtue', 'avatar', 'photo', 'zoo', 'there', 'you', 'are', 'code', 'python', 'love', 'type', 'hope', 'tree', 'sleep', 'rabbit', 'cartoon', 'big', 'stuff', 'ruler... | [
"ryan.guide@comcast.net"
] | ryan.guide@comcast.net |
9fcb10f1a0ab474231c1ba2e782dff198d5df0f5 | 6d1e448699801f6ce249223879e2e5d9c8844bf0 | /lasd_scrapy1/process1.py | a7bc7f568aa5ca60ca7fcccb48c94761b34ac65b | [] | no_license | daily4u/scraping | 2a2dea6fb55aa5162535d86b36304e48aa53af3c | a76463d5a66e5a492a065d78c8d4f242f443e0ca | refs/heads/master | 2021-01-02T22:33:52.587383 | 2017-08-04T14:22:07 | 2017-08-04T14:22:07 | 99,340,477 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import os
import subprocess
import re
processname = 'python lasd1.py'
tmp = os.popen("ps -Af").read()
proccount = tmp.count(processname)
if proccount > 0:
print(proccount, ' processes running of ', processname, 'type')
else:
os.system(processname) | [
"bossdavid88888@gmail.com"
] | bossdavid88888@gmail.com |
a683c5dd2f5af5e9c3b4eceff9af48fdfb87231d | c254a8636fc9ad1d785b41008c7f12e99e34dacb | /plugwise/connections/serial.py | 1726d5bf462b97d729c137031900223b5747312a | [
"MIT"
] | permissive | grahamwhaley/python-plugwise | e937e3c305e65f523c5207d39b6ff0b4caf0adf3 | 1f885302f9c79eb7681f17d46b0a7b05e668a710 | refs/heads/master | 2022-10-15T16:48:14.034038 | 2020-06-08T20:03:52 | 2020-06-08T20:03:52 | 271,030,078 | 0 | 0 | MIT | 2020-06-09T14:47:22 | 2020-06-09T14:47:21 | null | UTF-8 | Python | false | false | 3,952 | py | """
Use of this source code is governed by the MIT license found in the LICENSE file.
Serial USB connection
"""
import time
import threading
import logging
from queue import Queue
import serial
import serial.threaded
from plugwise.constants import (
BAUD_RATE,
BYTE_SIZE,
PARITY,
SLEEP_TIME,
STOPBIT... | [
"frank_van_breugel@hotmail.com"
] | frank_van_breugel@hotmail.com |
2d684ce62f91df297cd9025742157492e9f7b15e | 0f99fa25ceb6a026f62ee0f8c99bf029bc24657e | /parameters.py | ac864d97fa6bd2dfe6249a747bfdd86791814cc1 | [
"MIT"
] | permissive | betatim/flavours-of-physics | 0e382cf880ab29e2754a3a4dbe8499e377f31bac | b8db8cb5905643ed9cd5b44f65a6e051e592494c | refs/heads/master | 2020-04-30T02:25:59.820261 | 2015-10-22T09:22:11 | 2015-10-22T09:22:11 | 45,092,752 | 0 | 0 | null | 2015-10-28T06:13:20 | 2015-10-28T06:13:20 | null | UTF-8 | Python | false | false | 650 | py | # https://github.com/gramolin/flavours-of-physics
# Random seed:
random_state = 1
# Weight for the first booster:
w1 = 0.78
# Numbers of trees:
num_trees1 = 200 # Booster 1
num_trees2 = 100 # Booster 2
# Parameters of the first booster:
params1 = {'objective': 'binary:logistic',
'eta': 0.05,
'... | [
"gramolin@gmail.com"
] | gramolin@gmail.com |
979864f68c8f51e1001c261521bd88c954863337 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/GDS/shamil_v3/purchase_transportation/transportations.py | 8ed7b8054bde56377337d809bee89f1ca678875a | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,282 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>).
#
##############################################################################
import netsvc
import time
fr... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
4330f8a424c768e77c4d469a0a856cde88cf4ba4 | 702d0994a15b4e215a5563c0c54393da2ed7e99e | /thehanger/shop/migrations/0003_auto_20211018_2306.py | 607a87b7090827d6f89d591e393ea94baddc4299 | [] | no_license | lengoc12/DAN | 2dfa00c4bda5f02f6bfd2dbb84f0cc624b58d380 | 1440229130f03b9e5671da83f45b61205758920c | refs/heads/master | 2023-08-23T23:45:39.064121 | 2021-10-27T16:27:13 | 2021-10-27T16:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # Generated by Django 3.2.7 on 2021-10-18 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_order_payment_method'),
]
operations = [
migrations.RemoveField(
model_name='category',
name='status',
... | [
"52289366+lengoc12@users.noreply.github.com"
] | 52289366+lengoc12@users.noreply.github.com |
d5cbcca27e7788245d9504386ab9666887d65a94 | 52fe45a03eb4545094adfdff48c439843972d2a8 | /utilities/to_telugu_equal_csv.py | 52759a7e5104a05ce597707a523da8bc22f448c6 | [] | no_license | saibharani/Music_Generation | d49eb8d527651e530f509710d3a03dd566d9b657 | 5bc409f9cdc33464f80468bac1c8c75f07a45895 | refs/heads/master | 2020-03-25T10:17:39.217790 | 2018-07-12T17:04:08 | 2018-07-12T17:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import xlwt
book = xlwt.Workbook(encoding="utf-8")
sheet1 = book.add_sheet("Sheet 1")
sheet1.write(0, 1, "text")
fobj = open('transliterated.txt')
txt = fobj.read()
txt_list = txt.split(" ")
txt_len = len(txt_list)
req_len = txt_len // 65000
counter = 0
i = 1
str_txt = ""
for word in txt_list:
if (word.strip() != "")... | [
"amatya.avadhanula@gmail.com"
] | amatya.avadhanula@gmail.com |
52140a927a1c45b88b007bd1af0bfe4d2d942003 | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /django_wk/Mikesite/pubApp/pubmanager.py | fec872afed9ea1d9834c4cc18521c7088d2b2c74 | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | '''
Created on 2013-12-29
@author: Walter
'''
from pubApp.models import Paper
class PubManager(object):
'''
classdocs
'''
def __init__(self):
'''
Constructor
'''
self.type = "all"
self.year = "all"
self.type_all = "all"
... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
4b4586f98d333cae5f2725cd0eefb642230b844a | 7739c30c4d0260c0cb2db9606620009434e5d362 | /usrobj_src/pyembroideryGH_AddStitchblock.py | dca66a7ca7f299b52d7325456eda52e50d368e26 | [
"MIT"
] | permissive | fstwn/pyembroideryGH | 1dc82c4fd7c071ea234434fe433f92932fb20e46 | ee7fd47316b364962a69976b4168ce9fef2702cf | refs/heads/master | 2021-12-01T06:17:41.716433 | 2021-11-29T10:32:32 | 2021-11-29T10:32:32 | 232,354,805 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | """
Adds one or many StitchBlocks to an embroidery pattern supplied as
pyembroidery.EmbPattern instance
Inputs:
Pattern: The pattern to be modified as pyembroidery.EmbPattern
instance.
{item, EmbPattern}
StitchBlock: The stitchblock(s) to add to the pattern.
... | [
"post@maxeschenbach.com"
] | post@maxeschenbach.com |
b7273a3830ebaeae6f415ae4458105f916fb744c | 2230b5e0f2ee3733ecab6e76957e8ed9b1272d84 | /tests/mix/nicib/tc_nicib.py | 7b42e42e8fc3cbf30934c8fa752a560336d4e6f2 | [] | no_license | AlertBear/fcior | e9f26e6775ae41d1539f128f0dd212bdaa3080dd | f101c9d330be0858578e74631746870190002788 | refs/heads/master | 2020-05-19T12:36:46.214449 | 2015-10-23T02:24:13 | 2015-10-23T02:24:13 | 29,911,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,835 | py | #!/usr/bin/python2.7
#
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
#
import ctiutils
import time
import os
import traceback
from basic import *
from common import *
# test purposes
from tp_nicib_001 import tp_nicib_001
from tp_nicib_002 import tp_nicib_002
def startup():
info_print... | [
"alertbear@163.com"
] | alertbear@163.com |
8599f545f32a227a0b40dd5d25d0ed379f8a54b8 | 28acc05d2d5f19427f9936a34b3d6cabb5fba6c0 | /CHIpy-8/v_registers.py | 6de8b75beeb16c9321b02dffa4270ffadfaf626e | [
"MIT"
] | permissive | HERCULESxp/CHIpy-8 | f2bb9e01f793de6f4c0e97a8cdfedebb85d8e5bc | 0a58b6af4ea3f8a9cab7de0f1c195674c7c77782 | refs/heads/main | 2023-06-19T16:59:36.870982 | 2021-07-06T12:02:22 | 2021-07-06T12:02:22 | 303,285,334 | 1 | 0 | MIT | 2020-11-01T01:55:01 | 2020-10-12T05:20:14 | Python | UTF-8 | Python | false | false | 504 | py | from unsignedbitsarray import UnsignedBitsArray
class VRegisters:
def __init__(self):
self.v = UnsignedBitsArray(8, 16) #CRIA A MEMORIA DOO REGISTRADOR COM 16 BYTES E VAZIA
def WriteValue(self, idx, value):#ESCREVE DADOS NO REGISTRADOR
self.v[idx] = value
def ReadValue(self, idx):#LER DADOS DO R... | [
"noreply@github.com"
] | noreply@github.com |
6cdc0727030d6b2c9b99f8bc0392fbf6d0932c81 | cf10a610cdc789e329f5c9734b4dd0fa46050dbf | /automated_weather_shopping/winter_shopping.py | bc9ad5a44fc2288ab887ec095437409b4e1e26c7 | [] | no_license | rohit679/selenium_scripts | 7c5dc520a00ff89ec24d0e7b3bb20dbbc0cbf1bf | 5b00f33b58acd9f119eb4cefa5f67e4e125c16d8 | refs/heads/master | 2022-11-24T10:11:03.868104 | 2020-07-24T12:48:02 | 2020-07-24T12:48:02 | 282,218,070 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,387 | py | """
This python module is for finding out two least expensive product
in which one of them contain Aloe & other would contain Almond.
SCOPE:
1) Launch Chrome Driver
2) Navigate to site 'weathershopper.pythonanywhere.com/moisturizer'
3) Finding out the product, which satisfies our base codition
4) Click to t... | [
"noreply@github.com"
] | noreply@github.com |
5b23ea9398ef63c8d1726172c1aad40d7b1c2595 | 32e1e5ad1f24bab35e72ede517deec13154512c5 | /cropping_package/CroppingImplementation/utils.py | 86f7f973fb871c2d941dc8d251ed4cb5aac4731e | [] | no_license | sondrtha/ImageCropping | f072b9e5e506a50bc9972c8357271075f2870bfb | 817a9ca21c2c3ed8636d5017028cd7b285c90510 | refs/heads/master | 2023-08-31T10:56:29.112864 | 2021-10-18T15:01:44 | 2021-10-18T15:01:44 | 326,507,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from win32api import GetSystemMetrics # is used to get your screen resolution
def get_screen_resolution():
screen_resolution_width = GetSystemMetrics(0)
screen_resolution_height = GetSystemMetrics(1)
return (screen_resolution_width, screen_resolution_height)
| [
"sondre_H_93@hotmail.com"
] | sondre_H_93@hotmail.com |
ddfd6d214af241497a8523161e43f40420496bea | 5fc2e6c28853b5c3f5df65048714fe3252a69cd6 | /python/Tools/cutSamples.py | 6f529c1c80da99470665ccc699cbc74ff0dfbb20 | [] | no_license | zaixingmao/H2hh2bbTauTau | 2f5fec23546a90f0055798147e8fd762307bf44f | 44b114ce48419b502fa233ddcb8d06eb0e5219f7 | refs/heads/master | 2016-09-05T13:18:21.214825 | 2014-09-17T12:52:59 | 2014-09-17T12:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,778 | py | #!/usr/bin/env python
import ROOT as r
import tool
from operator import itemgetter
import os
import enVars
from array import array
import optparse
import math
import varsList
import kinfit
r.gROOT.SetBatch(True)
r.gErrorIgnoreLevel = 2000
r.gStyle.SetOptStat("e")
xLabels = ['processedEvents', 'PATSkimmedEvents',
'eT... | [
"zaixing.mao@cern.ch"
] | zaixing.mao@cern.ch |
23cd20f6d2f55bff7d41ec47fb119325981ec932 | ad5e973d7da2b3d8d212ce6530f9e626e6d7b68d | /api/tests.py | 26fa2019c09773b507abc11942d7c054f6e2d72a | [
"MIT"
] | permissive | mateusvictor/School-API | 536c45d521ef37a6f2bdc9dc7222ac836c798336 | eff0ff3ee8d07fc89e8688615ec685e3dbfc0478 | refs/heads/main | 2023-06-15T18:20:42.710653 | 2021-06-15T15:28:41 | 2021-06-15T15:28:41 | 371,870,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | from decimal import Decimal
from django.urls import reverse
from django.forms.models import model_to_dict
import json
from rest_framework import status
from rest_framework.test import APITestCase
from api.models import *
class ProfessorTests(APITestCase):
def test_create_professor(self):
"""
Ensure we can create... | [
"mateus_victors@outlook.com"
] | mateus_victors@outlook.com |
dfdf08871a317bd868aaf96af910a062abbb121c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03005/s702594618.py | 664af542c17dd1cc55af2decc0b25ecea2d985cf | [] | 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 | 101 | py | import sys
n,k = input().split()
n,k = int(n), int(k)
if k==1 :
print(0)
else :
print(n-k)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1158f74e6b942c69297d5244445530ce24e8d271 | e3968e2117ce57631659f16a0c5bf1ffbcdb44c8 | /configuration.py | 09b1799a80e06f02b8baab3b5c16425c3c7326de | [
"MIT"
] | permissive | PAndaContron/rucs24-bot | fa0c767c68ad5f28ec28406929fb65f85dca81f7 | 96b6f8564154473c9e3919f9d2649d4d293570a3 | refs/heads/master | 2023-02-02T01:27:39.291834 | 2020-09-22T00:28:56 | 2020-09-22T00:28:56 | 297,161,678 | 0 | 0 | MIT | 2020-09-20T20:52:58 | 2020-09-20T20:52:57 | null | UTF-8 | Python | false | false | 90 | py | import json
with open("config.json") as config_file:
config = json.load(config_file)
| [
"cepheac@protonmail.ch"
] | cepheac@protonmail.ch |
3a42023dfd9ac8cc3bbee4b8459c832bd62732a1 | 9e38b45f555ffa08fe036b7b0429871ccdd85303 | /Python/string_split_and_join.py | 8b17eac33966a7d952c106de079a896dbe6307f7 | [] | no_license | shayaankhan05/HackerRank | b066969b0514046bd8620b55d0458d8284a12005 | a975fac85af80310ec2ec5f6275c94ceefe3715b | refs/heads/master | 2023-06-01T09:06:23.374474 | 2021-06-24T08:10:38 | 2021-06-24T08:10:38 | 294,485,980 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | def split_and_join(line):
a = line
a = a.split(" ")
a = "-".join(a)
return a
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(result)
| [
"you@example.com"
] | you@example.com |
c98a3094d349575fd5198624b1554161571e84e2 | 95c0a5ce24a2d05740772a27d059c7f456eaa431 | /tests/test_base.py | a58436878826f88e4bebd049041315f2a8326e3c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enquos/sqlite-fts-python | a1b2497a716af3d4d1f611160045474f80e32ba4 | e4f33a17afcd5f4af592416758004b508784cd96 | refs/heads/master | 2021-01-16T18:09:28.122733 | 2017-08-10T06:04:59 | 2017-08-10T06:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,224 | py | # coding: utf-8
from __future__ import print_function, unicode_literals
import sqlite3
import struct
import re
from cffi import FFI
import sqlitefts as fts
ffi = FFI()
class SimpleTokenizer(fts.Tokenizer):
_p = re.compile(r'\w+', re.UNICODE)
def tokenize(self, text):
for m in self._p.finditer(text... | [
"mymelo@gmail.com"
] | mymelo@gmail.com |
2bd0fce8ed3b15c82198fc4e0f624e8e38e89983 | 60c0570b94d27e1671c757414bf20de20abf2c67 | /backend/backend/profiles/urls.py | 12e27a01e95b716cd47168f014bc5d15e4eb4703 | [
"MIT"
] | permissive | mightykim91/howaboutme | 19f4b2ef7a809e4bc47e482cabf4d2f85808f15a | 467c3a2eccc959084296bc7f4679e77b93b9d7f7 | refs/heads/master | 2023-01-20T00:04:28.844903 | 2020-11-26T11:20:50 | 2020-11-26T11:20:50 | 316,052,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.urls import path
from . import views
name = 'profiles'
urlpatterns = [
path('', views.ProfileView.as_view()),
path('<int:user_id>/', views.get_profile),
path('partners/', views.get_partners),
] | [
"rsm4282@naver.com"
] | rsm4282@naver.com |
8a6c0fa302cae9c1570396f3d292093bc32abbb5 | 7d61a3451ed9b79840ec7d9563312bfc23b66ec3 | /train.py | 0d08961b591d54d5104e80651cd7626eed0a4eb9 | [
"MIT"
] | permissive | champon1020/ViViT-pytorch | 4f7fef6027a96e4be4c486a98df780b5bfcccf9f | 9bb3ea8746360e2031fed15fd7b0fcde132725ba | refs/heads/master | 2023-04-10T14:08:57.486027 | 2021-04-26T08:13:13 | 2021-04-26T08:13:13 | 356,957,946 | 0 | 0 | MIT | 2021-04-21T20:38:44 | 2021-04-11T19:16:34 | Python | UTF-8 | Python | false | false | 4,200 | py | import datetime
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from ignite.engine import Engine, Events
from ignite.metrics import Accuracy, Loss
from timesformer_pytorch import TimeSformer
from torch.utils.data import DataLoader
import wandb
from config import Config
from ucf10... | [
"nagatelu1020@gmail.com"
] | nagatelu1020@gmail.com |
088973a0dbd18923e03afc75a341c75a61a348e9 | cb80ebc49bc92c350f6d6f039a6a4f0efa6b4c60 | /EnvironmentVariables/EnvironmentVariables.py | 9e6a9451d078f7f1d2002410d1982b10be2b1a30 | [] | no_license | rabramley/pythonTrials | 9708ef1b39011c8c08909808132114ff3b30d34a | bbc93a9f69afbe3cd045de5835ad3c8a4a557050 | refs/heads/master | 2021-01-15T23:07:48.074817 | 2015-06-22T14:11:20 | 2015-06-22T14:11:20 | 32,924,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #!/usr/bin/env python
import os
print os.environ['HOME']
# using get will return `None` if a key is not present rather than raise a `KeyError`
print os.environ.get('KEY_THAT_MIGHT_EXIST')
default_value = 'Use this instead'
# os.getenv is equivalent, and can also give a default value instead of `None`
print os.geten... | [
"rabramley@gmail.com"
] | rabramley@gmail.com |
5965cf6c2653d46dfb79c779094bab865c550470 | 115731ab247a84b25f1e4dce200df62500e67bee | /Figures/Paretofront/Analyses_Pareto/JRFs/Paretofront_JRF_Knee_Force.py | e82dba7fd9b332606f142fc77c5230f98df3b705 | [
"Apache-2.0"
] | permissive | AliKMBonab/Simulation-Based-Multi-criteria-Comparison-of-Monoarticular-and-Biarticular-Exoskeletons | 418d8c7933e965ba04ca54edc88b7962e32ff674 | 6766608301b4ac575f7851c1a62c450edb0e0fbb | refs/heads/master | 2023-05-07T12:19:33.526911 | 2020-09-24T09:13:22 | 2020-09-24T09:13:22 | 292,260,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,699 | py | import collections
import copy
import os
import re
import csv
import enum
import glob
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import pylab as pl
from scipy.signal import butter, filtfilt
import importlib
from tabulate import tabulate
from numpy import nanmean, nanstd
from perimysium import ... | [
"alik@sabanciuniv.local"
] | alik@sabanciuniv.local |
2c6a2672603f19ab8dc70bb4d8be325ea3ba9772 | 505ca3057976e988a8430742a9a1141b696280f7 | /bot.py | c35b9abde13cb3d86eb5ba12ce34c3c2c2ccc158 | [] | no_license | ibuckshot5/New-Version-Forced | 32455c9d7cbaf0f4da15db2d9846274b7c813d3e | d383f74dbb11234c979321f92564183bee43ee08 | refs/heads/master | 2021-01-23T08:34:48.781231 | 2017-09-05T23:32:02 | 2017-09-05T23:32:02 | 102,539,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | import configargparse
import requests
import logging
import sys
from time import sleep
logging.basicConfig(level=logging.INFO,
format='[%(asctime)s] [%(levelname)5s] %(message)s')
log = logging.getLogger(__name__)
logging.getLogger('requests').setLevel(logging.ERROR)
def main():
... | [
"noreply@github.com"
] | noreply@github.com |
f6e52ffb6985d2989246c90d72b42b70bbc332b0 | 7401aec7b85d358c1d05d9526c675e69bde0152b | /script/srcOverlapScore/pocketgeneral/mainApoHolo.py | adba364d64c2208938a82935d0b23107c369c69f | [] | no_license | akramhecini/stage_HECINI | f2a1b43601098e3d3358962ead042634f7d77792 | 164f01bb047b6a8c7e2a42f02f5481861ccef808 | refs/heads/master | 2020-05-01T17:47:22.244932 | 2019-03-15T18:31:48 | 2019-03-15T18:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,556 | py | """
BORREL Alexandre
09-2012
"""
import globalFonction
import runOtherProg
import writeFiles
import pathDirectory
import tool
import analysis
import superposeStructure
from os import listdir, path, remove
from re import search
def main (path_file_model, name_dataset="ApoForm"):
dico_dataset = globalFon... | [
"leslie.regad@gmail.com"
] | leslie.regad@gmail.com |
d03fdd7163443682518f951771af10526d09f73e | 52bf896a20be0cc22c0e81327f92eb99e7fa59d1 | /tests/test_parsing.py | 723dd34aab106cc9a5dda37b1e6fc32b91ca5e5a | [
"MIT"
] | permissive | regebro/svg.path | f13b73eb0a6a416f725380b46f9bd89cc353de3b | 5548748f41db4510212c92187d5aa6c2c324b660 | refs/heads/master | 2023-08-30T11:15:07.279639 | 2023-04-29T16:42:28 | 2023-04-29T16:42:28 | 7,987,589 | 196 | 54 | MIT | 2023-05-01T19:02:35 | 2013-02-03T07:13:19 | Python | UTF-8 | Python | false | false | 23,271 | py | import unittest
from svg.path.path import CubicBezier, QuadraticBezier, Line, Arc, Path, Move, Close
from svg.path.parser import parse_path
class TestParser(unittest.TestCase):
maxDiff = None
def test_svg_examples(self):
"""Examples from the SVG spec"""
path1 = parse_path("M 100 100 L 300 100... | [
"noreply@github.com"
] | noreply@github.com |
d353d5fff31bf52069940390a252ad8145de17fc | 5ab30fd1b3fa74a8763abf8e948924f1c3dfceff | /cari-pakar web/manage.py | 03ee59ef477f824b640f30bc261de94ecf176270 | [
"MIT"
] | permissive | eightfold28/Expert-Finding | cf342f0c922f26995854fd363cc6d1fcc0288e0a | 09ebbad9162eb4c3481eb98d5f6a47e37820be6f | refs/heads/master | 2022-12-09T13:21:20.479543 | 2018-11-20T12:58:32 | 2018-11-20T12:58:32 | 155,075,215 | 0 | 0 | MIT | 2022-12-08T01:02:09 | 2018-10-28T13:40:35 | Jupyter Notebook | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "caripakar.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"13514028@std.stei.itb.ac.id"
] | 13514028@std.stei.itb.ac.id |
8dbad1d4354d63d045a7b9f71ef8405a05615120 | e16cc78f0e05e50d589558535ae0fc5e414dd4a0 | /IM5.4.0_timing/ztest_e_send5_video.py | 1c13ecf0caf88ccbce3128b36482d9396bea79b6 | [] | no_license | wenqiang1990/wenqiang_code | df825b089e3bd3c55bcff98f4946f235f50f2f3d | 3c9d77e0a11af081c60a5b1f4c72ecd159945864 | refs/heads/master | 2020-06-19T04:38:39.052037 | 2019-12-18T03:40:39 | 2019-12-18T03:40:39 | 196,561,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | #coding:utf-8
import time
import datetime
import unittest
from appium.webdriver.common.touch_action import TouchAction
from robot.utils.asserts import *
from appium import webdriver
from public import login
from public import logout
from clear_massage import clear_massage
from set_driver import set_driver
class Imtes... | [
"1058099258@qq.com"
] | 1058099258@qq.com |
b0b39a1067ec0844dbfe72eea92692cd8d97b530 | 02719c273e8b8903ae5a1980588e0708214c795d | /setup.py | 8b9e15861fdfd69a026f87cb46fa3aa4ceb3ab59 | [
"MIT"
] | permissive | sushmitakullu/setupenzyme | d5fcd840a1d5770e63e26b540b7a0cd05dde6c63 | 1c6a507c9fbce9cc96a7d1683a39d5f42a17fe9c | refs/heads/main | 2023-01-02T23:35:28.230364 | 2020-11-01T18:19:12 | 2020-11-01T18:19:12 | 309,159,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from setuptools import setup, find_packages
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Education',
'Operating System :: Microsoft :: Windows :: Windows 10',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3'
]
setup(
name='joshbasicc... | [
"noreply@github.com"
] | noreply@github.com |
d9e8087dbb23e198465e9cec104a3c58229c202a | db87935ba376500c6aa294980c5939f9cb90c9af | /python.py | 9c91b80b08808b1da0b8e0bd1e06bdfd492e1b88 | [] | no_license | oldssc/Python_Code | e65c488b4a6ec3c19c44a358d865cb67f686d621 | 893b13b75bb2e214d9a2d8ab4ff478d70bd2812e | refs/heads/master | 2021-01-23T16:12:33.859037 | 2017-06-04T03:30:15 | 2017-06-04T03:30:15 | 93,286,350 | 0 | 0 | null | 2017-06-04T03:27:09 | 2017-06-04T02:53:33 | null | UTF-8 | Python | false | false | 529 | py | people={
'Alan':{
'location':'China',
'height':"5'11",
'favorite_color':'red',
},
'Johnny':{
'location':'Barrington',
'height':"5'8",
'favorite_color':'blue'
},
'Mike':{
'location':'Barrington',
'height':"6'1",
'favorite_color':'yellow'
}
... | [
"noreply@github.com"
] | noreply@github.com |
38a36ff84c8aa72ffacb7058e7044aa7d10f74d7 | b0f4ad442ea7530c8475baadad0fadc096e60b5c | /laskarit/viikko2/maksukortti/tasks.py | 5a249200e85cc96f146e2c2de58931eb4d0ce8ba | [] | no_license | henkkah/ot-harjoitustyo | 42448c6e085665570eeb51a4afee05a7dcc8ca01 | f94eb085043f4bb72cfc2b6b6c5c716f527bb8fd | refs/heads/master | 2023-04-20T12:29:34.812996 | 2021-05-14T12:00:30 | 2021-05-14T12:00:30 | 349,364,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from invoke import task
@task
def start(ctx):
ctx.run("python src/index.py")
@task
def test(ctx):
ctx.run("pytest src")
@task
def coverage(ctx):
ctx.run("coverage run --branch -m pytest src")
@task(coverage)
def coverage_report(ctx):
ctx.run("coverage html")
| [
"henrik.harjula@outlook.com"
] | henrik.harjula@outlook.com |
e27002f755337a917bd5ab17abc80d304144de8c | 7b9f66b2ea1079dd9cee5b82b8ae5897e9c2f45f | /Medium/915-Partition_array_into_disjoint_intervals.py | 2e0c41d711dd9ab614f851c41611c8d0eefff3a0 | [] | no_license | carminelaluna/Leetcode-Solutions | 4b2c797ae180f9095631a47c60264e2876a38acd | 807e04d881874bc60e08443a57d8aea2c9e5b5aa | refs/heads/main | 2023-06-24T18:26:25.246763 | 2021-07-25T19:14:06 | 2021-07-25T19:14:06 | 388,899,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | class Solution:
def partitionDisjoint(self, nums: List[int]) -> int:
max_l = nums[0]
max_succ = 0
res = 0
for i in range(1,len(nums)):
if nums[i] > max_succ:
max_succ = nums[i]
if nums[i] < max_l:
res = i
if max_... | [
"carmine.laluna@gmail.com"
] | carmine.laluna@gmail.com |
378aa46e73e900bb233585d55176e247b746501d | 446f2a774ab17cb434ac5695ef26ee239e5a81c1 | /ProjectEuler/Problems 1 - 50/P049.py | 9e13e7d4b297ab1a889698a3c0f61bd04d7bf774 | [] | no_license | ArturMroz/Project-Euler | 2453b195d6ff057853dcaf418b551ffc9a8aa070 | 8eaa693290d953ab587a6818df06d7b5f7d6fe51 | refs/heads/master | 2021-01-10T22:03:23.280106 | 2019-02-17T13:30:24 | 2019-02-17T13:30:24 | 16,026,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # https://projecteuler.net/problem=49
# Concatenate the three terms in sequence where
# (i) each of the three terms are prime, and,
# (ii) each of the 4-digit numbers are permutations of one another.
def eratosthenes(lim):
a = [True] * lim
a[0] = a[1] = False
for i, v in enumerate(a):
if v:
... | [
"frost47@gmail.com"
] | frost47@gmail.com |
d65afb1f6543a2a444321d7e56c5b38b5e534b50 | d83b1e44fdb5969001e7ca31b15658084cfc6a00 | /poker/models.py | f8cd80d9ec1e2428d828e7eb509a1bcdc233b7e0 | [] | no_license | chrhyman/wugs-site | c7134d6025cb68e6b81a04088a5cb22eef551e2e | f73799fbecd2d7b55ed8e4362c868569a32f7606 | refs/heads/master | 2021-01-20T18:45:12.133731 | 2016-07-13T05:31:35 | 2016-07-13T05:31:35 | 62,846,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from app import db
class PokerGame(db.Model):
__tablename__ = "pokergame"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64))
startmoney = db.Column(db.Integer)
endmoney = db.Column(db.Integer)
handsplayed = db.Column(db.Integer)
| [
"chrhyman@gmail.com"
] | chrhyman@gmail.com |
20cc51e3bc9d8f64ab428a9a2f9270a264ffdf30 | de4ec418ec12cfcd35bbe59fe656268873240381 | /video/utils.py | 1b4b0c361cda0b1f8cea019d8f26a5885060f89f | [] | no_license | ffabulous/multimodal | 9069d70fc571dd5234ef22772e39842eb17a41ae | 14352c9609d7f5391c0eca9f45c8bb116acebe56 | refs/heads/master | 2022-09-30T23:52:40.489301 | 2020-06-05T10:04:41 | 2020-06-05T10:04:41 | 269,588,120 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,157 | py | from __future__ import print_function
from collections import Counter, defaultdict, deque
import datetime
import time
import torch
import torch.distributed as dist
import errno
import os
from tensorboardX import SummaryWriter
class SmoothedValue(object):
"""Track a series of values and provide access to smoothe... | [
"keunchan.park@navercorp.com"
] | keunchan.park@navercorp.com |
e9d1e0e03a5772e4e6ac7caabdd881d31e059704 | ed29bdb7bcfc52c1a5d66e70c6b46a2db3beedc1 | /while_loop_with_no._of_printing.py | 4c9ad17812c100ee4f194b559463b79e50e5d2dd | [] | no_license | sahilkumar171193/mycodes | 36082a07b11ddb35ad037e704b1d210d9a41dcdc | 9e86eeb544b68c070f292659a336732e8c899234 | refs/heads/main | 2023-02-17T03:29:33.840130 | 2021-01-14T16:22:57 | 2021-01-14T16:22:57 | 329,668,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | i=1
while i<=5:
print("hello sahil",i)
i=i+1
print("everything printed with number of appearance") | [
"noreply@github.com"
] | noreply@github.com |
e44f0c91aacf007f995d8c725da557c967847454 | 1a8ade846000a43d64dbc8862991c15080798332 | /env/bin/epylint | dbc2149c18d9613e1995a5d193c58cde66938cbf | [] | no_license | felipesantos10/CoronaBot | 355bee16d7c385920c90b4da69df962e9dfd5427 | a71e014b790904a58d1916f5ac0766a7caa1848b | refs/heads/main | 2023-01-04T20:43:08.873716 | 2020-10-20T22:01:33 | 2020-10-20T22:01:33 | 305,843,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/felipe/Documentos/coronabot/env/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"felipedev.ti@gmail.com"
] | felipedev.ti@gmail.com | |
f516a8cbb18cf9b4a876221ca2d3d975e36ecc3c | c807ab961d0dea5eb3936547e843673247639a07 | /Personel/pooja/Python/Assignment - 11/consecutive_duplicates.py | 31b412c923c633117707c634e3440c5207c770e4 | [] | no_license | shankar7791/MI-11-DevOps | dbac94ca1fb4627ae44658701bcddcd22c65a3d4 | 63a0a65b05192439575ed2c47a6c3d33c5be87d2 | refs/heads/main | 2023-07-12T20:33:30.121801 | 2021-08-13T03:01:17 | 2021-08-13T03:01:17 | 355,145,424 | 0 | 4 | null | 2021-08-12T19:31:44 | 2021-04-06T10:19:10 | Python | UTF-8 | Python | false | false | 333 | py | from itertools import groupby
def remove_all_consecutive(str1):
result_str = []
for (key,group) in groupby(str1):
result_str.append(key)
return ''.join(result_str)
str1 = input("Enter string:")
print("Original string:" + str1)
print("After removing consecutive duplicates:" )
print(remove_all_conse... | [
"poojanandura@gmail.com"
] | poojanandura@gmail.com |
e3f4e1bc264e4e9e928ef3ebb533de57033f0c84 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /tools/perf/measurements/power.py | 58551ae3207e2de8e876bea951fc32323d5b63c9 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,961 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import time
from metrics import network
from metrics import power
from telemetry.core import util
from telemetry.page import legacy_page_test
class Power(... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
721bf55ac66a7be5ecaef7be3efb4eea3d553e7f | 5656be0eb8dcd787f78f5ce47a735c74f3359b30 | /export.py | 4a985e9975b59272330882ba36d7d8ee074b9996 | [
"MIT"
] | permissive | mgornik/PEAN | 875c3bd2fb12ad88152f6dea21abcf6a73b7674c | bab1d11b4485b8a68edfe78018d0055816d6c999 | refs/heads/master | 2020-09-09T19:26:40.869432 | 2019-12-03T09:25:43 | 2019-12-03T09:25:43 | 221,542,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | # -*- coding: utf-8 -*-
import util
from os import path
from subprocess import call
from assignment_status import *
from lxml import etree
from lxml import objectify
def execute_export_command(config, criteria, stations):
"""
Izvršavanje komande koja vrši izvoz rezultata u format koji se može lako uvesti u Eviden... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.