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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf27c415d0043fd1bc4f0ca0022fb76d57c961a7 | c73e8286579e7ba673440bac44bd527d416beaef | /MyNeutronSimHitAnalyzer/test_myneutronsimhitanalyzer_cfg.py | fefea3af0908ab0115fa557d29761f7fc67dfbf8 | [] | no_license | pietverwilligen/MyAnalyzers | 6815cec717f2ede3f44070466e33c9b292d5b452 | ccd04521747625d82a19174ebebb6a2cba53ddf2 | refs/heads/master | 2023-05-24T12:42:17.134907 | 2023-05-18T11:55:05 | 2023-05-18T11:55:05 | 16,079,295 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,417 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
process.load("FWCore.MessageService.MessageLogger_cfi")
# process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
# process.load('Configuration.Geometry.GeometryExtended_cff')
# process.load('Configuration.Geometry.Geometr... | [
"piet.verwilligen@cern.ch"
] | piet.verwilligen@cern.ch |
af70d574f31787b8284e14570848001569e88f64 | ae4ce90917d44f13b33660578b7a80ba79b68459 | /module2-sql-for-analysis/working_solution.py | b29eceb198a4cae52af37c7afe1e815afa4b780a | [
"MIT"
] | permissive | DrewRust/DS-Unit-3-Sprint-2-SQL-and-Databases | 963479b6231e4759edbbc5e2258093b4f535e037 | f58bb7e76119da044db8f305c2fcd15cf354425d | refs/heads/master | 2022-11-27T13:24:08.004619 | 2020-07-31T01:52:40 | 2020-07-31T01:52:40 | 281,267,427 | 0 | 0 | null | 2020-07-21T01:44:53 | 2020-07-21T01:44:53 | null | UTF-8 | Python | false | false | 1,430 | py | import os
import sqlite3
import psycopg2
import pandas as pd
from dotenv import load_dotenv
from psycopg2.extras import execute_values
load_dotenv()
DB_NAME = os.getenv("DB_NAME")
DB_USER = os.getenv("DB_USER")
DB_PASS = os.getenv("DB_PASS")
DB_HOST = os.getenv("DB_HOST")
conn = psycopg2.connect(dbname=DB_NAME,
... | [
"drewrust1@gmail.com"
] | drewrust1@gmail.com |
804a24940885c35a4a7ed6d3b1ddad614a1e83b0 | 7aa922e785ce1b2d8754c0f62628856db59de631 | /IsingAnnealing/plot.py | e89cf171fcd6d34777c1bbea6702999085322b8d | [
"MIT"
] | permissive | karthik-r-rao/parallel-computing-it301 | 9d8ad0b10ab7fb5c87c61130b1a5ef44ff92f878 | 47930923e41229bdb8e0fa9aa06668e07bdee469 | refs/heads/main | 2023-04-16T08:15:49.709154 | 2021-04-28T18:06:00 | 2021-04-28T18:06:00 | 332,651,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import matplotlib.pyplot as plt
file1 = open("results.txt", "r")
file1 = file1.readlines()
vertices = []
s_times = []
p_times = []
for line in file1:
line = line.split()
if line[0][0] == 'S':
s_times.append(float(line[2]))
vertices.append(int(line[1]))
elif line[0][0] == 'P':
p_t... | [
"karthikrrao30@gmail.com"
] | karthikrrao30@gmail.com |
6a8ab4e8c9d87b5ef9835ff767ae5530877dea77 | 55225fbd169a3792671c0aff6477f6481f30d16e | /extensions/newrelic/extension.py | df31b07a87f490da51372e9c7f6311e476b113d3 | [
"Apache-2.0"
] | permissive | jayallenmn/cf-php-build-pack | 49b0a82357011bc36db2f8120ecc9d3774b127ed | 9c473b23052777f579df93eb84c3bf5c6edae0a5 | refs/heads/master | 2021-01-18T17:08:31.811300 | 2014-12-17T00:29:18 | 2014-12-17T00:29:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,141 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
"dmikusa@gopivotal.com"
] | dmikusa@gopivotal.com |
fbd822f61c1a1be9ba9e7a288e6edaa8aa8fe6e7 | 79175920d99b88fd448d53b0fed715b04784b80d | /code_elements/LogicalFunctions.py | 961ce17a1117c64f9ed4ca582db4ae2998ef6c92 | [] | no_license | andrea94bs/pattern_recognizer | 129806b324c9a33ad95b48b0480e4cb4ef0c5307 | b3629d2a8852954419b44d325902ed6743d24696 | refs/heads/master | 2020-07-13T05:34:51.538331 | 2019-08-28T20:02:28 | 2019-08-28T20:02:28 | 205,004,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from abc import ABC, abstractmethod
class LogicalFunction(ABC):
def __init__(self, *operands):
self.operands = operands
@abstractmethod
def getOperands(self):
pass
@abstractmethod
def getOperator(self):
pass
class OrFunction(LogicalFunction):
def __init__(self, *opera... | [
"andreamilli9@gmail.com"
] | andreamilli9@gmail.com |
dcd90f03c5ad889a247fba87b43c5a73531a764e | 21817bff4a5c91667e1af61d2720d162b2875a97 | /aula10.py | bfb43813b55a2aaa75329e6102bfead152494ad5 | [] | no_license | rafarios20/praticando-python | 98f7511ed11d53a03f50ed3f1fee7ca3fe24437e | fc966a19b083240cf7c315be7611e2a4c6389a11 | refs/heads/master | 2023-08-02T01:39:16.046406 | 2021-10-04T20:48:32 | 2021-10-04T20:48:32 | 413,577,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | from datetime import date, time, datetime, timedelta
def trabalhando_com_datetime():
data_atual = datetime.now()
print(data_atual)
print(data_atual.strftime('%H:%M:%S'))
print(data_atual.strftime('%c'))
print(data_atual.weekday())
tupla = ('Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábad... | [
"rafaelsrios12@gmail.com"
] | rafaelsrios12@gmail.com |
30e32a0d0a73c626eb5e77afb62df05a8f9ac067 | 0391e91adae786eef92cc57c092fa47656c56925 | /show_votes.py | f2e89fec5861bc5f5d24ef612ee91bf48b474c93 | [] | no_license | imranariffin/masat-agm | d36b2ad5ae85da9ff1d960a984a4aa5fb0dbc22a | dc9be2b2560535dc7c009ea9dcb22f596162e280 | refs/heads/master | 2020-12-28T19:46:35.824556 | 2016-04-01T23:22:21 | 2016-04-01T23:22:21 | 53,380,659 | 0 | 0 | null | 2016-03-08T03:50:23 | 2016-03-08T03:50:23 | null | UTF-8 | Python | false | false | 3,173 | py | from mongapi import get_all_votes
def show_count(votes):
pr_count = {}
if __name__=="__main__":
for vote in get_all_votes():
print vote['code']
for key in vote.keys():
if key != "code" and key != '_id':
print "\t", key, vote[key]
print "\nshowing count:\n"
president_count = {}
vice_president_count ... | [
"imranariffin@yahoo.com"
] | imranariffin@yahoo.com |
df83634491e0dcfcc9793d8c38b9b1614a1918d7 | 14274e11270d0ca9591a953ff553674b14f5acd9 | /no7_drf_Serializer/api/migrations/0002_auto_20200504_2103.py | fed1403558cc635d855ec60dabf804753bcd7621 | [] | no_license | dog-2/hello_drf | 52f12754b3f9a7e018258cde91031eb4622858ff | 1411019a142cebcc4cfba5814b87686b2dfcc238 | refs/heads/master | 2022-06-21T15:49:22.478226 | 2020-05-10T08:14:01 | 2020-05-10T08:14:01 | 262,190,533 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | # Generated by Django 3.0.6 on 2020-05-04 21:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
name='user',
table=None,
),
]
| [
"test@sb.com"
] | test@sb.com |
a2684462368bccf9e2ba348abcf9171734ffab33 | dc70ab34373d6c97b4c838983ef19c60978a2e7a | /4 Storing resources in SQL code/code/user.py | 246cb75e4473da0994124ae14593b55f1e659cdd | [] | no_license | thanhtungittlu/Flask-RestAPI | af9e6a818fa34a4c1627b4128cbb449667a50f7f | ad5c183017565acbb9088f373145375d4a15127f | refs/heads/master | 2023-09-04T00:26:47.382532 | 2021-10-11T09:12:40 | 2021-10-11T09:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | import sqlite3
from flask_restful import Resource, reqparse
class User():
def __init__(self,_id,username,password):
self.id = _id
self.username = username
self.password = password
@classmethod
def allUser(cls):
user = []
connection = sqlite3.connect('data.db')
... | [
"tungteobeng357@gmail.com"
] | tungteobeng357@gmail.com |
ad7e6bc02120ef80805bcd33c41a5689fdc3b3ae | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4327/codes/1685_2471.py | 3839f412181a0170517221e3c9d2dc2bcfbbf2a6 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | ida=int(input("idade:"))
imc=float(input("imc:"))
print("Entradas: {} anos e IMC {}".format(ida,imc))
if ((ida<=0 or ida>130) and imc<=0):
print("Dados invalidos")
elif(ida<45 and imc<22):
print("Risco: Baixo")
elif(ida>=45 and imc<22):
print("Risco: Medio")
elif(ida<45 and imc>=22):
print("Risco: Medio")
elif(id... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
6c79212a30c69958ae37d23991a6e182ee77d62b | fc6db85c250c411e614828a9e1d795c052b41f60 | /src/content_provider_fuzzing/deencoders/json_decoder.py | 33c42dfa989932484c804aea94fb07a61e1b2cf8 | [] | no_license | abdawoud/Dynamo | 8efe3f8649498d11458bee8fe1bd19b57c1b26b1 | fe40d8077a1c5df714f958376b692b1bdfad71bf | refs/heads/main | 2023-06-23T05:04:16.003864 | 2023-06-12T09:14:48 | 2023-06-12T09:14:48 | 312,528,265 | 28 | 5 | null | 2021-04-12T10:07:17 | 2020-11-13T09:18:37 | Python | UTF-8 | Python | false | false | 1,826 | py | import json
from typing import Dict
from src.content_provider_fuzzing.deencoders.apis.call_api_deencoder import CallApiDeEncoder
from src.content_provider_fuzzing.deencoders.apis.delete_api_deencoder import DeleteApiDeEncoder
from src.content_provider_fuzzing.deencoders.apis.insert_api_deencoder import InsertApiDeEnco... | [
"parthipan.ramesh@cispa.saarland"
] | parthipan.ramesh@cispa.saarland |
722850cb1918b9896efd11d196b5c64a1a4caa4e | 751f4a9d820f11699d466af3a9054e71f28068d1 | /URI_1116.py | 8d60526d1b33bad92cb2fa12919127f7ab8ce81d | [] | no_license | Abdurrahmans/Uri-problem-solving | 3b6fc310e3cb30f10e4b1ec408ab27b9cb0dffd3 | 073ba18c221ad9194d63620cbf1a68f753ce2526 | refs/heads/main | 2023-06-06T11:07:06.853347 | 2021-06-22T12:34:53 | 2021-06-22T12:34:53 | 379,262,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | n = int(input())
for x in range(n):
a,b = map(int,input().split())
if (a>0 or a<0) and b==0:
print('divisao impossivel')
continue
divisor = a/b
print(divisor) | [
"noreply@github.com"
] | Abdurrahmans.noreply@github.com |
67022eee39ca403a42056592b5865b71d0932664 | 3fee42f36817e380a1f911731ef9feae4dd0c5be | /project/project increment 3/bin/pyrsa-sign | 0a046b449349b5ed3cddd2631bac50cf505dbcf8 | [] | no_license | hvbilla/Python-Deep-Learning- | 756a8359185335bd78ae63a30ff518386ef169d9 | af46ed73d79718a9064d75e0fad47aab78e79474 | refs/heads/master | 2020-12-19T21:51:54.505525 | 2020-05-14T17:41:28 | 2020-05-14T17:41:28 | 235,855,355 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 275 | #!/Users/GowthamYesG/Documents/python-project/Python-Deep-Learning-/api/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import sign
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(sign())
| [
"msharsha123@gmail.com"
] | msharsha123@gmail.com | |
a795d94e127b464707333ef1f6a68ca8a2ed11b7 | f022c7339bc01749d6ee99162a074ca3fe6711d8 | /module_05/sauce_func_lib/test_sauce_inventory.py | 2decf0f6f49445e63db12de5b9e3491172f86fc5 | [
"Unlicense"
] | permissive | memsprop/2021_python_selenium | e34d5a563a6f0e44b07d82f6db8836d3e9a4c041 | eb3de282b11933cb6886d4008fb1b557147afaae | refs/heads/main | 2023-04-06T11:01:18.634874 | 2021-04-21T01:11:31 | 2021-04-21T01:11:31 | 335,466,100 | 0 | 0 | Unlicense | 2021-02-05T00:57:09 | 2021-02-03T00:52:20 | null | UTF-8 | Python | false | false | 1,288 | py | """Test cases for inventory"""
import pytest
from selenium.webdriver.support.wait import WebDriverWait
from common.webdriver_factory import get_driver
from module_05.sauce_func_lib.inventory import get_inventory, InventoryItem
from module_05.sauce_func_lib.login import login
VALID_PRICES = ['$29.99', '$9.99', '$15.99... | [
"garanda@anexinet.com"
] | garanda@anexinet.com |
ddf47e45ef86e9b199838c7fedfcc38dc2944e9c | 6f843575c3b1662e4756fa9bd5e094277c1f770e | /ck_auto_select.py | c336c4d166d1fc94db6a9a059034e9cff490d100 | [] | no_license | 21ki/qinglong_auto_tools | dc19717b91d5c00068c7c98b3ea9d480bc42a764 | 3073d46e7bc15eab5db3c55e2309884c713fe2e5 | refs/heads/master | 2023-09-02T06:23:56.052462 | 2021-11-19T12:35:16 | 2021-11-19T12:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # 多ck去重,每10个隔一行输出,ck格式:
#ck1&ck2&ck3&……
#作者仓库:https://github.com/spiritLHL/qinglong_auto_tools
#觉得不错麻烦点个star谢谢
#代码
import re
data1 = ''
data2 = ''
#data3 = ''
#data4 = ''
temp1 = data1.split('&')
temp2 = data2.split('&')
#temp3 = data3.split('&')
#temp4 = data4.split('&')
temp = temp1 + temp2
#temp = temp1 + tem... | [
"62994705+spiritLHL@users.noreply.github.com"
] | 62994705+spiritLHL@users.noreply.github.com |
8dc9d361d4139844af17f07dafe81976c0cca081 | 69ba5e6c8397410a67129346d433117da73e4854 | /Read.py | 80b1c9f738704555b2a44a31b5b1997e53756062 | [] | no_license | maroianenasrellah/MFRC522-python | a4ddecd9599acfd4da0140cac448432ec115f677 | 162f43280ffa8ad89d9450f16a555afa649a6f80 | refs/heads/master | 2021-04-06T13:13:47.877368 | 2018-03-15T14:07:36 | 2018-03-15T14:07:36 | 125,376,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
import RPi.GPIO as GPIO
import MFRC522
import signal
continue_reading = True
# Capture SIGINT for cleanup when the script is aborted
def end_read(signal,frame):
global continue_reading
print ("Ctrl+C captured, ending read.")
continue_reading = False
GPIO.c... | [
"noreply@github.com"
] | maroianenasrellah.noreply@github.com |
a632be23299d850d9e5ea68478245d78528fac7d | 1db1eb9761a639a14185bddefd38f20f317a3846 | /MS_project_backend/google/quickstart.py | a625543227170dd64ef2b54dc3b05a4255eaebea | [] | no_license | atavera4/Smart-Surveillance-Project-_Backend | 02db02c8e0b21d821a36d61c868d704ddb3dd6e7 | 2c64b7873b944d9d06d57d8283a22430dc342f7c | refs/heads/master | 2021-06-21T20:55:08.898976 | 2017-08-26T21:25:52 | 2017-08-26T21:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | from __future__ import print_function
import httplib2
import os
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
try:
import argparse
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()
except ImportError:
... | [
"shadezeroat@gmail.com"
] | shadezeroat@gmail.com |
245ae97ad6a1378e1321ff246b20b6073791fbf7 | d30855895ee0c6ddaef493039dd0e0f1298eeae6 | /demo3.py | 05468c0c352ed93b62578658570a7927fdf16d41 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | Ezhil-Language-Foundation/open-tamil | f5f28463bff4400aa131b4a428e8f3e17aa63997 | 8ea745440f96fe587cf0959d12e990ad7923e60e | refs/heads/main | 2022-12-23T13:50:19.758812 | 2022-12-16T21:56:02 | 2022-12-16T21:56:02 | 14,263,826 | 246 | 72 | MIT | 2022-09-24T17:49:10 | 2013-11-09T19:48:48 | JavaScript | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
## (C) 2019 Muthiah Annamalai,
## This module is part of solthiruthi project under open-tamil umbrella.
## This code maybe used/distributed under MIT LICENSE.
from solthiruthi.dictionary import DictionaryBuilder, TamilVU
from solthiruthi.tamil99kbd import inv_confusion_matrix as kbd_cm
from solt... | [
"ezhillang@gmail.com"
] | ezhillang@gmail.com |
dc8c9b4ea75f3e8b25d8678b445eb24ee988d0e3 | c03c8d7363a3626b1178d241af3aa93a7b0b15e2 | /unidesign/transients/__init__.py | 3d50473e4a0abd9fdb247dd1784c2cc73cd211c5 | [] | no_license | luntan365/unidesign | 0c9aa82df215fcff6be32840709ea51588cad805 | ee24a7152d937d1b95c2bb67b3f050966850d50f | refs/heads/master | 2020-12-01T07:50:18.444676 | 2011-09-11T10:54:41 | 2011-09-11T10:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | """
Transient Dynamics for Neural Processing
Building Blocks
- Network N for the neuroanatomy with nodes representing neurons and edges representing connection weight
- A set of input pattern I extended in time, representing a spatio-temporal entity, thought of as the
activation of a subset of neurons that would be ac... | [
"git@unidesign.ch"
] | git@unidesign.ch |
ac6de3c65242858fd243ac9a16b29ad30476d158 | acde68a570c2fea640993449924aea8ba2ca4a9b | /Lib/site-packages/pip/_internal/index/collector.py | 14327ce1af8685304f26ccb2713d09a8768761ef | [] | no_license | nedimg071/Django_3_by_example_Chapter_1 | 211d4d0bc7a1470e16b7722e0896972838fb41b7 | 15d8a3057ebf9825b8e64670c9390a4c200e00dd | refs/heads/master | 2023-04-11T04:09:08.317170 | 2021-04-12T13:06:07 | 2021-04-12T13:06:07 | 355,130,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,876 | py | """
The main purpose of this module is to expose LinkCollector.collect_links().
"""
import cgi
import functools
import itertools
import logging
import mimetypes
import os
import re
import urllib.parse
import urllib.request
from collections import OrderedDict
from pip._vendor import html5lib, requests
from pip._vendor... | [
"nedimg@bih.net.ba"
] | nedimg@bih.net.ba |
5f36c264f3e710a59ce98235f2fe2af5d9e14332 | 9710db9720775495d3fbb5d2c109ca99bd52e9d8 | /image_mod2.py | 2c83f05e634b7fa2e1689897c7f698efca798fd3 | [
"MIT"
] | permissive | StepanPoghosyan/NumPy | e81c608352c26bbb5fb810a1a869475d5de8b41c | 98b20ed08f467c34612aa443e309c04e53e6b7af | refs/heads/main | 2023-03-10T01:15:02.381197 | 2021-02-19T05:19:23 | 2021-02-19T05:19:23 | 338,972,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import numpy as np
import matplotlib.image as mpimg
img = mpimg.imread("kitty.jpg")
print(type(img))
print(img.shape)
averages = img.mean(axis=2) # Take the average of each R, G, and B
mpimg.imsave("bad-gray.jpg", averages, cmap="gray")
| [
"noreply@github.com"
] | StepanPoghosyan.noreply@github.com |
1713d5332187e0cc6b8db9f9de6d7474cd575c0b | dafe0c744025da2cbaafc8383ca2f7075380a7a0 | /yaafe/src_python/yaafelib/core.py | 3749cf591dde2292f5c2dc87c5b3632a90094e86 | [] | no_license | aidanjohnson/EE-443-Final-Capstone | 890e45684add891b047095738bf7144eb38cab9d | f12b0c202244c89a9eed429b1fcda03f5aae8cb0 | refs/heads/master | 2020-03-17T15:06:31.522058 | 2018-06-14T17:51:22 | 2018-06-14T17:51:22 | 133,698,772 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,828 | py | # -*- coding: utf-8 -*-
#
# Yaafe
#
# Copyright (c) 2009-2010 Institut Télécom - Télécom Paristech
# Télécom ParisTech / dept. TSI
#
# Author : Benoit Mathieu
#
# This file is part of Yaafe.
#
# Yaafe is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License a... | [
"noreply@github.com"
] | aidanjohnson.noreply@github.com |
c8b50a4ce851208831a5c8b6a8a736c14b3424ee | ea0932ba09dffbf106f2510bb4a9be401cc147e5 | /graphics.py | aaa780fc00bf966c556a7a0cd0cbf8c92f4505bc | [] | no_license | henryhe1/tweetreader | 9c6d8bfda5d03715934a4f547fe708626cbe3c59 | c041b6df855a7be3f0e380d996f6ae5b497704d6 | refs/heads/master | 2021-01-10T10:39:47.055551 | 2015-11-18T17:07:01 | 2015-11-18T17:07:01 | 46,192,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,405 | py | # graphics.py
# (c) 2013 by Rance Necaise
# http://graphics.necaiseweb.org
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# ... | [
"henry_he@ymail.com"
] | henry_he@ymail.com |
df9444bb29a93e0916ada2e355c0a1121aed5edc | 38ecb8003cfa1f7b418d8c4ccd30d2a6262965c5 | /tfx_bsl/coders/sequence_example_coder_test.py | 45f5624302061620dc45922e576efd776832810a | [
"MIT",
"Apache-2.0"
] | permissive | dhruvesh09/tfx-bsl | ff5c89051516577ef76f9949c18b6e33071eaeff | 52f7aeab4a528ee81ae308534c9fcc1ce431d569 | refs/heads/master | 2021-12-04T11:20:53.374965 | 2021-08-27T22:53:20 | 2021-08-27T22:53:52 | 214,256,743 | 1 | 0 | Apache-2.0 | 2019-10-10T18:28:46 | 2019-10-10T18:28:45 | null | UTF-8 | Python | false | false | 27,863 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
cfd6b4137126ddc96e3d047fec0cc5d0e829c5b1 | 482d17be739503d4a5612bec89cac8f86ea62fe1 | /Session_3/3c_create_list.py | 072f645fc7514e7abf1bfb25429f3e001a21f0af | [] | no_license | python101ldn/exercises | 014976d1452f18008d4ea9b52ffe2919a228e1e0 | 504d99e9d11859f347fad2ec05867c81e5c6f051 | refs/heads/master | 2021-06-07T03:38:46.119736 | 2019-11-04T10:50:54 | 2019-11-04T10:50:54 | 116,511,663 | 1 | 1 | null | 2019-08-05T13:50:22 | 2018-01-06T20:00:17 | Python | UTF-8 | Python | false | false | 194 | py | # Build a list of 1-100 yourself using append and a while loop
element = 1
resulting_list = []
while element <= 100:
resulting_list.append(element)
element += 1
print(resulting_list)
| [
"agutteridge@hotels.com"
] | agutteridge@hotels.com |
523a6572bc48a5326a93e982133be5b30218128c | acf8fe77e599f8372adf4fc971012394715795d6 | /flask/EGG-INFO/enstaller/post_egginst.py | e91b753a7dca7f316b1ea217b327a33c095849ad | [] | no_license | shaheershantk/Blog-Engine-Using-Flask | 3e2f1457a59f282c336bbb63ff48171f938f5108 | 450e76a8bde0bd702d995fa7bb746ed920917f98 | refs/heads/master | 2021-01-01T19:42:03.401554 | 2014-11-10T15:01:08 | 2014-11-10T15:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | """
converts the old "__egginst__.txt" files to "egginst.json"
and "_info.json" files
"""
import os
import re
import sys
import json
import time
from os.path import abspath, isdir, isfile, join
def read_old(path):
d1 = {'installed_size': -1}
execfile(path, d1)
d2 = {}
for name in ['egg_name', 'prefix'... | [
"shaheer.shan@gmail.com"
] | shaheer.shan@gmail.com |
fda9be22f30a154d5abe56754b9f02059d1a50ff | 753f729f33a1b00a0a7f5c78d217cc4c609aee6f | /n17_ViewSetAndRouters/n17/wsgi.py | 8e8c18729c4e259cdf8ed2fa83301e9ba3ae37dc | [] | no_license | nayan-gujju/DRF-Code | 874114a861042d558112f1a8ec95daf1356d5493 | 6fb3fdd5dde352e7b6e3a7363da0e7a3057b1ede | refs/heads/master | 2023-08-06T12:42:23.551603 | 2021-10-06T11:34:54 | 2021-10-06T11:34:54 | 404,650,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for n17 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"nayangujarati007@gmail.com"
] | nayangujarati007@gmail.com |
d85a6204ffa3326cb6857ae0eb121b2ce33e07d6 | 86f8b94eb30b52b98685bb6ee5e2353c8e93d15d | /app/Utils/OssUtils.py | baf7a230faf389f7d1a8dfd7f20adaa8d11139b3 | [] | no_license | badandboy/flask_config | 8bdf272c1370534af9a0d7b778a6717fb4a5804f | a1ffdef2c2b5320cbfc00e2291ff5c6167f8063c | refs/heads/master | 2022-12-15T20:09:30.595623 | 2019-10-22T09:20:37 | 2019-10-22T09:20:37 | 216,772,589 | 3 | 0 | null | 2021-06-02T00:34:57 | 2019-10-22T09:18:33 | Vue | UTF-8 | Python | false | false | 940 | py | #coding=utf-8
import oss2
from config import AccessKeyId,AccessKeySecret,EndPoint,Bucket
class OssUtils(object):
def __init__(self):
# 阿里云主账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM账号进行API访问或日常运维,请登录 https://ram.console.aliyun.com 创建RAM账号。
auth = oss2.Auth(AccessKeyId, AccessKeySecret)
# ... | [
"curryliu@xiaoe-tech.com"
] | curryliu@xiaoe-tech.com |
e700ef5f1a4823bab86b81710c055665b29d1b9a | ecf7706ebf858b563c05b69eb7bd1240cd91f22f | /CV_Scripts/2_cDNAtoProtein.py | bac4dea0fcf23c079b181ccc41d21b51543b0453 | [] | no_license | ZhengJiaCode/Cryptic_genetic_variation | c70845ac18d8abb35196bf2febb2de566d21e031 | 398b5775e76ffde290c54d271ed8a263fe5e0155 | refs/heads/master | 2020-05-18T17:51:02.498803 | 2019-05-28T13:47:38 | 2019-05-28T13:47:38 | 184,568,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | #This program is for converting cDNA sequences of YFP molecules into protein sequences
import re
import sys
FileName = sys.argv[1]
SNPfile=open(FileName,'r')
SNPline=SNPfile.readlines()
newfile="2_aa_"+FileName # create a new file for writing data
openfile=open(newfile,"w")
codon={'GCT':'A','GCC':'A','GCA':'A', 'GCG... | [
"noreply@github.com"
] | ZhengJiaCode.noreply@github.com |
69bcb14613b73a6d205612ce74dc21c63bac8833 | ab829d37a37a048a8170aff2ba20242e0735b24f | /management/ploter.py | e7901242724e64e9811598d4c7a6b72dfcd0ed6d | [] | no_license | roeyashernielsen/eeproj | 47e67cfa18d566df5491ec4232bcef302e2f06d0 | 4c5b4f17a13e86baa8a57b7ce986c1028b0fd86a | refs/heads/master | 2021-01-21T15:07:20.852988 | 2016-06-29T21:21:20 | 2016-06-29T21:21:20 | 58,830,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | from pylab import *
import matplotlib.pyplot as plt
from datetime import datetime
import time
from matplotlib.dates import DateFormatter, WeekdayLocator, HourLocator, \
DayLocator, MONDAY
from matplotlib.finance import _candlestick
import pandas as pd
def plotTest(df):
mondays = WeekdayLocator(MONDAY) ... | [
"roey.asher@nielsen.com"
] | roey.asher@nielsen.com |
a41def6a23f404b4cc471342fface1cd38551c6b | bbd65a48e9fb340b29f39082483680969d6e2571 | /python/misc/double_letters.py | 3c887a4d9ac46b613773398829e3c96f93bf0139 | [
"MIT"
] | permissive | christopher-burke/warmups | 2784eef3b959bca5c270b3e642b505f3b4c0b790 | 140c96ada87ec5e9faa4622504ddee18840dce4a | refs/heads/master | 2022-05-24T11:26:40.046650 | 2022-03-28T16:47:16 | 2022-03-28T16:47:16 | 152,440,792 | 0 | 0 | MIT | 2022-03-13T03:25:43 | 2018-10-10T14:51:43 | Python | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/env python3
"""Double Letters.
Create a function that takes a word and returns true if the word
as two consecutive identical letters.
Source:
https://edabit.com/challenge/q3JMk2yqXfNyHWE9c
"""
import re
def double_letters(text: str) -> bool:
"""Determine if text contains two consecutive identical l... | [
"christopherjamesburke@gmail.com"
] | christopherjamesburke@gmail.com |
39ea22a4768dbea49a1e239f84a2233863732791 | ceb2bdb5df5a6d988ce71594c7eb9825bc558b7a | /get_wall.py | e054352ada268553877a460caef841f779ffa3f2 | [] | no_license | bclyons12/C1py | 1a3901bebff3b8950ac15c7568f770f394d32b5f | 6e4b75f8a5d9ee7de718627ff0fb6338b5a40101 | refs/heads/master | 2023-01-08T21:57:46.516896 | 2023-01-05T00:09:10 | 2023-01-05T00:09:10 | 51,472,581 | 1 | 0 | null | 2023-01-05T00:09:11 | 2016-02-10T21:12:37 | Python | UTF-8 | Python | false | false | 6,142 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 16 19:59:44 2016
@author: lyonsbc
"""
from numpy import array
def get_wall(machine='diiid'):
if machine is 'diiid':
Wi= array([[ 1.0163 , -0.4914 ],
[ 1.01631964, -0.57601945],
[ 1.01635891, -0.74525834],
... | [
"lyonsbc@irisd.cluster"
] | lyonsbc@irisd.cluster |
75ad74f6d506bc120e99ee767e0028402f3c0bfa | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/elf/ElfStringTable.pyi | eb2f888abcb4090c19e2aa10f46f1b875549534a | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,508 | pyi | import ghidra.app.util.bin
import ghidra.app.util.bin.format
import ghidra.app.util.bin.format.elf
import ghidra.program.model.data
import java.lang
class ElfStringTable(object, ghidra.app.util.bin.format.elf.ElfFileSection):
ASCII: ghidra.program.model.data.DataType = char
BYTE: ghidra.program.model.data.Dat... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
e2276b4282bb15a7c70c965fe65a6cf6a28546e2 | c0fcc8dc9b8e503d87048023c2b034d1ac7d7ca0 | /WaiQin/frame/screenshoot.py | 2982ab36bbc5b313923ec4215b12fabd14a87166 | [] | no_license | testwangchunping/Selenium_Python | 5299d1a9ac536032e7ed8c733d161b58a2d4a1e7 | 3bad1b46b42dc8c6a0d6e0870df6ce51df010c7a | refs/heads/master | 2020-04-01T22:30:19.570354 | 2018-11-09T07:36:42 | 2018-11-09T07:36:42 | 153,712,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # 该方法用来截图的,文件命名imgname
def get_window_img(self, logger, img_name, num):
img_path = './Screenshots/' + img_name + str(num) + '.jpg'
print(img_path)
try:
self.driver.save_screenshot(img_path)
logger.info("已经截图并保存在:/Screenshot目录下")
except NameError as e:
logger.error("保存截图失败!%s" %... | [
"498361658@qq.com"
] | 498361658@qq.com |
03a2f87742c090a4613bd15f441906eeb005ebc0 | 3be717f7de91b0aa21b5b9ecfade199d6a03497d | /superset/reports/models.py | a13ded622374365b28b954a443ca585e6d260d65 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | PartyCo/superset | c447854a3bb6d7896ae328a66b092f01d37315ac | 341b8d41c5ba15c3617a61a92779b670c4ece43d | refs/heads/master | 2023-08-31T11:01:02.722862 | 2023-07-21T00:24:35 | 2023-07-21T00:24:35 | 341,836,235 | 0 | 0 | Apache-2.0 | 2023-07-21T19:42:29 | 2021-02-24T08:50:47 | TypeScript | UTF-8 | Python | false | false | 7,140 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | PartyCo.noreply@github.com |
50c2ad02cfdce5fb90ef693cbcdf660ab9d3d9d5 | 8973d11a8446fb72f26d04debe9b30b878a5c025 | /users/migrations/0002_auto_20200503_0258.py | 56b61a6a40faa952d580fcc1a900dc89f83328d4 | [
"Apache-2.0"
] | permissive | royaleagle-dev/flinch | 766e213e216937852e0d5d115c528b74c526c58b | 789262cc207b3fa10ab6882ef8aa72ab368bee85 | refs/heads/master | 2022-07-20T08:26:38.866796 | 2020-05-16T05:08:05 | 2020-05-16T05:08:05 | 260,341,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 2.2.7 on 2020-05-03 01:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='totalCart',
),... | [
"royaleagle.dev@gmail.com"
] | royaleagle.dev@gmail.com |
5090c8edb41dd21c39932a48122aec90d02656ff | 58d42eaadd2dc30b0dc3f150cbe6abc009f40d01 | /trade_conf.py | 3e8cac0e6c5ab42d0f2858cd0e08356fc5f3ca8b | [] | no_license | confiself/highfre | 2bc7fc94ab3f8589c66fea72fa5c65205f318802 | 121cb8768e6d35984103139e2415d9f932e7e5b4 | refs/heads/master | 2021-05-01T06:05:14.354803 | 2018-03-05T04:03:18 | 2018-03-05T04:03:18 | 121,134,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #! coding:utf-8
class TradeConf(object):
def __init__(self, trade_env):
if trade_env == 'test':
self.api_key = "euYaAVNoDkTOnuJbIzdkbm2it"
self.api_secret = "0EuDEoejFvYVPdFk5QlzCJGYM_u-nV1vB1aIstsLi697h_Ndt"
elif trade_env == 'product':
self.api_key = "mW5LZgi... | [
"confiself@icloud.com"
] | confiself@icloud.com |
cff22fa042836ec8c8c130601397af3987f80e29 | b8ee9a391ef474a6bf80edcb609c5d47841056ee | /analyzer.py | 9f99f311cfae8862af246efb29922d0fb2119b94 | [
"BSD-2-Clause"
] | permissive | Shardey/analyzer-thesis | ad0639e327f11dbeb1b9de1d2b5e81a1f589e641 | 9d91a1b1ed24d3a818807422ea140b4745d9566b | refs/heads/main | 2023-04-25T04:01:58.983460 | 2021-05-17T06:54:11 | 2021-05-17T06:54:11 | 367,798,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | import os, glob, sys, csv
from os import listdir
import grouper, plotter
import multimetric.multimetric as mm
#####
# main()
#
# The main control sequence for the whole Analyzer project
# Needs exactly one command line argument, the name of the directory where all the data is located.
# Will wr... | [
"noreply@github.com"
] | Shardey.noreply@github.com |
266c35f2896ab720eb79287c6a05ad535120aca1 | 968571c135957d23a8ce263237876cf1ac7d20d2 | /project/urls.py | 2b3548db249a486fe61b574c9dac4b90a28418b1 | [] | no_license | azam-mamatmurodov/django-simple-chat | 8f1f572aa2c510aba91389e193cfcce8f338bbac | 415a0ef3b06606825899d3a2021559fd039d6d50 | refs/heads/master | 2022-12-24T12:22:41.908613 | 2018-03-21T08:15:20 | 2018-03-21T08:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"azam.mamatmurodov@gmail.com"
] | azam.mamatmurodov@gmail.com |
b7044d0662504d59b77b29979428fa9a0beec204 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_Pandas_Numpy/source3.6/tensorflow/contrib/rnn/python/ops/gru_ops.py | 75536e3f5f8cbe44231f19d4d455537e654f7a08 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 7,762 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
e0864387271e4c2b6c1d284724b0f5f7c123750c | ebd0106f9aa022985b102e2e2125ace9413708e1 | /Part 1 - Data Preprocessing/data_preprocessing_total.py | 29a4f3df69537dadc28ac681d87fd2c60df1f789 | [] | no_license | issei-harada/Machine-Learning- | 7ca34d85e1036b4731d3c67c7f0ca7882569d93e | e9dc8e8b7cbcbae8476203a0280e57a73c2d225f | refs/heads/master | 2020-04-22T18:27:19.272244 | 2019-04-11T13:10:31 | 2019-04-11T13:10:31 | 170,577,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | # Data Preprocessing Template
# Importing the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Importing the dataset
dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, -1].values
# Splitting the dataset into the Training set and Test set
from sklear... | [
"noreply@github.com"
] | issei-harada.noreply@github.com |
38034d4b43825b5827ae3ba091d989e80b8d13c5 | 31897bfcff4f3ecd8ed5d97510c4bd4ed5f3ef46 | /bit_manipulation/binary_or_operator.py | 7bf40f49decdaee95dcab8013857f5795bab268c | [
"MIT"
] | permissive | julianhasse/python-algorithms | 41d46d980c766e054e07f830f19fab1d4838a97a | 91c0311902e72606fdc29ce1bc37169c687e7d1a | refs/heads/main | 2023-09-02T21:22:35.966232 | 2021-11-18T17:56:30 | 2021-11-18T17:56:30 | 429,528,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | # https://www.tutorialspoint.com/python3/bitwise_operators_example.htm
def binary_or(a: int, b: int) -> str:
"""
Take in 2 integers, convert them to binary, and return a binary number that is the
result of a binary or operation on the integers provided.
>>> binary_or(25, 32)
'0b111001'
>>> bi... | [
"info@julianhasse.com"
] | info@julianhasse.com |
7e53d9ca6d96aafd543c47c2480508fb53a30c36 | 70913c6a564ad7784e63a435ef0849d28344fae9 | /TiposDatos.py | f7480b2b265dbb628d4f5c5a20f5603e2a38caf8 | [] | no_license | juanjogonzalez/CursoPython | 6a29a2883fd6c911d9d5133bfd8a1427e663824f | 19543ad79b3a2c30d8d6aa9e18afe8de2746c96f | refs/heads/master | 2020-05-16T22:27:26.021931 | 2019-04-25T02:00:44 | 2019-04-25T02:00:44 | 183,336,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #strings
print ("Hola Mundo")
print ('Hola Mundo')
print ("""Hola Mundo""")
print ('''Hola Mundo''')
print ("Hola" + "Mundo")
print (type ("Hola Mundo"))
print (type (100))
#integer
print (30)
print (type(30))
#float
print (30.5)
print (type(30.5))
#boolean
True
False
#list (variables)
[10, 20, 30, 40]
['Hola', 'a... | [
"jjegonzalezf@gmail.com"
] | jjegonzalezf@gmail.com |
3dabd504782ff4792558612431a1c347e12dcf99 | 205a01bcf92099a7941e4c3444d869b1ae92961e | /mod/imageloader.py | b1caf31f4b7708a15cb69907816b6e0b34894e17 | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | DarkKirb/poyobot-old | d22d5759a9eaca3c65ff36a5fc3728e2bf5d555c | 2b0a7d7dc57bd09a5dd91f863de7003abcef38bd | refs/heads/master | 2021-09-15T10:31:37.974148 | 2018-05-30T16:57:59 | 2018-05-30T16:57:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | """This module is a library module that makes modules able to take images from
certain sources, like for example embeds, uploads, links and channel history"""
from utils import Cog
import discord
import aiohttp
from PIL import Image
import io
__author__ = "Dark Kirb"
__license__ = "BSD-2clause"
__website__ = \
"h... | [
"darkkirb@gmail.com"
] | darkkirb@gmail.com |
6a74c2405ff8cb911a6c7988656671ba8bbfff7a | 2634c4a0621d865e61f59b11102172a670bc241e | /agencija/nekretnine/migrations/0019_objekat_construction_year.py | 060304aa1efc915e5522650f0d46976eb294f44d | [] | no_license | danijelap/global | d4d2a6bffe6af318d8b4a7dac20fb2fb14c61e2c | 643b318da4e54fc92aed068df240144fe84dc0ae | refs/heads/master | 2021-01-01T18:54:49.405125 | 2015-11-13T22:08:25 | 2015-11-13T22:08:25 | 23,630,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('nekretnine', '0018_auto_20150627_1122'),
]
operations = [
migrations.AddField(
model_name='objekat',
... | [
"dprokic@gmail.com"
] | dprokic@gmail.com |
6d78cb4e690e54c41470accfc57a37d54d557d9b | 7002919119e429faac734099bb18d75047e49673 | /data/course/migrations/0002_auto_20201012_1724.py | 7a34d9c9167def4aad8410dc81a0960926d33509 | [] | no_license | Polydelta-ai/competency_model_prototype | 47f86353a4157f68f8e3a6fd961223bd81fa3c23 | 8162ec6df5679143e3f3165a3779c1619f9c925f | refs/heads/main | 2022-12-30T19:21:41.044344 | 2020-10-14T11:09:37 | 2020-10-14T11:09:37 | 301,813,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # Generated by Django 3.0 on 2020-10-12 21:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='course',
name='groups',
),
... | [
"adrian@webb.sh"
] | adrian@webb.sh |
d23e874e9eabdc1c03da429ff5ce34651f8bdb90 | 369f8d32824677082567ef4434332646f7669639 | /textcontrol.py | 3052bceef0d0c2c057a29980b3e7987c80ee56c5 | [] | no_license | jakeparmstrong/pythonEdu | c4a530cfdc2f36f24df6ca7b3d7272ebf610769e | 4e056f0e57517f81b11e31fd061bd442513494bf | refs/heads/master | 2020-03-28T14:53:40.692022 | 2018-09-14T17:39:42 | 2018-09-14T17:39:42 | 148,533,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import blinkt
import time
import random
def colourset():
global red
global green
global blue
red = random.randint(0,255)
green = random.randint(0,255)
blue = random.randint(0,255)
blinkt.set_brightness(0.1)
sihd = input("Enter seed: ")
random.seed(sihd)
colourset()
#def cont
lNum = 1
while ... | [
"jacob.armstrong@windriver.com"
] | jacob.armstrong@windriver.com |
211a3096380086ab0ab13420672bd42a9486c4f1 | 5a56d9170661e49fa0b3034e5f91cf0f0ebe80c1 | /flucoma/dataset.py | 806b3af061c0411fcd5e86bc2fd272ce2c386771 | [
"BSD-3-Clause"
] | permissive | inegm/python-flucoma | e2d894de19183e7ffc6cd2710d95fda1c1b20214 | f37fd95f744cd703cf7125d0d390690fd72c443d | refs/heads/master | 2022-12-30T11:11:12.465757 | 2020-10-22T15:41:33 | 2020-10-22T15:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | from .exceptions import DatasetPointError
def pack(d: dict):
"""
Reformats a dictionary into a fluid.dataset~
Two things need to be true for this to work
- The keys are max compatible symbols for datasets
- The values in the python dict are flat and can be unpacked with a single iterator
"""
... | [
"jamesbradbury93@gmail.com"
] | jamesbradbury93@gmail.com |
d3d4ebf26271074765aec8135bf24c7a705a1c09 | fdd8e908cb75e3b7c96b4a609e75e536c225e4eb | /07032019/xd.py | 86c87ba9386d1c427957d8b0b1d60f7e00a225b7 | [] | no_license | edgeworthZ/first_year_log | bbaef850a1ccb2a0e3da63461aefc23bf4de19c8 | fba2ecf8c0b1a825f1f77b069a2063ce02880394 | refs/heads/master | 2022-03-06T03:49:47.072042 | 2019-10-28T13:11:36 | 2019-10-28T13:11:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | a = 1
b = 0
n = int(input('Enter n: '))
if(n <= 1):
print(1)
else:
for i in range(2,n+1):
tmp = a
a = a+b
b = tmp
print(a)
print(a)
| [
"noreply@github.com"
] | edgeworthZ.noreply@github.com |
b082b3c7ad5a4453378668650eaa7575368881ca | bbbc0e8660cf32334ff5156d974c59e9936b5fa2 | /aliyun-python-sdk-workbench-inner/aliyunsdkworkbench_inner/request/v20210121/InnerGetSolutionRequest.py | d5c15d8ea09248a0672e2c3c739550bddb972c1d | [
"Apache-2.0"
] | permissive | stevenQiang/aliyun-openapi-python-sdk | a201062ec1df0df44e4f540e1ae11ef35ce5eb12 | a7e33abb4af88674be42d45db821a173c3a9dc60 | refs/heads/master | 2023-06-21T07:29:18.142415 | 2021-07-13T07:52:54 | 2021-07-13T07:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
c597f6e8d424b52d5b5490852d3c73d4fa802c6c | de2cc7050f7dd5053ef8eb59d1fb1464c26fef6c | /14.py | a40b69aa71c1e6673c2b96fafa046850d63eb5c9 | [] | no_license | Den44/MDS | e37870eaa21b6538ce1e95d754f25f10d26b0458 | 40a310e0d80280d5642160cda29a4b15eef9563f | refs/heads/master | 2020-03-21T03:32:02.145214 | 2018-06-20T16:38:03 | 2018-06-20T16:38:03 | 138,059,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import datetime
def printTimeStamp(name):
print("Марчик Денис: " + name)
print("Час компіляції: " + str(datetime.datetime.now())) | [
"noreply@github.com"
] | Den44.noreply@github.com |
7a1b5c254f2039f7688e3d63b249d583379fc3a5 | 00024bbfef2e06c3bb93b55a91d443fea08d7ae9 | /stones.py | a8ed84482f7cd804dd3f9eba0a6870e15b41707e | [] | no_license | hasanseam/CookingFuture | 5b40fef2194198551199978495a23a0df34269b4 | 8248d8915e9b13f6fe40f77b6ea029e29546323d | refs/heads/master | 2022-04-27T01:22:44.365011 | 2020-04-28T13:22:19 | 2020-04-28T13:22:19 | 248,551,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | testCase = int(input())
def split(word):
return list(word)
def getResult(jewels,stones):
result = 0
for i in range(len(stones)):
if stones[i] in jewels:
result +=1
return result
for i in range(testCase):
jewels = input()
stones = input()
jewels = split(jewels)
... | [
"hasanseam37@gmail.com"
] | hasanseam37@gmail.com |
8d61d262ed2d32d78b76380c88292faa89d7ea96 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_0859_test.py | e3bbec9126ee000bf0fd91d4a9fcfd15bf56912b | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 1,291 | py | #coding:utf-8
"""
ID: issue-1249
ISSUE: 1249
TITLE: Sorting is allowed for blobs and arrays
DESCRIPTION:
NOTES:
For now we test that such operations raise an exception, as we restored the legacy
behavior until we're able to implement DISTINCT for blobs properly,
JIRA: CORE-859
FBTEST: ... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
7b47149e87427e02f6a86782933a5567b38085b9 | adc816688421032d4defa733ca5cb6e80f4ef6d3 | /main.py | 703dbffd33a607e4a311fa6f6f65a480e621d68e | [] | no_license | khmrmtl/Breakout-game | 39c3c6f6b5fbbc09408f2d2d4ec6da4277e77240 | 7c7404b1e799735bfaabb2d7acf8cd9b810af774 | refs/heads/master | 2023-08-29T22:13:13.466834 | 2021-11-09T12:42:22 | 2021-11-09T12:42:22 | 426,224,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | from turtle import Screen, Turtle
from paddle import Paddle
from ball import Ball
from block_manager import BlockManager
import time
screen = Screen()
screen.bgcolor("black")
screen.setup(width=800, height=800)
screen.title("Pong")
screen.tracer(0)
screen.listen()
def start_game():
screen.resetscreen()
padd... | [
"motalkhmer@gmail.com"
] | motalkhmer@gmail.com |
32e255b02a850c3797fb6ce4ce7aaf522117092a | 61bc31419d212e9be092e4b8f25c86126023b1bf | /main.py | 69bfe62d27a639f241de78013b655a034d75df48 | [] | no_license | jmosbacher/SRMControl | 9054981de22cce4158c4d9da5083064e5cb43646 | 08738eb07035def95dbd3da75e7d4f0df07614d9 | refs/heads/master | 2020-03-23T15:01:42.449894 | 2019-03-01T13:05:19 | 2019-03-01T13:05:19 | 141,715,681 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,762 | py | from traits.api import *
from traitsui.api import *
import os
import cfg
from devices import BaseDevice
from experiments import BaseExperiment
from manual_controls import BaseManualControl
from global_states import BaseGlobalState
from saving import CanSaveMixin, SaveHandler
from microscopes import SuperResolutionMicro... | [
"joe.mosbacher@gmail.com"
] | joe.mosbacher@gmail.com |
637f4cdda3088cd51fe58b0ba3e2a3319a5153f6 | 10f88b34a19c1493a34f6e878acceab5691d29cf | /mysite/mysite/settings.py | fafbb1c53ed4555e7d97bcc80a4fa8511632ee77 | [] | no_license | Hetklif/my-first-blog1 | 01711f34f4846cc5c735919b78df9c89cce733d2 | 65036d4cb1293bb4be1d75e545b92a7f4fc74596 | refs/heads/master | 2020-04-02T06:41:33.319689 | 2018-10-31T14:38:02 | 2018-10-31T14:38:02 | 154,163,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"denis10.ru@mail.ru"
] | denis10.ru@mail.ru |
ad4b2dc8435b7049cde996a489f1a5cd634e4b65 | 61050d0d7f0c0a60474e4e85d30be4e5ea7c6b04 | /vnf/scripting/itask.py | 7ce7e28ed7a4fa2376510dad889f520aecf393de | [] | no_license | danse-inelastic/vnf | 8173f06f32b4a2fa2b71fddfe0fecf9c19e05e9a | be989448577f14f424aca4ce852c7198304ca57b | refs/heads/master | 2021-01-22T01:06:00.294100 | 2015-05-02T23:25:45 | 2015-05-02T23:25:45 | 34,947,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
cea8c224866762cf273604c47dbc87de6565910e | bb1be75786182b0bb32fef3fa714a23dbc43dfcb | /examples/dummy_plugin/dummy_plugin/filters.py | ad742422974f82303695c856784b6f537559778c | [
"Apache-2.0"
] | permissive | hellerve/nautobot | ebe6434886af7690f065a04aa942f98d26b458aa | d441b2d92415bd3122fe86ea21544d0acd98e95a | refs/heads/main | 2023-08-15T12:32:33.664162 | 2021-08-05T15:01:21 | 2021-08-05T15:01:21 | 393,108,739 | 1 | 0 | Apache-2.0 | 2021-08-05T16:27:42 | 2021-08-05T16:27:41 | null | UTF-8 | Python | false | false | 658 | py | import django_filters
from django.db.models import Q
from nautobot.utilities.filters import BaseFilterSet
from dummy_plugin.models import DummyModel
class DummyModelFilterSet(BaseFilterSet):
"""API filter for filtering dummy model objects."""
q = django_filters.CharFilter(
method="search",
... | [
"noreply@github.com"
] | hellerve.noreply@github.com |
2479ad9224634b64ffc8affb35faf265ee886621 | 69ba30d3ad71a03f4d7ed9316a626e8c665fda9f | /getStatuses.py | aad86562a72d728594812b7d7cbe3459c273ed3e | [] | no_license | roryg/babbot | 82c3b1294346a867e64282452cb350271954ae45 | 9e9ea40bc3aa6011e6721b5435d87f0127c9aa72 | refs/heads/master | 2020-12-26T04:56:28.481169 | 2016-08-09T22:02:16 | 2016-08-09T22:02:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | #https://gist.github.com/yanofsky/5436496
import tweepy, config, chainer, redis, ast, random, time, compose_tweet,config
r = config.r
api = config.api
def getAllUserTwits(user_name):
twitlist = []
print user_name
for status in tweepy.Cursor(api.user_timeline, screen_name=user_name).items():
twitlist.append(statu... | [
"jkerxhallik@yec.co"
] | jkerxhallik@yec.co |
2fff95ad35d4750c0f252bec287ab1350c4b2898 | 7b9e281227bdca23be66c4ebe710dc9b9c754924 | /2sum.py | 3ff095336bcf1658a3ece602b3139d71429de07d | [] | no_license | sdamico23/Rosalind | 8166f8c3f7c06f66941d6fb5af159ab7f2f91367 | c2f6a8f5a5e8476d2cd5ef5cdeee2abd2945796a | refs/heads/master | 2022-07-18T20:20:08.246294 | 2020-05-21T14:18:24 | 2020-05-21T14:18:24 | 265,867,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | def get_edge(inputFile):
edge = inputFile.readline()
edge = edge.split()
u = int(edge[0])
v = int(edge[1])
return (u, v)
inputFile = open('rosalind_2sum.txt')
numArr, arrLen = get_edge(inputFile)
def twoSum(numArr):
outputString = ""
for i in range(numArr):
list1 = i... | [
"noreply@github.com"
] | sdamico23.noreply@github.com |
f953387192ad4b6709f38021023a8739e849e939 | 3ed70536d4d06b2ac43b64976ddc43a5d7025b31 | /uri2253.py | 06119c5d13870da281433a9120affdffd464344a | [] | no_license | LuisHenrique01/Questoes_URI | 7f1d397e3cd055349939184603eb86cb4bf43d65 | 35c8e77eb7cd9da96df4268b5d71f3ad87446c89 | refs/heads/master | 2020-07-22T08:12:12.700484 | 2020-04-12T17:39:29 | 2020-04-12T17:39:29 | 207,126,339 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | def main():
while True:
try:
senha = input()
num = False
ma = False
mi = False
eh_l = True
if len(senha) < 6 or len(senha) > 32:
print('Senha invalida.')
else:
for i in range(len(senha)):
... | [
"luizbueno1201@gmail.com"
] | luizbueno1201@gmail.com |
a816c19fa5b5172bfd44052eb8567f8d8c3dcda0 | a74ac4077f24bc850d62a91a5db2cd6230b6c7b2 | /selenium_test/login.py | 57f1b95700331703faefca4c655c51bedc5123ce | [] | no_license | TobiasDing/auto_test | 7cd5d3d3eadd2b7d5e64c38ef4f63ad1560e513c | eb05ade5338214a21817caff2f7729c8a51a1790 | refs/heads/master | 2022-12-22T19:28:07.861448 | 2020-09-26T14:07:51 | 2020-09-26T14:07:51 | 298,827,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from selenium import webdriver
import time
url = 'https://www.douban.com/'
driver = webdriver.Chrome()
driver.get(url)
driver.switch_to.frame(driver.find_elements_by_tag_name("iframe")[0])
time.sleep(2)
login = driver.find_element_by_class_name('account-tab-account')
login.click()
time.sleep(1)
# name_login = driver.f... | [
"dingweiqi@DingweiqideMac-mini.local"
] | dingweiqi@DingweiqideMac-mini.local |
5d1b818b61648ef3d51856d0d9fcc4c3ae29414c | 1274ef8843cae5488c2a1ea98293f5467b90963a | /examples/developer/switch.py | 95dec183c9275106cf524ee1ebd5643109038621 | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | carrilloec12/tulip-control | a9854758f78bd4b008fe8358733a4f8bebb42ffb | 8955f63d1d1bbd3a96f469718dde49454b275fd5 | refs/heads/master | 2021-01-12T12:22:48.115000 | 2016-09-18T06:37:33 | 2016-09-18T06:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | """
Simple example with uncontrolled switching, for debugging
6 cell robot example.
+---+---+---+
| 3 | 4 | 5 |
+---+---+---+
| 0 | 1 | 2 |
+---+---+---+
"""
from tulip import spec, synth, transys
import numpy as np
from scipy import sparse as sp
sys_swe = transys.FTS()
sys_swe.env_actions.a... | [
"jfilippidis@gmail.com"
] | jfilippidis@gmail.com |
e5b3b507e9fa57753b9a2e6d8e08d05cc8cbe038 | ce20062fedae07a1f0ea00a7e5ab0b86e05ebe69 | /pytests_stale/cbas/cbas_sql++_composability.py | 0c58a774b01ed031c02d263c49c8a3c878c82beb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AnithaKuberan/TAF | 256f9ee850275be5461e4d19a671c9dd19edb9f5 | 9824c6a4f1680c320ab065e23c720ffa92d530d9 | refs/heads/master | 2022-03-18T16:17:08.876692 | 2022-03-03T09:57:52 | 2022-03-03T09:57:52 | 206,016,123 | 0 | 0 | Apache-2.0 | 2019-09-03T07:30:18 | 2019-09-03T07:30:18 | null | UTF-8 | Python | false | false | 3,323 | py | '''
Created on Mar 8, 2018
@author: riteshagarwal
'''
'''
Created on Jan 4, 2018
@author: riteshagarwal
'''
import json
import os
import time
from cbas_base import CBASBaseTest, TestInputSingleton
from lib.memcached.helper.data_helper import MemcachedClientHelper
from membase.api.rest_client import RestConnection
... | [
"ritesh.agarwal@couchbase.com"
] | ritesh.agarwal@couchbase.com |
3ecf76dc590fa4d71e44167e7e5a8394f6b1dfca | 879e448954035ebad671cffe0ec999b6942fc227 | /model/model.py | d40661a34fc7a2a81f42f32ab522b7cfba15c89e | [] | no_license | namkhanhtran/dycer | 2456523f9f3adfebf3dd517926596fb0c07316dc | 35b719542c27f9015c643290e84a288f658ddf81 | refs/heads/master | 2021-01-10T06:52:49.169474 | 2016-12-21T16:06:30 | 2016-12-21T16:06:30 | 44,737,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Context(object):
"""
This class contains tuple (text,date) representing
for context part in the query
"""
def __init__(self, text=None, date=None):
self.text = text
self.date = date
class Query(object):
"""
The implementa... | [
"khanhtn09@gmail.com"
] | khanhtn09@gmail.com |
9eab2697aa461aa64c7d4d36bb6a56ea7a48521d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_brands.py | 764cf25e586cb39ea7275ee9a182cbf0ea77c8e2 | [
"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 | 218 | py |
#calss header
class _BRANDS():
def __init__(self,):
self.name = "BRANDS"
self.definitions = brand
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['brand']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4442650d2b0ac9876cbe16dfefbd8da9b62c12e5 | 089c1795b0ea346e644289113e6d645f929649de | /extraResources/electron-backend/utils/toc/get_toc_page_number.py | 3754ba9c6f50b2570b465043401ddeb7234dc2f8 | [
"MIT"
] | permissive | vilaj46/ad1-ad2-briefs | 954054c5a212fd3bc541e78a2f60b1b36138a6d7 | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | refs/heads/master | 2023-07-20T02:10:53.864916 | 2021-08-31T15:45:28 | 2021-08-31T15:45:28 | 297,172,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from classes.Table_Of_Contents import get_my_toc
from classes.Brief import get_my_brief
def get_toc_page_number():
BRIEF = get_my_brief()
original_text = BRIEF.data['originalText']
page_number = False
tables = ['TABLE OF CONTENTS', 'Table of Contents', 'TABLES OF CONTENT',
'Tables of Con... | [
"vilaj46@gmail.com"
] | vilaj46@gmail.com |
056a5a7fd69c9b3926985847bd9c38c278137345 | c885e1ca19bb24f167f5284c020673246a0fc260 | /synthesis/experiments/cnf_batch.py | f60be95380335a8023939af372da650722d5b95b | [] | no_license | suomela/counting | 6c800a2c9c56c44d0b8aac8117c79c78e6b92d8b | 5a9f96f6cabdbb54d2cd24da014aff31f4baf05d | refs/heads/master | 2022-02-25T23:07:03.078165 | 2022-01-27T19:08:49 | 2022-01-27T19:08:49 | 9,413,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #! /usr/bin/env python
import os.path
import sys
PATH = sys.argv[1]
SOLVER = sys.argv[5]
SEED = int(sys.argv[4])
RANDOM_SEEDS = int(sys.argv[3])
PREFIX_PATH = sys.argv[2]
from batch import *
def cmd_out(**params):
prefix = "{path}/n{nodes}-s{states}-f{faulty}-t{time}-{cyclicity}-{id}-seed{seed}".format(path=PRE... | [
"jukka.suomela@iki.fi"
] | jukka.suomela@iki.fi |
410aefd86f11913bec8ddea1c05f6bca9dbc6a24 | c10edd3fa877232f9a28327d4cfd4a4c0675181a | /pictures.py | 0f071a5a6fb505a842dbdefef381660dc9358c58 | [] | no_license | itay951/last_project | b97d7ec5948f5e4b23a68cced90b84ee8f82d17e | 4aee3e788d7db6cbdae9a0d8bed4011e7d52d107 | refs/heads/master | 2020-11-27T13:35:08.178098 | 2020-05-31T09:36:32 | 2020-05-31T09:36:32 | 229,464,266 | 0 | 0 | null | 2020-05-30T20:00:44 | 2019-12-21T18:00:24 | Python | UTF-8 | Python | false | false | 20,381 | py | import pygame
import ctypes
import os
from List_Object import *
pygame.init()
user32 = ctypes.windll.user32
place_win = (0, 30)
os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % place_win
class pictures:
# colors
Black = (0, 0, 0)
Grey = (211, 211, 211)
White = (255, 255, 255)
# sc... | [
"noreply@github.com"
] | itay951.noreply@github.com |
b68b322e105855c7b3d0e1337b5c91c2592fa778 | 8a9294e18eb2c91d1cb38e3727c4139d4328ab9e | /scrapeScenes.py | 379e4f7a095d0e9c0efa0206e796576ba390b16f | [
"MIT"
] | permissive | hyde231/stash_theporndb_scraper | 88ffe6c3fc587bda66352bd7c78d76b8098fdc8d | 4d50311369a23884a8d18d4bcc3a2725d213b5cc | refs/heads/master | 2022-11-04T22:24:31.390112 | 2020-06-25T19:46:05 | 2020-06-25T19:46:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,648 | py | import os
import requests
import json
import re
import urllib
import sys
import base64
import math
import logging
import argparse
import traceback
from datetime import datetime
from io import BytesIO
from urllib.parse import quote
from PIL import Image
from requests.packages.urllib3.exceptions import InsecureRequestWar... | [
"fakeinbox@gmail.com"
] | fakeinbox@gmail.com |
34d2fc4a840a02f8646dcc1a23a0e36187588c06 | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /longest_common_subsequence.py | aa5fed409ca1f399f6f93be3e79b73ae04292dfd | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | #longest common subsequence kata
#https://www.codewars.com/kata/52756e5ad454534f220001ef
def lcs(x, y):
x = list(filter(lambda x1: x1 in y,x))
y = list(filter(lambda x1: x1 in x,y))
if [] in (x,y):
return ''
elif x == y:
return ''.join(x)
else:
both = [x, y]
lens = [... | [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
56f4aa1fac68ae607b647d5e6fbc8b7e2273b221 | 393a393bb593ec5813aa16a96384a62128eed643 | /ocr/src/processor/utility/common.py | a2e4d435f20872df95db8efa7de86379206bf01a | [] | no_license | normanyahq/kejinyan | 4b0d40559b0f6b715107aa38fe800539ba485f27 | 486403fcf393077fefb441cb64c217a2289aaf3e | refs/heads/master | 2023-06-24T13:43:52.740419 | 2017-10-09T04:29:50 | 2017-10-09T04:29:50 | 84,788,246 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import random
import datetime
import string
import time
def getSquareDist(p1, p2):
return (int(p1[0])-int(p2[0])) ** 2 + (int(p1[1])-int(p2[1]))**2
def generateFileName():
return getToken() + ".png"
def getToken():
return datetime.datetime.now().strftime("%Y%m%d%H%M%S") \
+ "".join([random.choi... | [
"normanyahq@gmail.com"
] | normanyahq@gmail.com |
d6a628d30cd50796fad7346cedd8050cae518409 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW03_20210706185704.py | 4de89390673cdc7ea96c6258834fddd35d0d6aae | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | """
Georgia Institute of Technology - CS1301
HW03 - Strings and Lists
Collaboration Statement:
"""
#########################################
"""
Function Name: movieNight()
Parameters: subtitle (str)
Returns: fixed subtitle (str)
"""
#########################################
########## WRITE FUNCTIO... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
ccd3c5730df4c2b86354fd83cb872c41896d41c4 | 9ec3f01304e4cc2e07c9fdda6cb3089954579315 | /1_crate_files_from_table/generate_folders.py | a0284396841dcae28579112daa7d60b07dbda76a | [
"MIT"
] | permissive | andreipit/ds_petprojects | a9209c061adc0ad0dba02d7c32ceab8088e5c9a4 | 6d5d50fcbb08dc8a2345084da8c4fdff4a71f922 | refs/heads/master | 2020-04-20T19:01:44.531960 | 2019-02-04T08:14:24 | 2019-02-04T08:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import pandas as pd
import re
import os
ROOT_FOLDER = 'folders'
FOLDER_LIST = 'folders_list.txt' # first row must be "name"
def clean_symbols(df, column):
df[column] = df[column].str.replace(' ', '_')
df[column] = df[column].str.replace('\\', '_ibackslash_')
df[column] = df[column].str.replace... | [
"andrei.pit@icloud.com"
] | andrei.pit@icloud.com |
81d69f7bd726f121d762c3abeac1eff78604ae43 | 02880f889c9f12a50c8282ff31bc26794102c15c | /LAB07/phonelab/phonestrings.py | 6248849703d0a2df7d45922ab930ea33810360ae | [] | no_license | kai-ca/Kai-Python-works | 7972ecfb5532c1d08d9725268439694daa4b23d1 | 1e8a8605aca8f645f59fe6571440e3e91b3b796a | refs/heads/master | 2016-09-05T23:12:51.085748 | 2015-04-08T03:31:54 | 2015-04-08T03:31:54 | 33,576,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """ We convert dotted phone numbers like 415.123.4567 or
YOU.GOT.MILK to phone numbers in standard format.
>>> phone('YOU.GOT.M1LK')
'(968) 468-6155'
See the test files for detailed examples.
"""
from phoneletters import letter2digit, string2digits
DOT = '.'
def phone2string(s):
"""
>>> phone... | [
"kaica05@gmail.com"
] | kaica05@gmail.com |
6ffb5a7913c10d585f3deb2048cc818c0cfc1870 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/117c19ce-1596.py | c48b541558f6dace7b69689c04f13acc0ba485e2 | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
# FE5.5
# http://www.wooyun.org/bugs/wooyun-2010-086697
def assign(service, arg):
if service == "yongyou_fe":
return True, arg
def audit(arg):
url = arg + '/common/treeXml.jsp?type=sort&lx=3&code=1%27'
_, head, body, _, _ = curl.curl(url)... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
dd8416e66412c051ed2556fe3b09af4ceeb4f53f | 7be3a604e29736cd61a2f3512a1686e4e59d3ad8 | /Pysense/main.py | 0a22568d345d299205bf65a91e197879ca7ab567 | [] | no_license | loidurand/Beia | aa06b615dff5ccd1096c09f3924b9d79d504af2f | 04d914fe2feca979e097200759bdf54069ec68fc | refs/heads/master | 2020-03-25T20:40:03.827344 | 2018-08-17T10:45:54 | 2018-08-17T10:45:54 | 144,140,411 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | from network import WLAN
from mqtt import MQTTClient
import machine
# from machine import Pin, Timer
import ujson
import time
# import gc
import ubinascii
# from deepsleep import DeepSleep
# import deepsleep
from pysense import Pysense
from LIS2HH12 import LIS2HH12
from SI7006A20 import SI7006A20
from LTR3... | [
"noreply@github.com"
] | loidurand.noreply@github.com |
d210ff2c5d3812548fbcc936dfff6bce4bf710c4 | 9b1dba698816570227c71ee41551f8ad7d753078 | /getdatfit.py | 39e8bb675f057041cb3b3c813a4724775e2c2dfe | [] | no_license | zyjdxtc/handy | 41d28be0e33eefffc1e77a8b81da107245ef61ee | c722846e615256d2daf879f9f5631061adb44e65 | refs/heads/master | 2021-01-23T17:43:56.564769 | 2017-09-07T19:32:00 | 2017-09-07T19:32:00 | 102,777,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | #get data from different folders and output data and fit and plot
import numpy as np
import string,sys,re
import matplotlib.pyplot as pl
fname =[]
c=[]
E=[]
if fname==[]: # read from log file
logname=sys.argv[1]
f=open(logname,'r')
lines=f.readlines()
else: logname= 'cafm+1coarse'
if string.find(logname,'log... | [
"zyjdxtc@hotmail.com"
] | zyjdxtc@hotmail.com |
1cdd33dbe3aad9a248601971fe1b17cb520dacc5 | 184bcebffe284a567ee9d43f734c228b94a7744a | /day8/day8_2.py | 6e1109f1bf315e19221b14a8a5210489a628e639 | [] | no_license | MaChimal/AdventOfCode2020 | c82bee65201b0973226fba71f75715e3a9ea01dc | 884710b41d4388dfdd20cdc7bd09c0747dc1d8bf | refs/heads/main | 2023-01-24T07:52:09.599218 | 2020-12-10T06:37:26 | 2020-12-10T06:37:26 | 317,967,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | ### Day 8: Handheld Halting ###
## Part 2
instructions = []
for x in open('day8.txt'):
ins, val = x.split()
val = int(val)
instructions.append((ins, val))
def acc(instructions):
repeat = False
i = 0
accumulator = i
ran = set()
while i < len(instructions):
... | [
"mariochimal00aa@gmail.com"
] | mariochimal00aa@gmail.com |
09684d74130fbd8df5875c37f09b9616157bc2d3 | 180306a3f33fa8781027a0a749b10623f8f3257b | /settingWinXPConsoleCodec.py | 36b8645003add968337cf85db39fbbfe1625d7fe | [] | no_license | ClarkOh/MyWork | a28f8eee0427d22df2e1cc533b6c6399f0499fa2 | 830fe9be94d611e870e1164711cfbacecdbb361f | refs/heads/master | 2021-01-10T20:56:22.424958 | 2012-10-24T10:18:18 | 2012-10-24T10:18:18 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,078 | py | # -*- coding: UTF-8 -*-
import codecs, sys, win32console
reload(sys)
sys.setdefaultencoding('utf-8')
print sys.getdefaultencoding()
if sys.platform == 'win32':
try:
import win32console
except:
print "Python Win32 Extensions module is required.\n You can download it from https://sourceforge.... | [
"jinwon.clark.oh@gmail.com"
] | jinwon.clark.oh@gmail.com |
e6d62563ce6406d80fb575cd4e0f9c6c639a414d | ff74f03290c628955abd4720305b1005249f9369 | /lib/bin/flask | 3b4dfdcf6deea6a16551baf7833ad4f45e01863f | [] | no_license | bopopescu/facerec-1 | a7ea6912bfaf01da437cee890dc1553edcbd7f47 | 14a847aac29396d4f03d350f686c6e290c59f255 | refs/heads/master | 2021-09-22T09:23:50.060200 | 2018-09-06T22:22:16 | 2018-09-06T22:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/Clemsut/Desktop/facerec/facerec/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"clemsut@umich.edu"
] | clemsut@umich.edu | |
6216bc193c79624f39dd031605b1011adaf3f9d8 | 3303c5be3c53cab6117156c5ff74d2cb4e93f2ec | /double_robot_project/build/aubo_melodic/aubo_i10_moveit_config/catkin_generated/pkg.develspace.context.pc.py | 6a742c4746e483a4f543bb03b48f54a53abc65fd | [
"Apache-2.0"
] | permissive | Xray0302/dual_arm_project | 5e76a5b627cffbd5b25767d1e76b0c94be288516 | 34fed790f5b00411f4f5125c3197655eebce2db5 | refs/heads/master | 2023-04-15T08:05:04.739617 | 2021-12-06T17:10:15 | 2021-12-06T17:10:15 | 431,094,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "aubo_i10_moveit_config"
PROJECT_SPACE... | [
"xurui32@163.com"
] | xurui32@163.com |
64d523584db28759581532d7ae93564893bf16c0 | 33e6817c2c3be441f2ebb9e8c32ccffddb39d2b8 | /drive/drivechanges.py | 30f504f6a271f2c5e65d5d1b9c60345b06b5f470 | [] | no_license | valerinistor/gdrive | a4ea56016fb3bb48e234e2f2c18fe69ff1816d80 | 505af32fb15c4c4866d4bbea07ac1c0b9fb9b455 | refs/heads/master | 2021-01-19T05:28:57.816068 | 2014-07-09T07:31:03 | 2014-07-09T07:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | from apiclient import errors
import drive
import logging
import threading
import time
import sys
import traceback
import os
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class DriveChanges (threading.Thread):
def __init__(self, drive):
threading.Thread.__init__(self)
... | [
"nistor.valeri@gmail.com"
] | nistor.valeri@gmail.com |
56e9cd2ef098d6c75627bc1db7f0067c18b5fae2 | 812aaee8f30b4303d3ee99a9fea4b34db91195c4 | /lights_out/odd_numbers.py | afa8ff7bc114dd0ed80bb58740e7075119c4d675 | [] | no_license | OndrejZapletal/CodeEval | 4754b5a4af35d61ffc70682fdeb62d4291fb4512 | 174f9a82f6269b48cb4477d9d1572d1129e185e8 | refs/heads/master | 2021-01-17T08:12:05.298218 | 2017-01-03T04:23:44 | 2017-01-03T04:23:44 | 63,171,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | for i in range(100):
if i % 2:
print(str(i))
| [
"Ondrej.Zapletal@honeywell.com"
] | Ondrej.Zapletal@honeywell.com |
e8cf67c09fb258bd353cc7b292eed3a62a996069 | 218a6e416daad2f3c2f10f4d4cb29d59050af80e | /preprocess.py | 4edfea83e13eff161a857194b8401b506953281d | [] | no_license | greatlog/nodule_segmentation | 07890b4a62202807ce36434c3d06d0422506f5ec | 04eaa59166adc63bd9169499541b21d50e1ab200 | refs/heads/master | 2020-03-21T08:59:41.005400 | 2018-06-23T06:54:22 | 2018-06-23T06:54:22 | 138,378,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,010 | py | from multiprocessing import Pool, cpu_count,freeze_support
import numpy as np
import SimpleITK as sitk
from skimage.morphology import disk, binary_erosion, binary_closing
from skimage.measure import label, regionprops
from skimage.filters import roberts
from skimage import measure
from skimage.segmentation import clear... | [
"1582552392@qq.com"
] | 1582552392@qq.com |
486d36e356dd99a8e56fcbb96d04a611f43c5a64 | dfe4e85d147d4b2b4a20690a7005c3643f722d42 | /accounts/views.py | 84cf77d7137880d4df8b4c5000af8ecc34e07464 | [] | no_license | shouvik0013/django_blog | 227c737a0c224b4957d97b0b7114757a3d44425f | dee3a5ebe3b5b98847755224f592ac65bfe68153 | refs/heads/master | 2023-03-10T09:59:24.028038 | 2021-02-26T16:25:48 | 2021-02-26T16:25:48 | 342,628,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
class SignUpView(generic.CreateView):
form_class = UserCreationForm
success_url = reverse_lazy('login')
template_name = 'signup.html'
| [
"shouvik0013@gmail.com"
] | shouvik0013@gmail.com |
eef1da102ec3c444d29d4f92f426ecbc184f2898 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/core/2015/12/hue.py | 77672c9aaf56db21fbbfaa6f7afeb2d80e53470e | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 7,899 | py | """
homeassistant.components.light.hue
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Hue lights.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/light.hue/
"""
import json
import logging
import os
import socket
import random
from datetime import timedelt... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
fdef4554b0cee947efb58bf541ec62fdb5d4ef16 | 4915930902e48f8e008495b18625c4b40ef5d826 | /UCG/Docker/data/node_modules/websocket/build/config.gypi | f2827ce74fd97a84c7bd55aeb9425fefbcf542a9 | [
"Apache-2.0"
] | permissive | koernigo/UCG-Repo | 63d0cdb32797f6be3855cdabc1bb8e4cb3af897a | 9612fbccaa73d42b3ae3306ec405e106f8440085 | refs/heads/master | 2021-01-21T11:50:07.067914 | 2017-08-22T15:54:25 | 2017-08-22T15:54:25 | 102,026,072 | 0 | 1 | null | 2017-08-31T17:22:16 | 2017-08-31T17:22:16 | null | UTF-8 | Python | false | false | 4,237 | 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,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"dennisnoto@densmac.local"
] | dennisnoto@densmac.local |
eb3fc4058efee853d8bc2aa246422e6bdbc51da6 | d2b81eacad849b66066b3b5d244b59f0144e8a0e | /python_do_sth/cv_3.py | aeda29e7cdd4d57cd02874d675fcffcae122bafc | [] | no_license | Kaiping23/Automatic_operation_and_maintenance | ba88d7c2590fb6a23c20167d7273e06b037dfc52 | 4a659c91c44a0ef7c4701199f1ee49072bad98dd | refs/heads/master | 2021-07-13T23:28:20.890603 | 2020-12-01T07:23:47 | 2020-12-01T07:23:47 | 222,401,688 | 0 | 2 | null | 2020-09-14T03:18:31 | 2019-11-18T08:42:26 | Shell | UTF-8 | Python | false | false | 860 | py | #!/usr/bin/python3
# _*_coding=utf-8 _*_
# @author lkp
# @date 2020/3/31 17:50
from PIL import Image, ImageDraw, ImageFont
import cv2
import os
def draw(pic):
img = cv2.imread('pic/' + pic)
img = img[:, :, (2, 1, 0)]
blank = Image.new("RGB", [len(img[0]), len(img), "white"])
drawObj = ImageDraw.Draw(... | [
"admin@example.com"
] | admin@example.com |
db797ca06a1ba5f4a1debd93038ccf70dffd3483 | cbd2db1d4812ec17ae89b1e7f9109060758cb608 | /python_exercises/4_stringFun.py | 904971f484b2f6e58c8622a476dc272bf1342f76 | [] | no_license | lokeshV89/pythonPrac | 6f3e15ad2e5cbb48d3f0edb0e476eb9a0e7ace6d | d31ce1eb078f6d5d10409ee13aaed4c3b25c6b40 | refs/heads/master | 2023-03-10T17:51:08.475782 | 2021-02-28T19:30:29 | 2021-02-28T19:30:29 | 343,191,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #Question 4: Given a string and an int n, remove characters from a string starting from zero up to n and return a new string
def steFun(a,b):
print(a[b:])
a = input('Enter the string\n :')
b = int(input('enter the number after which char are required\n :'))
if(len(a)<b):
print('digit value is greater then to... | [
"lokesh930404@gmail.com"
] | lokesh930404@gmail.com |
17070778c54bd5d2641573679ef5ab4417c63cc2 | 91d528f9ff1fc16823fa79992accb38b4e0e0820 | /Assignments/beautifulSoupTuts/bs_app/bs_xml_tut1.py | ca6413f502dc20b1ef270b40143ce6a556c74cf6 | [] | no_license | Naba-Jeet/Python_Tutorials | 3fdae11607d8b0556b3c328c0392ce17bdfa9d37 | 69b864a8ebc35cae75ef0e93eedd79b8f550ccc4 | refs/heads/master | 2020-03-09T02:35:57.063918 | 2018-06-30T13:53:50 | 2018-06-30T13:53:50 | 128,543,599 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import bs4 as bs
import urllib.request
source = urllib.request.urlopen('https://pythonprogramming.net/sitemap.xml').read()
soup = bs.BeautifulSoup(source,'xml')
for url in soup.find_all('loc'):
print(url.text)
| [
"nabajeet.dhar@parisdatasense.com"
] | nabajeet.dhar@parisdatasense.com |
f8e2e346cd01efd7a14368b2d4a5bc75a52f6f86 | 955bd17586b2fafa87e1198a0e11895527c64bd6 | /scrapingArticles/lib/trial.py | a004695c04afdaebad89b67e75ffbddf01494eff | [] | no_license | Ranakhamis/NewsScraper | 68904cbcf9bc42ebcc130b3d9b52bacf57ced56d | b9cfe7ba970ea88f51dd8975c45bc79cf8f7eac1 | refs/heads/main | 2023-01-15T00:40:18.016057 | 2020-11-17T23:24:07 | 2020-11-17T23:24:07 | 309,432,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | import newspaper
from newspaper import fulltext
import newspaper
from newspaper import article
import nltk
# The punkt of nltk library is used to tokenize the sentences in order to be used for NLP. So we need to download punkt sentence tokenizer.
#nltk.download('punkt')
class scrap:
def __init__(self):
... | [
"ranakhms@gmail.com"
] | ranakhms@gmail.com |
1b73266fec9ad8adc485a161f7ef19f92c9e3161 | 536bce6ca78a9a151247b51acb8c375c9db7445f | /chapter2/2.33-fact.py | f39322d3d7ba4b95c64460e082de81bd82d43e19 | [] | no_license | clicianaldoni/aprimeronpython | 57de34313f4fd2a0c69637fefd60b0fb5861f859 | a917b62bec669765a238c4b310cc52b79c7df0c9 | refs/heads/master | 2023-01-28T18:02:31.175511 | 2023-01-23T08:14:57 | 2023-01-23T08:14:57 | 112,872,454 | 0 | 0 | null | 2017-12-02T19:55:40 | 2017-12-02T19:55:40 | null | UTF-8 | Python | false | false | 189 | py | """
Implement the factorial function
"""
def fact(n):
if n == 1 or n == 0:
return n
sum = 1
while n > 1:
sum *= n
n -= 1
return sum
print fact(4)
| [
"martin@rodvand.net"
] | martin@rodvand.net |
bedf6a995ce380b68574e58456303a19c7f19dcc | 5af7898c50fc471f2e17c08f11369bb6b32460b9 | /scanner.py | 933b9345a98b2b772f5bf84f0c6b226e1cc60990 | [] | no_license | iceyokuna/RegexScanner-acceptable-string-checker | e4cb9972afd93892513fef07f5318ef958a797df | 9db7ce1c322b6c5bac09b3d467861e019e000522 | refs/heads/master | 2020-04-25T04:32:17.449070 | 2019-02-28T11:20:13 | 2019-02-28T11:20:13 | 172,513,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,877 | py | from FA import *
class FA:
def __init__(self, Q = {0}, Sigma = set(), delta = {}, q0 = 0, F = {0}):
self.Q = Q
self.Sigma = Sigma
self.delta = delta
self.q0 = q0
self.F = F
def copy(self):
return FA(self.Q.copy(), self.Sigma.copy(), self.delta.copy(), self.q0, s... | [
"iceyokuna@hotmail.com"
] | iceyokuna@hotmail.com |
d80dee91ae6b015bf9b5c2a4d50b0ffbc1ac61ca | 9b639ff2497e87e9282dff385561ef2b055f1f9c | /admin/gameadmin/urls.py | 9cb2d6fd527a8e1248c0eea4dd8b917cab8808be | [] | no_license | chekwind/gSoccer | 4f4964a7087f713bfbd94ad956140dd5cab458d8 | 1f60b6b993c7e918f37140bdd1d81d939f3a1703 | refs/heads/master | 2021-01-19T21:48:28.324899 | 2014-06-13T02:45:45 | 2014-06-13T02:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | from django.conf.urls import patterns, include, url
from adminuser.views import login,main,loginout
from ginterface.views import recharge,opearPlayer,getserverlist,landed,buyProps
from serverinfo.views import serverlist,GetDayRecored
# Uncomment the next two lines to enable the admin:
from django.contrib import ad... | [
"chekwind@sina.com"
] | chekwind@sina.com |
c9db772b6f838af96b240891f81741b5a3b42d15 | 71f4c98dd1c86ca6c347b0c8163819ce771801e8 | /docs/examples/python/smessage_ssocket.py | 008eadf7b132081df4b6f2d3c26fee4ef5cc6338 | [
"Apache-2.0"
] | permissive | cybernetics/themis | 5a879d5f592aea59dc4a5cd00fac134cf9e9111f | 661c98666d72e95528f3aaaaf92a685138a52ccd | refs/heads/master | 2021-01-11T17:54:09.237880 | 2017-01-09T19:18:19 | 2017-01-09T19:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | #
# Copyright (c) 2015 Cossack Labs Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"andrey@cossacklabs.com"
] | andrey@cossacklabs.com |
ed530119e7417142f6eadadd59dea9e964ffb5dd | 535f6b7a0635233dead58a4d8ef203b32c43ff2a | /实验/AI2019_SA19225404_吴语港_Lab4_TF1.x/量化个人教学/假量化/generate.py | 0d79b3a5b26dbcb9fe2aa08daee608ec403dafc4 | [] | no_license | jessenmeng/USTC_SSE_AI | 6cff7c6a1671a4e503727eea4ef9b455d41b166d | fa7891d69edfa719b509d1af894f7b6aa23e0b7e | refs/heads/master | 2022-12-25T19:32:39.320723 | 2020-10-10T06:08:19 | 2020-10-10T06:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | from captcha.image import ImageCaptcha # pip install captcha
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import random
import cv2
#生成字符对应的验证码
class generateCaptcha():
alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
... | [
"321699849@qq.com"
] | 321699849@qq.com |
fda1e8e1d40a7e3ed27062167cabed12d78af0c5 | 9c364469b025ded627d2ed04da3107be184dbb98 | /video_call/consumers.py | 5fc3733b4d0fa17d4d8ce2313430d35224e0bd36 | [] | no_license | diya-gupta29/Microsoft-Teams-Clone | 09f960bf76cc31f0d19e452e0592e0df2d1bd0ed | 916e149bcf1ab35e3642ed5a2a456f7bb1fa8ace | refs/heads/master | 2023-06-12T02:44:36.631742 | 2021-07-13T15:02:32 | 2021-07-13T15:02:32 | 384,244,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | from channels.generic.websocket import AsyncWebsocketConsumer
import json
from channels.db import database_sync_to_async
from createTeams.models import Team_Messages, Organization
from django.contrib.auth import get_user_model
User = get_user_model()
class ChatConsumer(AsyncWebsocketConsumer):
# used to fetch pre... | [
"goyaldiya55@gmail.com"
] | goyaldiya55@gmail.com |
9ef32f41e288f78f8eefa1bcd5476bf3e3bf3c7b | ba369c74500540a367d9c3c1034afd183c4e1bcb | /tbtaf/databridge/Databridge.py | 347a55f70730bd116e492e48b4872c541c489a9e | [
"Apache-2.0"
] | permissive | S41nz/TBTAF | 955ce8231e809013ad273c3b716f474ce086165c | c9a33110baef20fd945e115f56d2e3626220416b | refs/heads/master | 2023-06-09T20:58:26.667517 | 2023-05-25T19:33:55 | 2023-05-25T19:33:55 | 44,349,447 | 0 | 2 | Apache-2.0 | 2023-05-23T05:46:25 | 2015-10-15T22:37:47 | Python | UTF-8 | Python | false | false | 813 | py | from __future__ import absolute_import
import os
from common.suite import TBTestSuite
from common.metadata import TBMetadata
from common.result import TBTAFResult
from common.printable_test import TBTAFPrintableTest
from publisher.TBTAFPublisher import TBTAFPublisher
from common.enums.metadata_type import TBTAFMetadata... | [
"zafir3@gmail.com"
] | zafir3@gmail.com |
253405fae39c21a64aacf4a9451678e96a7f1e5f | 4a89a81e726a01919360191d3b5b59c75e4e4d2b | /client2.py | f40d3a2cb56dd0ae5b549831d8865dd6c5ca539c | [] | no_license | machanit/Chat-Room-In-python | bd25037a02ee31e6ce224a384a8fb6974d6b136c | cd37e35ef25bfc0be51319fe44529f04a96b47b5 | refs/heads/master | 2020-03-11T18:00:57.616977 | 2018-04-19T05:40:34 | 2018-04-19T05:40:34 | 130,164,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | from socket import AF_INET, socket, SOCK_STREAM
from threading import Thread
import tkinter
def receive():
"""Handles receiving of messages."""
while True:
try:
msg = client_socket.recv(BUFSIZ)
msg_list.insert(tkinter.END, msg)
except OSError: # Possibly client has lef... | [
"noreply@github.com"
] | machanit.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.