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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42e05df749e38cf8218a779f4fdd5ae120642485 | 33170d202d96ae9d6a98f6d9be41e87361ba3bd3 | /demo7_tensorboard.py | 48f7564472e1b793c2ac3c4ad1607cb8c603b702 | [] | no_license | Seancheey/tensorflow-practice | cfdd2338f6d139491c5dda361b74beef64ecec01 | a11f1c8f14e4ccf8d92b8e051ac4cf95b0695607 | refs/heads/master | 2021-01-01T16:18:00.961347 | 2017-07-24T12:33:55 | 2017-07-24T12:33:55 | 97,805,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | import tensorflow as tf
import subprocess
import numpy as np
### define a neuron network that can be displayed in tensorboard --- a visualization tool supported by tensorflow
# define a add layer function
def add_layer(inputs, in_size, out_size, activation_function=tf.nn.relu):
# define name scope to help visualiz... | [
"adls371@163.com"
] | adls371@163.com |
f7ecdb2d699ad87445645dbd7746ea96b41b3189 | 56b511013e480879810c732f3190f5746b0aa733 | /TP2-Agentes Racionales/CODE/randomagent.py | 5b93c5573b903541efd6fdc4733554bf1db06a14 | [] | no_license | Fabriexe/ia-uncuyo-2021 | 86e30231aabd07cddebf16b62baba94ef771e3e6 | 6a32f2f5eb1e281148fbc1c0f6a659fc1e392f04 | refs/heads/main | 2023-08-23T00:07:40.256247 | 2021-11-06T05:37:46 | 2021-11-06T05:37:46 | 395,062,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | from enviroment import*
class randomagent:
def __init__(self,env,life,x,y):
self.env=env
self.reslife=life
self.posX=x
self.posY=y
self.cleaned=0
def perspectiva(self):
acciones=[]
X=self.env.sX
Y=self.env.sY
if self.posX>0 and self.posX<... | [
"fabricioexe54@gmail.com"
] | fabricioexe54@gmail.com |
d97bc67342b303dfc707649f0473beb996146c1d | 58374bb4f0a77aff538c466615ec86273fc7a106 | /flight_search.py | 8dc1eb5073ceb3d3755b5fafda0dd9bd8db4b702 | [] | no_license | cheasingh/flight_deal | d963911511742691c78b939150dbbd47c02dc7a1 | b300ccb152116c60c411dddf83e018d5fec794e6 | refs/heads/master | 2023-03-01T21:16:15.559210 | 2021-02-06T12:09:21 | 2021-02-06T12:09:21 | 335,671,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import requests
import os
class FlightSearch:
# This class is responsible for talking to the Flight Search API.
def __init__(self):
self.param = {
"apikey": os.environ["TEQ_API"],
"fly_from": "PNH"
}
self.endpoint = "https://tequila-api.kiwi.com/v2/search"
... | [
"cheasingh168@gmail.com"
] | cheasingh168@gmail.com |
d22c6a57747ea40840a81f5d73cb4e36e344a310 | ed84a727dfcde9481668d0317ca3b2c80e58ad0f | /set2_mul.py | c892b8f895e2d69f6fd2168437167d2ccee2363b | [] | no_license | Boorneeswari/GUVI_PROGRAMS | 2458c47da89a3cf1450b5b20eea7e34fba7dd051 | 0f1648f95064043bba93195062954a0afe67ed66 | refs/heads/master | 2020-03-22T21:15:50.236733 | 2018-10-03T13:05:47 | 2018-10-03T13:05:47 | 140,672,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | num=int(input())
mul=5
x=0
for i in range(1,mul+1):
x=num*i
print x,
| [
"noreply@github.com"
] | Boorneeswari.noreply@github.com |
7db34ccaf7b764230d55ed45cdf7469ea3208004 | 5982c00a0b0a1e46f46881f9fa883259dcc56fc1 | /blog/migrations/0005_auto_20201018_0823.py | 8b34aa117d4fdc0b70ce78c789800439d0e3f5a1 | [] | no_license | k-ken-source/FacultyNetwork | 8e8e092b942eac07d957709585f1c27da60d5ac1 | ee82473ac7b471026654cbce9384db3e65715961 | refs/heads/main | 2023-03-03T19:13:05.444697 | 2021-02-17T06:13:56 | 2021-02-17T06:13:56 | 339,133,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.0.7 on 2020-10-18 08:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_post_overview'),
]
operations = [
migrations.AlterField(
model_name='post',
name='thumbnail',
... | [
"chirag21works@gmail.com"
] | chirag21works@gmail.com |
d82f94f00d325bf9852dbc2c2fa28d95a8432598 | a1f8980902374340cbe646a0685135681e2aec28 | /BBS/urls.py | 2bfc188803720225a010d65f130b283ce472d556 | [] | no_license | gaofei207/BBS_SE | 99b275fac85de3ff9a2f9acdfe147be53d022cbe | 7110c8491c2518b23fbe2895501c5dd2770f200d | refs/heads/master | 2023-01-14T03:33:29.837211 | 2020-11-11T13:17:18 | 2020-11-11T13:17:18 | 109,016,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | """BBS URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"gaofei207@github.com"
] | gaofei207@github.com |
0726b7390ed35387b3d0eef50a1cb7a3d9aa9f8a | 3044d26f03f23e8e8c5fcec57b78bfffe0fa0bd3 | /case/workflow_FinancialClass_samplepayment_FlowSamplePayment/workflow_FinancialClass_samplepayment_FlowSamplePayment_purchaseleader_return.py | dad86a28c42e2c435c7fe2f5a98f76c2af6bf9d8 | [] | no_license | tian848-tim/trunk | de50a153c8cab3c81c79c523256a6f1b4c2f049d | cd52afdd003f094056dc2ea877c823a38e6a26fd | refs/heads/master | 2022-11-20T06:43:35.540105 | 2020-07-20T07:48:26 | 2020-07-20T07:48:26 | 281,048,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,324 | py | '''
测试用例标题:样品付款测试
测试场景:样品付款业务流程测试——采购组长退回
创建者:Tim
创建日期:2018-11-13
最后修改日期:2018-11-13
输入数据:审批流程各个角色账号
输出数据:无
'''
# -*- coding: utf-8 -*-
import sys, os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
# sys.path.append(rootPath)
import unittest
from cgitb import text
import se... | [
"tim.long@Newaim01.com"
] | tim.long@Newaim01.com |
21ee6ed1bf7eb08ddecbbb10cc3d1e6ec75e5a53 | 9050a892c73b89a1f92d126f42261fd7ca8fe780 | /graph.py | 2da5fb067090baff6e14aa1e200574e54d52d339 | [] | no_license | MatishaKansal/Pro--107 | 42050ff149e147f79ab0e89b7cc41db83780d2fc | 2b9d7d9a79f47c1225f6a58d16ff9638bdf32001 | refs/heads/main | 2023-06-19T01:51:25.512222 | 2021-07-17T16:56:25 | 2021-07-17T16:56:25 | 386,993,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import csv
import pandas as pd
import plotly.graph_objects as go
import plotly.express as px
df = pd.read_csv("data.csv")
mean = df.groupby("level")["attempt"].mean()
fig = px.scatter(df, x = "level", y= "attempt", color="attempt", size="student_id")
fig.show()
| [
"noreply@github.com"
] | MatishaKansal.noreply@github.com |
0ca81aac25082737c0a5c15d50d0084496ebc998 | e69faa154bd6e4fecacde8ef4365956678924a92 | /stk-screen/bin/wheel | 94bb4e1318eb3b6b195e0db27b324f648411c5a6 | [] | no_license | aman-saha/stk-app | 239e7258dbe03d939b56cc2e240bc5b0f179a57a | 83bbad871c600c383c1618ed13c6e4f49a32f607 | refs/heads/master | 2022-04-02T08:11:37.944564 | 2020-02-13T03:20:16 | 2020-02-13T03:20:16 | 229,473,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/Users/amsaha/workspaces/git_proj/stk-app/stk-screen/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aman97ram@gmail.com"
] | aman97ram@gmail.com | |
3729d9da023e6a5a84cc1c3bac5ff6e4ef5f87db | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/redis/redis/sentinel.pyi | ea13ae681287fa1353217d2e6d217fe0898b122b | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 2,820 | pyi | from collections.abc import Iterable, Iterator
from typing import Any, TypeVar, overload
from typing_extensions import Literal, TypeAlias
from redis.client import Redis
from redis.commands.sentinel import SentinelCommands
from redis.connection import Connection, ConnectionPool, SSLConnection
from redis.exceptions impo... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
565e730b5c9627c722788a4d7845bd826c4e8e03 | 449f7f45be6e44a98d6a4eed319da2cf94cc2076 | /test001/hello.py | 83c22c958f6dd01a22226794c8d4472ad7a672d1 | [] | no_license | cis024c/flaskdev | a673412b6ab90a63edbc58cd238a66563e586363 | 36ecbce665aed9ded0cb9a450e4a6cb1ead51517 | refs/heads/master | 2020-03-11T16:07:52.107735 | 2018-04-18T18:43:19 | 2018-04-18T18:43:19 | 130,106,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
@app.route("/saymyname")
def helloname():
return "Hello Bob!"
if __name__ == "__main__":
app.run()
| [
"Sanjay_Dorairaj@cable.comcast.com"
] | Sanjay_Dorairaj@cable.comcast.com |
94617181fda33d026f84aa814c8003baa76f717b | 8f91a726c40b6c270c5d34077f45dc4ecfbc1aeb | /Envs/venv/bin/python-config | 2083d5caca77c3ffd15707ab75d30e52fa007076 | [
"MIT"
] | permissive | vaibhav-rbs/git-towards-greatness | 08698e3397813e464380f22203250697927e7af6 | 164214f6482bd016029f2830b56859266311bf5b | refs/heads/master | 2021-01-12T14:10:39.227194 | 2016-10-26T22:14:35 | 2016-10-26T22:14:35 | 69,923,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | #!/Users/vaibhavchauhan/Documents/python-course.eu/Envs/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('a... | [
"vaibhav@ixsystems.com"
] | vaibhav@ixsystems.com | |
c5d6b42f2836cb90508dfb929e9c065b433edca9 | 390ef873925b9a302b31f8904de0a4995cdab4c9 | /leerTabla.py | e8dfdab38a6f463336c71ccbc24387295c49dfe3 | [
"MIT"
] | permissive | AbeJLazaro/MinimizacionAF | 26a1d71713600e344541dbd30185f865814853c9 | 1fed781e401c9c929618b6641b202cbeba34c1af | refs/heads/main | 2023-01-03T17:18:56.365338 | 2020-10-27T05:53:40 | 2020-10-27T05:53:40 | 307,597,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | '''
Autor: Lázaro Martínez Abraham Josué
Fecha versión: 26-10-2020
Programa: Implementación de una función para leer una tabla
que representa una tabla de transiciones del AF
'''
def leerDatos(nombre):
'''Función que lee el archivo de la tabla de transición
para representa... | [
"noreply@github.com"
] | AbeJLazaro.noreply@github.com |
848a6021591e88d0c051325f1028b69b90f99827 | 1ae6f4ed456ccacf8ae95a6cff20f15add056f3f | /ex.19.py | 9537ec1d21f0338b8d0f1431af4090046ec85b20 | [] | no_license | KarinaMapa/Exercicios-Python-Repeticao | 64db726b58659c10f77929e5ec13b4c329986db8 | c1f73a81a4a296f79578ee0ffe79fe8625d7d565 | refs/heads/master | 2022-10-20T09:28:52.278850 | 2020-06-16T23:00:42 | 2020-06-16T23:00:42 | 272,828,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | quant = int(input('Digite a quantidade de números do conjunto: '))
maior = soma = 0
menor = 1001
for i in range(0, quant):
n = 1001
while n > 1000 or n < 0:
n = int(input('Número: '))
if n > 1000 or n < 0:
print('Número inválido')
if 0 < n < 1000:
if n > maior:
... | [
"karina-mapa@hotmail.com"
] | karina-mapa@hotmail.com |
ec88a0da26bc9dce4c08887164b88d20d9e6fa98 | a3fd69f7feb476715180d3bd85524d431b56abd1 | /pb_logging/syslog_handler.py | 4aea54c8731a8ec5de5a8646e3bb6f0dccfa9de2 | [] | no_license | fbrehm/py_pb_logging | c22612f953e4f95e1d5ccade32859b91e1b69ea1 | e17b4e3c8a4fc22323e1153e5a539c837a529489 | refs/heads/master | 2021-01-17T10:03:04.098123 | 2018-06-12T19:48:40 | 2018-06-12T19:48:40 | 8,831,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@summary: wrapping logging handler for logging.handlers.SysLogHandler
to avoid BOM errors in syslog messages
"""
# Standard modules
import socket
import sys
import os
import stat
import errno
from logging.handlers import SYSLOG_UDP_PORT
from logging.handlers... | [
"frank.brehm@profitbricks.com"
] | frank.brehm@profitbricks.com |
3f5a302519a5d865bc2825e6bb893d2d6014fef7 | be06759270d816171bc576f973fb536e216aef9a | /BioInformatics/GibbsSampler.py | c78f901db91be68e7262f5ad6351d734c92ce716 | [] | no_license | espaciomore/my-code-kata | 6d6fbeda8ea75813e1c57d45ae1382207e2197fa | 6c8e1987648350c880e8ab8a038c69608c680cab | refs/heads/master | 2020-12-10T00:31:45.023012 | 2020-10-12T19:35:07 | 2020-10-12T19:35:07 | 18,149,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | from Helpers import *
import random
random.seed(0)
def RandomNumber(probabilities):
sum_ = sum(probabilities)
numbers = []
normalizer = 1000
for i in range(0, len(probabilities)):
weight = int(round(normalizer * probabilities[i]/float(sum_)))
numbers += [i] * (weight if weight > 0 else 1)
num... | [
"manuel.cerda@introhive.com"
] | manuel.cerda@introhive.com |
0381a8f78160698253492ad282902dea14fda2ef | d9563b4c1aa57ea2f34844f2d9e3c645f7883487 | /Project/demo.py | 25d7cd0dbc22017caf3e7c94ca619daa44fe024d | [] | no_license | smartinez1/IBIO4490 | fb1444650f91a349d40233815f179c7d168085da | b1d9f96b2a38162fb5087004aafa52f848efcf30 | refs/heads/master | 2020-04-20T08:21:56.389194 | 2019-06-02T02:18:36 | 2019-06-02T02:18:36 | 168,736,816 | 0 | 0 | null | 2019-02-01T17:43:34 | 2019-02-01T17:43:34 | null | UTF-8 | Python | false | false | 13,178 | py | #!/usr/bin/env python3
# coding: utf-8
#
import os
import os.path as osp
import datetime
import shlex
import subprocess
import pickle
import pydicom
import cv2
from skimage import io
from google_drive_downloader import GoogleDriveDownloader as gdd
import pytz
import torch
import yaml
import warnings
warnings.... | [
"s.martinez1@uniandes.edu.co"
] | s.martinez1@uniandes.edu.co |
871aee1b131de9d12ca56ce93d8fe0751144a789 | 520365eb45cc298d0a20b44749482c3fe553d034 | /workflows/assembly.py | 85796450ea84cf5214f0f286f38c0f1488a2c505 | [
"Artistic-2.0"
] | permissive | marbl/MetaCompass | 91e8a7f8028b1a719abf595c4389473a6bd0f5d8 | 2cdeb979ccb5264f0dbac868b4c884687424e3f5 | refs/heads/master | 2021-07-25T23:45:16.293277 | 2021-01-31T23:58:48 | 2021-01-31T23:58:48 | 31,922,199 | 35 | 10 | null | null | null | null | UTF-8 | Python | false | false | 20,564 | py | #!/usr/bin/env python3
import os,sys,string,subprocess,signal,shutil
#psutil
import argparse
mcdir = sys.path[0]
parser = argparse.ArgumentParser(description='snakemake and metacompass params')
group1 = parser.add_argument_group('required')
#group1.add_argument("-s",'--snakefile', help='metacompass rules file',defau... | [
"vcepeda@umiacs.umd.edu"
] | vcepeda@umiacs.umd.edu |
d58cb7de2dbd4f821d0407b7ef618003f1f9fc9b | cb4db25a0b13f058f1a31b38d80d76a118d1e2dc | /venv/lib/python3.6/site-packages/google/api/usage_pb2.py | efe4f7945d109abc9613cb147c11bb4917bdf030 | [
"MIT"
] | permissive | Hackaton-Dragons/Never-Boils | 73df2b65f54a77d961ce53dea350b7d2a4261154 | 2d43e6e07fb18409d5a964f44f481d28d2352531 | refs/heads/master | 2020-03-09T20:27:54.554616 | 2018-10-08T05:52:33 | 2018-10-08T05:52:33 | 128,985,616 | 1 | 0 | MIT | 2018-04-15T13:32:45 | 2018-04-10T19:35:32 | Python | UTF-8 | Python | false | true | 4,244 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/usage.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection ... | [
"contact@noahh.io"
] | contact@noahh.io |
d0e3d3aa95dcd753c2756ffd0166b533298215ed | 97621883ac33bccb655a12295a1b28f091b5a8fe | /venv/bin/easy_install | 313fccefa07aa6bc9bd503ecfad2393bc28ea396 | [
"MIT"
] | permissive | olamijinadebayo/blog | 1616f06180782575a658f625b0725dc98c2c74d0 | b3ae83055d62ea4b09ae621566e3d0cb862da73c | refs/heads/master | 2020-03-11T21:12:57.960586 | 2018-04-25T08:19:24 | 2018-04-25T08:19:24 | 130,258,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | #!/home/ola/Documents/moringa-school-projects/microblog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"consultolamijin@gmail.com"
] | consultolamijin@gmail.com | |
74be90181e7bca2498ff46ae8c4d3ef026368489 | 43cdba0d7b6530e0cc3d091affe9d084fe6d86bb | /testing.py | 34fe5466b03ec6f69638432197234c1a0a073d4b | [] | no_license | timfelle/OptimisationToolbox | 532e00aaa08f64a05f08c9c2bcaca1ed41bd2b83 | 8853fd0c2cdc1fcc22368fe2ca90bd62a0c809bb | refs/heads/master | 2020-04-30T15:25:33.068812 | 2019-04-16T09:01:10 | 2019-04-16T09:01:10 | 176,919,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | import optimisation
import numpy as np
sep = '========================================================================'
# Define the matrices used in all
H = np.matrix([[ 2, 1 ],[1,2]])
g = np.matrix( [-2, -3 ] ).T
Eq_A = np.matrix([[ 1, 2]]).T
Eq_b = np.matrix([[ 2 ]]).T
In_A = np.matrix([[1,-2],[-1,-2], [-1,2], ... | [
"timfelle@hotmail.com"
] | timfelle@hotmail.com |
ecf53647cf9605c57afd26c095cf92ba9f56c670 | a6ad23d52020affcfc592865bd5ac8900529ea03 | /Exercises/exercise_05.py | 1ef15aad726c7e79bec33bb8bcf42051e4187f27 | [] | no_license | sanchit411/test_cs696 | 71c093cd92f8f8c87071d88048b184b4f9931b5d | c689a009d87348434fdce77dc8549f1769ced90e | refs/heads/master | 2021-05-10T07:55:16.346400 | 2018-05-03T20:33:26 | 2018-05-03T20:33:26 | 118,864,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | """
Exercise 5
Word association with Nodes
When you type text into your phone, you may notice that a next word is automatically suggested to you before
you have even started typing a next word.
In this simplified example, we will create a node for each word in a string;
the "next" property for each Node wil... | [
"sanchit@localhost.localdomain"
] | sanchit@localhost.localdomain |
6c54a871cb05593fcccc602e98fba4042fe01291 | 8473f9f8b9de41af9ee17ac769e85cbd7b4013c2 | /feature-extractor/color.py | e515cf0ffdfe7f834d938f5d22cefab49b6326c8 | [
"MIT"
] | permissive | rzumer/CICAV | 9529623c9d57c093dc451cdd70aafef5ebe6fdb8 | c1b84c1e14d5c84e841a2bc61089b70d0a2863bf | refs/heads/master | 2020-04-08T20:50:42.471523 | 2019-06-03T12:20:35 | 2019-06-03T12:20:35 | 159,717,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,846 | py | # coding=utf-8
'''
Created on Jun 19, 2017
@author: Raphaël Zumer
'''
import os
import cv2
import numpy as np
import peakutils
from skimage.feature.texture import local_binary_pattern
from scipy.stats import itemfreq
from sklearn.preprocessing import normalize
import heapq
import random
def getHisto... | [
"rzumer@tebako.net"
] | rzumer@tebako.net |
2faed508287230ab969292eaf79e86a5f4c970fb | 5e9c890f5677aa561f7acdb1b1249dc06d5a166a | /tests/output/timesteptest.py | d613f2dd19d68fdf604ce930488681bdf566445a | [
"Apache-2.0"
] | permissive | fispact/pypact | 6690b6d4f8265990e2c238532e57c4c9cf8c88d4 | be7723189236de333c44131ca534fb4286b4e3f7 | refs/heads/master | 2023-01-24T09:36:47.363611 | 2022-10-23T17:58:40 | 2022-10-23T17:58:40 | 118,437,112 | 20 | 10 | Apache-2.0 | 2022-10-23T17:58:41 | 2018-01-22T09:42:58 | Python | UTF-8 | Python | false | false | 9,251 | py | from tests.output.baseoutputtest import BaseOutputUnitTest
from tests.output.doseratetest import DoseRateAssertor
from tests.output.nuclidestest import NuclidesAssertor
import pypact as pp
class TimeStepAssertor(BaseOutputUnitTest):
ds_assertor = DoseRateAssertor()
nuc_assertor = NuclidesAssertor()
def ... | [
"stainer.tom@gmail.com"
] | stainer.tom@gmail.com |
b6cdb14de2b229bc4923a7f21f1125f885adb7b4 | 811aeb74f573da200a1471056b451affc9768ec5 | /rnd-graph-gen.py | d421782207655109c051d3008fecbe5115ab8145 | [] | no_license | Galahad3x/SAT-Solver-Race | e36b130938bff13f33cac892881e6530542eea4a | ad360e8d857d04853a036d7fb5528be312b3999e | refs/heads/master | 2023-04-21T07:37:46.307353 | 2021-05-16T17:36:59 | 2021-05-16T17:36:59 | 350,693,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,085 | py | #!/usr/bin/python3
#######################################################################
# Copyright 2020 Josep Argelich
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"joelaumedes@gmail.com"
] | joelaumedes@gmail.com |
824bf7aab2b27b626049a70f8b430cc71c11a4c1 | 0991f11a710c19e61a41a9893613f4d0a1394640 | /T3/database/Inserção/Scripts Python/gera_ocorrencias.py | e3128b8be9b8a9314476fa4d4e17519cb35e1c30 | [] | no_license | gsalibi/databases-course | a58045619815bfb730aa18cc8da553874a77f7eb | bb89acc8c8b0d88b6a2319d2cc0c7a60632a382f | refs/heads/master | 2020-11-27T23:49:33.213511 | 2019-12-23T01:00:59 | 2019-12-23T01:00:59 | 229,652,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | from random import randint, choice
out_file = open("insere_ocorrencias.sql", "w", encoding="utf8")
out_file.write("use GetLove;\n")
ID_USUARIO_MAX = 499
ID_EMPRESA_MAX = 49
ID_MODERADOR_MAX = 9
N = 200
tipos = ["getlove", "empresa", "usuario"]
for i in range(N):
tipo = choice(tipos)
id_pessoa = randint(0,ID_USUARI... | [
"gustavohstorti@gmail.com"
] | gustavohstorti@gmail.com |
dda6c51639fa901688e4f15aa25e7831613e5c0d | dbff0356a195cfa12d0b4d67203b23c2c7008fc9 | /forth_project/forth_project/settings.py | 1628a35c6597875410abb9095b0daf740f46a41e | [] | no_license | seanjoc/django-deployment-example | 8d020b335d05ed9c5e56b9238272e1aba14c6fa6 | f5c7ca01341063992e05bafd9d0f00f205afd195 | refs/heads/master | 2020-07-18T07:41:57.752907 | 2019-09-15T15:07:05 | 2019-09-15T15:07:05 | 206,208,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | """
Django settings for forth_project project.
Generated by 'django-admin startproject' using Django 2.2.1.
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... | [
"seanjoc16@gmail.com"
] | seanjoc16@gmail.com |
41dd34f0704e005795cdce0a8ac0c187fc698b90 | cd41d350c5e604d37e62265be6fc5116450719b5 | /euler_10.py | a902ca4198af89037314c1c055da3e53ba64768b | [] | no_license | avichai/euler_project | 9c306094f11b296f9ead7b2c18df7fb10e10b0db | 13dcc0db8f18084afad476beec8bda808b7578eb | refs/heads/master | 2021-09-08T07:16:45.344618 | 2018-03-08T09:43:53 | 2018-03-08T09:43:53 | 115,800,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # Summation of primes
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
#
# Find the sum of all the primes below two million.
# Avichai Ben David
import math
import eulerlib
NUMBER = 2000000
def is_prime(n):
for i in range(2, int(math.sqrt(n) + 1)):
if n % i == 0 and n != i:
return ... | [
"avbendav@microsoft.com"
] | avbendav@microsoft.com |
df11eb12d02f73346e7096e6039400e85381a2bb | ab5ef28065b0ad3f8d86fc894be569074a4569ea | /mirari/CRYE/migrations/0028_auto_20190406_1344.py | 99b9026478cf2c6aaf96926be89b77b7d4bbecdd | [
"MIT"
] | permissive | gcastellan0s/mirariapp | 1b30dce3ac2ee56945951f340691d39494b55e95 | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | refs/heads/master | 2023-01-22T22:21:30.558809 | 2020-09-25T22:37:24 | 2020-09-25T22:37:24 | 148,203,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # Generated by Django 2.0.5 on 2019-04-06 19:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('CRYE', '0027_auto_20190406_1331'),
]
operations = [
migrations.AlterField(
model_name='walletcredit',
name='walletcr... | [
"g@gustavo-castellanos.com"
] | g@gustavo-castellanos.com |
c37f7438c8b40540589d7cc283ef83d37f1d00e4 | 91718445561138814ea70c2ffc5f98b8b826a822 | /Trackpad/TestLogTool/trunk/lib/testlogformat.py | 34bc7708cb69beb72e8857bea8b0e2f1206efb18 | [] | no_license | fanmuzhi/Cypress | 5e332236308f1e430f88f0f3f08b1e2252fb9d70 | 1cca98bafb8607b87b62cc3e97447be4290d8575 | refs/heads/master | 2021-05-29T07:52:05.337265 | 2015-04-17T00:58:24 | 2015-04-17T00:58:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | import re
class TestLogFormat:
def change_D_to_data(self, file_path):
log_file=open(file_path, "r+") #open file for read and write
log_string=log_file.read()
regex_m=re.compile(r"<D\d+>")
log_string=regex_m.sub('<data>', log_string)
regex_n=re.compile(r"</D\d+>")
log_string=regex_n.sub('</data>', log_s... | [
"pzho@cypress.com"
] | pzho@cypress.com |
38d10d76d3a920996f12ea2a2bb210288491fa42 | 06ff1c8056cf5408e6acd5396d4c2ea4fb50cd92 | /04Prototype/Students/2019/JarzembinskiBartlomiej/prototype/computer_manager.py | b37ed3e44f66fb52314021e0af51f7c14cc7c2d7 | [] | no_license | kasa4565/DesignPatterns | b654dc8072940634ffcae52d297dc7da5d93c0b2 | 56dfac636b49266aa86f5b61cce0f9fb76a2b859 | refs/heads/master | 2020-08-23T08:10:09.661667 | 2019-08-15T07:54:30 | 2019-08-15T07:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from computer_prototype import ComputerPrototype
class ComputerManager:
def __init__(self):
self._registry = {}
def get_computer(self, name):
return self._registry[name]
def set_computer(self, name, computer):
self._registry.update({name: computer})
| [
"bjarzembinski@yahoo.pl"
] | bjarzembinski@yahoo.pl |
4f46ea8ebc196efd8adfb4e87ab6901f2405e443 | a961aa2542979965bc4a8511e544218b26b34aad | /deleteByTag.py | b0400c2b1224e300be12decac1079b6bffbe11ee | [] | no_license | alexluckerman/pocket-deleteByTag | 39c5c2c4cc38ee55600844e5ab19571c0e8b49f6 | 6f80243d561585fb77f74db8a82b1e8508b43d05 | refs/heads/master | 2020-03-07T19:26:42.256699 | 2018-04-01T20:56:39 | 2018-04-01T20:56:39 | 127,670,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | # Alex Luckerman, 4/1/18
# Deletes Pocket articles by a specific tag
from pocket import Pocket
import webbrowser
# Consumer key for the desktop application
consumer_key=
#Check to see if authorization has already been completed
token_file = open("access_token.txt", 'a')
token_file.close()
token_file = open("access_t... | [
"noreply@github.com"
] | alexluckerman.noreply@github.com |
246d0c5aefaef370f3e696a2d3d9ccaac0b641dc | 5c3f49520cdc2c90b22583c4f9bdc230c2553370 | /05_Diccionarios/06_DiccionariosPython.py | 6ae4535acd97093af7524397aa2ee1a3d8c94675 | [] | no_license | fredy-glz/Ejercicios-de-Programacion-con-Python---Aprende-con-Alf | 0553def06d6f95031edb7d1fe36f56b0bcd00437 | f18b34ef3780dd803d2cfb2046997604c22b8e3e | refs/heads/main | 2023-01-14T16:52:30.289609 | 2020-11-27T06:08:15 | 2020-11-27T06:08:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # JOSE ALFREDO ROMERO GONZALEZ
# 23/11/2020
d_p = {}
while True:
llave = input("Que dato quieres guardar? (enter para terminar): ")
if llave == "":
break
d_p[llave] = input(str(llave) + ": ")
print(d_p)
# SOLUCION DE https://aprendeconalf.es/
person = {}
more = 'Si'
while more=='Si':
key ... | [
"noreply@github.com"
] | fredy-glz.noreply@github.com |
1299cea4d3943a561d6398304b9ae9e60db0a7a6 | 9eadbd115634a6f447af4657440fffafbf5648b1 | /com/python/learn/crawlertest/dpjsongeneration.py | 36c04b988f9c0fe7220fef24cd208011a8f1943a | [] | no_license | awsbigdata/learnpython | 910657fe7d178c209992df682bf2a985689f7edb | 7d4d4782b07653b47190935eaa269ed6b2ba1cb2 | refs/heads/master | 2021-10-13T14:52:17.585320 | 2021-10-12T08:23:18 | 2021-10-12T08:23:18 | 161,269,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import boto3
import json
datapipeline_client = boto3.client('datapipeline',region_name='us-east-1')
pipelineId='df-07575631T1Z9SV9TEGOA'
output_file="/tmp/"+pipelineId+".json"
output = open(output_file, "w")
json_dict=datapipeline_client.get_pipeline_definition(pipelineId=pipelineId)
json.dump(json_dict, output)
p... | [
"srramas@amazon.com"
] | srramas@amazon.com |
c4398a387f767786e13fa0ebf8d104429c864d08 | 3e1aa41a30ce18816789f8d1c5cc57dfc16bab87 | /book_qt_designer_app8.py | b657d34200663e35cb16362b51f4f2d25425e699 | [] | no_license | iianarmas/pyqt6 | 241d10f99debff155f028e3ff5da3cf4073f0159 | 55d91ab3cfd159188186bcc22ffa7a7bd7bf2f18 | refs/heads/main | 2023-08-14T21:11:23.311000 | 2021-10-09T11:33:32 | 2021-10-09T11:33:32 | 412,493,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # ========== MAIN.PY ========== #
from PyQt6.QtCore import QSize, Qt
from PyQt6.QtSql import QSqlDatabase, QSqlTableModel, QSqlQueryModel, QSqlQuery
from PyQt6.QtWidgets import (
QApplication,
QMainWindow,
QLineEdit,
QTableView,
QVBoxLayout,
QWidget,
QLabel, QPushButton, QListView,
)
db = ... | [
"noreply@github.com"
] | iianarmas.noreply@github.com |
c2a51fb029d7cb3847d729fe9af9d409c0094084 | 1c1741c479a915d37cd8710b633eb860fb4f6498 | /test/post_deploy_test/features/steps/steps.py | 24c5d81d2c5759655233a3cbf123348697b3e91e | [] | no_license | EmmanuelOgiji/CircleCI_FlaskApp | f3f5dc06979ad3fcd32fdd7140b1bb2b36bc76de | bd297dafc64f8985c452191601e01549db7cffc2 | refs/heads/master | 2023-05-05T16:50:28.447816 | 2021-05-27T17:29:07 | 2021-05-27T17:29:07 | 370,653,642 | 0 | 0 | null | 2021-05-25T13:44:25 | 2021-05-25T10:30:12 | Python | UTF-8 | Python | false | false | 1,640 | py | """
Requires chromedriver, this should also be approved
"""
from assertpy import assert_that
from behave import *
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.support.wait import WebDriverWait
@given... | [
"epiusogiji@yahoo.com"
] | epiusogiji@yahoo.com |
26a7ff500f1586c705fe6a6fcaa0c1c82506c37b | f095d8c53e96d6b1f15350c4d4c2c84dac680cab | /area_100x100_grid/100x100_grid 100_nodes/random_point100.py | afb1d4f8dfebfe95cb218e8244c42f93ec747d86 | [] | no_license | rubiruchi/wsn_protocol-BEE-MAC | 593e3862681d10c76f28909a1843ab1174ebf684 | e9f9f58e5a0ea264cb9674ea43e548f76a2bd521 | refs/heads/master | 2020-06-04T13:58:19.113633 | 2018-12-28T16:50:05 | 2018-12-28T16:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import random
factor=4
X=[]
Y=[]
number_of_points = 100
for i in range(number_of_points):
X.append(-50*factor+100*factor*random.random())
Y.append(-50*factor+100*factor*random.random())
file_name='random_points100.txt'
with open(file_name,'w') as f:
for i in X:
f.write(str(i)+' ')
f.write('\n')
for i in Y:
f... | [
"mr.rajatgupta12345@gmail.com"
] | mr.rajatgupta12345@gmail.com |
78f993272d394858581bb3c7ad0eba0f8d460217 | c7a34a925df7e95ea296a37c40a93a3984810501 | /manage/admin.py | 7031490a56cd7ac9a39434147f3e96e1b34b4ab9 | [] | no_license | croolicjah/next-to-202-project | 28d77e30b1310be7ce32ec8d914bc93f9dc1bc07 | f0f5ddba5f84f2f7f3ed913e060cacf610eac864 | refs/heads/master | 2022-12-13T21:55:21.805640 | 2018-11-19T21:34:51 | 2018-11-19T21:34:51 | 153,174,330 | 1 | 0 | null | 2022-12-08T02:59:33 | 2018-10-15T20:04:22 | CSS | UTF-8 | Python | false | false | 568 | py | from django.contrib import admin
# Register your models here.
from .models import ArtList
from publishing.admin import ArticleAdmin
from publishing.models import Category, Article
@admin.register(ArtList)
class ArtListAdmin(admin.ModelAdmin):
def formfield_for_foreignkey(self, db_field, request, **kwargs):
... | [
"j.krawczewski@gmail.com"
] | j.krawczewski@gmail.com |
147e003c21d2a29fc5897549545ed467dfb5bd90 | 43d278d96578ec1bc59954b8d4ddbe82dde39a35 | /scripts/ex5p.py | 70e34a3440dd793ff5f79c3b02946bb81a7d3d46 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | Teradata/r-python-sto-orangebook-scripts | 7a9c02baf78e1c49f9414601bae46d8cd8e378d9 | 1f54d4ac61df3485f0ddb8a13422ca8dda4d3372 | refs/heads/master | 2023-08-22T04:54:23.057004 | 2023-08-09T18:35:25 | 2023-08-09T18:35:25 | 233,639,793 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,964 | py | ################################################################################
# The contents of this file are Teradata Public Content
# and have been released to the Public Domain.
# Licensed under BSD; see "license.txt" file for more information.
# Copyright (c) 2023 by Teradata
####################################... | [
"alexander.kolovos@teradata.com"
] | alexander.kolovos@teradata.com |
8df4144788164a6ec89107cc0ade23a41752bfe4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_scheduled.py | 8a085638d8ee5bfb1423f7fbfc4217347f5939be | [
"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 | 252 | py |
from xai.brain.wordbase.verbs._schedule import _SCHEDULE
#calss header
class _SCHEDULED(_SCHEDULE, ):
def __init__(self,):
_SCHEDULE.__init__(self)
self.name = "SCHEDULED"
self.specie = 'verbs'
self.basic = "schedule"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
58e80310c3825cd59f6868df5b281737506dd1ef | d5a4f34b6f82a167c973df44093ad5ced0d30ccd | /venv/Scripts/django-admin.py | d443d34793b15686d21799524a9faae1076a6a97 | [] | no_license | jayawd02/Lecture | 914c8b9a0e5e001ea3c4b596310ef7dfad359498 | 5fc36b199ea3dc23979142794e3390a129626405 | refs/heads/master | 2022-11-26T07:29:44.556994 | 2020-08-10T12:43:25 | 2020-08-10T12:43:25 | 286,471,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | #!C:\Users\senan\PycharmProjects\Lecture\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.p... | [
"jayawd02@myunitec.ac.nz"
] | jayawd02@myunitec.ac.nz |
2b3eae0338ae6d36f2b0c1814e6da04e9f902df0 | ec288bf2f3c9d70cfe9f7e9cb307f151b64addec | /src/F121UdpData/packets/packetData/PacketCarTelemetryData.py | e946014231137d425c6ff174061fdb89533d621d | [
"MIT"
] | permissive | MaximDecherf/F1-21_udp_data | 3764a7aab07810dad213ceee67d8d91a534d43a0 | e15761d26c9ce9b2b47b04e683f08553ed4568dd | refs/heads/main | 2023-07-01T12:52:20.873324 | 2021-08-08T15:43:14 | 2021-08-08T15:43:14 | 390,027,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | import struct
from .classes.CarTelemetryData import CarTelemetryData
class PacketCarTelemetryData:
BYTES_SPLITS = {'car_telemetry_data' : [False, 60, CarTelemetryData ,1320], 'mfd_panel_index' : [True, int, 1321], 'mfd_panel_index_secondary_player' : [True, int, 1322], 'suggested_gear' : [True, int, 1323]}
N... | [
"52461982+MaximDecherf@users.noreply.github.com"
] | 52461982+MaximDecherf@users.noreply.github.com |
23d4b4f8263f3dab3233d3361d31bb2e52192e50 | 1d67e0a295b3ee9d56a84ced5fb5727852533c80 | /Flask/demo/__init__.py | 67bf8ab227d21a4d800a8433638bd49032628381 | [] | no_license | ab1c740/testgit | 4e9a2da80155d62f0c09eac1bd59464c5b611076 | 09bc9222c6dc4f45f1d1d6f22c8816c38d501874 | refs/heads/master | 2020-03-30T00:41:29.917247 | 2018-09-28T03:39:03 | 2018-09-28T03:39:03 | 150,537,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | __author__ = 'dev11'
from flask import Flask
app=Flask(__name__) | [
"1724940634@qq.com"
] | 1724940634@qq.com |
e94f6a0ef46d77df9c8d3ece79519b0d26d16bf7 | 028d788c0fa48a8cb0cc6990a471e8cd46f6ec50 | /Python-OOP/Exam-Preparation/16-Aug-2020/project/software/light_software.py | 6182deaf8edbfaa898d0623ff12527b07c73dd0b | [] | no_license | Sheko1/SoftUni | d6b8e79ae545116f4c0e5705ad842f12d77a9c9d | a9fbeec13a30231b6a97c2b22bb35257ac1481c0 | refs/heads/main | 2023-07-13T15:39:48.826925 | 2021-08-21T12:51:02 | 2021-08-21T12:51:02 | 317,266,200 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from .software import Software
class LightSoftware(Software):
CAPACITY_INCREASE = 0.5
MEMORY_DECREASE = 0.5
def __init__(self, name: str, capacity_consumption: int, memory_consumption: int):
super().__init__(name, type="Light", capacity_consumption=int(
capacity_consumption + (capacit... | [
"martinkypar@gmail.com"
] | martinkypar@gmail.com |
d7ba142cccb319cecf2c13e412c4320f6675ace1 | a60bf4ec6da1dc6226634a74532b3c0967cab4ae | /core/create_db.py | fd9a581376a0d2f3eeb31922896dc6f84341ccf2 | [] | no_license | codecyou/finance | 0f12b4476d3438ca1890ceee4770a42030eb2014 | 5103527fa98776878145bf09e70db454a6c764db | refs/heads/main | 2023-06-26T13:03:15.492252 | 2021-07-15T01:14:41 | 2021-07-15T01:14:41 | 339,940,830 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,768 | py | # 用于创建数据库 及表结构 及视图
import sqlite3
import os
try:
from conf import settings
except Exception:
print("from conf import settings 失败!")
# 创建支出表
payments_table = '''CREATE TABLE if not exists payments(
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
note_date TEXT NOT NULL,
ti... | [
"noreply@github.com"
] | codecyou.noreply@github.com |
06eea92ff092eef3df728b082305ff0eb792b444 | 1871ab24904127053c9d6c5ffd9b776a61b7495b | /Day004/day4.4_rock_paper_scissors.py | 5deeca44e47bc8a79a125cc3b0b59f57782915aa | [] | no_license | izark99/100DaysPython | d857adb08e0186802c766fe6a8bddceb56feed09 | cf0b885c2d03e0dbf80a1c825d325e025fe30fe4 | refs/heads/master | 2023-03-04T02:41:02.119120 | 2021-02-16T06:02:05 | 2021-02-16T06:02:05 | 336,467,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | import random
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
... | [
"izarknguyen@gmail.com"
] | izarknguyen@gmail.com |
236f2f6a95d6fae44b77149fadda0d33ae893743 | fd981b47482467291576ae4650d2925d6fa00564 | /robot_ws/build/hector_slam/hector_imu_attitude_to_tf/catkin_generated/pkg.develspace.context.pc.py | 76e540da7a8c070743b0ac0c7f119166f43c6959 | [] | no_license | Forrest-Z/rtcrobot | 7337271e726db794ce08953f333ad9a0f8e70027 | 229ce1d7e77af9348eac870e00a2c4049e4562f1 | refs/heads/master | 2022-12-16T00:14:17.525845 | 2020-05-18T09:28:09 | 2020-05-18T09:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | 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 = "hector_imu_attitude_to_tf"
PROJECT_SP... | [
"mtk@mtk"
] | mtk@mtk |
dc06bceff161ff58ede64f0c6360bacc5fdbeee6 | 6d7678e3d79c97ddea2e2d65f2c2ef03b17f88f6 | /venv/lib/python3.6/site-packages/pysnmp/proto/api/__init__.py | d742ecc76dec1386047d3cae28b450a5edff0f52 | [
"MIT"
] | permissive | PitCoder/NetworkMonitor | b47d481323f26f89be120c27f614f2a17dc9c483 | 36420ae48d2b04d2cc3f13d60d82f179ae7454f3 | refs/heads/master | 2020-04-25T11:48:08.718862 | 2019-03-19T06:19:40 | 2019-03-19T06:19:40 | 172,757,390 | 2 | 0 | MIT | 2019-03-15T06:07:27 | 2019-02-26T17:26:06 | Python | UTF-8 | Python | false | false | 368 | py | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.proto.api import v1, v2c, verdec
# Protocol versions
protoVersion1 = 0
protoVersion2c = 1
protoModules = {protoVersion1: v1, protoVersion2c: v2c}
dec... | [
"overlord.lae@gmail.com"
] | overlord.lae@gmail.com |
46c5e2b2ed08ba91155f44d266097399816d6ca5 | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/atexit_simple.py | cadf7e713067bfdb1023e1a1054adc7c45bab915 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | # atexit_simple.py
import atexit
def all_done():
print('all_done()')
print('In registrazione')
atexit.register(all_done)
print('Registrato')
| [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
2f9e354a1784f5eaf979f8599925fe45d9fbdaa5 | 72a91a27a88cc6e41ab3afe89736261bd8ba87c6 | /code/testevo.py | a2558dab66054601941becec223d4b2daa7596df | [] | no_license | youcefhd/magisterka | 8d1f2c252f7634963db5c144f940e38d55ad7670 | 13e2c21e989ffed1ba3901affad957d2a6d1bede | refs/heads/master | 2020-06-04T21:48:33.150546 | 2011-05-18T21:09:32 | 2011-05-18T21:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | #! /usr/bin/env python2
# coding: utf-8
from pyfis.struct import *
from pyfis.anfis import *
from pyfis.evofis import *
from numpy import *
# FIS with generalized bell membership functions
fis = Fis(defuzzmethod="sum")
for j in range(2):
inp = Input()
for i in range(4):
inp.mem_func.append(BellMemFun... | [
"swian@post.pl"
] | swian@post.pl |
4137f2cdd8e343b7025f755ff5cdeef1f2386bd5 | 0294c53a4322440110b2ca34752988949b91f2f6 | /code/Experiments-CelebA/label_ablation/main_label_ablation.py | c4474fcd978f91ab4086d1ff1da81ed9475fbb72 | [] | no_license | lokhande-vishnu/FairALM | 31ee3cbf3505d2b3d15e03d7cd7437685b2cc524 | 4f188a3fe0839693e3b7380b82d9dda155d9057e | refs/heads/master | 2020-09-28T10:20:40.931178 | 2020-09-25T04:15:02 | 2020-09-25T04:15:02 | 226,757,715 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,631 | py | import os
import time
import numpy as np
import pandas as pd
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import Dataset
from torch.utils.data import DataLoader
from torchvision import datasets
from torchvision import transforms
import matplotlib.pyplot as pl... | [
"lokhande@cs.wisc.edu"
] | lokhande@cs.wisc.edu |
613efd4b6814f097159ee130eeefac65fad03562 | 5fc0dfa0703a830b58a29ad9526a43f812886988 | /wingman.py | dc4f16cd80e7c6d3564f31efe79f930d68e8775a | [] | no_license | liangz678/arduplane_formation_flying | ca652e097167349253705fc734329ebd8f32bf98 | 11b09a2b046c36a56c58aca014321581abf22aef | refs/heads/master | 2022-12-10T11:51:21.930795 | 2020-09-05T16:16:02 | 2020-09-05T16:16:02 | 292,177,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,511 | py | from dronekit import Vehicle, Command, VehicleMode
from pymavlink import mavutil
class Wingman(Vehicle):
def __init__(self, *args):
super(Wingman, self).__init__(*args)
self.max_speed = 35
self.min_speed = 12
self.aspd2thr = [
{"thr": 10, "aspd": 10},
{"thr"... | [
"liangz1991@126.com"
] | liangz1991@126.com |
283e67dbe46fa60a76f7eeb5e28f4464351f743c | 23d2a7cbb710ef6a9458f3aa6818d25afdd1e4a2 | /1-Python/PreClass/9-OOP/1-CLASS/4-uygulama-instance.py | 5de3119403d717110c4edd7d5f8d097a3bf4bb5c | [] | no_license | m-aykurt/ITF-008-CLARUSWAY | ee8febad952e60ffd1f27211dac9c736766f5110 | 58d863b205d5b445e472ea3d8611f1f1fc1812ee | refs/heads/main | 2023-07-08T21:01:58.542414 | 2021-08-05T05:30:08 | 2021-08-05T05:30:08 | 366,754,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
class BankAccount:
def __init__(self,name,balance = 0.0):
self.owner = name
self.balance = balance
def get_balance(self):
return self.balance
def deposit(self,amount):
self.balance += amount
return self.balance
def withdraw(... | [
"maykurt92@gmail.com"
] | maykurt92@gmail.com |
20f345afae40b45b87b25fa17e45b95c149d222b | 1718e5e3ffb1385860aeb48126caf9fece608ccf | /labs/12/objdetect.py | 9f9034992a79ffb4ff46cf1cd8328dd80a2c7dda | [] | no_license | kristen-foong/spja | 267df57847e01a49354a2f932158ff5a2765857b | 082fde2e163c0bb26ce4815d0815e4a0af4a5b83 | refs/heads/master | 2023-01-06T16:41:54.564429 | 2019-12-11T10:45:31 | 2019-12-11T10:45:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | import cv2
import numpy as np
import pyyolo
darknet_path = 'pyyolo/darknet'
datacfg = 'cfg/coco.data'
cfgfile = 'cfg/yolov3-tiny.cfg'
weightfile = '../yolov3-tiny.weights'
thresh = 0.4
hier_thresh = 0.4
delay = 10
frame = 0
cam = cv2.VideoCapture(-1)
# cam = cv2.VideoCapture("http://192.168.1.23:4747/video")
outputs... | [
"jakub.beranek@vsb.cz"
] | jakub.beranek@vsb.cz |
92305e9ebbee824bea7741033cf2a6b1cda3f9e9 | 9d65e8c566992b53ed164d70f6e07a2618725871 | /cmsapp/migrations/0040_auto_20190201_1030.py | cccc2ce84dfa36d1e9ab3fe81e791ccc59c8607c | [] | no_license | akdeveloper0791/green_content | 0141b0784a4a58a84429cac5d326f65edbf11921 | c04c8d863b90cd2ff4d2e26b4e814f4352251191 | refs/heads/master | 2022-05-18T09:37:51.475697 | 2020-10-26T05:27:10 | 2020-10-26T05:27:10 | 164,104,618 | 0 | 0 | null | 2022-04-22T21:05:12 | 2019-01-04T12:25:38 | JavaScript | UTF-8 | Python | false | false | 1,297 | py | # Generated by Django 2.0.9 on 2019-02-01 05:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cmsapp', '0039_auto_20190105_1121'),
]
operations = [
migrations.AddField(
model_name='multiple_campaign_upload',
na... | [
"vineethkumar0791@gmail.com"
] | vineethkumar0791@gmail.com |
0df44d191cee41e9c549ca85a17895bbc695134f | 7abf6549410dd9aa0fc07097e768e3c68e963e30 | /sudoku_solver.py | 68167d775712c353c32c8b48cfda437d08290a4e | [] | no_license | Reyansh14/Sudoku-Solver | 1be598639d907fe3c6e9a8f512d8204349eb4bdc | 45ffdccac651d8ffc4f166cc813ca5f20369ec36 | refs/heads/main | 2023-03-20T23:08:46.465885 | 2021-03-13T06:33:36 | 2021-03-13T06:33:36 | 328,460,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,779 | py |
# * This is a Sudoku Solver implemented with a backtracking algorithm. Rather than using brute force, the backtracking algorithm takes a step back
# * each time it runs into an incorrect solution and tries another value.
# Algorithm:
# 1: Find an empty space, denoted by 0
# 2: Try entering digits 1-9. If it wor... | [
"noreply@github.com"
] | Reyansh14.noreply@github.com |
aac4db2e2f613a796ff33628461587fd26159cfb | db4d56e63c63cd577c3871349ffa2a7c39c80edc | /3.WEB/cxr_project/cxr_project/wsgi.py | b576c8906ada1a87940826b1a379206b6c76b16d | [] | no_license | Lagom92/CXR_AI | 33014b7471775e776ed51bfeb88128fd7ca4ce6f | bb4bbaf3fc984938f153bf6b58ed99324f779070 | refs/heads/master | 2023-06-09T11:20:57.613207 | 2021-06-20T11:34:21 | 2021-06-20T11:34:21 | 293,966,064 | 0 | 0 | null | 2021-06-18T00:09:48 | 2020-09-09T01:08:43 | Jupyter Notebook | UTF-8 | Python | false | false | 399 | py | """
WSGI config for cxr_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"jyyt0147@gmail.com"
] | jyyt0147@gmail.com |
fb7eb4c9d6fd755f2f34eed4a16bf49710fd62da | 4f0b6bcde72cbc7d90ec666657c8bab0c051ad9b | /tests/postprocessing_test.py | 155ac5e0d042185ce6f36eb5a74afd05fa2c639b | [] | no_license | arkhn/jpyltime | acc4d10b64a70eb26282f53fdb4f913fb1e5731e | 2fcf017bceeb9a0c17ceb31d16443f17eb374188 | refs/heads/main | 2023-04-02T06:41:52.237342 | 2021-04-12T12:25:26 | 2021-04-12T12:25:26 | 350,370,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | import json
import pandas as pd
import pytest
from jpyltime.postprocessing_fhir2ds import FHIR2DS_Postprocessing
from jpyltime.utils import Attribute
@pytest.fixture
def map_attributes():
attribute_file = "jpyltime/documents/attributes_mapping.json"
with open(attribute_file, "r") as f:
map_attribute... | [
"naudin.louise@gmail.com"
] | naudin.louise@gmail.com |
6052439ac95c34f6733052b9f660bf3ee5677c7d | c2d267ef8f2f9552499e120fc691936c708c3610 | /main.py | a13d3f1749da1f5d684b84fef699c109b7b4f7ec | [] | no_license | mattcoldwater/dreamer | b367969f1d95776989ff1fa0797ecc18f1115e6d | f5873442b30f4bf5c2225e0e53660067d40ad50b | refs/heads/main | 2023-05-01T13:35:24.695539 | 2021-05-19T17:53:28 | 2021-05-19T17:53:28 | 368,954,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,586 | py | import datetime
import os
import argparse
import torch
from rlpyt.runners.minibatch_rl import MinibatchRlEval, MinibatchRl
# Runner - Connects the sampler, agent, and algorithm; manages the training loop and logging of diagnostics
from rlpyt.samplers.serial.sampler import SerialSampler
from rlpyt.samplers.parallel.gpu... | [
"mattcoldwater@gmail.com"
] | mattcoldwater@gmail.com |
a2f6d57ad69321fff1bb9c7d283efe37623dfdd0 | b0bfbe345426ed89a6c1d576bd6a8533a523ed66 | /email_list.py | b71358113fd6ba1201b6cd51f7dec93bf1c08ca3 | [
"MIT"
] | permissive | danielhcai/facebook-group-scanner | 63266cba717593459abfcb9cdd28f004fb0dd947 | 453b90a33a247b27963fc74d5b120ab221330736 | refs/heads/master | 2023-06-05T07:42:39.335288 | 2021-06-11T19:31:27 | 2021-06-11T19:31:27 | 325,150,144 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import os
email_path = "./emails/"
if __name__ == "__main__":
email_set = set()
for filename in os.listdir(email_path):
file = open(email_path + filename, "r")
for email in file:
email_set.add(email)
file.close()
file = open(email_path + "final_list.txt", "w")
for email in email_set:
fil... | [
"danielhcai@gmail.com"
] | danielhcai@gmail.com |
973a8a1b14c329a5c94da274049a59f8ec211b7e | 6c4096a4cedbf5c496494e16a521d1d325e7726b | /hw_set2.py | 70590f56dad314b671c25c1c11c4b8daed0aaa7f | [] | no_license | bradlyke/astr5490 | 124b12ac1e6c4924855afd77a3e5adb4c3ae882b | 252cf3f82b3d0fce8c55d5c1cc5e6ad9de85ffac | refs/heads/master | 2021-06-03T23:48:23.253311 | 2020-11-28T20:35:28 | 2020-11-28T20:35:28 | 147,553,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,270 | py | """
By: Brad Lyke
All of the code for homework set 2. This requires python 3 and latex (for plots).
This also requires that sciCon be in the same folder (or in your PYTHONPATH).
It is included in the utilities repository (or submitted along with this program).
Parameters
----------
None : :class:'float'
The program w... | [
"bradlyke@gmail.com"
] | bradlyke@gmail.com |
1317977d88f7dfc8ca7eec39a944aa1dc13d38fd | a279aa7058dd2f8b9a2f7c2600ae803740007374 | /backtracking.py | 9e95b89aff71e8345f3963771c2e2420ccf80f88 | [] | no_license | priteshmehta/leetcode | ca0e45c16ccf6c081944724e142f1028a4d878b4 | c7bc1ca02541a5715eacb023bc87a29981aee9b2 | refs/heads/master | 2022-07-28T12:59:36.167283 | 2022-07-14T16:55:05 | 2022-07-14T16:55:05 | 247,047,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | def permute(list, s):
if list == 1:
return s
else:
return [(y,x)
for y in permute(1, s)
for x in permute(list - 1, s)
]
#print(permute(1, ["a","b","c"]))
#print(permute(2, ["a","b","c"]))
def my_permute(list, s):
if list == 1:
return ... | [
"mehta.pritesh@gmail.com"
] | mehta.pritesh@gmail.com |
9b026ba7f48d69b82da9bdfd8f2359d663bc872c | ef92d05ec7e9be461a80b8ea5e6fc3b7c15a2634 | /RainbowFileReaders/SOBModelReader.py | 657f781b7f1567696c9a1e72345bf57645a69eb4 | [
"MIT"
] | permissive | boristsr/RainbowSixFileConverters | dc6fa409f4ca98df50f9db53002b0eddb0111011 | 1f755f781ee85af068ba7bcc73d4960998363794 | refs/heads/master | 2022-12-05T14:22:38.024932 | 2021-06-14T03:30:14 | 2021-06-14T03:30:14 | 277,547,547 | 3 | 0 | MIT | 2022-11-22T07:57:23 | 2020-07-06T13:20:43 | Python | UTF-8 | Python | false | false | 3,293 | py | """Provides classes that will read and parse SOB model files."""
from typing import List
from FileUtilities.BinaryConversionUtilities import BinaryFileDataStructure, FileFormatReader, SizedCString, BinaryFileReader
from RainbowFileReaders import R6Settings
from RainbowFileReaders.RSEMaterialDefinition import RSEMater... | [
"philip@gdcorner.com"
] | philip@gdcorner.com |
9ff464e41f5ae195d170b9eb2eb24289ba97d2f2 | cff529b50ab0eddc0df5a5f929170ebb823b6a87 | /BinaryTree/bst_min.py | 921a7cf2550b86b18ef4ffec44c23f4b5bedcc4c | [] | no_license | kprashant94/Codes | 4a4ee26a5f127db94f3473459e3843c9245b2846 | ba239475a2d77ca8247e5c9685714372b5311a6c | refs/heads/master | 2021-01-11T07:27:23.480847 | 2017-08-14T11:02:02 | 2017-08-14T11:02:02 | 69,662,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py |
########################################################################
# Title: Binary Search Tree
# Algrithm: Minimum
# Project: codewarm.in
#
# Description:
# 1. Start with root.
# 2. Follow the left child untill the leaf node is reached.
# 3. return the key stored at that leaf node which is the
# minimum eleme... | [
"pkgjnv@gmail.com"
] | pkgjnv@gmail.com |
abe426da3a658e528aaf319d1ee2ba20c3ff66c5 | fcbd0d7ef2222b08263ba70f2158edad30cc351b | /user/models.py | a9ba8d2b9e2ff9b5ddb2134e4f59f539ffbb0e91 | [] | no_license | zlcbs/DjangoEmailVerify | 3b0f0c679425bcbcaba018ff05d4162a02d2924c | 80d164ac7457238a3b9dba47911bb7ed94a819fa | refs/heads/master | 2020-06-22T10:42:11.807381 | 2019-07-19T04:26:49 | 2019-07-19T04:26:49 | 197,700,857 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | from django.conf import settings
from django.db import models
# django密码转换
from django.contrib.auth.hashers import make_password
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, SignatureExpired
from itsdangerous import BadSignature, SignatureExpired
# Create your models here.
class Users(mode... | [
"zlcbs@outlook.com"
] | zlcbs@outlook.com |
06e44c3cb8063b94be445a2a1321f3db2f6243a2 | e5606704ee22c5ac79064472557640824e983101 | /manage.py | 13fe56687a6da9fbdc62731fd558e8718b3ce9e6 | [] | no_license | anandzzz1973/notes_portal | 6ad86789e7124ce56d0fe488814bd5c37efa63b8 | 05d7266b7cbad731cc9b3bee91c670b4a9753543 | refs/heads/master | 2022-04-23T20:07:54.283871 | 2020-04-20T09:24:53 | 2020-04-20T09:24:53 | 257,230,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'notesportal.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"anandzzz1973@gmail.com"
] | anandzzz1973@gmail.com |
674034c2952b3b96cb70d437374061aae365c2bc | 995616eeafc92fb80c651c2265cd6bb65126d343 | /HEURISTICS/Created_Linked_list.py | 04223c8db9b572ebd50fe63bc648d7a5058c4886 | [] | no_license | MaestroPravaler/Algoritmos | 3eab67b0eefb6e47f93992c8ebbab689c2596f54 | 60286ada71ede497ab253652dd13ac8099f61924 | refs/heads/master | 2023-02-23T22:06:10.549598 | 2021-01-29T00:13:05 | 2021-01-29T00:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # =============================== DESAFIO ================================================
# Neste desafio você deverá criar uma estrutura de lista linkada com as seguintes funções.
# Utilize a classe já declarada ao lado para resolver este desafio.
#
# insert_node_to_tail(node) => Insere um novo elemento após o últ... | [
"robson_maestro@alumni.usp.br"
] | robson_maestro@alumni.usp.br |
890412cebe36b9b61ea39dc9f9193816c6d51130 | 7efa2a5179b6152e7e413657d90dc929956d5ecd | /fpre/tests/user_a.py | 32b15859d479a55e928b91324693db1fe9daa2fb | [
"BSD-2-Clause"
] | permissive | fabian-hk/Secure-Two-Party-Computation | 7b8cfc08c4b155ccc7e8fe31df7089f00696a482 | f7e10a0a5c1b0361dd700391d81cdcc75612666d | refs/heads/master | 2020-05-24T21:48:04.861586 | 2019-06-01T20:56:34 | 2019-06-01T20:56:34 | 187,481,351 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from fpre.fpre import Fpre
import fpre.f_la_and as flaand
from protobuf import FunctionDependentPreprocessing_pb2
from conf import conf
certificate = "certificate-alice"
partner = "bob.mpc"
com = Fpre(conf.test_server_ip, conf.test_server_port, certificate, partner)
com.init_fpre()
auth_bits = flaand.get_authbits(co... | [
"hauckfabian@gmail.com"
] | hauckfabian@gmail.com |
be7eb1e17935db081cc7d27e08ce40acff95b537 | 37c360b5446af7d37a1cfdc3fc784faefd2712a1 | /listchallenge.py | ede0a79592cef6b2e667f4b97fc54c99a9b33ca9 | [] | no_license | slatecas/girlswhocode | 1ebe906f17e41f6c700e13b0343916aeaadcefb4 | 890086d04122379c37492006e98d62bb35eea8bd | refs/heads/master | 2020-06-20T05:24:31.301862 | 2019-08-22T15:52:03 | 2019-08-22T15:52:03 | 197,008,873 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | #imports the ability to get a random number (we will learn more about this later!)
from random import *
#Create the list of words you want to choose from.
firstnames = ["Sally", "Nick", "Kirsten", "Lily", "Miguel", "Juliet", "Kim", "Brad"]
lastnames = ["Smith", "Rock", "Gomez", "Walker", "Deer", "Romeo", "Bello", ... | [
"slatecas@gmail.com"
] | slatecas@gmail.com |
4f0a6cf506689d8331fef6df1a76b147b1ff06ad | 82b495a208ebdeb71314961021fbfe767de57820 | /chapter-13/sample02.py | 5d7d05833306dc085a1573bee83e46cd05ba6b89 | [
"MIT"
] | permissive | krastin/pp-cs3.0 | 7c860794332e598aa74278972d5daa16853094f6 | 502be9aac2d84215db176864e443c219e5e26591 | refs/heads/master | 2020-05-28T02:23:58.131428 | 2019-11-13T13:06:08 | 2019-11-13T13:06:08 | 188,853,205 | 0 | 0 | MIT | 2019-11-13T13:06:09 | 2019-05-27T13:56:41 | Python | UTF-8 | Python | false | false | 1,410 | py | import time
from sample01 import linear_search_while
from sample01 import linear_search_for
from sample01 import linear_search_sentinel
from typing import Callable, Any
def time_it(search: Callable[[list, Any], Any], L: list, v: Any) -> float:
"""Time how long it takes to run function search to find
value v i... | [
"krastin@hashicorp.com"
] | krastin@hashicorp.com |
f2515b3ea9d81b413d7f16c3fd76965b099723a9 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_5/ar_12/test_artificial_1024_Fisher_Lag1Trend_5_12_0.py | cdbf8396fc2e08ebfbdd54ac8c3f8c8a7b230896 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 262 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
cbf6623877f12fe14c7d0749337d94361c3e3834 | 03a3cf7c9495612d233eaa362e3c355fb3de445f | /ir.py | f9d4a2d8a30ffe8aefb3f6ec92e5d7232ce789bb | [] | no_license | ijahongirmirzo/raspberry_car | b268169190c138753e6318cd1199bde6e90285a9 | b8c155fcc9f4b4666d2c6528a8ad9064c94b39a1 | refs/heads/master | 2023-05-08T22:43:34.801285 | 2021-05-30T09:15:24 | 2021-05-30T09:15:24 | 349,775,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import time
from car_details import get_obstacle
while True:
get_obstacle()
time.sleep(0.5)
print('---------') | [
"ijahongirmirzo@gmail.com"
] | ijahongirmirzo@gmail.com |
a9a58fa611d25c519139aa2728e61ea88edcabea | 99c64332ccadbbf62c55920964af41b7ae337194 | /Python-sys/working_with_files.py | 68f14af7ea0ea694a29536835ee7620c119d0cba | [] | no_license | ChastityAM/Python | 871c979a29f77d68f17ac6f9bed25485e445679c | ab1c0793c36d7bb07926985d167a6b99fa2acea9 | refs/heads/main | 2023-04-12T19:37:02.591871 | 2021-05-06T15:03:16 | 2021-05-06T15:03:16 | 341,973,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | #This opens a file and then closes file
#with open('genericTxtfile.txt', 'r') as f:
# print(f.read())
#print(f.read(2)) reads 2 characters in file
#print(f.readlines()) reads all lines
#print(f.readline().strip()) reads first line removing whitespaces
#print(f.readline().strip('\n')) reads second li... | [
"chastity.mascarenas.e@gmail.com"
] | chastity.mascarenas.e@gmail.com |
8016bbcceb350db726511f5b1f6141a2dbd37250 | 2d8fad815205a008114d9e9848da8eaf477c4d16 | /server/server.py | 4eb245cf94767dbdbb8829c3b32aae4212cd8a37 | [
"MIT"
] | permissive | thesecretlab/burgerthing | 558ec884cc1cce91cf1b4dcb81ff51b6cad139d6 | d368ec45ff1109eb1265f583dc8a64e0ceb47d64 | refs/heads/master | 2021-04-12T04:38:07.970485 | 2014-10-16T22:19:56 | 2014-10-16T22:19:56 | 25,182,408 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | import os
from flask import Flask, render_template, session, redirect, url_for, request
from flask.ext.script import Manager, Shell
from flask.ext.bootstrap import Bootstrap
from flask.ext.moment import Moment
from flask.ext.wtf import Form
from wtforms import StringField, SubmitField
from wtforms.validators import Req... | [
"jon@secretlab.com.au"
] | jon@secretlab.com.au |
21c172b953044d5360e00ceb641b12757fdb8c14 | 8974cb98b1525f425a095f386f9ed4f43ab166af | /linearregression.py | 68cf47b4e0fc9a088978795a552276a6ccbe6b3b | [] | no_license | yogeshnimangre007/python-for-web-access | 52dd6c1bb14feb06aad200ab4eab56d07c2f9bf2 | 7935eee9062f799dea833d3a94cb44d525e8729f | refs/heads/master | 2020-08-08T00:25:48.196516 | 2019-10-11T08:21:21 | 2019-10-11T08:21:21 | 213,640,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | '''
#creating linear regression using skikit learn
from sklearn.linear_model import LinearRegression
lm=LinearRegression()
X = df[['highway-mpg']]
Y = df['price']
lm.fit(X, Y)
Yhat=lm.predict(X)
'''
'''
#creating a regression plot it gives the line made
import eaborn as sns
sns.regplot(x='highway-mpg',y='price',... | [
"yogeshnimangre@YOGESHs-MacBook-Pro.local"
] | yogeshnimangre@YOGESHs-MacBook-Pro.local |
944a8ae56aaf3a8a42991d685ebf10a9b08a1acc | b0a1b7eb6e755fc2f57ea881ab9e662b67e186be | /BS Spider/tutorial/spiders/quotes_spider.py | 2c85814a6f2bcbf0250ac14456c5b6afe6fd9e65 | [] | no_license | swgleave/BS-Robot | 3cbc2b56aeecabb7a5bcb9be909b4f8f5cd1dce3 | d3c390e53f550f02cbcb57f092e5b5c4f10e3c1d | refs/heads/master | 2020-03-27T09:53:27.215065 | 2019-03-12T16:41:25 | 2019-03-12T16:41:25 | 146,380,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import scrapy
class QuotesSpider(scrapy.Spider):
name = "quotes"
start_urls = [
'http://quotes.toscrape.com/page/1/',
'http://quotes.toscrape.com/page/2/',
]
def parse(self, response):
for quote in response.css('div.quote'):
yield {
'text': quote.cs... | [
"scottgleave@scotts-mbp.lan"
] | scottgleave@scotts-mbp.lan |
97f4a6b8d5f5b27b834790d8aae3f6e3e017f377 | 65b8e025b81ff70660f9b2ea9396a2c839af290c | /tests/test_humidity_ratio.py | 6c863db899fbab264c7ebb12a3a8d9877264dd3d | [
"MIT"
] | permissive | aeieng/python-measurement | 190d7444a415ceaea662ed1e872d71d4dda34479 | 5a61711fbc728546489bd50bf18eb915eff231d3 | refs/heads/master | 2021-05-03T12:13:51.006737 | 2018-02-13T00:09:21 | 2018-02-13T00:09:21 | 120,496,630 | 0 | 0 | null | 2018-02-07T01:00:02 | 2018-02-06T17:29:49 | Python | UTF-8 | Python | false | false | 374 | py | from .base import MeasurementTestBase
from measurement.measures import HumidityRatio
class HumidityRatioTest(MeasurementTestBase):
def test_humidity_ratio_kwarg(self):
val1 = HumidityRatio(kg__kg=1.0)
val2 = HumidityRatio(grain__lb=7000.0)
self.assertEqual(
round(val1.standa... | [
"jmcneill@aeieng.com"
] | jmcneill@aeieng.com |
e758aae3a0cdf6b7aa2f94ab6feb482aa02fcc0d | 9288d0af61fb8fdaef6834472cd0085a6e5db61a | /demos/staticmethodsDemo.py | 2b5cb6d014496e660580ed6c0d467d921188f5d2 | [] | no_license | Xerrex/OOP_python | 3ed17dc695a809a2c3e091df8a11b154f51e5a88 | 1610ec74eac5dac4f07e4a85a3ea2acde9ff5d36 | refs/heads/master | 2021-09-02T05:17:30.128711 | 2017-12-30T18:17:30 | 2017-12-30T18:17:30 | 115,800,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #! /usr/bin/python
from juice.Employee import Employee
import datetime
myday = datetime.date(2017,12,31)
print(myday)
print(Employee.is_workingday(myday))
| [
"alexkagai@outlook.com"
] | alexkagai@outlook.com |
f4d2d7900928d741f21df8df26d01ac16b7b4688 | 03eabd423e813efe497ee7c02889b1a14c12e5a1 | /aoc2020/day18/__init__.py | 3b9ea28467a9a1c460e451f35716c52f9780b979 | [] | no_license | sodle/advent-of-code-2020 | fd6b68b2fe9a994588840a9afde837249132a91a | 26f5704b063272f8a6128b64d7a60172b0bfaa39 | refs/heads/main | 2023-02-02T22:05:24.959634 | 2020-12-20T20:09:49 | 2020-12-20T20:09:49 | 317,423,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | def evaluate_expression(expr: str) -> int:
while "(" in expr:
l_parens = 1
r_parens = 0
open_paren_idx = expr.index("(")
idx = open_paren_idx + 1
while l_parens != r_parens:
if expr[idx] == "(":
l_parens += 1
elif expr[idx] == ")":
... | [
"scott@sjodle.com"
] | scott@sjodle.com |
f937222fd7771c8323cceb1c43e840a9ebbda87b | 86b0256a5da9859d91a9bc96ac3bd0c6143e866a | /Clustering and Dimension Reduction/D.py | 16d1d20d2b8cb2681a31f06c4adce5f1e09ff987 | [] | no_license | abhishekkgp/Machine-learning | 69698eb683e7fc713d20f7f267e52793916736e5 | 63b813ebcff73360d130ec461276c8a5c2ab0fbb | refs/heads/master | 2021-12-30T21:15:49.834130 | 2021-10-08T06:24:52 | 2021-10-08T06:24:52 | 254,072,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,969 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# imports
import numpy as np
import matplotlib.pyplot as plt
from heapq import heappush, heappop
import pandas as pd
from pprint import pprint
import math
import time
import sys
import random
import copy
data1=pd.read_csv('AllBooks_baseline_DTM_Labelled.csv') #importi... | [
"noreply@github.com"
] | abhishekkgp.noreply@github.com |
4d052fe88307855300ccd985d3126d99eccec8f2 | 54c7aee57c82b0d449e07bb28f595fea440c7e6e | /lacusClient_p2pTest/app_infrastructure/networkManagement/restClient.py | fe56d9fd9a4370b2bb3453ff0f64103faa24d6f8 | [
"MIT"
] | permissive | tavog96/distribuidosProyecto | 2a905fa9410221ad8fc316746080795738de4f90 | 8aee06ca580389412809353ac312c417aa1163fa | refs/heads/master | 2020-07-30T11:49:09.353180 | 2019-11-12T21:32:09 | 2019-11-12T21:32:09 | 210,223,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | from ...app_core.interfaces.restClientControllerInterface import restClientControllerInterface
import requests
import json
class restClientController (restClientControllerInterface):
defaultPort = 50505
remoteHostIP = ''
def __init__(self, defaultPort, remoteHostIP):
super().__init__()
se... | [
"tavog96@gmail.com"
] | tavog96@gmail.com |
5e50c90e36940a756c0066a4f1a0415e5c585153 | bc2a96e8b529b0c750f6bc1d0424300af9743904 | /acapy_client/models/v20_pres_ex_record_list.py | 637f5f3594379b6fb12a0376417eca62ccdfbc8b | [
"Apache-2.0"
] | permissive | TimoGlastra/acapy-client | d091fd67c97a57f2b3462353459780281de51281 | d92ef607ba2ff1152ec15429f2edb20976991424 | refs/heads/main | 2023-06-29T22:45:07.541728 | 2021-08-03T15:54:48 | 2021-08-03T15:54:48 | 396,015,854 | 1 | 0 | Apache-2.0 | 2021-08-14T13:22:28 | 2021-08-14T13:22:27 | null | UTF-8 | Python | false | false | 1,983 | py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.v20_pres_ex_record import V20PresExRecord
from ..types import UNSET, Unset
T = TypeVar("T", bound="V20PresExRecordList")
@attr.s(auto_attribs=True)
class V20PresExRecordList:
""" """
results: Union[Unset, List[V20PresExReco... | [
"dbluhm@pm.me"
] | dbluhm@pm.me |
2c1fc8d25010246935865616a7f2d77dbf36a205 | ff739149fb1091fcd090b5e68ab4b98d9fec9262 | /tests/unit/test_sitemap.py | 7f58445883b0626a64a1c800b55009991b5a7c33 | [
"MIT"
] | permissive | zhuoranmusic/dash-docs | dcdab8a5543f6f3f10cb20d196148969bfe01943 | 3518869b195a7827fe661a90f9a2054c31680d44 | refs/heads/master | 2022-04-18T17:37:44.647847 | 2020-04-20T18:13:14 | 2020-04-20T18:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import pytest
import sys
from generate_sitemap import create_sitemap
@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6 or higher")
def test_sitemap_is_updated():
with open('dash_docs/assets/sitemap.xml', 'r') as f:
saved_sitemap = f.read()
assert create_sitemap() == saved_sitem... | [
"chris@plot.ly"
] | chris@plot.ly |
ff755e8a281abc1e5afea579bbce884e577e92fb | 873862a28fd31d2fe1807baaf18a0788b112dd57 | /adsrefpipe/refparsers/ADSocr.py | 88433da5e18a78761f5df84d5dfcab01a063e7d6 | [
"MIT"
] | permissive | golnazads/ADSReferencePipeline | c92b90e3712dc08a5b2e44497bc96c8e07ec4eff | d41ed17b3b2fd7f5ae2deb48243f530cf7f494ee | refs/heads/master | 2023-08-09T15:18:04.114158 | 2023-07-21T14:16:17 | 2023-07-21T14:16:17 | 242,004,478 | 1 | 0 | MIT | 2020-02-20T22:32:59 | 2020-02-20T22:32:59 | null | UTF-8 | Python | false | false | 7,382 | py |
import sys, os
import argparse
import re
from adsrefpipe.refparsers.toREFs import OCRtoREFs
from adsrefpipe.refparsers.reference import unicode_handler
from adsputils import setup_logging, load_config
logger = setup_logging('refparsers')
config = {}
config.update(load_config())
class ADSocrToREFs(OCRtoREFs):
... | [
"28757512+golnazads@users.noreply.github.com"
] | 28757512+golnazads@users.noreply.github.com |
0a5aa2fd854e65b4f7d5edabd1f8eb9ac9b50a6f | 6d3279de4d94795fd015e3d5ebbb68eef5253720 | /labs/python_basics/xls_to_csv.py | 985083153c1c1d7dfd80f63fb06b5af3e6f55c74 | [] | no_license | GerganaTancheva123/ML_Python | a3fedd4d47d2cb41be06fe5049f4b240785958a0 | 379419e1d27d1d33622e69363fcc69b9a8975311 | refs/heads/master | 2022-03-09T04:28:29.574624 | 2022-02-18T16:42:51 | 2022-02-18T16:42:51 | 249,216,462 | 0 | 1 | null | 2020-09-26T19:11:43 | 2020-03-22T15:47:30 | Jupyter Notebook | UTF-8 | Python | false | false | 217 | py | import pandas as pd
df = pd.read_excel('../../project/datasets/ames_datapreprocessing_knime.xlsx', encoding='utf-8', index=False);
df.to_csv('../../project/datasets/ames_datapreprocessing_knime.csv', encoding='utf-8') | [
"gerganatancheva1@gmail.com"
] | gerganatancheva1@gmail.com |
1a41bd25d395783d808bbe7baa3ab53534669a7e | f5a82f7b2695ed08c9f7432013889590ed9cd1d0 | /healthpoint/decorators.py | 17bb337812dcdbf86156385ff894f6a57f2c31fe | [
"MIT"
] | permissive | lordoftheflies/django-healthpoint | bb717f3a4f9a96b9d81f10fbb45e6982c020e93b | aaf8c77150b2ae5bf7d3f9050841b885e8cda17a | refs/heads/master | 2020-08-03T02:55:15.244656 | 2019-09-18T16:13:10 | 2019-09-18T16:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from functools import wraps
from healthpoint.registry import register_health_check
def health_check(f):
@wraps(f)
def wrapper(*args, **kwargs):
try:
result = f(*args, **kwargs)
if isinstance(result, bool):
success, detail = result, 'OK' if result else 'ERROR'
... | [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
aa9facefd2669ed057397d86449409e25ed9d148 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/_farm_beats_client.py | e987fc646fb78c5fa674aa650dfafae923c7d7bb | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 9,228 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
27cf085e94189d07b34a451a64d689a0e82d923d | cb3b8f86dc9b2bf2b5dd614dda7bbedeea9105d9 | /nyural/optimizers.py | 0c294c54d068d78cc8718ee5d37a0cb2448a7421 | [] | no_license | Sandy4321/nyural | 34e85aa4ffe1264725834ef5261885ce9ddbbef9 | acd423c17c7e68c773024f12a32b53efda634c42 | refs/heads/master | 2021-01-14T10:18:26.073554 | 2015-10-26T02:20:54 | 2015-10-26T02:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,010 | py | from collections import defaultdict
import numpy as np
class Optimizer(object):
# note: optimizers don't actually need to inherit from this class, this
# just demonstrates the minimum structure that is expected
def __init__(self):
"""Initialize the optimizer with whatever parameters are appropria... | [
"nyalta21@gmail.com"
] | nyalta21@gmail.com |
36d5daf08e54fc7a9f05e3301277467301632065 | 7b344848258ad46aeb30477f2767ecc804c8510e | /my_app/mysite/forms.py | d180f4c9c8344332d24d16540d6e31b07bcd0016 | [] | no_license | smok2288/Bboard_Dronov | 7a34c1a6dfe52260252fb6d976fb49a8aabeeb29 | 2601458239fdaa63b496ac41c9d2413c516e07ab | refs/heads/master | 2023-07-12T01:18:46.956571 | 2021-08-15T19:20:53 | 2021-08-15T19:20:53 | 396,465,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from django.forms import ModelForm
from .models import Bd
class BdForm(ModelForm):
class Meta():
model=Bd
fields = ('title', 'content', 'price', 'rubric') | [
"https://github.com/smok2288"
] | https://github.com/smok2288 |
30b9875c668ac718286b46df876fdd9aedeea679 | 6a24fbbc8f5a9ee7b08080e0c81cdbc85caca935 | /bEncode.py | eaf1e7b86ba7447bd2a6a0d118d8ac23cb29e430 | [] | no_license | Technochrome/pyTorrent | dcbbbd7d59af38d2d3b8ae63186afef3f0e0f991 | fd79ed25fd1be32acbfd898d486cd315cb9a9d44 | refs/heads/master | 2020-06-01T16:06:59.822153 | 2013-11-13T23:26:16 | 2013-11-13T23:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | import sys
import StringIO
import string
def peek(io):
p = io.tell()
c = io.read(1)
io.seek(p)
return c
def bytesToHex(bytes):
itoch = lambda i: "0123456789ABCDEF"[i]
return string.join([itoch((c>>4)&0xf) + itoch(c&0xf) for c in bytes],'')
def printBencode(d,tab='',listLen=10,byteLen=40):
if isinstance(d,dict... | [
"flamenbird@gmail.com"
] | flamenbird@gmail.com |
ec5441321e76af1f9586545d430293f3a4014a7d | e31bd208438af3d71e19a3be07dd9d4e7e10831b | /secretaria/migrations/0003_profissao.py | 2f1a8984091cbb3d7b41d9cfec9a6673b41c83b9 | [] | no_license | ismaely/SOFIL_RH | f9ef0cff349d54e2f61b0740c62eb37ab5bfde11 | 65e636a0d89ea415897ef08e8e7c9bd7425c5394 | refs/heads/master | 2022-12-09T14:13:27.215869 | 2020-04-16T18:49:07 | 2020-04-16T18:49:07 | 193,426,643 | 2 | 1 | null | 2022-12-07T23:54:14 | 2019-06-24T03:20:16 | JavaScript | UTF-8 | Python | false | false | 1,132 | py | # Generated by Django 2.2.1 on 2019-06-26 03:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('secretaria', '0002_estudante'),
]
operations = [
migrations.CreateModel(
name='Profissao',
... | [
"7ilipe@gmail.com"
] | 7ilipe@gmail.com |
2fffbb85134f34d952aaae32c116c8a6990bef42 | 8809f5cb66207e225415bc87f371988adae797e8 | /lxx/tmp.create-lemma.py | 995c48d5a8051ab5522bdd82e60fcc6844aef82a | [] | no_license | ReneNyffenegger/Bible-Text-Sources | 29de458d74817ad1134edcb0ff4eebbc22bb5163 | 8d1009cf380e68b926e6d96ffe0ddba6e873156c | refs/heads/master | 2023-07-09T09:16:12.592415 | 2023-06-27T10:25:38 | 2023-06-27T10:25:38 | 44,729,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #!/usr/bin/python
import json
import re
lxx_f = open('../github.eliranwong/LXX-Rahlfs-1935/template/ossp_wordlist_lxx_only.csv')
lemma_f = open('lemma', 'w')
strongs_f = open('strongs', 'w')
lxx_f.read(2) # skip BOM
lxx_l = lxx_f.readline()
while lxx_l:
lxx_l = re.sub(',$', '', lxx_l)
no, txt, json_tx... | [
"rene.nyffenegger@adp-gmbh.c"
] | rene.nyffenegger@adp-gmbh.c |
4884f2033320248dfcdd6d2ebf5eecd26249c309 | 7a9995d177e63c20134705f1c123ac918b422c57 | /actions.py | 833284342cd8ce2396181b591a4d8d1315723aaf | [] | no_license | FirojNeosoft/VoiceIntegrationWithAlexa | 6e053dc3cd8c82cf27a45361246ac97fcfc6e99b | 440dda2c975b5f139ccabcfc2a5a854cacf1c572 | refs/heads/master | 2020-04-19T14:28:13.162142 | 2019-01-29T23:24:03 | 2019-01-29T23:24:03 | 168,245,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | """
Actions For Skills Of Alexa
"""
import datetime, psycopg2
class Action():
"""
Action class
"""
def __init__(self):
# Database Connection
self.conn = psycopg2.connect(database="AlexaDB", user="postgres",\
password="postgres", host="127.0.0.1", port="5432")
... | [
"firoj.nalband@neosofttech.com"
] | firoj.nalband@neosofttech.com |
4f27b2f80d0c42c3f4b9d365e081ee521395bbfc | 0cb1fedea7d2ab7c13c525cc17e83f4e8bc59173 | /mutiencrypter/rsa.py | c27ec42c2632d1c36f8cbb6217d909b10aeeb8f3 | [] | no_license | cyfaaa/Security-Tool-in-Python | be04dbcbff015d8e63a34cd88d35ee6c5e849c69 | bbcb940390027181cb892490cf9abcb06f741dac | refs/heads/master | 2020-07-04T02:05:37.181011 | 2019-08-13T10:23:01 | 2019-08-13T10:23:01 | 202,117,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py |
import random
def gcd(a, b):
if (b == 0):
return a
else:
return gcd(b, a % b)
def xgcd(a, b):
x, old_x = 0, 1
y, old_y = 1, 0
while (b != 0):
quotient = a // b
a, b = b, a - quotient * b
old_x, x = x, old_x - quotient * x
old_y, y = y, old_y - qu... | [
"cyf@cyf-macbookair.local"
] | cyf@cyf-macbookair.local |
f20d508b5a52f7b16b2bafc55271c61fa174d3e6 | 2694de88d78edf0bea981f8d23ec61d4d30d5882 | /texture.py | ba5ec822e7b2b8b59dfc12e8a98558387d049c6c | [] | no_license | tabufellin/shader-hand-made | 9da819a3d96f61d08ae61e6552370bb262ebec5d | 8f1a70c9c0bebcec6bb672ea79ced8aeadff26ca | refs/heads/main | 2023-01-22T21:38:46.015962 | 2020-11-28T02:22:33 | 2020-11-28T02:22:33 | 311,198,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | import struct
import os
def color(r, g, b):
return bytes([b, g, r])
class Texture(object):
def __init__(self, path):
self.path = path
self.read()
def read(self):
image = open(self.path, "rb")
image.seek(2 + 4 + 4) # skip BM, skip bmp size, skip zeros
hea... | [
"noreply@github.com"
] | tabufellin.noreply@github.com |
0ae067c5eba7b1ffc6636c0e620c1c15be4f60e6 | 985d4aa1be92f7ef85148a6af258384f846fbc6c | /dataInput.py | 2abaafce4c7a030f36b9d66074efbf8979f10994 | [] | no_license | seororo358/Tensorflow_CNN_exp | a9bca4e3b4c7141ababeae3ab669df65d2d8f157 | c9d1d69d25105f965bac98af68ff4709aa270e4a | refs/heads/master | 2023-02-03T12:43:42.278378 | 2020-12-23T02:02:25 | 2020-12-23T02:02:25 | 323,776,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 30 10:38:00 2018
@author: minsooyeo119112
"""
from matplotlib import pyplot as plt
import numpy as np
class dataInput:
def __init__(self):
self.trainData, self.testData = self.dataLoad()
self.labelName = ['airplane',
'au... | [
"ssr3588@nate.com"
] | ssr3588@nate.com |
3655ea9552cbabdc6684ddb498d2ad34a35c0af9 | a62ed8ef64a4e97d008a66115aeee759e9f5de0a | /_5_token/scripts/attack.py | fc7c74c28c431cf6e7cfe618c0ce9a3f29522173 | [] | no_license | replikeit/ethernaut_solutions | 595ac5f27a547a1a45fba02f0a37ed7929ca1d93 | 6958228ba9be47272359a9b2837e6cf990b7f322 | refs/heads/master | 2023-07-21T05:45:16.806940 | 2021-08-29T15:54:06 | 2021-08-29T15:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from brownie import *
from .reports import *
a0 = accounts[0] # target deployer
a1 = accounts[1] # attacker account
BIGNUMBER = (10**18)
REPORT = Report()
REPORT.add_account(a0, 'Target deployer')
REPORT.add_account(a1, 'Attacker')
def main():
target = prepare()
attack(target)
def prepare():
# deploy t... | [
"dan.ogurtsov@gmail.com"
] | dan.ogurtsov@gmail.com |
2abc66004d8005e3de74c1faa0faa5d8838067b4 | d2c29025d9a83b061ac515564290464b93b63a91 | /main.py | 8ea112c2789eec68d29b5119c37fc9ec0b469b27 | [] | no_license | smrussel/blog-site-flask | d50c666324d0c02e3dd86eaab4e097f3a8081d1d | 0a416aef88cf90ffd37f2161863a3dd89e13ea32 | refs/heads/master | 2023-07-14T21:13:59.523806 | 2021-08-19T12:57:03 | 2021-08-19T12:57:03 | 397,868,403 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | from flask import Flask, render_template, redirect, url_for, flash, abort, request
from flask_bootstrap import Bootstrap
from flask_ckeditor import CKEditor
from datetime import date
from werkzeug.security import generate_password_hash, check_password_hash
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.orm imp... | [
"pythoncoderhub54@yahoo.com"
] | pythoncoderhub54@yahoo.com |
8eeb58371d87b121f5bb1772c07014e7b3a2f4bc | cc09fb4e4272177a4c10d3385c921cf45b61849d | /Gráficos2.py | 5f821c246e0c553b6aaf435765829032fe0198b9 | [] | no_license | felipelimapy/Graficos_com_Matplotlib | a7995fbddde66d9907d40995f1f3ac59ed9fec31 | 3ff3802cdef398ecd9d81e22ed95adf903228b7f | refs/heads/master | 2020-07-04T07:52:13.894710 | 2019-08-14T19:08:32 | 2019-08-14T19:08:32 | 202,211,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import matplotlib.pyplot as plt
municipios=['Manaus', 'Tefé','Maués','Coari','PF', 'Iranduba']
media_pH=[7.5, 8, 5.6 , 6, 9.8, 1.2]
plt.plot(municipios, media_pH, label='pontos', color="green", marker='o')
plt.xticks(municipios)
plt.ylabel("pH no solo")
plt.xlabel("média do pH do solo")
plt.title("pH n... | [
"noreply@github.com"
] | felipelimapy.noreply@github.com |
87b45d6a7a8aa7945dc7a4015923d2d0f1b3f823 | d22c7dc57fe448c60e82b31725115c5d8c69f995 | /celery_config.py | 73fa01fd03478bbfd4571a59c93bd0fb502c6cf1 | [
"MIT"
] | permissive | noanflaherty/self-replicating-repo | 3b63be8f0849e7b88556a9dc40113f961f86735b | 4977f24e0554cd160944f1449f3928e9f156606c | refs/heads/master | 2023-01-24T15:18:23.729665 | 2018-11-19T16:23:59 | 2018-11-19T16:23:59 | 155,890,338 | 0 | 0 | MIT | 2023-01-13T22:54:17 | 2018-11-02T16:06:48 | JavaScript | UTF-8 | Python | false | false | 394 | py | import os
from dotenv import load_dotenv
load_dotenv()
# From env vars
if os.environ.get('LOCATION') == 'PROD':
broker_url = os.environ.get('CLOUDAMQP_URL')
else:
broker_url = os.environ.get('CELERY_BROKER_URL')
result_backend = os.environ.get('REDIS_URL')
# Hard-coded
task_serializer='json'
accept_content=... | [
"noaflaherty@gmail.com"
] | noaflaherty@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.