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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a9f41924341f11d3b0b8378db09167135694fd1 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/AT-ENVMONv2-MIB.py | 8a41928881d0996dfd14cb92ed73ff86ead16afd | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 28,030 | py | #
# PySNMP MIB module AT-ENVMONv2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AT-ENVMONv2-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:13:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
36164698f74c29edb260150452d6baa3ffb30d63 | 953bb772f6e47c00849091fcf01958b97a48cb9d | /run.py | 099bf2144605efd6d5fbb8f8936b69de12ad94b4 | [] | no_license | Drooz/PythonBot | fb43382c346fe891f2e96885fc7a8cfa88169523 | a0010a6911d25a892bcc62a6bcb4e0de7950529c | refs/heads/master | 2021-07-12T20:42:11.047560 | 2017-10-18T18:49:01 | 2017-10-18T18:49:01 | 107,449,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | import schedule
import time
def job():
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tweepy, time, sys, urllib, json
# enter the corresponding information from your Twitter application/Forecast.io API KEY/lat and long:
CONSUMER_KEY = '##'
CONSUMER_SECRET = '##'
ACCESS_KEY = '##'
... | [
"noreply@github.com"
] | Drooz.noreply@github.com |
0bb86e8290317a9804fa8b774d8a344fa6d1faed | 6374c6a8e50d2343403558b98d9706f5e69e5c57 | /packages/vaex-contrib/vaex/contrib/_version.py | 40ba92567c2091b16067fefbfb5dc84529cf3cf0 | [
"MIT"
] | permissive | balbinot/vaex | 3772e2af29f6141ce8cfabf195dda7ff727f5eaf | f1e2c9923b7ba84cd0c3d628bc2cc3858b4c1de0 | refs/heads/master | 2022-11-25T11:37:50.194543 | 2022-11-16T21:15:27 | 2022-11-16T21:15:27 | 171,303,582 | 0 | 0 | MIT | 2019-02-18T14:57:29 | 2019-02-18T14:57:28 | null | UTF-8 | Python | false | false | 52 | py | __version__ = '0.1.2'
__version_tuple__ = (0, 1, 2)
| [
"maartenbreddels@gmail.com"
] | maartenbreddels@gmail.com |
f61feb4084c2ff1d012bd9e7953e641d57196ce1 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /subset/ch_to_digit.py | e5fec92594e325531745a414eddf68751ef747af | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | #! /usr/bin/env python
#
def ch_to_digit ( c ):
#*****************************************************************************80
#
## CH_TO_DIGIT returns the integer value of a base 10 digit.
#
# Example:
#
# C DIGIT
# --- -----
# '0' 0
# '1' 1
# ... ...
# '9' 9
# ' ' 0
# 'X' ... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
e5b791d245408261beafe64cf3f24db3228cd019 | 1bf853a5fb329b812e7f5a9d5f4ac442b9f8a3af | /parsers/classroom_parser.py | 4daa85eec29e0a4b28d657bf5cc1c9e42434760a | [] | no_license | saplat/TG_parser | 41f3cffd7e13de8d4a6becde6b4362756900b1e9 | 34947dea69ee9c4e4b2212138fcf9e637888eac3 | refs/heads/main | 2023-04-03T07:00:15.243345 | 2021-04-07T17:52:43 | 2021-04-07T17:52:43 | 354,776,166 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | from openpyxl.cell import Cell
from openpyxl.worksheet.worksheet import Worksheet
from schedule.document_settings import START_PARSE_ROW,END_PARSE_ROW, ROWS_ON_DAY, StructParse
class ClassroomParser:
def __init__(self, worksheet: Worksheet):
self.__worksheet = worksheet
self.__result_parse: dict... | [
"2ssdmit@gmail.com"
] | 2ssdmit@gmail.com |
dc0ef1742c4338c30fa9ea017d55f277f31ede1c | e7bab0cbd1c574d00abeac19c3e6f4bb43fd42e3 | /wyporzyczalnia/migrations/0002_auto_20210602_1416.py | 8053b1b8982c4922c33a5c9daf943a1d08f8fb53 | [] | no_license | duszek91/biblioteka2 | 591d5fb5b2d2e8cc9ffe2d8d55f4b177acbbfefe | 7b7e7d3103b87f2522361c876b3bca423a307df5 | refs/heads/main | 2023-05-14T10:58:11.410298 | 2021-06-02T16:20:15 | 2021-06-02T16:20:15 | 372,833,424 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # Generated by Django 3.2.3 on 2021-06-02 12:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wyporzyczalnia', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='book',
old_name='relise',
... | [
"adamaczek91@gmail.com"
] | adamaczek91@gmail.com |
21f7f97d500c3d7149bb4a8c56f1789d487dca2b | 907102e2719e0773cb98a96618beebf485b59a70 | /compiler.py | 0452c484092c600bfbc2e136b4b28fc53367df8e | [] | no_license | a52290451/CompiladorExpresiones | 3b697acdb6adc749ad202cc1281e0ef1196645d4 | a91adb5cd072a7c7803c2684ef2ca1bf1bbdf8cd | refs/heads/master | 2021-04-26T23:42:34.677305 | 2018-03-07T00:38:41 | 2018-03-07T00:38:41 | 123,841,953 | 0 | 0 | null | 2018-03-05T00:15:04 | 2018-03-05T00:15:04 | null | UTF-8 | Python | false | false | 1,336 | py | # -*- coding: utf-8 -*-
from pila import Pila
class Elemento:
pilaC= Pila()
dic=[]
listaC=[y.split(' ') for y in [x.strip('\n') for x in open("caracteres.txt", 'r').readlines()]]
i=0
for x in listaC:
for element in x:
for x in dic:
for y in x:
... | [
"noreply@github.com"
] | a52290451.noreply@github.com |
df6e71ba8d721dc4ee24720aa36a4f52effc259d | ec9f108742315278c9e4e904efaf394c00b230af | /alpyro_msgs/visualization_msgs/imagemarker.py | 06220326e0d7c67b2a355eb86d2e552958a055b1 | [
"MIT"
] | permissive | rho2/alpyro_msgs | 3cdc51e0eac5b3cbb2599ce55f69d5813c3064e5 | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | refs/heads/master | 2022-12-05T09:54:16.291162 | 2020-08-26T18:16:37 | 2020-08-26T18:16:37 | 290,033,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | from typing import List
from typing_extensions import Annotated
from typing import Final
from alpyro_msgs import RosMessage, duration, float32, int32, string, uint8
from alpyro_msgs.geometry_msgs.point import Point
from alpyro_msgs.std_msgs.colorrgba import ColorRGBA
from alpyro_msgs.std_msgs.header import Header
cla... | [
"git@rho2.eu"
] | git@rho2.eu |
4c211042e5992a5d156891dbe99717f2e17a57f8 | b5ade61b39b7bc60fe24362d176d17ab0682c3fe | /sentiment-analyser/sentiment-analyser.py | 7b3a101ce762c8a5e9142db41f11cb094f8a0bff | [] | no_license | celrati/naturalLanguageProcessingAlgorithms | 085be17a8b687adb5f01c2205cf047d3302bc71e | 6cb954ff2b05bc2ed71b89b5843c03d8b16a54e9 | refs/heads/master | 2020-09-15T11:13:23.582373 | 2019-11-22T15:34:10 | 2019-11-22T15:34:10 | 223,429,875 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | import sys
import nltk
def getTypeWord(word,pos,neg):
answer = "none"
negg = open(neg,"r")
poss = open(pos,"r")
for w in negg:
if w.strip('\n') == word:
answer = "neg"
#print(w)
for w in poss:
if w.strip('\n') == word:
answer = "pos"
#print(w)
return answer
def analyse(sen,pos,neg):
text =... | [
"m.charif.achraf@gmail.com"
] | m.charif.achraf@gmail.com |
39dbed09398a06255f4a5bcfd72a9097effd6421 | eb08f5defe0f33505e3db1449119badea2b478f3 | /zmirror/threadlocal.py | b5f9e9444fdba92681644a3e984d506a49a28284 | [
"MIT"
] | permissive | dimension88/zmirror | 0b08068a69be879af78e3169d7cf1210ba292107 | 96145ff0a5e2cb0fa856b4c944c4e70a063050be | refs/heads/master | 2020-12-11T05:31:55.289583 | 2016-09-18T00:56:22 | 2016-09-18T00:56:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,775 | py | # coding=utf-8
import threading
import requests
try:
from typing import Dict
except: # pragma: no cover
pass
class ZmirrorThreadLocal(threading.local):
"""
由于Python内置thread-local对代码补全的提示非常不友好, 所以自己继承一个
本类在 zmirror 中被实例化为变量 parse
这个变量的重要性不亚于 request, 在 zmirror 各个部分都会用到
其各个变量的含义如下:
pa... | [
"i@z.codes"
] | i@z.codes |
b1d3d678558d4f06edd0ebf97150540abafe4fad | 52bb0967590b203f0983e428e9709619a79531fa | /Save the Prisoner!.py | 66f2088a2f72ea40b800edf2413f6614b97d209c | [] | no_license | God-father1/Python-HR | 93e3d90832dc01198856595355aca3f031253330 | 9482b44565fd8507c747b4dade573cae282276ab | refs/heads/master | 2021-05-20T10:18:33.687584 | 2020-05-09T12:26:16 | 2020-05-09T12:26:16 | 252,245,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the saveThePrisoner function below.
def saveThePrisoner(n, m, s):
a=0
a=(m+s-1)%n
if a==0:
return n
else:
return a
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
... | [
"58758331+God-father1@users.noreply.github.com"
] | 58758331+God-father1@users.noreply.github.com |
1642b72b20842baec99d2a92d494cd8b0463e372 | d54476a109bb7a75ab18c742e53425358eae2df7 | /shop/tests/test_forms.py | 9e820893b9e2044419bc61642c65de7d89ed1f3f | [] | no_license | OmarGonD/stickers_gallito | 8b46673a73d3fa6fdbdeb9726804f3e3c176543b | 4aa4f5aeb272b393410ed8b518aa39040f46a97b | refs/heads/master | 2022-12-09T20:38:23.672740 | 2019-12-13T14:41:41 | 2019-12-13T14:41:41 | 163,198,792 | 0 | 1 | null | 2022-04-22T21:00:01 | 2018-12-26T16:35:33 | HTML | UTF-8 | Python | false | false | 2,652 | py | from django.test import TestCase
from django.utils import timezone
from django.urls import reverse
from shop.models import Peru
from shop.forms import SignUpForm, ProfileForm
from django.contrib.auth import get_user_model
from django.core.management import call_command
import datetime
#coverage run manage.py test sh... | [
"oma.gonzales@gmail.com"
] | oma.gonzales@gmail.com |
37d5a698f7418ea38e637ac9b88963066cb3ad5c | 1ae9fa6877caec806495d4b85ead13b594cb532e | /CVGuide/blog/views.py | 6fb24d497170295e7c4a32c1cc01b1c6a435170f | [] | no_license | PhillipTodorov/djangoCVGuide | 3b60747c39fa8ddec1ab2ff912892ca23317a393 | 93da926735452a10363308b026406686f1ecf164 | refs/heads/master | 2022-02-17T16:58:08.623222 | 2019-08-21T13:26:52 | 2019-08-21T13:26:52 | 203,585,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello world. You're at the polls index.") | [
"ph.todorov@yahoo.co.uk"
] | ph.todorov@yahoo.co.uk |
b5a9cc829dc3d67d0a45ffc7f7ad8459583bf534 | 73cbc25ba52937fbed6c7a57e676fda254d219e1 | /figures.py | bd801c4b51262bc1ef923240cc725fe619256fa6 | [] | no_license | mrotar/flights_analysis | a86e08126c3afefbe4d3fdd77ebb3549d9e66c61 | bb8f2c5f3f05f09208c232319c0ac63394aa42a9 | refs/heads/master | 2020-04-16T08:24:59.973286 | 2019-01-12T19:30:50 | 2019-01-12T19:30:50 | 165,424,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from bokeh.plotting import figure, show, output_file
from bokeh.embed import components
fruits = ['Apples', 'Pears', 'Nectarines', 'Plums', 'Grapes', 'Strawberries']
counts = [5, 3, 4, 2, 4, 6]
p = figure(x_range=fruits, plot_height=250, title="Fruit Counts",
toolbar_location=None, tools="")
p.vbar(x=frui... | [
"noreply@github.com"
] | mrotar.noreply@github.com |
77cef28d034ff163d22d5c7cc426110548c0c2f2 | 7bda1634a384b6335500c382ced8daf154266d00 | /venv/bin/gunicorn | 33ba129f17b81304a4a5a4db682bdd6c44da8133 | [] | no_license | shephe/mydevskills_backend | 4cd9f74b6ce7c3141f4b0d17a0fb98b3ec3ce251 | 5a8c66d1489fe0532557b9c1dbe7a24ca8b9c173 | refs/heads/master | 2023-08-18T18:20:53.521390 | 2021-08-20T19:02:56 | 2021-08-20T19:02:56 | 275,255,141 | 0 | 0 | null | 2021-09-22T19:19:35 | 2020-06-26T21:59:29 | Python | UTF-8 | Python | false | false | 278 | #!/Users/sheila/pycharmprojects/mydevskills/devskills_djangoapi/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"spkelley26@gmail.com"
] | spkelley26@gmail.com | |
b97fe93a1acffc229780679f3dfa0d29b458ad6c | 6f1c4ab45abb244310b68734bd2c9b00f164faa3 | /Simulator/src_sqdb/make_fake_db.py | f118363f795af56bc66be83ca36b3fbcc5518cfd | [] | no_license | tmatsumu/LB_SYSPL_updated | 8882b4c35740c0f237322a61c151f46869b690f1 | 244da4ade38ee98eedfff92d483a68cd27058c4e | refs/heads/master | 2021-04-29T18:50:41.670625 | 2020-05-20T01:44:25 | 2020-05-20T01:44:25 | 121,703,231 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,861 | py | import numpy as np
import sqlite3 as sq
import fileinput
import sys
import os
def read_table(filename):
import fileinput
arr1=[]; arr2=[]; arr3=[]; arr4=[];
arr5=[]; arr6=[]; arr7=[]; arr8=[];
arr9=[]; arr10=[]; arr11=[]; arr12=[];
arr13=[]; arr14=[]; arr15=[]; arr16=[];
filelines = fileinput.i... | [
"tmatsumu@cw11.cc.kek.jp"
] | tmatsumu@cw11.cc.kek.jp |
716af990e8fb5ee7ee29272dbbc277282284092a | f0bdfef27151b14ce368bf876c12e9c520c8b4d6 | /metrics/run.py | 2a81853a6e5259b0fd0f5fb06178f312ebf2bd81 | [
"MIT"
] | permissive | testlink-metrics/testlink-metrics-report | 56d82a65b20cf4587d2e30a157a6727185d9c24d | 628e21923b874c4a37755f6fb92420b0d78e59bc | refs/heads/master | 2021-03-18T18:37:28.308662 | 2020-05-08T06:32:32 | 2020-05-08T06:32:32 | 247,091,078 | 10 | 0 | MIT | 2020-04-26T10:13:47 | 2020-03-13T14:31:57 | HTML | UTF-8 | Python | false | false | 2,142 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from flask import Flask, render_template, request
import logging
from metrics.svc.tmr_client import TMRClient
logging.basicConfig(level=logging.INFO, format='[ %(asctime)s ] %(levelname)s %(message)s')
TMR_VERSION = '1.2.1'
app = Flask(__name__)
tmrclient = TMRClient()... | [
"seoktaehyeon@msn.com"
] | seoktaehyeon@msn.com |
27090db014ed2bb55e604d37feb7125927866fdc | dbcccd41d4260614f8ed7b210b730628731a3cf4 | /wgraph/parsing/utils.py | b940972eeabbef1420f5984b50096e5a83a7bb25 | [
"MIT"
] | permissive | metopedia/wgraph | 9e26e2f816ffcbb29cfcc5b2990657e21c50941d | 71649dfd64e80fa8da20aa0db5e18d49f6ad4d13 | refs/heads/master | 2023-03-25T05:10:39.994551 | 2020-09-20T08:36:36 | 2020-09-20T08:36:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Some parsing utilities"""
from typing import Iterator, Iterable, Tuple, Optional
from wgraph.parsing.types import Ref, Title, Section, Line
def extract_named_argument(string: str, kw: str) -> Optional[str]:
token = f"{kw}="
start_of_word = string.find(token)... | [
"remi@cliqz.com"
] | remi@cliqz.com |
a75f6517e1c4ae9a998e951619b86e8d07e32935 | c09f521f12d12d2c06e9639429f77a0c74fd67d0 | /pytorchgeometric/lib/python3.7/site-packages/torch_scatter/__init__.py | 49bb3e12f8b9b02ff01efa544deb29af15a29d16 | [] | no_license | dinhinfotech/Pretrain_DGCNN_NIPS_2019 | bbfca04537607825d156b0fcf5abbd71faf93de5 | 020bcb6a4dc4593bae7f6c590d53227d5d6e1aa0 | refs/heads/master | 2022-10-26T08:09:26.052013 | 2019-04-05T13:11:34 | 2019-04-05T13:11:34 | 179,515,754 | 6 | 1 | null | 2022-10-10T09:12:35 | 2019-04-04T14:36:56 | Python | UTF-8 | Python | false | false | 444 | py | from .add import scatter_add
from .sub import scatter_sub
from .mul import scatter_mul
from .div import scatter_div
from .mean import scatter_mean
from .std import scatter_std
from .max import scatter_max
from .min import scatter_min
__version__ = '1.1.1'
__all__ = [
'scatter_add',
'scatter_sub',
'scatter... | [
"dinhinfotech@gmail.com"
] | dinhinfotech@gmail.com |
e0f3f2c193b3b995e1e890607db182e89d5ab89a | 99bdb3251fecee538e0630f15f6574054dfc1468 | /bsp/nuvoton/numaker-hmi-ma35d1/nuwriter_scripts/nuwriter.py | 60ae52747bc1f5f1a5f3f0c6a2a1fcf5e1e1f77f | [
"Zlib",
"LicenseRef-scancode-proprietary-license",
"MIT",
"BSD-3-Clause",
"X11",
"BSD-4-Clause-UC",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | RT-Thread/rt-thread | 03a7c52c2aeb1b06a544143b0e803d72f47d1ece | 3602f891211904a27dcbd51e5ba72fefce7326b2 | refs/heads/master | 2023-09-01T04:10:20.295801 | 2023-08-31T16:20:55 | 2023-08-31T16:20:55 | 7,408,108 | 9,599 | 5,805 | Apache-2.0 | 2023-09-14T13:37:26 | 2013-01-02T14:49:21 | C | UTF-8 | Python | false | false | 70,098 | py | # NOTE: This script is test under Python 3.x
__copyright__ = "Copyright (C) 2020~2021 Nuvoton Technology Corp. All rights reserved"
__version__ = "v0.37"
import os
import sys
import argparse
import json
import crcmod
from Crypto.Cipher import AES
import hashlib
import ecdsa
import binascii
from datetime import dateti... | [
"bernard.xiong@gmail.com"
] | bernard.xiong@gmail.com |
5c68db0e138606d541df3702c34fd6b38db516a3 | 65c258f891c6822b097929f1369059f9770f355c | /Stefan/main.py | 40b2eec9f66fe2ebfd4d5ecc50b2a2d269927605 | [] | no_license | mwood1212/ADS-Group-Project | a45c80c62635179e93ed368c3eb53a0f0ff60896 | 81615002da92e7c540445e2f1cac96b494c21272 | refs/heads/main | 2023-04-30T07:42:07.646330 | 2021-05-19T18:36:16 | 2021-05-19T18:36:16 | 351,038,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | import pandas
import time
verbose = False
verboseprint = print if verbose else lambda *a, **k: None
def loadData(fileName):
verboseprint("Loading data")
return pandas.read_csv(fileName, sep='\t', header=0, error_bad_lines=False)
def assertAllLocationsUs(dataFrame):
for (columnName, data) in dataFrame.it... | [
"stefanke555555@gmail.com"
] | stefanke555555@gmail.com |
285efa4f2db831661d0382699ef2c7c51daea75b | 6a3a2e52faa64ae1a1a9d61e905fc7e899ad4883 | /pyocd/probe/cmsis_dap_probe.py | 6f1c4a4b43fc7511edd8c47af60a776a6d30490b | [
"Apache-2.0"
] | permissive | maowubin/pyOCD | 75f5db4e0fc834c8f97afcae14c8eb57fd048b3a | 0bb6c57a2764a3fcf631833c32d64660bdc109f9 | refs/heads/master | 2023-03-14T18:58:36.793543 | 2021-03-03T21:11:06 | 2021-03-03T21:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,550 | py | # pyOCD debugger
# Copyright (c) 2018-2020 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"flit@me.com"
] | flit@me.com |
3a9d00dbffbfc164e2c73c7750ef4c357327fb63 | 67c599b9999542ca8f6a56d624fcaee8cee66119 | /sbscraper/__init__.py | 13d249c3f6d111510ed7caed1a6cd054a972db5a | [
"Apache-2.0"
] | permissive | quoppy/sbscraper | fdaa90c98235f3a192b38889934995ddd720a24c | 3b8ebfc67df614b2b807e65ecff80f4cc2f66715 | refs/heads/master | 2021-01-17T12:50:25.092138 | 2016-07-15T02:26:46 | 2016-07-15T02:26:46 | 63,233,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # -*- coding: utf-8 -*-
"""Scrapes websites for product information."""
__version__ = '0.0.1'
# Set NullHandler to avoid handler-related warnings.
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler()) | [
"jl.listens+cloud9@gmail.com"
] | jl.listens+cloud9@gmail.com |
a2f4d170e79ddbac03d069e9c8697e6ebca71343 | bde22ccb01e6ed47788dc353fa5a3db826840b8f | /p1.py | 3be8867835a7148eb8ff27da98bd46edb9c0ae7b | [] | no_license | DaturaF/warehouse_system | d0e8f7d293bf2c90a486e4776ae3e341a6d0284c | 3717aa5cd6fb48cda831002cf8c186878d6003fe | refs/heads/master | 2021-01-25T07:02:10.112487 | 2017-06-07T14:45:21 | 2017-06-07T14:45:21 | 93,646,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,707 | py | #!/usr/bin/env python
#coding=utf-8
"""
仓库管理系统主界面
by: xf
2017.6.6
"""
# Form implementation generated from reading ui file 'C:\Users\Administrator\Desktop\p1.ui'
#
# Created: Fri Apr 21 10:21:55 2017
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import Q... | [
"1187853170@qq.com"
] | 1187853170@qq.com |
544b79ac2871ed28f3ba737508806e5af274224d | 8c848d27cfd3b521311b9c668be7ba963f3cc39e | /src/import_history.py | da6845cd6a9704083f50eaacda6309af9a074efc | [
"BSD-3-Clause"
] | permissive | CESNET/GRIP | b9f29660937b78528c8221238d1e405b08688265 | 1892b28fb437d806a9d2a006639201752cb3db2a | refs/heads/master | 2023-03-20T16:17:53.010337 | 2018-10-25T10:52:02 | 2018-10-25T10:52:02 | 140,474,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | import os
import sys
import json
import psycopg2
import settings
from list_ip_addr import list_ip
def import_idea_to_history(line):
if 'Category' not in line:
return
category = str(line['Category']).replace('[', '{').replace(']', '}').replace("'", "")
source = []
sourcep = []
... | [
"root@svepes1.liberouter.org"
] | root@svepes1.liberouter.org |
02c289f6787a894b12dce3c4d37341319d114e02 | e170e98d08c76fdcb9e6ee4fa4e09db6c3055ee1 | /_runfile1.py | fb36f6a70d56bb0bb8d7b7b2f1ecf230f4763177 | [] | no_license | Locke-bot/graphy | 74ed58ea99480ae6aef7ec7630f4995875543d35 | 4eadb198a5aea642cbfdb8795ad56f592f547d3a | refs/heads/master | 2023-09-01T04:05:53.719439 | 2021-10-01T17:33:13 | 2021-10-01T17:33:13 | 397,513,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 30 13:21:58 2021
@author: CHAINZ
"""
import time
from graphOCR_2 import Graph
import cv2
from matplotlib import pyplot as plt
gridunit=20
inittime= time.time()
img= cv2.imread("x_square.png", cv2.IMREAD_GRAYSCALE)
x= Graph(img,gridunit)
cor=x.get_coordinate... | [
"oladosumoses24@gmail.com"
] | oladosumoses24@gmail.com |
bbcee4ede5092eeebc1a80a52b8eed3a5f94f723 | fabcae09d3b564ccd3d0207c4acc961505a4f17a | /triangle_type.py | d756c7b4f10d1868c43130f53952bb538d5ccd85 | [] | no_license | ankurrathi1602/python_projects | 79be893626c80d7700f940b8e4e05cee464d04c2 | a8883cde705c3d7cdf43e3f6fc2ae3814cf7a7ba | refs/heads/master | 2020-12-03T06:17:24.810194 | 2020-01-02T14:20:06 | 2020-01-02T14:20:06 | 231,227,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # To find the type of the triangle
x, y, z = map(int, input().split())
if x > y+z or y > x+z or z > x+y:
print("Triangle is invalid")
else:
if x == y == z:
print("equilateral triangle")
elif x == y or y == z or x == z:
print("isosceles triangle")
else:
print("scalene triangle")... | [
"ankurrathi1611@gmail.com"
] | ankurrathi1611@gmail.com |
c740ade91160be9396ce3f0834943a1257459dd1 | a852caec1816bb6e0680afe4b4c1e29fe98e68f6 | /personality_api/urls.py | af08ef93867bb9a9fde4a4dacabebd31b403a3df | [] | no_license | AxSch/Vyou | e54ddac2933e5f98c5e21401f06fa40a375eaa96 | b5d6e289cfed2d24d5ddbda82955850ce4bf234c | refs/heads/master | 2022-12-13T11:34:19.841447 | 2019-02-13T06:41:10 | 2019-02-13T06:41:10 | 143,021,571 | 0 | 0 | null | 2022-12-02T11:54:14 | 2018-07-31T13:57:26 | JavaScript | UTF-8 | Python | false | false | 344 | py | from django.urls import include, path
from .views import PersonalityApi, EnergyFlowApi, EnergyLevelApi, EnergyMappingApi
urlpatterns = [
path('personality/', PersonalityApi.as_view()),
path('energy_flow/', EnergyFlowApi.as_view()),
path('energy_level/', EnergyLevelApi.as_view()),
path('energy_mapping/', Energy... | [
"alex_schuneman@outlook.com"
] | alex_schuneman@outlook.com |
1508040a54d8ca8023e940ad28eebaec9629ab2c | 9e41a880c70ae0367b11aa5dd2fee5e21c9d8fdd | /dexcom_reader/dxcom-records-insertion | 7091c7d154627891065ae2cab2ca47b9d42c1e6b | [] | no_license | RSwallow987/decoding-dexcom | 42f17a6b97a723fe0d862edb926375428d3d1943 | 470bb8f0cd2c135a6a3f3342e0ba25b6e4fa57bb | refs/heads/master | 2021-05-30T00:13:53.370366 | 2014-11-25T22:42:58 | 2014-11-25T22:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | #!/usr/bin/python
import user
import dexcom_reader
from dexcom_reader import readdata
from pprint import pformat, pprint
def main( ):
Dexcom = readdata.Dexcom
device = Dexcom.FindDevice()
if not device:
sys.stderr.write('Could not find Dexcom G4 Receiver!\n')
sys.exit(1)
else:
print device
dex... | [
"bewest@gmail.com"
] | bewest@gmail.com | |
2c8e0ba3d24d4e951ecbb03727674b82cd7245cb | 169cc760a21103fc884df20f4e5a88b7b4e4181a | /Comparison.py | b0369921897a73d2455f2c4f3f58ec5a2ee6d710 | [] | no_license | AndreasWituschek/fermi_analysis | 40028882d7d66fa6d22c8661ecaaff16ba07ab78 | bee846b4bf9cfb8ae20019cb9b38f1e4bfff69f3 | refs/heads/master | 2021-08-17T08:38:24.920011 | 2020-04-27T16:29:55 | 2020-04-27T16:29:55 | 170,501,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 5 02:47:44 2019
@author: ldm
"""
import numpy as np
import os
import fermi_analysis.functions as fk
import h5py
import matplotlib.pyplot as plt
import scipy.constants as spc
import pickle
import fermi_analysis.functions as fk
"""Experimental Parameters"""
# parameters ... | [
"ldm@pcl-ldm-ehf-03.(none)"
] | ldm@pcl-ldm-ehf-03.(none) |
31edc2d23b9bb87188c1582f8d11fc1719a7eb46 | 65ffed7634bb8f4fdb063d7c1baf2f0028c3bea4 | /NLI-VC-Thesaurus/lib/python3.6/site-packages/pandas/tests/test_lib.py | 7b04501bfc2c4033e41a8defb2dbc5a37f771f79 | [] | no_license | ygherman/NLI-VC-Thesaurus | b94325dcbdf25d9756ed54e8b1414568e8dc4250 | 9c1355447b7a885cff7b1a76a0124ddf9bc4cca6 | refs/heads/master | 2021-08-16T22:52:15.818540 | 2017-11-20T13:07:50 | 2017-11-20T13:08:24 | 108,041,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,167 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import pandas._libs.lib as lib
import pandas.util.testing as tm
import pytest
class TestMisc(object):
def test_max_len_string_array(self):
arr = a = np.array(['foo', 'b', np.nan], dtype='object')
assert lib.max_len_string_array(arr), ... | [
"gh.gherman@gmail.com"
] | gh.gherman@gmail.com |
1d9847fea873f5179cc23094a8ee590369cb9bc9 | 3546dd5dbcffc8509440c820faa7cf28080c5df7 | /python35/Lib/site-packages/scipy/special/orthogonal.py | 86e6cb62df876fdf13c370d9234d85b61ad5b577 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | Matchoc/python_env | 55ad609c8270cc6148eda22d37f36709d73b3652 | 859d84d1717a265a4085ad29706b12c19c62d36f | refs/heads/master | 2022-02-13T11:05:51.825544 | 2020-06-05T02:42:08 | 2020-06-05T02:42:08 | 75,793,921 | 0 | 1 | Apache-2.0 | 2018-12-14T07:30:28 | 2016-12-07T03:06:13 | Python | UTF-8 | Python | false | false | 51,347 | py | """
A collection of functions to find the weights and abscissas for
Gaussian Quadrature.
These calculations are done by finding the eigenvalues of a
tridiagonal matrix whose entries are dependent on the coefficients
in the recursion formula for the orthogonal polynomials with the
corresponding weighting functio... | [
"matchoc@hotmail.com"
] | matchoc@hotmail.com |
d31766103313defb7724d65c537da1ef76e932b5 | b2b7f549c8cdd632fbc2b6083e64e7c446365134 | /assignment3/assignment3_3.py | ced1cde6405f911f839318ddc43e5cb093dbc69c | [] | no_license | incubus9/anwala.github.io | 54709ecbd05be083222af6f0e4a369dcf44b8b0c | 50ba51e02ec08d43b49d8a40088e4a7ca977541b | refs/heads/master | 2021-09-13T12:49:47.688796 | 2018-04-30T01:57:40 | 2018-04-30T01:57:40 | 118,710,825 | 0 | 0 | null | 2018-01-24T04:16:10 | 2018-01-24T04:16:10 | null | UTF-8 | Python | false | false | 1,633 | py | import os, os.path
import re
from collections import Counter
wanted = 'NCAA'
cnt = Counter()
print(len([name for name in os.listdir('.') if os.path.isfile(name)]))
DIR = '/home/ryan/Desktop/CS432/Assignment3/html_complete/'
dirpath = '/home/david/Desktop/CS432/Assignment3/html_complete/'
print(len([name for name in ... | [
"noreply@github.com"
] | incubus9.noreply@github.com |
79fa52f649b0f4d801629e7b6885808e9b3d3de4 | e41b33472f12b9394aa7e4ec6ec6e69869db567a | /nablapps/interactive/migrations/0021_codegolf_result_unique.py | ffe8784abbc3306613a5fabb6bcf0ffe5a8a5939 | [
"MIT"
] | permissive | Nabla-NTNU/nablaweb | 0d4d0f8143aa05a28f54c1446e10ab429bd0914d | 5661cbea1011f8851a244ae3d72351fce647123f | refs/heads/master | 2023-07-08T01:56:26.629362 | 2023-06-26T15:20:50 | 2023-06-26T15:20:50 | 213,379,303 | 21 | 7 | MIT | 2023-08-31T18:09:34 | 2019-10-07T12:38:11 | Python | UTF-8 | Python | false | false | 839 | py | # Generated by Django 3.1.13 on 2021-11-20 16:53
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("interactive", "0020_result_submitted_at"),
]
operations = [
migrations.AlterField(
model_name="res... | [
"aesvandal@gmail.com"
] | aesvandal@gmail.com |
e128093d53a1c732b1e5d9baa1629d3ab06deba4 | 5ae8b50108c5de4ad922658a466b96c98dbb90e8 | /2020-eis-tracing/fig_params.py | 50b7720b54e48c8f6f6631af3b008f9136f08489 | [] | no_license | dstansby/publication-code | 3e997cbd6197e554fbdca10ecf0c17e9b5e86cb0 | 111c069ece3582eec71145353943cf1a54e3c6ae | refs/heads/master | 2021-05-26T06:01:52.343135 | 2020-09-29T13:20:57 | 2020-09-29T13:20:57 | 127,780,322 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | figwidth = 2 * 3.464567 # 88mm in inches
fontsize = 12 | [
"dstansby@gmail.com"
] | dstansby@gmail.com |
ccc3f79e8ea0be4b226986c63bee5424eff22036 | 0b76e97751ef17f311518e5e57c2d1c93fecbdde | /miniproject/api/organization/models.py | 5620b61daa230249a5074cd7298ef08581c6d54d | [
"MIT"
] | permissive | dandy7373/HR_web | 9b2bdaf06eca8ba261e539c2b3e0176538dcdfd1 | 65dd80159c7e3113961d55ef126b7df75c7bda13 | refs/heads/main | 2023-03-17T11:04:12.162620 | 2021-03-13T11:19:40 | 2021-03-13T11:19:40 | 328,761,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | from djongo.models import Model, CharField, DateField, ObjectIdField, IntegerField, TextField, BooleanField, DateTimeField,ArrayField,EmailField
from django.utils import timezone
# Create your models here.
class LeavesToBeApproved(Model):
from_date=CharField()
from_email=CharField()
to=CharField()
to_da... | [
"daniel.shamirdavid@outlook.com"
] | daniel.shamirdavid@outlook.com |
90d3f6f3d591fc6d0866886da0e77dce787f80ba | 1944e53fcf1d74fe0c113ed27a826061c0e121c9 | /Ninja/playground.py | 104a58be154e916374960112476bcd1236ae0417 | [
"MIT"
] | permissive | SashaKrykun/Python-Study | 642600b5416a9b58de356ff84bd58e991bc28727 | f7c10c41eec58287aa2669d3e16326a52fc91bab | refs/heads/master | 2022-01-12T10:20:45.046817 | 2019-07-15T02:46:29 | 2019-07-15T02:46:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | class TreeNode:
def __init__(self, data=None):
self.left = None
self.right = None
self.data = data
class LinkedListNode:
def __init__(self, data=None):
self.data = data
self.next = None
def binary_search(root_node, target):
while(root_node.left or root_node.right):... | [
"cyandterry@hotmail.com"
] | cyandterry@hotmail.com |
34779c95fdbc58fb7070c826513e74731d46dc5f | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/Run2017F-UL2017-v1/MET_cff.py | d0b3dfc8db5ef4693dafb26771f7b5aabac1d511 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 301,819 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/data/Run2017F/MET/MIN... | [
"hiltbran@umn.edu"
] | hiltbran@umn.edu |
2a4bb876620ba1ddd3603d56c0d7ad88280b0fb5 | ffe969e078e6b2af7aaf111339921a4d3e3c10eb | /spatialdata/spatialdb/SimpleGridAscii.py | 3ceea300981e8bbbad0a419c59a6a7d634631ad7 | [
"MIT"
] | permissive | owenschris/spatialdata | bd91881a854043b5d51cf45b99b2180eda1b104b | cff9f8efe91c1e1f145c79c8cfef49f7595b8ed3 | refs/heads/master | 2020-06-28T03:49:30.473787 | 2019-07-29T19:02:13 | 2019-07-29T19:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,663 | py | #!/usr/bin/env python
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
#... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
3b223b98e75e175b03ea13247772ea494072be9e | b196bfc09b5bc917502603f0ddff608a916283d9 | /parcial.py | 2abe2e382757f7c52b1b267a9bb07991352ca784 | [] | no_license | RaquelNeedsCoffee/Cripto | 2f9ea1e15712bf022f6d044278514a46bd68665d | 7fcc426374dfe9ec80596ddf9319d380b4182d39 | refs/heads/master | 2022-05-12T02:09:23.657781 | 2017-11-28T17:43:33 | 2017-11-28T17:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | """
Código auxiliar para el examen parcial
"""
import numpy as np
def galois_multiplication( a, b):
"""Galois multiplication of 8 bit characters a and b."""
p = 0
for counter in range(8):
if b & 1: p ^= a
hi_bit_set = a & 0x80
a <<= 1
# keep a 8 bit
a &= 0xFF
... | [
"raquelpa93@gmail.com"
] | raquelpa93@gmail.com |
5e72c642dca62cd1f5bc2f5aef72ce0153636ca4 | 3dffe15fcacfc63cec4669567903f128abb37b01 | /webapp/config.py | 0f6d75a3e3a00fd22d5e578664efbea0814a768f | [] | no_license | YanshengLiu2000/search-engine | 60a17cb2346d8fba1f8fbdc3e106a9fa0a344a1e | 1fd690f32cc6ac6fdd1ddae4f2242c375c9edc2f | refs/heads/master | 2020-03-22T19:11:45.032184 | 2018-07-11T02:56:35 | 2018-07-11T02:56:35 | 140,512,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import os
"""
This file stores all necessary directory may be used in other part of project.
"""
print("this is config.py.")
ROOT_DIR = os.path.dirname(__file__) # directory of the project root
VEC_DIR = os.path.join(ROOT_DIR, 'vectorisation') # store all vectorisation part
FQ_DIR = os.path.join(ROOT_DIR, 'fast_quer... | [
"yansheng.liu2000@gmail.com"
] | yansheng.liu2000@gmail.com |
c29d93b4345563eb21941c1364ae9a573eb359fb | ae7ba9c83692cfcb39e95483d84610715930fe9e | /jw2013/Leetcode-Py/3Sum Closest.py | f238c6dd5b0d8f2cef6c9512aa07e707763d23f7 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | class Solution:
def threeSumClosest(self, A, target):
A, result, closest_diff, i = sorted(A), 2147483647, 2147483647, 0
while i < len(A) - 2:
j, k = i + 1, len(A) - 1
while j < k:
diff = A[i] + A[j] + A[k] - target
if diff < 0:
... | [
"xenron@outlook.com"
] | xenron@outlook.com |
8cef540b7031889c875124df46fef2f95bbe5b00 | a48c9a66e77847b864de6383616877abd8f6bb54 | /myshop/urls.py | 2d24dcc8b7c26ce093db8aa6afa98785073a24bc | [] | no_license | maniprasadarava/myshop | ecd7d60e3297f83d8faf733e179e88b724024c0b | 233e64cbe737038f17c784a27bd9c20972559e76 | refs/heads/master | 2023-04-26T09:58:08.531975 | 2021-05-26T19:12:17 | 2021-05-26T19:12:17 | 273,704,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | """myshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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 ... | [
"maniprasad393@gmail.com"
] | maniprasad393@gmail.com |
d67f4e26bc749d4a8b379637707bfbfe32e90767 | 21f0c410a2af0550c2c4b4a53ba7b0ee81ff69d4 | /src/admo/frog1.py | 726edfc354854a7fc004886d142e7fecae80ba59 | [] | no_license | mokumokustudy/procon20190203 | ea21466905014749fe1ce23dc8a132364381fb1d | 3f022076c1e17a0f358f3502e78a406916538930 | refs/heads/master | 2020-04-20T10:20:13.046162 | 2019-02-11T06:54:47 | 2019-02-11T06:54:47 | 168,787,867 | 0 | 3 | null | 2019-02-11T06:54:48 | 2019-02-02T02:57:40 | Python | UTF-8 | Python | false | false | 629 | py | n = int(input())
inputs = input().split(" ")
l = [int(s) for s in inputs]
def calc(rl, ns, skip):
v = rl[len(rl)-1]
# print(rl,v,ns)
lrl = len(rl)
if lrl == 1:
return ns
if lrl == 2:
v1 = rl[len(rl)-2]
return ns+abs(v-v1)
if lrl == 3:
v1 = rl[len(rl)-2]
... | [
"chata@chatanoMacBook.local"
] | chata@chatanoMacBook.local |
be4ac5c6d8b9fa18a82fd22b50afbe6ab4ed82a3 | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /hash_table/720.longest_word_in_dictionary.py | 9cf5887e1a8e181c3ca6ea2ae7b6789aa39fe30f | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | """
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other words in words. If there is more than one possible answer, return the longest word with the smallest lexicographical order.
If there is no answer, return the empty stri... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
24ec2fbb4d96b637d664ec71e9eb5d4630fc1bc3 | 21ddd53d72da2488ab7279dc96cccf5bbbf20986 | /debuggingCoinToss.py | 0ba3ceb7210ee281050b9e5fcfc9b807d609ba2e | [] | no_license | pmacking/AutomateTheBoringStuff | df940a434f1c0975dd98a85fc2fd2d60233f1dde | 61714428570ea4e2c84a34a9064016cf3c3681ef | refs/heads/master | 2021-01-03T14:18:12.436236 | 2020-05-12T15:47:25 | 2020-05-12T15:47:25 | 240,704,277 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | #! python3
import logging
import random
logging.basicConfig(filename='debuggingCoinTossLog.txt', level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
guessOptions = ('heads', 'tails')
logging.debug('Start of program.')
guess = ''
while guess not in guessOptions:
print('Guess the coin toss! ... | [
"pmacking@users.noreply.github.com"
] | pmacking@users.noreply.github.com |
d30ccceaf7be51da3decde436f4a808bc3b07518 | 54d1cf98525e8692a84ff8ddfa726c80fd6acd61 | /016/016.py | 6b3e7af49e717e97cdb0203113040232a969adc1 | [] | no_license | mmariani/meuler | 7a6a9c3ee9687aca34fec3745719efe56be109a6 | 6b5c8cbf212487012d5d8882ff08d975374720aa | refs/heads/master | 2021-01-22T02:53:01.599232 | 2012-06-26T18:36:41 | 2012-06-26T18:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #!/usr/bin/env python3
def run():
ret = 0
n = 2**1000
while n:
n, d = divmod(n, 10)
ret += d
print(ret)
if __name__ == '__main__':
run()
| [
"birbag@gmail.com"
] | birbag@gmail.com |
87fed1438f9d232321476abc63d451d3cb9b3728 | 24403bdfd347843657419867a0e2dcf10e8982e8 | /hw2/captioning_solver.py | 3797dcf4040eb91d2249b91be50de1b426e790aa | [] | no_license | bisssssss/DeepLearning | de19010ebb07a1c2936d48e94e0b24c72d6c574e | 1baab1b03069094ea553db26b0c6f8f8a48fcef5 | refs/heads/master | 2020-05-07T06:02:18.749867 | 2019-04-09T06:51:07 | 2019-04-09T06:51:07 | 180,298,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,114 | py | import numpy as np
import optim
from coco_utils import sample_coco_minibatch
class CaptioningSolver(object):
"""
A CaptioningSolver encapsulates all the logic necessary for training
image captioning models. The CaptioningSolver performs stochastic gradient
descent using different update rul... | [
"dianawww@umich.edu"
] | dianawww@umich.edu |
d52c3c697ce8f4280c981903248019e8dcb773ee | 34b4f42c29c803dd7f939a7b55fa540164a504d9 | /python/makeLimitPlot.py | 16fb665e889378c65bf0d0f211203893d679c290 | [] | no_license | MiT-HEP/ChargedHiggsCombination | b912378b86d4caf255607ca8c9480d116422766a | ad2825e6d6d88ffe9154f2529d36a80fc50ec8d1 | refs/heads/master | 2021-04-27T07:49:11.091550 | 2018-03-23T14:36:02 | 2018-03-23T14:36:02 | 122,640,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,515 | py | #!/usr/bin/env python
import os,sys
from optparse import OptionParser
usage=''' %prog [options]
Scripts to make model dependent limits on the hadd of all the combine output files.
Original author: Andrea Carlo Marini. 23 Mar 2018.
'''
parser = OptionParser(usage=usage)
parser.add_option("-f","--file",dest... | [
"andrea.marini@cern.ch"
] | andrea.marini@cern.ch |
7e2f1af55ec847d276f9083523d94129586190b0 | e73db10a4930859cf3de1147080fb82e2d392328 | /src/app/views.py | 69afaca3a0d33bbed652f062b81943a7677ba14e | [] | no_license | inowas/data_portal | 6befd906301c941ff7c4f449e239cee41357ac4d | 81453330a0e1fb2d2d7230e774b4b5c61cfbd209 | refs/heads/master | 2021-01-13T03:02:47.362173 | 2018-04-19T08:27:32 | 2018-04-19T08:27:32 | 77,037,011 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,974 | py | """
Definition of views.
"""
from datetime import datetime
import os
from django.urls import reverse
from django.views import View
from django.shortcuts import render, redirect
from django.http import HttpRequest, Http404
from django.views.generic.edit import FormView, CreateView
from django.views.generic.base import ... | [
"aybulat.f@gmail.com"
] | aybulat.f@gmail.com |
57d24a0e1c8078ddeddb903845ee10fa490ffa65 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/102/usersdata/201/50283/submittedfiles/av1_2.py | d2d4e7aeb1e911267fd20bdf927bf597d7fcc137 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # -*- coding: utf-8 -*-
import math
n1=int(input('Digite um número:'))
n2=int(input('Digite um número:'))
n3=int(input('Digite um número:'))
n4=int(input('Digite um número:'))
if a1==a3 and a2!=a4:
print('V')
elif a1!=a3 and a2==a4:
print('V')
else:
print('F') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
75c849c5fa10a52b6f51c10ef82af488b6cbb920 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_106/ch35_2020_04_13_00_13_31_924711.py | 0f6be8bd1014e7ed8db7e25ea96c39f4c3db2824 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | valor=1
soma=0
while valor!=0:
valor=float(input('Digite um número: '))
soma+=valor
print(soma) | [
"you@example.com"
] | you@example.com |
99a2e8699d58cd5e601f781a5fd22d9b39ec99f0 | 9851cb89fa4106fbfc36fc6352c25bb7aa799ed8 | /polls/migrations/0009_auto_20200906_2334.py | 524292d5eb244169dce82d869265d21c76db0488 | [] | no_license | sumitasagaonkar/sumitnewdemo | 5f0b0418b74d20d80c1b720330d89be4c3e04474 | 4335a48305b9b904c9571145f418a2d55f6e8e3a | refs/heads/master | 2022-12-13T07:56:36.166834 | 2020-09-07T13:48:56 | 2020-09-07T13:48:56 | 293,530,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # Generated by Django 3.1.1 on 2020-09-06 18:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0008_auto_20200906_2230'),
]
operations = [
migrations.AddField(
model_name='contactus',
name='Last_name',
... | [
"sumitasagaonkar@gmail.com"
] | sumitasagaonkar@gmail.com |
b0a58883b891c0103d8776e523965e769e4d33f5 | 2ed9ce488982b5caafc28c018d00b1d5e8a66dc9 | /progress/gui_prog_final/gui_railmo/gui_ta1.py | 19db9522fab1e1d522f4ef20a9229834645acb6b | [] | no_license | byan21/relkereta | 1901f22c980eb17c686d5bc86b025514fab2ef79 | e3a282b6c413f8994d3b5dfef09893d2419ecbcd | refs/heads/master | 2018-08-30T11:40:52.531594 | 2018-07-20T03:50:56 | 2018-07-20T03:50:56 | 112,076,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,983 | py | #!/usr/bin/env python
from Tkinter import *
import Tkinter
import ttk
import tkFont
import tkMessageBox
import ttk
import os
from subprocess import call
from numpy import arange, sin, pi
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
import numpy as np
import matplo... | [
"vabyan702@gmail.com"
] | vabyan702@gmail.com |
1863b3e761fc4d07cf293c56fb5ea4d67e562edc | 7d592da766be46340fe3092e3e1583f1702010c1 | /evaluation/recall.py | 8e2d59f37d353691eafa3819add150b4c8c1dbe9 | [] | no_license | Murtazali05/RecSys | d40c204b713d376037f52b23787f21e5323ba042 | 2fbf8c2f4cf983a1d712053c3e1a4b14101e7a35 | refs/heads/master | 2022-09-07T19:21:37.971363 | 2020-05-25T08:53:41 | 2020-05-25T08:53:41 | 257,325,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | from collections import defaultdict
from evaluation.abstract_evaluator import AbstractRecommenderEvaluator
class RecallEvaluator(AbstractRecommenderEvaluator):
def __init__(self):
super().__init__()
def evaluate(self, predictions, k=10, threshold=3.5):
# First map the predictions to each us... | [
"murtuzali1996@yandex.ru"
] | murtuzali1996@yandex.ru |
3cd1768350cd96d12b897dd437332d9892a6dc85 | 8c5199952427d9691a681de20d38717debb850e8 | /exercises/06_control_structures/task_6_2.py | d861056069d976e399e7e800135628dd5d4bd21c | [] | no_license | vdm-nv/myhomework | 37a8b6a13497fb7dc6f58cb76740a92aeed26178 | 932dfc7e70ffa2aadb093a47f5eade72cf44ff81 | refs/heads/master | 2020-09-06T13:57:22.137650 | 2020-04-20T08:28:27 | 2020-04-20T08:28:27 | 220,443,716 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | #!/usr/bin/env python3
'''
Задание 6.2
1. Запросить у пользователя ввод IP-адреса в формате 10.0.1.1
2. Определить тип IP-адреса.
3. В зависимости от типа адреса, вывести на стандартный поток вывода:
'unicast' - если первый байт в диапазоне 1-223
'multicast' - если первый байт в диапазоне 224-239
... | [
"vpnovik@gmail.com"
] | vpnovik@gmail.com |
f253b36da757e0c61e369e3215136d8d2d3d1d01 | aaac14918f61747db3148d78f87f7769a19ce847 | /CLASS11 - Packages and APIs/HOMEWORK/additional_exercises_reverse_lookup.py | 873682d3796c4ea892c3ac6515321ea5bc5b3f23 | [] | no_license | mikestrain/PythonGA | a5f3e51ffb4f28b623a2160f799334348c987d00 | fc3a787bbf3c498b3cfcea19bd26f1b37f7232e7 | refs/heads/master | 2020-12-03T20:25:29.172654 | 2020-02-21T20:14:41 | 2020-02-21T20:14:41 | 231,474,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import os
os.system("clear")
def reverse_lookup(lookup_value,dictionary):
lookup_key = None
for key in dictionary:
if state_capitals[key] == lookup_value:
lookup_key = key
return lookup_key
lookup_value = "Boston"
state_capitals = {
"Alaska":"Juneau",
"Colorado":"Denver",
... | [
"michael.e.strain@gmail.com"
] | michael.e.strain@gmail.com |
fd5da12f721a61bfb14b77531f514e7ff800da42 | e42866332ef8c852dbb061c9e3613ec48cfed3c7 | /apps/anteproyecto/migrations/0014_remove_anteproyecto_profile.py | e2f58b6bc1cc079bd4e4d415c2c54673147e310c | [
"MIT"
] | permissive | JasonUPP/POA-SER | f36308fe06ef70c8672647b85b4d750a306da908 | ff97ef11dcff6e3713d3a7324830a74d2b15b504 | refs/heads/master | 2020-05-18T11:00:22.110528 | 2019-05-14T00:52:59 | 2019-05-14T00:52:59 | 184,365,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # Generated by Django 2.1.4 on 2019-02-23 05:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('anteproyecto', '0013_anteproyecto_profile'),
]
operations = [
migrations.RemoveField(
model_name='anteproyecto',
name='profi... | [
"jasozero9@gmail.com"
] | jasozero9@gmail.com |
f2c145660c203a2c6ed3d1b48b6d31af5232c4a7 | 4e5c1c1e319ef9052865538b27ad9912d223584d | /code/test_json_write.py | 401586b54a00d983788716ad901e26c9687dc40d | [] | no_license | RGologorsky/ipd_trust | 982823a876f6e1fd12a03fadcfd1b81a2f9f61df | f5d159c779f3de2ee089f50df310c8b9529fead4 | refs/heads/master | 2020-04-04T03:24:29.129449 | 2019-06-20T22:54:09 | 2019-06-20T22:54:09 | 155,712,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | import json
# Four Fundamental Forces with JSON
d = {}
d ["gravity"] = {
"mediator":"gravitons",
"relative strength" : "1",
"range" : "infinity"
}
d ["weak"] = {
"mediator":"W/Z bosons",
"relative strength" : "10^25",
"range" : "10^-18"
}
d ["electromagnetic"] = {
"mediator":"photons",
"relative strength" : "10^36",
... | [
"rgologorsky@college.harvard.edu"
] | rgologorsky@college.harvard.edu |
4834cd5646fc5d8f97046f42271cfd5239f078ef | 4ddedf2a3829d7cead057da3ed2ffcffc153786e | /6_google_trace/SONIA/sonia_final_no_update_mutation_pruning.py | bab69d0581fcaf826ba134b9d58d6932a83bb884 | [
"MIT"
] | permissive | thieu1995/machine_learning | b7a854ea03f5559a57cb93bce7bb41178596033d | 40595a003815445a7a9fef7e8925f71d19f8fa30 | refs/heads/master | 2023-03-03T10:54:37.020952 | 2019-09-08T11:42:46 | 2019-09-08T11:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,796 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 28 19:18:42 2017
@author: thieunv
Hien tai mang nay la tot nhat. Nhan xet:
- Da~ loai bo bias, va update weight input and hidden in backpropagation process
- chi lam duoc vs du lieu nho (200 - 500)
- Cac tham so anh huong rat lon
"""
f... | [
"nguyenthieu2102@gmail.com"
] | nguyenthieu2102@gmail.com |
4add1db58ecdc2c5689952ec4d1bafa4ac4016cb | fd88d4bea74a64e8bc9b62bbe9e340c6a90a6e9c | /tests/flask/lib/python2.7/site-packages/gpkit/solution_array.py | b73ff0e970ab1df6ba52ed676f85010b4d09d0c3 | [] | no_license | lochieferrier/gpkitjs | 5e6f39005d2d5be1b013ebe5910fbfca8c18fd69 | d38f58150edf1012956bb3ad9d7b22d0713cc9c7 | refs/heads/master | 2020-04-17T06:06:53.136088 | 2016-11-19T03:01:33 | 2016-11-19T03:01:33 | 66,820,027 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,845 | py | """Defines SolutionArray class"""
from collections import Iterable
import numpy as np
from .nomials import NomialArray
from .small_classes import Strings, DictOfLists
from .small_scripts import unitstr, mag
class SolutionArray(DictOfLists):
"""A dictionary (of dictionaries) of lists, with convenience methods.
... | [
"lochie@mit.edu"
] | lochie@mit.edu |
b73191115aea64e0cbf4cb04432456b60dca342c | cf5b403544ae2bc664c3a529a7e6fa18b7c9f691 | /lib/parser.py | d446291694201755df66f0c08398528a0b76522a | [] | no_license | bojangles-m/cli-clock | 11e8a319029db651a8c7aad911f5dac7d9439e63 | f2bfcbe5f19aa557cc20579d8aff2ba76b16c2fa | refs/heads/master | 2021-06-10T06:13:15.742592 | 2016-12-26T11:24:31 | 2016-12-26T11:24:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import argparse
def parser():
ap = argparse.ArgumentParser(prog='./clock')
ap.add_argument('app', choices=['alarm', 'timer'])
ap.add_argument('-t', '--time', help='Format: Y-m-d h:i [2016-07-22 12:33]')
ap.add_argument('-s', '--sec')
ap.add_argument('-m', '--msg', help='The message you want to get ... | [
"bojan.mazej@bueller.us"
] | bojan.mazej@bueller.us |
f8f4ae88d91dbe86305d869c08b1d26c05bf2e58 | 610ac1da64200c109b9ac48d162058fdd85801aa | /functions/functionobject1.py | d833cba91293e0095b7666ab7a182441fca783ad | [] | no_license | rajdharmkar/Python2.7 | 3d88e7c76c92bbba7481bce7a224ccc8670b3abb | 9c6010e8afd756c16e426bf8c3a40ae2cefdadfe | refs/heads/master | 2021-05-03T18:56:36.249812 | 2019-10-08T00:17:46 | 2019-10-08T00:17:46 | 120,418,397 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | class Huluhulu:
def __init__(self, age, name, gender):
self.name = name
self.age = age
self.gender = gender
def foo(self):
print self.age, self.name, self.gender
h1 = Huluhulu(23, 'Joe', 'Male')
h2 = Huluhulu(27, 'Jane', "Female")
print h1.age
print h2.gen... | [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
eee08aa959c56b7c524e78bdc695a6ef16da1909 | 916aca4052eeb9f04bca9082c95b8121d9854b4c | /codility/CountingElements/MaxCounters/MaxCounters.py | c499eaf38baaea151a87ed01dfd22978c89e523e | [] | no_license | sirbega/ikre | db15fc8e06fe66e1bc0d8d3cfb3b47a29d960666 | 3372928b1ac1fcb7e6643ccd709b6d306e1383de | refs/heads/master | 2020-05-31T12:44:28.931216 | 2019-11-28T18:32:43 | 2019-11-28T18:32:43 | 94,031,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #!/usr/bin/env python3
"""Solution to the MaxCounters problem from Codility."""
def solution(N, A):
maxval = 0
curr = 0
B = [0] * N
duz = len(A)
for i in range(0, duz):
if A[i] <= N:
if curr > B[A[i] - 1]:
B[A[i] - 1] = curr
B[A[i] - 1] += 1
... | [
"sirbega@gmail.com"
] | sirbega@gmail.com |
72ae627289fc2cbbe19678bf7d7fe9cc914cf834 | acc3f2f9db8bbed8c972113cb513ac471063f4de | /phoebus-master/phoebus-master/app/display/model/src/main/resources/examples/connect2j/test-script.py | b66a3033a3bccccc8d230422a39d0b869d6b8f9c | [] | no_license | ScXin/localrepo | 26cf31e1895d4af120c852e1fa8f36afc433551b | c9697d382c8e4337e97e50e01add74b4596a8798 | refs/heads/master | 2022-10-21T11:08:33.286886 | 2020-08-30T12:24:52 | 2020-08-30T12:24:52 | 164,069,320 | 1 | 5 | null | 2022-10-04T23:51:20 | 2019-01-04T06:45:27 | Java | UTF-8 | Python | false | false | 334 | py | import sys
from connect2j import connectToJava
if (len(sys.argv) > 1):
gateway = None
try:
gateway = connectToJava(sys.argv[1])
map = gateway.getMap()
map['1'] = 1
gateway.setMap(map)
map["obj"].setValue("Hello")
finally:
if gateway != None:
gate... | [
"980425123@qq.com"
] | 980425123@qq.com |
6c13e3976ae6a0d552d63f750867cb6695ba169d | 5f393e84dd09a15721465250df4ea2576e5ec138 | /geoip/tests/functional/test_root.py | 411fe046a042d76eda7edcb15bca0c5ff08e5f2f | [] | no_license | alexcomu/geoip | 396a822b63f49340db4760fa15b2684211c1403f | d965e01c71bf32a0291f329f30bf639095ba86fb | refs/heads/master | 2021-01-01T05:28:32.033831 | 2016-04-12T15:00:28 | 2016-04-12T15:00:28 | 55,978,772 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | # -*- coding: utf-8 -*-
"""
Functional test suite for the root controller.
This is an example of how functional tests can be written for controllers.
As opposed to a unit-test, which test a small unit of functionality,
functional tests exercise the whole application and its WSGI stack.
Please read http://pythonpaste... | [
"alex.comunian@gmail.com"
] | alex.comunian@gmail.com |
1564ae225c4ae01b49ec9ce827d4d83e751e1e8e | e4ee4f0552068efc10d1bcc31be51244daa4657b | /comments/models.py | c341e203a4cfda1ac6ee544c4efe6198cc725617 | [] | no_license | zhangboda/blogproject | 9db260edecfa30bf74f0d27a3dd2e3aae70842bd | 14814776ccffaa344b454a514904d1123dd4b337 | refs/heads/master | 2021-01-20T09:21:58.366538 | 2017-05-04T09:29:55 | 2017-05-04T09:29:55 | 90,002,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py |
from django.db import models
from django.utils.six import python_2_unicode_compatible
@python_2_unicode_compatible
class Comment(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField(max_length=255)
url = models.URLField(blank=True)
text = models.TextField()
created_time... | [
"baida125@live.cn"
] | baida125@live.cn |
628366c16b3f789055b8b1e5f25387513a1c2954 | 85ec1af23203121d5bcff6f72e38b601dee672c3 | /L6_MaxProdructOfThree.py | cd71b822645bb16ed4a66ea512ccc4b648cdfcda | [] | no_license | zungybungy/Codility | 7d07718a044c95c74e469f43252f051fec726a57 | d37eba851394ac338a5217ac6286ada5d1139cf6 | refs/heads/master | 2021-01-21T10:05:39.507049 | 2017-06-18T17:18:18 | 2017-06-18T17:18:18 | 91,679,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #Max product of 3 in array
def solution(A):
if len(A) < 3:
raise Exception("Invalid input")
A.sort()
return max(A[0] * A[1] * A[-1], A[-1] * A[-2] * A[-3])
A=[-7,8,9,3,-2,1]
print(solution(A)) | [
"noreply@github.com"
] | zungybungy.noreply@github.com |
bafa82fcbcaf8693bb456ed98339efafee635b17 | d814247777d44b84fa999ad9d437f7604735b3c4 | /dactyl/version.py | 21320a81c1531c2ab981c8d77fab64af0bc25015 | [
"MIT"
] | permissive | mDuo13/dactyl | 36a2fc363ef615e4d9a5668841181d3905cdb842 | 8ae73a6dfb14dd91dcfbbbb2938e6d8c2eebf457 | refs/heads/master | 2020-07-29T03:28:35.843944 | 2019-08-06T21:55:16 | 2019-08-06T21:55:16 | 209,652,354 | 1 | 0 | MIT | 2019-09-19T21:33:58 | 2019-09-19T21:33:58 | null | UTF-8 | Python | false | false | 22 | py | __version__ = '0.8.4'
| [
"mduo13@gmail.com"
] | mduo13@gmail.com |
a9c623b10363d1d528c90c439844d7b34f1bf24b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/454/usersdata/281/109482/submittedfiles/programa.py | cb27632b09c4dbd72f321728cee61e8c2de28eed | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | # -*- coding: utf-8 -*-
c=int(input('Digite o número de consutas ao estoque: '))
cont=0
l= []
for i in range(0,c,1):
l.append(int(input('Digite o tamanho do taco: ' )))
for i in range (0,c,1):
if l[i] == l[i+1]:
cont=cont+0
else:
cont=cont+2
print(cont)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4219aa6c3d61479571f438cf9e86b50d2c867b98 | 9336e203858ef632bc0dfaf7927279bb83403e18 | /hw2/test.py | b5635c5b0ce12033b877e2c1d54a53d66d45010f | [] | no_license | amanmibra/cs270 | 050ae33c58eac9f335d803c356696e8903017c36 | 79c1f363681e3adcafb93a527606331107f798c7 | refs/heads/master | 2020-04-19T11:30:39.493614 | 2019-05-04T00:17:33 | 2019-05-04T00:17:33 | 168,169,479 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | """A set of example unit tests.
NOTE: Do not rely on these tests as they are just simple examples.
Your code will be tested on some secret instances of the problems!
"""
import unittest
from board import Board
from bot import Bot, minMaxBot, alphaBetaBot
import math
class TestConnectFour(unittest.TestCase):
def ... | [
"amanmibra@gmail.com"
] | amanmibra@gmail.com |
0b79b6bf46d6c7618c28f7ee787ff2bf031928f8 | b538043029bac8b8e751e6ff62d41ab06f541d93 | /posts/admin.py | fefd701bf1d5c2310bab95a0ced1d09aaf412f21 | [] | no_license | prashantspandey/blogg | 0d0ef86d509b0a223df45b97aa39caa0eda85cda | 545488d5a6c557bc7cda5b731aa82bd99e330c97 | refs/heads/master | 2021-01-18T18:14:56.901596 | 2017-03-31T18:51:35 | 2017-03-31T18:51:35 | 86,851,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from django.contrib import admin
from .models import Post
class PostModelAdmin(admin.ModelAdmin):
list_display = ["title", "timestamp", "updated"]
list_filter = ["timestamp"]
search_fields = ["title", "content"]
class Meta:
model = Post
admin.site.register(Post, PostModelAdmin)
| [
"prashants_pandey@outlook.com"
] | prashants_pandey@outlook.com |
f54f3a3e7001e9df888be51ad86a36da229f3987 | 873f55a909fb9cbef388a12cdc043bb0dd6f2362 | /.env/bin/easy_install-3.7 | 94e544c94b43d9827fba2de331ccd7e5c2b7cad5 | [] | no_license | mdShakilHossainNsu2018/MyMDB | ae9e5f25f689a84ecf00d97f6ad5257a93d7035a | cb80fc0bdb1a043c84a5806224f65dad693252cc | refs/heads/master | 2021-06-17T05:37:46.609411 | 2019-07-05T12:25:16 | 2019-07-05T12:25:16 | 195,278,838 | 0 | 0 | null | 2021-06-10T21:40:42 | 2019-07-04T17:19:32 | Python | UTF-8 | Python | false | false | 264 | 7 | #!/home/shakil/code/django/MyMDB/.env/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())
| [
"shakilnsu2018@gmail.com"
] | shakilnsu2018@gmail.com |
f5c3ef9067b66bfe032852b22a68a111d7a3eebc | ee4fe6e7c9b508d779fe9dda956359a1516fbf24 | /MuseTraitement.py | 0838dae5e92a425fe653b245be34b49fde8be9d9 | [] | no_license | hichbra/Muse | af5aa4a5d17b584aee20bba7eba89a9c815ec805 | 7aff7aa595e844fc2d8f3f3a08ad5345d91961f7 | refs/heads/master | 2021-01-20T03:45:59.369731 | 2017-06-21T11:30:52 | 2017-06-21T11:30:52 | 89,578,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,511 | py | from liblo import *
import sys
import time
import serial
from scipy import signal
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import numpy as np
from numpy import genfromtxt
import csv
import tensorflow as tf
from sklearn import datasets
from sklearn.model_selection import train_test_split
fr... | [
"noreply@github.com"
] | hichbra.noreply@github.com |
aa609d283a9f994e7cc105b568c5a0f5bcd28f30 | 0df15189d7ee108d97094c11c5326c135f81c123 | /mistral/api/controllers/v2/event_trigger.py | 86e5045d1bacc1c8f7af474edae7f7fc8f31236f | [
"Apache-2.0"
] | permissive | FooBarQuaxx/mistral | 061873dd4b906e22719089add9bddb9c9d7bfbed | dc65464f823444931fd83d933e68e350dff4e99a | refs/heads/master | 2021-01-12T14:27:31.679143 | 2016-10-25T23:00:48 | 2016-10-25T23:00:48 | 71,993,934 | 0 | 0 | null | 2016-10-26T10:49:51 | 2016-10-26T10:49:50 | null | UTF-8 | Python | false | false | 5,258 | py | # Copyright 2016 - IBM Corp.
# Copyright 2016 Catalyst IT 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 ... | [
"anlin.kong@gmail.com"
] | anlin.kong@gmail.com |
be378c5d5421dd74bf3ce956eb900d406e4333eb | dfcb65de02953afaac24cc926ee32fcdede1ac21 | /src/pyrin/database/services.py | 506d9dbb49988557b0bdbb4a6582656a9515900d | [
"BSD-3-Clause"
] | permissive | mononobi/pyrin | 031d0c38da945b76b07ea100554ffc7f8081b05e | 9d4776498225de4f3d16a4600b5b19212abe8562 | refs/heads/master | 2023-08-31T03:56:44.700142 | 2023-08-20T22:20:06 | 2023-08-20T22:20:06 | 185,481,041 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 10,509 | py | # -*- coding: utf-8 -*-
"""
database services module.
"""
from pyrin.application.services import get_component
from pyrin.database import DatabasePackage
def get_current_store(**kwargs):
"""
gets current database store.
note that this method will always get the correct session based on available
con... | [
"mohamadnobakht@gmail.com"
] | mohamadnobakht@gmail.com |
d649ba25014fb09b9f4795cc0a80b34a1157cc7c | 154cee995010396b26eb00e3959e5e6781428134 | /cernael-python/8a.py | 43442d9038b7972716d14f5f2af8113187f2df88 | [] | no_license | Dyr-El/advent_of_code_2020 | bbe237cd9bc61ee34305e7e838bb0aafc4b8d839 | e6b5469e3191597ec5be479eb33feeab42c1280c | refs/heads/main | 2023-02-07T09:34:45.981646 | 2020-12-25T07:13:26 | 2020-12-25T07:13:26 | 315,087,260 | 1 | 0 | null | 2020-12-25T07:13:27 | 2020-11-22T16:56:42 | C++ | UTF-8 | Python | false | false | 599 | py | def solve(lines):
acc = 0
pnt = 0
code = [x.split() for x in lines]
while True:
if len(code[pnt]) == 3:
return acc
code[pnt].append('vis')
if code[pnt][0] == 'nop': pnt += 1
elif code[pnt][0] == 'acc':
acc += int(code[pnt][1])
pnt += 1... | [
"tomas@cernael.com"
] | tomas@cernael.com |
821488fe4fbe9ab1b86bed97409a146e7211bc77 | 38bca498cf0004636f6d3ea12fe2ec8e85d8f8b6 | /cache_elmo.py | f38c88a9eac81a23747fea53ae28d040b143acab | [] | no_license | aurora-cn/elmo_chinese | 86efd98f525b0f7aaaa343969c057c4e0b1fe9e6 | e1791d3e3753d6bfaa2e92a840fdab99c16833fd | refs/heads/master | 2022-02-22T16:06:32.748480 | 2019-10-29T11:33:09 | 2019-10-29T11:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | import h5py
import numpy as np
import json
import sys
def cache_dataset(data_path, out_file):
with open(data_path) as in_file:
for doc_num, line in enumerate(in_file.readlines()):
example = json.loads(line)
sentences = example["sentences"]
max_sentence_length = max(len(... | [
"1277915903@qq.com"
] | 1277915903@qq.com |
42c5c8de1aba898a3b227b7cea735058a8c1db47 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_274/ch47_2020_03_11_11_16_47_340196.py | df5796a86e40c376f7c323657ae3dc21880ebae7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def estritamente_crescente(list):
n=len(list)
r=list[0]
i=i
new=[]
while i < n:
if list[i] > r:
new.append(list[i])
r=list[i]
i=i+1
return new
| [
"you@example.com"
] | you@example.com |
a07bff556564ec3f11fed22614db0a26111c2dac | 8733f3becc4bacad66f5829b95a9246d073847d9 | /mi_xmlrpc_modulo.py | f2a4f4627d4fef76955948fdaa156befb496d27a | [] | no_license | LingerANR/xmlrpc_odoo | 3f31239db4d80755f52d57ba0c6162a48e1a6a8f | a8496e79c375dad53e0c15a164500682ebbe5446 | refs/heads/master | 2022-08-10T06:28:43.430754 | 2020-05-22T16:47:50 | 2020-05-22T16:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import xmlrpc.client
url = 'http://192.168.1.80:8069'
db = 'loanbooks'
username = 'admin'
password = 'admin'
#info = xmlrpc.client.ServerProxy('http://192.168.1.80:8069/start').start()
#url, db, username, password = \
# info['host'], info['database'], info['user'], info['password']
common = xmlrpc.client.ServerPr... | [
"lc2kirito@gmail.com"
] | lc2kirito@gmail.com |
170dc0b41f0b14c75c953b69b8661ee5fdaab6f8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/17/usersdata/100/7105/submittedfiles/lecker.py | 773c262f56bd6c323abdcd50a0c4fc870ffd98da | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = int(input('Digite o valor de A:'))
b = int(input('Digite o valor de B:'))
c = int(input('Digite o valor de C:'))
d = int(input('Digite o valor de D:'))
if a==b==c==d:
print 'N'
elif a<=b and a<=c and a<=d:
print 'S'
elif a>=b<=c<=d:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
eec92cff575b5ca2f4d6325ac9e84d3ab6430ec0 | 125b955d4403c80b25f78212ad037a5afd3564c5 | /spider/downloadpicture.py | a4368593a7eb1fac9837c5dd2a9f66cc50c9b92c | [] | no_license | Robinpig/Pythonista | 745cd57750f0e42758004726b9b58aa1882195ff | a88ccaed1e31a7ee3643150ba2d69e68eede3f7b | refs/heads/main | 2023-03-05T21:39:58.506786 | 2021-02-23T14:55:50 | 2021-02-23T14:55:50 | 341,588,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import requests
target = "https://search.jd.com/Search?keyword=rtx2060super&enc=utf-8&pvid=4ffb068ce2064661b69118579176e7f5"
req = requests.get(url=target)
print(req.text) | [
"gujiangyunan@hotail.com"
] | gujiangyunan@hotail.com |
99332733dbc8cf8ee71591ff5457d1a7591b5bae | 46404c77e04907225475e9d8be6e0fd33227c0b1 | /virus.py | 7fb772239d40580ee01ae20a56451a0ed56cab4c | [] | no_license | govardhananprabhu/DS-task- | 84b46e275406fde2d56c301fd1b425b256b29064 | bf54f3d527f52f61fefc241f955072f5ed9a6558 | refs/heads/master | 2023-01-16T07:41:27.064836 | 2020-11-27T11:52:50 | 2020-11-27T11:52:50 | 272,928,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | """
Question
Assume you are the anivirus specialist,you need to found the virus in the given range.
Given a number N, virus is all numbers in range from 1 to N having exactly 3 divisors.
Input description
First line has integer denoting the range
Output description
print the virus till the range
Explanation... | [
"noreply@github.com"
] | govardhananprabhu.noreply@github.com |
0bda3dae428ef2d9d2bba009b4b5e02ab74d2928 | 165d9517af46d8b0276ec27ede7de1e67a5d7556 | /postulantes/migrations/0004_postulante_email.py | 82fe12737daabaec91681276c7ce38dfe4defcd0 | [] | no_license | domunoz/reclut | 2c0dee5d9d4fc4335311f73a13158dbc2f9eebf0 | 8e762de95c6e8009ffa1faee6f876964e181d8ff | refs/heads/master | 2021-01-25T08:59:48.675158 | 2014-11-24T03:10:34 | 2014-11-24T03:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('postulantes', '0003_auto_20141030_1053'),
]
operations = [
migrations.AddField(
model_name='postulante',
... | [
"fernandomunoztoledo@yahoo.com"
] | fernandomunoztoledo@yahoo.com |
1562e5e259f8cda6f1a5f06704432b36f36a7616 | 5493379d640d3fd4c4b68ec81546bfed0e5c5a4f | /Control/while.py | 840507a37905e31a3bf0cddd2f200e17140b34d2 | [] | no_license | HappyAnony/studynotes-of-python | 58fa4e81fb0eb2b3e8c55b6cda8b8f9c54fe9fc2 | a781b63353531ad70bb26189377feb9c552106e2 | refs/heads/master | 2021-05-14T23:57:26.144095 | 2017-10-08T12:13:51 | 2017-10-08T12:13:51 | 104,215,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py |
#!/usr/bin/env python
# -*-coding :uft-8 -*-
# Author:Anony
import getpass
_username = "anony"
_password = "12345"
#UserCount = 0
#PawdCount = 0
#while UserCount < 3:
for i in range(3):
username = input("username:")
if _username == username:
#while PawdCount < 3:
for j in range(3):
... | [
"15377649725@163.com"
] | 15377649725@163.com |
5b392ed197c4854c10b2fe45dc53c402eb7dacb3 | 82f9da7e006048d6a360121808de8da72c635d88 | /SpatialBasedFeatures/Morphological/grayscale_morphological_analysis.py | 5f14adc39f97558f4f61ff0b6781e3be44eeef58 | [
"MIT"
] | permissive | zhoupanyun/features | e0efdcb28a22272af675098f5000ab7287631d5d | 74342dcf50f09113f4b6c179092d9a2f35694e5d | refs/heads/main | 2023-05-15T02:04:51.973349 | 2021-06-16T10:17:58 | 2021-06-16T10:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | # -*- coding: utf-8 -*-
"""
==============================================================================
@author: Nikolaos Giakoumoglou
@date: Mon May 10 12:42:30 2021
@reference: [33] Maragos, Pattern Spectrum and Multiscale Shape Representation
[45] Maragos, Threshold Superposition in Morphologica... | [
"noreply@github.com"
] | zhoupanyun.noreply@github.com |
c1cccb31f1fa417a89273eee9015016e06ae5852 | f0f1c481ebc2c5f77f7ecaeef762abeb20d8b8dc | /随机漫步/rw_visual.py | af0916f7cfe941530d65915d0d28d5852e0388a3 | [] | no_license | Yolo19/project1-data_visualization | e434f172a7e2535e46d50b5e2de0497fc840892b | c3ac7667bdbb1cb6157e0f53c4a89e94769a970b | refs/heads/master | 2020-06-23T06:43:17.450489 | 2019-07-30T11:03:43 | 2019-07-30T11:03:43 | 198,546,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import matplotlib.pyplot as plt
from 随机漫步.random_walk import RandomWalk
while True:
# 创建一个RandomWalk实例,并将其包含的点都绘制出来
rw = RandomWalk(50000)
rw.fill_walk()
# 设置绘图窗口的尺寸
plt.figure(dpi=128, figsize=(10, 6))
point_number = list(range(rw.num_points))
plt.scatter(rw.x_values, rw.y_values, c=poin... | [
"eric@example.com"
] | eric@example.com |
5c1734fe4c11aff486d9ce9c66efc27de83ebeea | d87b16eded7237249bdc852fd8ce0709fca73444 | /convert_1967.py | 65a5d5819a85fff610a9136794d3841865314e33 | [] | no_license | saramah/boston | c6f2edb6dcbb7f236c80222c731c55978bfde59c | ff8b60921d7ba0cd4beb1370f11b2cc47b1571bb | refs/heads/master | 2016-09-10T19:46:30.352936 | 2009-05-21T18:23:30 | 2009-05-21T18:23:30 | 163,432 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | import os
import re
import sys
from helpers import *
#builds the neigh_pattern to strip parens from it
def build_nhpat(path):
infile = open(path)
pattern = ""
for line in infile:
pattern += "|" + line.split(",")[0]
infile.close()
return pattern[1:]
neighborhoods = build_nhpat("dict/allnhab... | [
"sarah.barbour@gmail.com"
] | sarah.barbour@gmail.com |
00cd13c5abc90dee8a51d4dd6a3e61b32eebd5cf | c93289761e90de9cb7e97902cc6e2e43c51a0baf | /1_bimestre/slide_3/Chapter_15/ex3.py | fe493e64eedbcb21268c9f1188380d8d0e02d586 | [] | no_license | EricToshio/ITA-Subject-CES-22 | 0d8617cf8b75be795abd3a9a28f18564556e8634 | 0c9f53bc88b565cb2673fea2e497817f3983f09d | refs/heads/master | 2021-01-24T07:36:30.512369 | 2018-07-02T19:03:57 | 2018-07-02T19:03:57 | 122,962,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import sys
def test(did_pass):
""" Print the result of a test. """
linenum = sys._getframe(1).f_lineno # Get the caller's line number.
if did_pass:
msg = "Test at line {0} ok.".format(linenum)
else:
msg = ("Test at line {0} FAILED.".format(linenum))
print(msg)
class Point:
... | [
"eric.toshio.e.s@gmail.com"
] | eric.toshio.e.s@gmail.com |
b89764f6e360b37ecc009a04c01dfeca55af8039 | 6d48dcda6c2ab816e25d13c701ae818715233f3d | /climbing_stairs_dp.py | e506acb7db1a81c85da6b4b398f69cef68559c40 | [] | no_license | kpratik2015/Python-Competitive-Codes | 7f1f412f3254c4c5a568c9b7b5a83d2b633a6bfb | 94d2d940b41b7085f808fd11b51210686973df6f | refs/heads/master | 2022-12-16T13:16:27.261862 | 2020-09-11T19:33:57 | 2020-09-11T19:33:57 | 292,917,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # Problem: https://leetcode.com/problems/climbing-stairs/
class Solution:
def climbStairs(self, n: int) -> int:
if n <= 3:
return n
dp = [1,2,3] + [0] * (n-3)
for i in range(3, n):
dp[i] = dp[i-1] + dp[i-2]
return dp[-1]
print(Solution().climbStairs(45)) | [
"frek1546@gmail.com"
] | frek1546@gmail.com |
9dc8931beacba81e543c5b21531b744e845ff159 | 54a669318d6053ff93e359ea04493b2f71284e80 | /kns/release/views.py | 7e18de9ea925652f088c47d96355b8d9dbfe48f2 | [] | no_license | ftao/kns | d751719ada3ec81c96b7f98a52528e55c82d7612 | 047b4aed6433663b2af09a0555809c4af834c7ca | refs/heads/master | 2021-01-23T11:55:12.179818 | 2011-05-08T03:40:28 | 2011-05-08T03:40:28 | 1,679,138 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from django.template import RequestContext
from django.shortcuts import render_to_response
from kns.release.models import Release
def update_manifest(request, name):
release = Release.objects.filter(name = name).order_by('-released_time', '-id')[0]
return render_to_response('release/update.xml',
{'rele... | [
"Filia.Tao@gmail.com"
] | Filia.Tao@gmail.com |
4c72c5af8c504591dceb2dbb25146a7a99d31e3b | fbe68d84e97262d6d26dd65c704a7b50af2b3943 | /third_party/virtualbox/src/VBox/Additions/common/crOpenGL/pack/packspu_get.py | cf03a63da56e6377dffc577a4385ddd60be7954e | [
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LGPL-2.1-or-later",
"GPL-2.0-or-later",
"MPL-1.0",
"LicenseRef-scancode-generic-exception",
"Apache-2.0",
"OpenSSL",
"MIT"
] | permissive | thalium/icebox | c4e6573f2b4f0973b6c7bb0bf068fe9e795fdcfb | 6f78952d58da52ea4f0e55b2ab297f28e80c1160 | refs/heads/master | 2022-08-14T00:19:36.984579 | 2022-02-22T13:10:31 | 2022-02-22T13:10:31 | 190,019,914 | 585 | 109 | MIT | 2022-01-13T20:58:15 | 2019-06-03T14:18:12 | C++ | UTF-8 | Python | false | false | 6,183 | py | # Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.
from __future__ import print_function
import sys
import apiutil
apiutil.CopyrightC()
print("""
/* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY packspu_get.py SCRIPT *... | [
"benoit.amiaux@gmail.com"
] | benoit.amiaux@gmail.com |
1cb848a0c6044c66b9e3ba770447ef29c481af20 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/amp/test_amp_o2_embedding_model.py | 237ca1120d6d975854ec6fb521e8a6543a0aa297 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 4,324 | py | # Copyright (c) 2023 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
8aad9984be56c20b02d2df22e07f7e3b1b06ec2a | 24564c26b62ac395a8297acab397879e8043c088 | /py_avrjtag/cmd_proto.py | b11f096cabb2590ef6f1bc100d6d1e432daf25dc | [] | no_license | zoobab/avr_jtag | 2b0a2d3fe37f2698c788f1e5d194d60900cdb531 | 4cc65f85240d69965e028d8e0a8b14695f3761c9 | refs/heads/master | 2021-01-20T09:23:56.059957 | 2020-10-16T17:27:13 | 2020-10-16T17:27:13 | 90,248,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | import struct
CPCMD_PING = 1
CPCMD_SHIFT_TDI = 2
CPCMD_SHIFT_TMS = 3
CPCMD_SHIFT_TDI_TDO = 4
CPCMD_TRST = 5
CPCMD_PONG = 6
CPCMD_DATA = 7
CPCMD_ACK = 8
CPCMD_NAK = 9
def csum_add(csum, c):
return (((csum << 3) | (csum >> 5)) ^ c) & 0xff
class cmd(object):
OFF_SEQ = 2
OFF_DSZ = 3
OFF_CODE = 4
FRAM... | [
"zoobab@gmail.com"
] | zoobab@gmail.com |
07ccbd569eae4fbafe4a0deec109617d0080ac08 | 128eb6dd23f376063356e101269d8c4cff8b82ff | /try_descriptor.py | bc40c02c4d30d7bb069a0ee0a31e4d8c76bd9c1f | [] | no_license | goldensky/Cours_tasks | 0c74f808a5b9c4a9c21c43ee4ccb731c2b3188b4 | 9b5e9647e300cd162527899684adcb152d3d2f10 | refs/heads/master | 2020-03-27T09:17:27.760172 | 2018-08-27T17:03:15 | 2018-08-27T17:03:15 | 146,326,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py |
class Value:
def __get__(self, obj, obj_type=None):
if obj is None:
return self
return self.amount * (1 - obj.commission)
def __set__(self, obj, amount):
if obj is None:
return self
self.amount = amount
| [
"tanya.generalova@gmail.com"
] | tanya.generalova@gmail.com |
032097e7fb84a8254f59dd0e5486a6f959df8b45 | 552556631580799b16d0fb31e8f10850383ef3b2 | /ex3/outputs/soplex/soplex.DW_16-WS_128.out/info.py | b7fda7322e2ae5a01a2df0fa0da28c01a9391604 | [] | no_license | gregth/NTUA-advcomparch | f19ee414f8b77f749a09f263feb980350f88880d | bc501f427ddf1423f851ce1a052dc335183c5103 | refs/heads/master | 2022-11-14T20:11:49.035503 | 2020-06-27T09:17:43 | 2020-06-27T09:17:43 | 262,262,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,866 | py | power = {'BUSES': {'Area': 1.29754,
'Bus/Area': 1.29754,
'Bus/Gate Leakage': 0.0064602,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0673664,
'Bus/Subthreshold Leakage with power gating': 0.0252624,
'Gate ... | [
"gregthanasoulas@gmail.com"
] | gregthanasoulas@gmail.com |
80c2fc7ae4effeb380ef437503f4e5a7f2a68ab9 | 13474a1832650b731d9b5aa9d26d6e35925da85a | /project1/DETECT3.py | 7c4ec58eebf165d4e7be7ae89c523dd319594641 | [] | no_license | daichikuwa0618/followRobotTestRun | 9c797ef03dcce78db856f6731f0519b8ba00f197 | 01570392df831f5de5050bc5cfa285e560361425 | refs/heads/master | 2021-08-14T07:49:29.552256 | 2017-10-16T07:16:53 | 2017-10-16T07:16:53 | 104,143,651 | 1 | 1 | null | 2017-11-09T01:57:47 | 2017-09-20T00:16:39 | Shell | UTF-8 | Python | false | false | 2,858 | py | # -*- coding: utf-8 -*-
import serial
import time
import binascii
length = 800
bytecount = 0
address = 0
startcount = 0
counter = 0
degs = 0
degs2 = 0
dst = [0]*500
dst2 = [0]*500
stra = [0]*4
a = 360
length = 0
#con = serial.Serial('/dev/ttyAMA0',115200,timeout=10)
#con.write(chr(165))
#con.write(chr(32))
#print con... | [
"31601805+daichikuwa0618@users.noreply.github.com"
] | 31601805+daichikuwa0618@users.noreply.github.com |
3774e2ac68727c955f997f8ac25255881787e507 | f5cedf0b72f482c79c6c4853170e1adf424b9227 | /hello_testing_dev_2100/settings.py | 8946c85969ba78833dedf0dbd3ea175bb16f8e14 | [] | no_license | crowdbotics-apps/hello-testing-dev-2100 | 7b0c8cd239f938cf0580292a9ae1f28f81ebc73c | 38962c1132e6d5886c2d811580bf455b37713924 | refs/heads/master | 2022-12-12T03:54:19.738941 | 2020-03-23T11:19:26 | 2020-03-23T11:19:26 | 249,410,278 | 0 | 0 | null | 2022-12-08T03:52:57 | 2020-03-23T11:18:49 | Python | UTF-8 | Python | false | false | 5,564 | py | """
Django settings for hello_testing_dev_2100 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
""... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c9cbafa13600af967ee69d42fef1d36d5a5ac98c | e2dfa344ac6689ac16bcb6842e2970954d07a1fe | /myvenv/bin/easy_install-3.5 | ad461691298f5a59cbb3f95c1f9514827e9121d5 | [] | no_license | christianbos/aircheck | cdf0d3adf43969f3c1da59d1380d40aef5b2d302 | 2f2e1466598e0bee6f3bf684f503b51e3eac27ca | refs/heads/master | 2016-09-13T07:55:56.744619 | 2016-04-24T16:41:40 | 2016-04-24T16:41:40 | 56,938,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | 5 | #!/Users/montserratcristinamoratogarcia/Desktop/AppSpace/aircheck/myvenv/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())
| [
"moratogarcia1987@gmail.com"
] | moratogarcia1987@gmail.com |
39b3b3705bca967ecc3c85d02727bdb109987f71 | 1aa6c59395b0f4dcfe1af77937fa2465ff70d807 | /jpeg_eval/train.py | 47fd9c4aab2b5b3e3ca330a29a556770beb5a31f | [] | no_license | cucapra/ImageNetV2 | 08c8a11c0a7f7c6f742ea840bcd308034ccbe65b | 176e48da72c44d6c4224ea313a2b5db0fb26573d | refs/heads/master | 2021-06-21T15:19:26.518310 | 2021-06-02T01:09:37 | 2021-06-02T01:09:37 | 218,165,274 | 1 | 0 | null | 2020-01-10T03:55:40 | 2019-10-28T23:37:40 | Jupyter Notebook | UTF-8 | Python | false | false | 11,490 | py | """
Finetuning Torchvision Models
=============================
**Author:** `Nathan Inkawhich <https://github.com/inkawhich>`__
"""
from __future__ import print_function
from __future__ import division
import sys
import PIL
import torch
import torch.nn as nn
import torch.optim as optim
import torch.distributed as... | [
"zl679@gorgonzola.cs.cornell.edu"
] | zl679@gorgonzola.cs.cornell.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.