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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c973488f9d719fd9c2a411440ca647bee688d38 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc071/B/answers/522566_koshin.py | 20bb39dec8949fc4e380efefc6a903dbde19a1ce | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | S=list(str(input()))
a=list('abcdefghijklmnopqrstuvwxyz')
for i in a:
if i not in S:
print(i)
exit()
else:
print('None') | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
2af238d2ce96798c8a7789cd63e4c8bd8376f814 | c43873b9fb8bca215d937f4281d6368bba02a1b5 | /plan/testsuite/job.py | 9a408603ac095e9eb8fde424f783e76ec14d8755 | [
"BSD-3-Clause"
] | permissive | effyroth/plan | f4d2682f9d6ddb031180ebfae62d36b096a3b15f | 063b0234fe457386d9c1aeef9cfe4c05b959af24 | refs/heads/master | 2021-01-18T17:24:23.672363 | 2014-06-17T03:41:43 | 2014-06-17T03:41:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,314 | py | # -*- coding: utf-8 -*-
"""
plan.testsuite.job
~~~~~~~~~~~~~~~~~~
Tests the Job classes for Plan.
:copyright: (c) 2014 by Shipeng Feng.
:license: BSD, see LICENSE for more details.
"""
import sys
import unittest
from plan.testsuite import BaseTestCase
from plan.job import is_month, is_week, get_... | [
"fsp261@gmail.com"
] | fsp261@gmail.com |
546229f61db0dd8227e6fe61a72e2fea1b2455c8 | 18f8abb90efece37949f5b5758c7752b1602fb12 | /py/django_tools/django-cms/cms/admin/placeholderadmin.py | 6148ae5ccb44debb9ca9ac07a42637c42008b626 | [
"BSD-3-Clause"
] | permissive | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 14,297 | py | # -*- coding: utf-8 -*-
from cms.forms.fields import PlaceholderFormField
from cms.models.fields import PlaceholderField
from cms.models.placeholdermodel import Placeholder
from cms.models.pluginmodel import CMSPlugin
from cms.plugin_pool import plugin_pool
from cms.utils import get_language_from_request
from cms.utils... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
d3ea6fc7dfa4cb3a3873ee830d825d0272e1bd1e | 657cd928d845e8978fde4bde36ed342764b13ab9 | /oreo/views.py | a3d52e8b73c83955f8b889bdccad59cbed735f8d | [] | no_license | mathengejoan/Photos | f12f6116c6699be798068bc56aee3cf747ae4525 | c15392c0746c51da5042cf56b7404ae5bc196863 | refs/heads/master | 2020-05-25T20:55:03.909726 | 2019-05-24T07:24:40 | 2019-05-24T07:24:40 | 187,985,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from django.shortcuts import render, get_object_or_404, redirect
from .models import Images
from .forms import ImageForm
# Create your views here.
def index(request):
images = Images.objects.filter(user=request.user)
context = {'images': images}
return render(request, 'oreo/index.html', context)
def add... | [
"mathengejoan971@gmail.com"
] | mathengejoan971@gmail.com |
fdb2d48f4c0c91c9d980efc87584dee29006574d | 54516aed6c3c4dc57873cafd201bef02e9bb419f | /soynlp/noun/_noun_news.py | 1afa5524d41fc7c618eac6cdeea4967ac7b16bed | [] | no_license | Kimchanggyun/soynlp | 5e5da630d91052eb682f154d8f6876c1672431fa | 3c957ed7b9918eaeb39356947e4595dea33b4ccc | refs/heads/master | 2021-04-27T14:40:15.282375 | 2018-02-14T08:19:18 | 2018-02-14T08:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,122 | py | from collections import namedtuple
NewsNounScore = namedtuple('NewsNounScore', 'score count feature_proportion eojeol_proportion n_positive_feature unique_positive_feature_proportion')
class NewsNounExtractor:
def __init__(self, l_max_length=10, r_max_length=7, predictor_fnames=None, base_noun_dictionary=None... | [
"soy.lovit@gmail.com"
] | soy.lovit@gmail.com |
61aa48d164bc0abbd0b746fa2b5fd77fc2046f37 | 8f3e345f09c8ccf084cb2277c9eac13f0b641fdc | /Dijkstra.py | 2fd8fc9a0c9db0258519291aecf75d768c7b312c | [] | no_license | MichaelOgunsanmi/Algorithms-and-Data-Structures | 48b786f6c96928207752962245ae6b6bf282f90a | 44e5579e278667479d51813e98f63ba4ed3fcdba | refs/heads/master | 2023-03-18T00:11:25.607668 | 2023-03-09T10:34:49 | 2023-03-09T10:34:49 | 195,296,700 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | # Dijkstra Shortest path
import sys
import heapq
class vertex(object):
def __init__(self, name):
self.name = name
self.visited = False
self.predecessor = None
self.adjacencieslist = []
self.mindistance = sys.maxsize
def __cmp__(self, othervertex): # overridding the co... | [
"ogunsanmimichael@gmail.com"
] | ogunsanmimichael@gmail.com |
4238223fb507f6f055a903a9df8760a08f3b3e4b | d2cf3f25370a59f77223a1a4bf2fa55ffe4e05d5 | /src/controllers/game.py | 7c94ab9b127ef4689be61bf156f99602687dc786 | [] | no_license | ChrisVidal10/bowling_game_kata | 30ce1a74da33d03f7495b53d5db4e292438e098f | 4fc980090cd09dbac197465857a088ce5561a802 | refs/heads/master | 2023-04-08T03:26:41.650961 | 2020-07-27T20:22:43 | 2020-07-27T20:22:43 | 282,459,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,695 | py | class Game():
"""
A class used to represent a Game
...
Methods
-------
roll (pins: Int)
score
is_spare
is_strike
spare_bonus
strike_bonus
sum_of_rolls
"""
__max_pins_frame = 10
__frames = 10
def __init__(self):
"""
Construct the object ... | [
"chris.vidal10@gmail.com"
] | chris.vidal10@gmail.com |
f2ad47d7f24e82b563f3526f6fb6a74a66dcdf8d | 267b1be8268d3785342cd16457b9de373d451535 | /py/AI.py | 647a4148b9c903bce7bce9bd133798a55665ccc2 | [] | no_license | edisonhello/finalProject | a044724bbc3f5e5df0624092b79e84c64de2f2c4 | 8e16da52ba4ab56f19fc0b7eb1596fc3352211d5 | refs/heads/master | 2021-01-19T07:31:22.280209 | 2017-04-07T14:41:47 | 2017-04-07T14:41:47 | 87,549,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import sys, json, numpy as np
def caculate(x):
if x % 4 == 3:
return 0
return x+1
def main():
print('0 0 0')
# print(1)
while 1:
#get our data as an array from read_in()
x, y, z = map(int, input().split())
if x == -1 :
break
#output
x = c... | [
"edisonhello@hotmail.com"
] | edisonhello@hotmail.com |
321b6da9de547bf5a15f01c1dee0d912ff493f9d | 1e4973b1b563cc126b4a8c878bfd44a3ce0225d9 | /app.py | 06bd1763d34851ea856683bc6365ac537aada827 | [] | no_license | prateekghimire/Youtube-Downloader | c9ee7d733b3f2aa584cedd36f2bd82545229cc49 | fb36549911340a0480421381f8b34f80e71c9ca1 | refs/heads/master | 2022-12-13T14:12:21.135170 | 2020-09-02T11:33:28 | 2020-09-02T11:33:28 | 292,262,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from flask import Flask,render_template,request
from pytube import YouTube
app=Flask(__name__)
@app.route('/')
def home():
link="https://www.youtube.com/watch?v=SmTDwsomYno"
yt=YouTube(link)
print(yt.title)
print(yt.rating)
ys=yt.streams.get_highest_resolution()
print("*****Downloadin... | [
"noreply@github.com"
] | prateekghimire.noreply@github.com |
eb04578dd4f8e1459026e5d3de2526c389876ca4 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/utils/migrations/0019_auto_20180513_1844.py | 450db0d4d873f520e5f19a49c64c33e02caa89ff | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 1,611 | py | # Generated by Django 2.0.2 on 2018-05-13 18:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('utils', '0018_merge_20180508_1254'),
]
operations = [
migrations.AlterMode... | [
"mani@myhost.local"
] | mani@myhost.local |
eb49c26da2248f2b0d0b1f582143e20fcbb22921 | 07f5333c5a345c6e3359c5e8bcc5a6cf42cb96da | /clients/py/tests/test_pdutils.py | 8dc612b2d9cc86d429db6a4a5bdb90fd1341e7f5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | v3io/frames | fd8d3cac6c547b6984f3a1c0076097aadff8e7f0 | f1d4d12c41a276de9876752c0896c45fb9deaf06 | refs/heads/development | 2023-07-24T03:42:49.440651 | 2023-07-23T04:41:16 | 2023-07-23T04:41:16 | 144,180,305 | 32 | 18 | Apache-2.0 | 2023-09-14T09:14:33 | 2018-08-09T16:52:59 | Go | UTF-8 | Python | false | false | 3,441 | py | # Copyright 2018 Iguazio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | [
"noreply@github.com"
] | v3io.noreply@github.com |
9bd7f3b7b570fbc3569606156123b55a5d876eb6 | a1c3b186808cd18bb951972858faa1c54a71b51b | /vedio_tran/video_parameter.py | 1c974e813a32acdc219c26894b673e251bf94faf | [] | permissive | dutlzn/Deep-Learning-with-PyTorch | 718f3046f51e9020b08bed50413cc2fa71afa87c | b90486fc169b1977857a80cbb9eba0ede5801ee3 | refs/heads/master | 2021-06-24T11:23:01.763407 | 2021-03-06T05:28:20 | 2021-03-06T05:28:20 | 196,567,589 | 0 | 0 | MIT | 2019-07-12T11:27:12 | 2019-07-12T11:27:11 | null | UTF-8 | Python | false | false | 971 | py | import os
import cv2
import numpy as np
video_cap = cv2.VideoCapture('./v_YoYo_g07_c04.avi')
frame_count = 0
all_frames = []
while(True):
ret, frame = video_cap.read()
if ret is False:
break
all_frames.append(frame)
frame_count = frame_count + 1
print(frame_count)
print(len(all_frames))
all =... | [
"2436013662@qq.com"
] | 2436013662@qq.com |
2d7439b3b528c81f07f6899013e7afe0b55850b2 | c7d849aca8db6d8cff00432ed5af18d3eb3ddd44 | /ieee-754.py | 4a62ecbcbd63c7f213855ef75f9eec77d22184d7 | [] | no_license | spector-9/Python-Scripts | 7cbcc21db346dfe09448cf88f1ca190e6c719634 | a16f59c4db654ccbd3c9526ce682729411ccb4c8 | refs/heads/master | 2023-01-09T07:28:19.531287 | 2020-11-04T05:28:12 | 2020-11-04T05:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | bits = input("Enter the base, default = 127") or 127
iee_binary = input("Enter the binary number").replace(" ","")
print(iee_binary)
sign = iee_binary[0]
number = iee_binary[1:8]
actual_number = iee_binary[9:]
number_size=8
number_holder=0
base_from = 2
for x in number:
number_size-=1
base_raised=int(base_from... | [
"arshkumar9@live.com"
] | arshkumar9@live.com |
d85ad2730fecce8a7e8457c1d64c6f2f97add5fb | f4c1723d6102f14f9c30d01a0558dc79e5745516 | /ms2020/tests/cranes.py | 96c9fb2b9f189c75c926a51cf8e2e72ebea4142d | [] | no_license | menlosparks/fll | 9e5b7257c0edbe8d5bebe08c48ddcff0cf380390 | a50e65e036293589c213e4bc7ccddb9d7b3198c0 | refs/heads/master | 2023-02-17T05:19:54.556805 | 2021-01-07T19:02:49 | 2021-01-07T19:02:49 | 271,840,883 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,108 | py | #!/usr/bin/env pybricks-micropython
import sys
import os
from pybricks import ev3brick as brick
from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor,
InfraredSensor, UltrasonicSensor, GyroSensor)
from pybricks.parameters import Port, Stop, Direction, Button, Color
from pybric... | [
"noreply@github.com"
] | menlosparks.noreply@github.com |
24d0530f25d3fe2afe8a73362c161b1aa48bbfdb | 579a5147e017d6d397714f619646656a12f0ffb6 | /stop-and-wait/test.py | c26fa15a97537512cb70def64322724dac5fac9b | [] | no_license | nkhl2811/UDPy | eae0e7dc8abdfca58dff0d943807d06a4ca92b92 | 51762cbf91f347b34c0804954b351ce77364dc5c | refs/heads/master | 2021-09-14T11:21:53.034801 | 2018-05-12T17:14:39 | 2018-05-12T17:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import subprocess
from threading import Thread
threadpool = []
def fun():
subprocess.call('python Client.py', stdout=subprocess.PIPE,
shell=True)
for i in range(5):
thread = Thread(target=fun, args=())
threadpool.append(thread)
thread.start()
for i in range(5):
threadpool[i... | [
"A7med.lotfey@gmail.com"
] | A7med.lotfey@gmail.com |
ac65ddd449c21c09edc55058e5b68f2044967871 | 62221ae1588e496d278806c63eadd30c6b6ccc56 | /chp44/ex44b.py | ea43712920ed198fd78e467ca3c933fd4ded54e3 | [
"MIT"
] | permissive | udoyen/pythonlearning | 1b2aa32cad2b274fff46ce6abf69363bbfd0efd7 | b157a19ebc1bcf8cb8fb5f76d8a98fcb8e465476 | refs/heads/master | 2021-01-21T04:59:53.287035 | 2016-06-19T19:13:35 | 2016-06-19T19:13:35 | 48,765,097 | 0 | 0 | null | 2016-06-18T23:07:23 | 2015-12-29T20:06:48 | Python | UTF-8 | Python | false | false | 246 | py | # Override Explicitly
class Parent(object):
def override(self):
print "PARENT override()"
class Child(Parent):
def override(self):
print "CHILD override()"
dad = Parent()
son = Child()
dad.override()
son.override()
| [
"datameshprojects@gmail.com"
] | datameshprojects@gmail.com |
3fc99ccb5f274b23b2ab4a310a3b211d475f906c | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/meeting/tests_views.py | c049182d7d2229baea703b4903943aff243bc0fa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,806 | py | # Copyright The IETF Trust 2009-2019, All Rights Reserved
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime
import io
import os
import random
import shutil
import six
from unittest import skipIf
from mock import patch
from pyquery import PyQuery
from io... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
5442d0553b637f755d53626209f2a0d888a2b510 | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes/117.py | 67d6fabeee26b4579e9906d7101f49b8478c19ab | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,946 | py | data = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, ... | [
"jonathan.sanderson@northumbria.ac.uk"
] | jonathan.sanderson@northumbria.ac.uk |
3d900bbbb3870178d5f961b5086c1f23d4531ff1 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/replit/identity/verify.py | 532795d5cfe6b08b999c2c34f721ca585de3d35f | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/22/41/ff/651c060c2d804e00772fb16ad5742f3413e927507140067eb1700cef17 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
207e8e6e52fcb12acea7cfaafed1ed8a7df559de | 0bcdffa730b1a5c10c82dcbf63324995e93a47a6 | /mediaspot/admin.py | 4a8fc83ee43a2aa4883d2c77993c9ac9aae83612 | [] | no_license | weeksghost/djangoproject | 603c9665b9a3026411df7a7dcb344a216ed603ce | 63aea8f3b0e39a5cd6de327380639867c8287d95 | refs/heads/master | 2016-09-05T20:48:57.039588 | 2014-07-01T14:39:21 | 2014-07-01T14:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.contrib import admin
from mediaspot.models import MediaFile
class MediaFileAdmin(admin.ModelAdmin):
list_display = ['name',]
admin.site.register(MediaFile, MediaFileAdmin)
| [
"emarty@broadway.com"
] | emarty@broadway.com |
98046c3b2a76eb6d88fc6e09645a301b6101febb | 12560e737d0297a6538e07044dbf0f6bc54bdbd6 | /src/Home-_and_classworks/Work_4[cycles]/hw_4_task_4_4.py | 98982460bdbec53fa12fe581b05047edd96db304 | [] | no_license | dmitriyanishchenko/Teach_My_Skills_Python_base | e368e8b16c2f0455e2b6ef433c739dd07a1cfecb | f54a19c5af080d4bbc801567cb6bd39e770f4f9c | refs/heads/master | 2020-05-02T17:02:09.897958 | 2020-03-12T12:18:54 | 2020-03-12T12:18:54 | 178,086,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # Дан список. Создать новый список, сдвинутый на 1 элемент влево
# Пример: 1 2 3 4 5 -> 2 3 4 5 1
# # Option #1
list_old_1 = [1, 2, 3, 4, 5, 6, 7, 8]
first_elem_1 = list_old_1[0]
list_new_1 = []
i = 0
while i < len(list_old_1) - 1:
elem = list_old_1[i + 1]
list_new_1.append(elem)
i += 1
list_new_1.append(... | [
"1348010@gmail.com"
] | 1348010@gmail.com |
4d45bf0f426af6666c1b7aec75816f4f42fde02c | 45407878ce989e009aa8ff2df3364b9f9a7a6ce8 | /pages/product_page.py | 2edb5e6f88178035d1f87736a4660fd9fd8f81d6 | [] | no_license | test-user1231/test-project | 60f2aa79ad4d96ce2baf88f13d5da91cc822ef22 | 7fe5e4a04e1411297ba7bd40c9e5b488e678cc13 | refs/heads/main | 2023-03-07T19:32:37.432561 | 2021-02-23T15:39:36 | 2021-02-23T15:39:36 | 341,152,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from .base_page import BasePage
from .locators import ProductPageLocators
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
# Наследуемся от базовой страницы в которой есть общие методы для использования... | [
"mr.volgant@mail.ru"
] | mr.volgant@mail.ru |
1b5cee89a206fe0f77ab53daf15d56bdb67e48e5 | 5549f71b2c7a5c11d43bcea50a166d5d280d0506 | /flasklist.1.py | 239c591a31765cac33ef0fd1742bb5287a6e60df | [] | no_license | bglynch/flask_list | 577d9cd37f000b1a13ea6a18954c568d02b3f00c | b5df3ff80bc60de3662297d0948a44313939643e | refs/heads/master | 2020-06-12T23:11:57.924509 | 2019-06-29T23:28:57 | 2019-06-29T23:28:57 | 194,456,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import os
from flask import Flask, redirect, render_template, request
from random import choice
app = Flask(__name__)
welcome_message = ["Hi", "Hello", 'Bonjour', "Ciao"]
items = [
"Sugar",
"Milk"
]
# if including variables in the link, must be included in function as arguements
@app.route("/")... | [
"bglynch17@gmail.com"
] | bglynch17@gmail.com |
5a2fe933db90fd94211502ad4084423f15b8c4af | 23f26de816f9c5cb80da3853819fab2d664ccc49 | /digital_press/manage.py | a4aa3fc0c1f3f9a2d452dbf8c4195fd274112ea7 | [] | no_license | VIKRAM282/firstApi | e1f3c56d01ad2e311778d87761b97dcf6a822941 | 634d1dcba2ab64f45a99ab412846b22137b12754 | refs/heads/master | 2022-12-16T22:00:28.421045 | 2020-09-24T07:03:33 | 2020-09-24T07:03:33 | 298,191,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'digital_press.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"singhvikramjeet483@gmail.com"
] | singhvikramjeet483@gmail.com |
8ea1165a34eb37731299f45c15b41003279813a3 | 5698fb67c9925902832f69738f1f116bb837528e | /pizza/forms.py | d4bf6b7531157eea4f9afb3d0f6d67b5aa4ac1a9 | [] | no_license | lo1cgsan/djangoapp2 | ebcc1a2e5758ec2a566d5292ebb3f377bc53dfe7 | 28aebc44f8a0e70f239626da37fa9bdeab44177c | refs/heads/master | 2023-04-28T09:36:55.483445 | 2021-05-16T18:12:59 | 2021-05-16T18:12:59 | 206,551,530 | 0 | 0 | null | 2023-04-21T20:42:23 | 2019-09-05T11:50:44 | Python | UTF-8 | Python | false | false | 195 | py | from django.forms import ModelForm
from pizza.models import Skladnik
class SkladnikForm(ModelForm):
class Meta:
model = Skladnik
fields = ('nazwa', 'cena', 'jarski', 'pizze') | [
"lo1cgsan@gmail.com"
] | lo1cgsan@gmail.com |
d5c106fdf680d01e4b075a87f460e84ab4f69534 | 89b6ea099bb936db3c17dafab34cd8cadfda5e08 | /ex14.py | 4308f67ece60e4c493696e23ba99393d32296009 | [] | no_license | asiniy/lpthw | 9c36cb715582fc519526361708499370dc7fa735 | 21cd60107331c15b8fa0e285f1ff722d3cae16d4 | refs/heads/master | 2021-08-30T08:53:49.122529 | 2017-12-17T03:51:00 | 2017-12-17T03:51:00 | 110,371,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from sys import argv
script, user_name = argv
prompt = ">"
print("Hi {}, it's a {} script".format(script, user_name))
likes = input(prompt)
print("Likes: {}".format(likes))
| [
"kaburbundokel11g@inbox.ru"
] | kaburbundokel11g@inbox.ru |
8924942cf9a7e1481b811816c032ff48f0bbd05e | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc108/A/4984031.py | 47e9337053e96ed5e74b5561b5e2ace37987971b | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | n = int(input())
e = o = n // 2
if ( n % 2 != 0):
o += 1
print(e * o) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
4d0c92e543eecad07812775d1c61c09793a91b41 | 4eb67371900b24faab41ca615612c41f78939bef | /stockpy_venv/Scripts/pip-script.py | 28c9fc512610a5dbff315b2e8c74e484ab258a30 | [] | no_license | CyborgVillager/ja_stock_pydjango | 1670b8b48c238994cd7f604954b6d5f9176f1f8c | b352bc1d4d91e809ce8b34b7d85eb7f705b3e98c | refs/heads/master | 2020-10-01T00:19:39.965922 | 2019-12-15T20:02:57 | 2019-12-15T20:02:57 | 227,406,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!D:\PyProject\GitRespo\stock_pydjango\ja_stock_pydjango\stockpy_venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
1c9bf7ae1b8ccf09c96fa609331351c2f5ac8ae3 | a292ac68737d9a5d84c38bc337d021f6da96c939 | /Networking/Client-Server/UDP_Client.py | cb1a438b3378f35f5d4e9f7e6a3a33dd3b4e724a | [] | no_license | tombstoneghost/Black-Hat-Python | 1bc1c02c21a2111b9d9e529e157aeab52f21218a | b14f8f19d793b09bbf4eaeeda5d424fb35557304 | refs/heads/main | 2023-05-30T09:42:38.676791 | 2021-06-11T19:02:40 | 2021-06-11T19:02:40 | 347,962,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | #!/bin/python3
import socket
target_host = "127.0.0.1"
target_port = 80
# Creatng a socket object
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Sending some data
client.sendto("AAABBBCCC", (target_host, target_port))
# Receive some data
data, addr = client.recvfrom(4096)
print(data)
| [
"simardeepsngh1@gmail.com"
] | simardeepsngh1@gmail.com |
9fd947528b778aef4c2487cc0fd92ba8504da87e | 0234ad09e974ca91947751dea575a4fb4d2d138d | /tests/commands/element/test_misc.py | 2e0381c1559ee70ad8c52362e0fef632fa26ecf3 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | o3seespy/o3seespy | 8e0cee872ec4ec88b81af6c39b6d9287e6d6e057 | 57e47940cf6c0979215a04a11e184e38fd6f73a5 | refs/heads/master | 2023-09-04T18:38:45.126336 | 2023-08-19T01:13:54 | 2023-08-19T01:13:54 | 216,960,642 | 18 | 6 | MIT | 2023-02-08T00:40:39 | 2019-10-23T03:31:48 | Python | UTF-8 | Python | false | false | 1,312 | py | import o3seespy as o3 # for testing only
import pytest
def test_surface_load():
osi = o3.OpenSeesInstance(ndm=2)
coords = [[0, 0], [1, 0], [1, 1], [0, 1]]
ele_nodes = [o3.node.Node(osi, *coords[x]) for x in range(4)]
o3.element.SurfaceLoad(osi, ele_nodes=ele_nodes, p=1.0)
def test_vs3d4():
osi ... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
a2737587e7e57d455806d601c33fb6b7cf967dcd | 206462cf7c52341adb98ce04fd16f5ce967b19eb | /data/testing.py | 1e0da367336b58b32715421054f9f2d2c7af4835 | [] | no_license | Rahulyadav9999/cnn-master | 73719592becb2875b5986acc4c5a37afb8589c19 | 1e48640279c2e4585c6886d24d3862bbdbbb0c8d | refs/heads/master | 2021-01-05T06:50:41.449356 | 2020-02-16T16:11:03 | 2020-02-16T16:11:03 | 240,921,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | from keras.models import load_model
from keras.models import Sequential
from keras.layers import Conv2D, Dense, MaxPool2D, Dropout, Flatten
from keras.preprocessing.image import ImageDataGenerator
FILTER_SIZE = 3
NUM_FILTERS = 32
INPUT_SIZE = 32
MAXPOOL_SIZE = 2
BATCH_SIZE = 16
STEPS_PER_EPOCH = 20000//BATCH_SIZE
EPOC... | [
"rahulrajy0105@gmail.com"
] | rahulrajy0105@gmail.com |
4dfa11a559484f3319696f31ee16dc08cb387591 | 67c67e9167ac52f8c2c7e47ce71d6a0846668a2d | /power_curves.py | f857f364e4b7d8ccdd0d1f603677ae0230d1eafe | [
"MIT"
] | permissive | lthUniBonn/awe-production-estimation | b6b083819e221fca2c0517c798107243ae8a0b55 | 396fd6b0fb0ba600e7916f750d0c88fa36bb11ce | refs/heads/main | 2023-08-18T07:22:10.091251 | 2021-03-31T07:09:34 | 2021-03-31T07:09:34 | 350,825,047 | 0 | 0 | MIT | 2021-03-23T18:59:05 | 2021-03-23T18:59:04 | null | UTF-8 | Python | false | false | 17,845 | py | import os
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from copy import deepcopy
from qsm import LogProfile, NormalisedWindTable1D, KiteKinematics, SteadyState, TractionPhaseHybrid, \
TractionConstantElevation, SteadyStateError, TractionPhase
from kitepower_kites import sys_props_v3
from ... | [
"markschelbergen@gmail.com"
] | markschelbergen@gmail.com |
33b43ed371c9f5107c5da23802a83cd03d187071 | 6eb21cdd51630e339cd645748cc528a7d868da5e | /Uber_TextMining/code/script6_sentiment_extract.py | fa8cd01d1679c717edce215373fdff08b385d3c5 | [] | no_license | z357412526/Present_Projects | 6654b05414a538d9b33ed0b035481e576ded922a | 9ce73049f493dc27b714f58a89adae6667da9058 | refs/heads/master | 2021-01-09T21:55:14.142038 | 2016-03-18T02:00:29 | 2016-03-18T02:00:29 | 49,180,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | from __future__ import division, print_function
import twitter
import json
from operator import itemgetter
import string
from gensim import corpora, models
import nltk
from nltk import word_tokenize, FreqDist
import pandas as pd
from time import sleep
import numpy as np
import pylab as pl
with open("../data/uber_al... | [
"xinyue233@berkeley.edu"
] | xinyue233@berkeley.edu |
a15e3afdd15185fd5d8eac04c477ecd40b57bf9d | 073268a0c646aebb4d7b5f7597f6deb8e0e41384 | /modules/nli_module.py | 6609d3d6f6a8b48b79046380e6a068f4a7e98805 | [] | no_license | architapathak/FactFinder | 25bfd6e1ef55aa514e23caadea44078d6a028cfe | f721912213aa94173c744293bc4622c25532e8bc | refs/heads/master | 2023-04-18T02:17:51.479435 | 2021-04-27T22:01:15 | 2021-04-27T22:01:15 | 349,210,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | # -*- coding: utf-8 -*-
"""
"""
from transformers import BertModel, BertTokenizer
from transformers import RobertaModel, RobertaTokenizer
import torch
import numpy as np
np.random.seed(42)
import os
path = os.path.join(os.path.dirname(__file__), 'models')
MAX_LEN = 500
model_name = 'bert-base-uncased'
if model_name ==... | [
"architap@buffalo.edu"
] | architap@buffalo.edu |
5aae4838bb167f77682cc911ddea080d01ca2ba9 | a04b9d25756ba3cdc8b7f2dbc8af11167eb27620 | /utils/Devpost_get_links2projects.py | e19ea81c775d80224850b9d7f24525173341c484 | [] | no_license | hackathonleaderboard/hackathonleaderboard.github.io | 35d26df49017464422503e7f1e1c267cb755c0b0 | 6a6137e71c315ecd3ad73da2e7fce5d8ba324e75 | refs/heads/master | 2020-03-24T01:48:17.892143 | 2018-09-06T16:44:57 | 2018-09-06T16:44:57 | 142,352,565 | 1 | 3 | null | 2019-12-14T23:35:16 | 2018-07-25T20:49:44 | HTML | UTF-8 | Python | false | false | 460 | py | fname = "devpost_winners.htm"
with open(fname) as f:
content = f.readlines()
# you may also want to remove whitespace characters like `\n` at the end of each line
content = [x.strip() for x in content]
for i in range(len(content)):
if("<a class=\"block-wrapper-link fade link-to-software\" href=" in content[i]... | [
"me@USF-Gold-Wifi-226-9-45.laptops.usf.edu"
] | me@USF-Gold-Wifi-226-9-45.laptops.usf.edu |
a6896fd6fbb9fa1540d0c182b23174af04a473d3 | 6812647c49016750bc29ab42b3a0fbddb6368a42 | /bsuite/baselines/bdqn/run_test.py | 1d1220985c3eea7762b22f9153116ffb95d180c8 | [
"Apache-2.0"
] | permissive | ai-nikolai/bsuite | c093f2394b75d3f09ab4c4c65b5f85ae5c5e3c07 | 586fef7d4c0bcb190e4ad9eac735a3feba36107b | refs/heads/master | 2020-07-15T14:41:25.149208 | 2019-09-14T00:27:48 | 2019-09-14T00:27:48 | 205,585,584 | 0 | 0 | Apache-2.0 | 2019-08-31T19:05:05 | 2019-08-31T19:05:05 | null | UTF-8 | Python | false | false | 1,118 | py | # pylint: disable=g-bad-file-header
# Copyright 2019 DeepMind Technologies Limited. 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/... | [
"nikolai.rozanov@gmail.com"
] | nikolai.rozanov@gmail.com |
64a1cf750694f432263399494e757e9a2b6b6379 | cfb8403ca1e0497fc03170c8340981c09e91cc7a | /python3/3Sum.py | 055a5136946ff522e80bed197052880c6402f45f | [] | no_license | vigneshkulo/leetCode | c6d635abb438b5cefe2f57359c94ec563843a7c6 | c16e0899e2baeb7a72387168d42436b678edc631 | refs/heads/master | 2023-03-03T08:30:54.861893 | 2021-02-15T19:53:29 | 2021-02-15T19:53:29 | 320,128,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | class Solution:
def threeSum(self, nums: List[int]) -> List[List[int]]:
nums.sort()
output = []
def twoSum(left, right, target):
twoSums = []
while (right > left):
curSum = nums[left] + nums[right]
if curSum == target:... | [
"vignesh.kulothungan@gmail.com"
] | vignesh.kulothungan@gmail.com |
55db7e12ea7dea676a28d62fd2b98986a76904b9 | 5c6ccc082d9d0d42a69e22cfd9a419a5b87ff6cd | /coursera/pythonHse/third/17.py | c6a636de267b026260f08684218d38d2b49704b3 | [] | no_license | kersky98/stud | 191c809bacc982c715d9610be282884a504d456d | d395a372e72aeb17dfad5c72d46e84dc59454410 | refs/heads/master | 2023-03-09T20:47:25.082673 | 2023-03-01T08:28:32 | 2023-03-01T08:28:32 | 42,979,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # Дана строка. Найдите в этой строке второе вхождение буквы f, и выведите
# индекс этого вхождения. Если буква f в данной строке встречается только один
# раз, выведите число -1, а если не встречается ни разу, выведите число -2.
# При решении этой задачи нельзя использовать метод count.
# s = 'comfort'
# s = 'co... | [
"kerskiy-ev@pao.local"
] | kerskiy-ev@pao.local |
72c9795ab321cedfe538ea42a6bb640af9d1461a | 7de2ddb61d41140227c77ab8b1b2417ba7289958 | /app/api/__init__.py | 3413218076e15e9f5307ca1b35282cd9e51aa024 | [] | no_license | glf1990/entrytask | fcd9e64c5c8a611394af693706a04c9b69281d8a | 017e45762193877add043ec9e284abbdde4c4049 | refs/heads/master | 2020-03-25T20:45:31.602426 | 2018-08-15T11:27:48 | 2018-08-15T11:27:48 | 144,144,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from .view import Test
from flask_restful import Api
from flask import Blueprint
api = Blueprint("api", __name__)
resource = Api(api)
resource.add_resource(Test, "/shopee/test")
| [
"linfei.gui@LinfeideMacBook-Pro.local"
] | linfei.gui@LinfeideMacBook-Pro.local |
c81184fc056080d1b7ac9ab3668ec51f80548815 | 238cff74530e5571648da88f127d086d2d9294b4 | /0x08-python-more_classes/6-rectangle.py | a84bd8002a4564362e770c5557e21640e606a829 | [] | no_license | Achilik/holbertonschool-higher_level_programming-6 | b92fcbd1bc6bbedcfef4b49bb3907d97b8be41ff | d0c46cc5ed2bfd1c8d75ce4a2a7604fc4f3f1c5c | refs/heads/master | 2023-03-21T08:03:31.613145 | 2018-09-08T10:10:53 | 2018-09-08T10:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | #!/usr/bin/python3
"""Contains the rectangle class"""
class Rectangle:
"""A rectangle class"""
number_of_instances = 0
def __init__(self, width=0, height=0):
"""Initilizes a rectangle"""
self.width = width
self.height = height
Rectangle.number_of_instances += 1
def __... | [
"sidneyriffic@gmail.com"
] | sidneyriffic@gmail.com |
1a05dcd8a7a1210f7f71760720099b653680d013 | 9e31da70e4ba8a0506cdd7bacb9145c20114af6b | /irpc/irpctyping.py | f2394efc93fd62dc18126d1a53cd530bb22442b2 | [] | no_license | TApplencourt/irpc | 79cca5ae18e6f82f6a4c2ce9d285b2c55595460c | 789caba5d13852377eacb75cd5daebd5262625b7 | refs/heads/master | 2020-05-04T01:42:57.103656 | 2019-07-14T22:19:16 | 2019-07-14T22:19:16 | 178,911,880 | 1 | 7 | null | 2019-07-11T18:38:20 | 2019-04-01T17:20:06 | Python | UTF-8 | Python | false | false | 130 | py | from pycparser.c_ast import Node,FuncDef
from typing import Dict, Set, Tuple, List
ProvDef = FuncDef
Entity = str
AstNode = Node
| [
"t.applencourt@anl.gov"
] | t.applencourt@anl.gov |
fbac63bf33f7188881fc222c1511ba2e7e02d019 | 1f2b41c5c15801120c9f428b31aed8b0b4a40c95 | /deap-examples/examples/benchmarks/pita_simple_benchmark.py | 7cb0128802c057f1c80b731bc11cdd7718650118 | [] | no_license | pitaatip/DJevolution | 42ef2a05b9c024e72f7bc91c3377a641d2534c1e | a65613c87eea785fb6117a8d4768a9d7bb8f800b | refs/heads/master | 2018-12-29T02:08:32.182149 | 2013-05-30T12:56:12 | 2013-05-30T12:56:12 | 3,690,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | '''
Created on 09-04-2012
@author: pita
'''
from deap import creator, tools, base, benchmarks, algorithms
import logging
import numpy
import random
import sys
logging.basicConfig(level=logging.CRITICAL, stream=sys.stdout)
creator.create("FitnessMin", base.Fitness, weights=(-1.0,))
creator.create("Individual", numpy.... | [
"pita_atip@tlen.pl"
] | pita_atip@tlen.pl |
7bf6b0a102445503ec30ce7ad802cac8349e31b3 | be7a03893bb36816e5f6a6539b4b1c1638ac86d7 | /flatten.py | 7a15eb3da6b7a74b39451d76f898b67d933dc342 | [
"MIT"
] | permissive | alexwohletz/PyTutorScripts | e2700c1e0148c13685d830fe05103ed216723807 | a15fe73034cfc8e153c835689fca89869da6201f | refs/heads/master | 2021-01-24T13:23:47.336101 | 2018-03-15T15:41:30 | 2018-03-15T15:41:30 | 123,173,332 | 0 | 0 | null | 2018-02-27T18:55:41 | 2018-02-27T18:51:35 | Python | UTF-8 | Python | false | false | 1,128 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 27 06:33:34 2018
@author: awohl
"""
def flat(lst):
'''take a list of any depth and recursively flatten it'''
def flatten(l):
flat = []
for i in l:
print(i)
print(isinstance(i,list))
if isinstance(... | [
"awohletz3@gmail.com"
] | awohletz3@gmail.com |
336e3580ba4318c88aa8fc8f09ce02dd68c22d45 | db259ea23fabb6bdddfc26ad6d3c8fd852d6a9fc | /python/running_avg_and_med_iterator/modular_logic.py | 9375691297e7d1b2bf560fce89bb9d21d352820d | [] | no_license | bizzcat/codeguild | f5333996d80d1bb81373746f3368df5c72c9558d | 08d87d55107466dca8c6d7e80a2bd61ecbb95a7c | refs/heads/master | 2020-12-25T16:54:03.717775 | 2016-08-10T17:04:17 | 2016-08-10T17:04:17 | 55,080,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | """
Finds the rolling average and the rolling maximum for windows of
two sizes: 3 and 20
Start with [0] index and i++ until i = N
Returns tuple with ((win1-avg), (win2-max), (win2-avg), (win2-max))
In python shell:
- from logic import main
- import your own list, or
- from logic import demo_list
- call... | [
"khubb74@gmail.com"
] | khubb74@gmail.com |
c3471857134c90149a63ef7aebe8d39714d74551 | 06f1726ffa748fd25150fc28aa015634bcaabce8 | /src/led_controller.py | e012c2c6c0dbecbd36565c29eafdb72d4cc8b35e | [] | no_license | iteras/home_networking_monitor | 380f5109abf80f648fe5b25fbf3e88d1b3319384 | a2768cecd453e76bff14b7e07b93d2e0597c4b47 | refs/heads/master | 2020-03-11T04:57:11.980528 | 2019-12-02T19:09:00 | 2019-12-02T19:09:00 | 129,789,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | #!/usr/bin/env python
import os
import sys
if not os.getegid() == 0:
sys.exit('Script must be run as root')
from time import sleep
from pyA20.gpio import gpio
from pyA20.gpio import port
# Declare
LED_green = port.PA12
LED_blue = port.PA11
LED_red = port.PA7
# Init GPIO and declare outputs and inputs
gpio.init... | [
"imreteras@gmail.com"
] | imreteras@gmail.com |
1ea86dcdfe9956c456106c7ec0a97a6d8c419cd0 | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /python/dgl/distgnn/tools/__init__.py | 25bdf4c65809df987d8ca20c5e781a9a93bdc9f1 | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 114 | py | """
This package contains extra routines related to Libra graph partitioner.
"""
from .tools import load_proteins
| [
"noreply@github.com"
] | dmlc.noreply@github.com |
8e7e2b242a40a59a3882ec99d3e0e89f24f03055 | b7ae24b0dd67a7fafbf0253f24c80924df88da62 | /lab/logger/loop.py | c2ba8b296b533dc4d7b722622f7fd1cf8c2792b3 | [
"MIT"
] | permissive | gear/lab | b3a2b1e5babc1adb172f842651e4db5d20939a16 | ad1c5838acbcc98abb5d5d93d5c7a6c2b74bdfa2 | refs/heads/master | 2020-12-19T01:30:33.478027 | 2020-01-23T10:30:52 | 2020-01-23T10:30:52 | 235,579,450 | 0 | 0 | MIT | 2020-01-22T13:29:16 | 2020-01-22T13:29:15 | null | UTF-8 | Python | false | false | 3,712 | py | import math
import time
from typing import Optional, Dict
from lab.logger import internal
from lab.logger.sections import LoopingSection
from .colors import Text
class Loop:
def __init__(self, iterator: range, *,
logger: 'internal.LoggerInternal',
is_print_iteration_time: bool):... | [
"vpjayasiri@gmail.com"
] | vpjayasiri@gmail.com |
5fd27a846afe52a48f5a29078714a53a191619ca | 64b5124d1a1ba85451789f73d4faf069b995e8e5 | /friday_night/models/media_item.py | cee73b6f6a87e031f2de19ea16f845d838b105b1 | [] | no_license | LandonWest/friday-night | d9d5dc6e7eae766bf9b2cad4363014917cfa35ab | 1b2fbd631f003ded78cd92d49ff8e82c8226b75c | refs/heads/master | 2022-11-06T08:30:53.218419 | 2020-06-23T16:13:36 | 2020-06-23T16:13:36 | 266,934,887 | 0 | 0 | null | 2020-06-23T16:09:16 | 2020-05-26T03:23:18 | Python | UTF-8 | Python | false | false | 2,195 | py | from sqlalchemy import (
Column,
Date,
Float,
Integer,
String,
Text
)
from friday_night.models import Base
class MediaItem(Base):
__tablename__ = 'media_items'
id = Column(Integer, primary_key=True)
title = Column(String(80), nullable=False, unique=True)
rated = Column(Strin... | [
"noreply@github.com"
] | LandonWest.noreply@github.com |
0573e11a8f97217b535a73fef1b4269dbb59d034 | c7ace1d28be1061d6f2e9c4d2fa05a97f83683ce | /melindro/wsgi.py | fdfbcc681b996e49270c5fbd312a8d9ebe6b6a48 | [] | no_license | cuquet/Mezzatheme | 496b653a48b3f98fac0e5b331cdf696594875cc7 | 0b2346f6418d2237bf8a6c4223b07b5731f09ed7 | refs/heads/master | 2016-08-11T14:43:36.798008 | 2016-03-25T22:15:42 | 2016-03-25T22:15:42 | 54,717,750 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | """
WSGI config for Django project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from mezzanine.utils.conf import real... | [
"cuquet@gmail.com"
] | cuquet@gmail.com |
c56b4d049ae904203932b8be248c75f798ac22ab | 2a6d385c7737aea3c6b49eef9252babb7557b909 | /Scripts/submitDY.py | 5ffaab269ea817873d6d083ec627f80c3c6dd808 | [] | no_license | Sam-Harper/usercode | 1b302a4b647e479d27a9501f9576bd04b07e111a | fa43427fac80d773978ea67b78be58d264f39ec8 | refs/heads/120XNtup | 2022-08-26T12:59:53.388853 | 2022-07-12T16:52:46 | 2022-07-12T16:52:46 | 15,675,175 | 1 | 11 | null | 2022-07-21T13:27:57 | 2014-01-06T13:54:22 | Python | UTF-8 | Python | false | false | 3,154 | py | #!/usr/bin/env python
import threading
import subprocess
class JobThread (threading.Thread):
def __init__(self, cmds):
threading.Thread.__init__(self)
self.cmds=cmds.split()
self.stdout=None
self.stderr=None
def run(self):
# print self.cmds,
import subprocess
... | [
"sam.j.harper@gmail.com"
] | sam.j.harper@gmail.com |
6b556ec0b9d1e4a83982b898afb959fae96e1fc7 | 58669a4373fa0f44c122eacd5868e8be6dbe41f0 | /users/permissions.py | e3eca49120f95216a8fec394defef4e96de0ad4f | [] | no_license | IlliaStepenko/testtaskbcknd | 961d76689c4b0ca27538d14be51c9671f560229c | 33ec56a19acb673ab81dce9a268048350bef84af | refs/heads/master | 2023-08-24T18:19:37.005414 | 2021-11-08T06:51:25 | 2021-11-08T06:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from rest_framework import permissions
class IsOwnerOrAdminPermission(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
if request.user.is_superuser:
return True
if request.method in permissions.SAFE_METHODS:
return True
return ob... | [
"stepenkoila@gmail.com"
] | stepenkoila@gmail.com |
50c67bed7ba721e1cbacce1759cd7d0a11a0e433 | 3da7f8a1fae54b4aa6f081e049e03ce28c0d7381 | /venv/Lib/site-packages/pip/_vendor/urllib3/__init__.py | f05ac4feb8638484d1b140b92ec7e5b6b291bd7d | [] | no_license | 1751605606/PersonalBlog | 96259196848418be5344520dda4b94b28f4d85e0 | 29b364897075e0ea6ce358ce0041b5ce29262e32 | refs/heads/master | 2022-09-28T11:05:54.016739 | 2019-12-17T13:19:15 | 2019-12-17T13:19:15 | 222,211,569 | 1 | 0 | null | 2022-09-16T18:13:09 | 2019-11-17T07:17:04 | Python | UTF-8 | Python | false | false | 2,683 | py | """
urllib3 - Thread-safe connection pooling and re-using.
"""
from __future__ import absolute_import
import warnings
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
from . import exceptions
from .filepost import encode_multipart_formdata
from .poolmanager import PoolManager, ... | [
"16302010030@fudan.edu.cn"
] | 16302010030@fudan.edu.cn |
907351a87d8b9b50f486fd5b12e523efb949d231 | a14bc9973152add586601c72e16984349070384d | /actone.py | 8838b689dd295630a8af78db3ff3a31438fbacfc | [
"MIT"
] | permissive | lazytype/ActOne | 57beb9913f4d9f974b5644e03fcecfedd28f12b2 | 6b34aca4bd367035846df31f03429fbf35b0e8a6 | refs/heads/master | 2020-04-06T07:52:52.591070 | 2014-03-18T07:14:47 | 2014-03-18T07:14:47 | 17,856,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | import sys
from functools import partial
_magic_methods = ' '.join([
'getitem',
'divmod neg pos abs invert',
'call',
])
_numerics = 'add sub mul div floordiv mod lshift rshift and xor or pow'
_inplace = ' '.join('i%s' % n for n in _numerics.split())
_right = ' '.join('r%s' % n for n in _numerics.split())... | [
"lazytype@users.noreply.github.com"
] | lazytype@users.noreply.github.com |
62e141369dff349f4b669f5b0f8166c45325232e | 9a35748588b55b287128ba0e33a9d1b24b87865a | /examples/context.py | 17a8f05d86af237100c9535df599e7c4de3674bc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Formlabs/OpenFL | 90525ad76c569c92d6526b81c5f9314907caff48 | 711363558eaa80b1d030dd4329240f86f98ae7ff | refs/heads/master | 2022-08-18T18:38:50.857352 | 2022-08-18T13:49:54 | 2022-08-18T13:49:54 | 56,594,781 | 75 | 31 | Apache-2.0 | 2022-08-18T14:54:38 | 2016-04-19T12:29:00 | Python | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
import sys
import os
import inspect
from os.path import dirname
# Add parent directory to sys.path so we find OpenFL.
sys.path.insert(0, dirname(dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))))
from OpenFL import FLP
from OpenFL import Printer
| [
"ben@formlabs.com"
] | ben@formlabs.com |
0bc480cf0c5838c6e7b9dc357bf0cd5e7b72694d | ec8dfc67c0890d1a81210c7a3a24531886bd313b | /CONS.py | e7b1ef590b0921bdf28746f7401ec5127a35a1e2 | [] | no_license | Runsheng/rosalind | ff7410ca920968db575a53700d4eaca86ea5b387 | bf0ae057d6366aa0406d52fd60336b2c96cc91d8 | refs/heads/master | 2021-01-10T15:31:34.474143 | 2016-05-13T08:00:42 | 2016-05-13T08:00:42 | 55,689,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | #!/usr/bin/env python
'''
Rosalind ID: CONS
Problem Title: Consensus and Profile
URL: http://rosalind.info/problems/cons/
2015/02/01, runsheng
'''
from GC import fasta_to_dic
def con_matrix(fastafile):
'''
Given: reads in fasta format
Return: a profile matrix for A,C,G,T
Require function: fasta_to_dic()... | [
"runsheng.lee@gmail.com"
] | runsheng.lee@gmail.com |
793bc28773f78e2679a68c549b4a101fc6e936bc | f0487e6eae7d085f04658dc1f1623fe6b2c16c76 | /ML/assignments/assignment1/173050061/template.py | 0e9e1ef0cbaf3ce85d49a41125b83bc1b4cc5514 | [] | no_license | djlimdiwala/IITB_1st_SEM | fb620111221448c9ce66fe6428245e48e6933bc4 | e5a747a62a76934a4aaf7229523ab47c96be5cc8 | refs/heads/master | 2021-01-23T09:45:04.727384 | 2017-10-11T07:45:34 | 2017-10-11T07:45:34 | 102,595,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,561 | py | #!/bin/python3
import numpy as np
import pickle
import csv
import pandas as pd
m_size = 29 + 38
nr = 13000
nc = 0
def get_output(file_path):
feature_matrix = get_feature_matrix(file_path)
tr = open(file_path)
train = csv.reader(tr)
data = list(train)
# print (output)
data = np.array(data)[1:,1:26... | [
"dhaval.limdiwala@gmail.com"
] | dhaval.limdiwala@gmail.com |
59439d156694157ae2e4403c27849f1b288420d5 | fa3cbc61cd1b10a324a3e2fa5d49dac004b4eb1e | /src/clarusway/settings.py | 5a9029fb10600919bfe5fd938f99d39e63743751 | [] | no_license | Ata-92/Django-CRUD | 0ced146c6daff4eaa13c565af7bba203a9869ca8 | bf4f9f86d3a4ede85861586eda0367c6f118f3e5 | refs/heads/main | 2023-07-08T07:25:15.678919 | 2021-08-07T12:24:26 | 2021-08-07T12:24:26 | 384,761,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,682 | py | """
Django settings for clarusway project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"atakal92@gmail.com"
] | atakal92@gmail.com |
fb30adb175d3b157046e8a351c35bbae75a1518a | af41c215f420bbd66067d6dc851ce41d9ed40819 | /CRBM/CRBM_linBin.py | 37486616144c92d247cebe64ad8654224778066e | [] | no_license | danathughes/pyNeuralNetwork | b704f525bddbc64eabf33c1174dad0649be7bfd9 | dbe2090e50434f33ac7a46845ad67eb5dc7dea87 | refs/heads/master | 2021-01-01T16:30:47.781646 | 2016-01-27T23:11:51 | 2016-01-27T23:11:51 | 19,729,930 | 0 | 4 | null | 2015-02-27T22:22:18 | 2014-05-13T07:32:24 | Python | UTF-8 | Python | false | false | 4,365 | py | import numpy as np
import random
import copy
class CRBM:
"""
"""
def __init__(self, num_visible, num_hidden):
"""
"""
self.num_visible = num_visible
self.num_hidden = num_hidden
# Weights is a matrix representing the weights between visible units
# (rows) and hidden unit... | [
"danathughes@gmail.com"
] | danathughes@gmail.com |
0391fb4b65008907000eb5cebf8052b9aef60719 | 277b86efae954b1907bbe8c543ca19ce123f6fee | /hulishop/asgi.py | 1c45cf0d436bb3d44536510eab4ba2dd40e8a4f4 | [] | no_license | CAlfanoNerey/hulishop | 0edf74862a19b1e69e95dcb20cc0781605124d35 | 43fffb6f507d6211b79ae9acc7b2838310b64054 | refs/heads/master | 2023-04-12T07:48:18.487606 | 2021-05-19T04:16:34 | 2021-05-19T04:16:34 | 366,249,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for hulishop project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"31357204+CAlfanoNerey@users.noreply.github.com"
] | 31357204+CAlfanoNerey@users.noreply.github.com |
fbaf1648fa13916c443000364c59ba20480a6882 | b13a39cfa7098903190d03f8c515d1eac3d0f411 | /0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py | 6305ffcde2ab31c9647193bd1b3257897eac3457 | [] | no_license | brerickner/holbertonschool-higher_level_programming | 73140941249c0d21893338868c77d377a022b21a | 870fb9c8f715be07c067c25c5c8e4f06f66561d9 | refs/heads/master | 2023-05-04T23:35:52.204808 | 2021-05-18T13:53:08 | 2021-05-18T13:53:08 | 319,292,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | #!/usr/bin/python3
'''Module Python file similar to model_state.py named model_city.py
that contains the class definition of a City.'''
from sys import argv
from model_state import State, Base
from model_city import City
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
if __name__ == '__... | [
"breannarickner@gmail.com"
] | breannarickner@gmail.com |
16d7ba3880938e774a1bd1213fd7bd46d6db8316 | 81529f3d8570db42218b9420fe82ddc3ec7820b6 | /15-exercises/stochastic_gradient_descent_two.py | 15e114c355202edec727a4eb39980aeb15544444 | [] | no_license | rileyL6122428/data-science-from-scratch-notes | f10770030fbdd5062de0477b8997cd33b5acf1e6 | 8202442024a502b13d0b462c398b2dcb74712e38 | refs/heads/master | 2020-07-13T10:25:39.318516 | 2019-08-29T02:45:33 | 2019-08-29T02:45:33 | 205,064,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import random
import pdb
# USUALLY, ERROR FUNCTIONS FOR GRADIENT DESCENT PROBLEMS ARE ADDITIVE
# WHICH MEANS THE PREDICTIVE ERROR ON THE WHOLE DATA SET IS SIMPLY THE SUM
# OF THE PREDICTIVE ERRORS FOR EACH DATA POINT
# STOCHASTIC GRADIENT DESCENT:
# COMPUTES THE GRADIENT OF A SINGLE DATA POINT AND TAKES A STEP
# IT CY... | [
"rileylittlefield@ymail.com"
] | rileylittlefield@ymail.com |
d75a7d8956bc4a6db76ca03519d33c3abfa7d77d | 5504bdf5045343145d962537a39fcf4adb823d9b | /simplesocial/posts/models.py | ce20fbee2474320cef8fcfe6b02fac8ceec8f611 | [] | no_license | haruyasu/django-deployment-social | f3df16b67ed96175a23537bdb004eaa51510ac61 | e4cb3ac2b88ce76d17ec3b6d18686966d5e33673 | refs/heads/master | 2021-08-23T03:43:53.213940 | 2017-12-03T01:18:11 | 2017-12-03T01:18:11 | 112,890,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from django.db import models
from django.core.urlresolvers import reverse
from django.conf import settings
import misaka
from groups.models import Group
# Create your models here.
from django.contrib.auth import get_user_model
User = get_user_model()
class Post(models.Model):
user = models.ForeignKey(User,relat... | [
"harukun2002@gmail.com"
] | harukun2002@gmail.com |
c445921ea9533fb28a3bb8e2efc58bb3c23255fd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2880/61020/248415.py | 1e2294e028de52f931cc843ec994906932c8770c | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | import os
import sys
s = input()
n = int(s[0:1])
k = int(s[2:3])
'''
8 4
4 2 3 1 5 1 6 4'''
weight_list = input().split()
for i in range(0, len(weight_list)):
weight_list[i] = int(weight_list[i])
left_index = 0
while (left_index < len(weight_list)) and (weight_list[left_index] <= k):
left_index += 1
if le... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c67ae4bf08dd2b56541c3ba41453d1315e1ea49f | ab114052c5e9c14326de41a4ee6b44f7cf2f923b | /proposal_layer.py | 47f121d79c4fbffec6ec08d4fb581957f4493a7a | [] | no_license | lllidan-yuandian/ocr | 19bed373c7c01716d3c953c38f5d3562b67d064b | 318cd733e8b2ea9d9b92143d43f8bd54055ae31f | refs/heads/master | 2020-04-04T18:32:49.847480 | 2018-11-08T11:35:39 | 2018-11-08T11:35:39 | 156,167,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | # -*- coding: utf-8 -*-
import torch
from generate_anchors import *
from config import *
import numpy as np
class ProposalLayer(torch.nn.Module):
def __init__(self, feat_stride, scales, ratios):
"""
In the constructor we instantiate two nn.Linear modules and assign them as
member variables... | [
"yuandian@yogorobot.com"
] | yuandian@yogorobot.com |
96b6d0a93c8d4254bfad897d712409adfc6db9de | b3f8fa6d7cbc570a711e6eee9f80ed32f13881d0 | /game_over.py | 9cbab07b9f20dafd9509334ecc4e0a5b6887d4d1 | [] | no_license | MotherTeresaHS/ICS3U-2017-Group16 | 665320ec1f9a67343abb825b480a040e1b77a8dc | d9f2165024fda517a3676c7ad8ca5063b4143673 | refs/heads/master | 2021-09-04T22:37:35.973505 | 2018-01-22T19:30:20 | 2018-01-22T19:30:20 | 111,715,066 | 0 | 1 | null | 2018-01-22T19:30:20 | 2017-11-22T17:45:33 | Python | UTF-8 | Python | false | false | 3,495 | py | # Created by: Matthew Walsh
# Created on: dec 2017
# Created for: ICS3U
from scene import *
import ui
from main_menu_scene import *
from game_scene import *
import config
import time
class GameOverScene(Scene):
def setup(self):
# this method is called, when user moves to this scene
center_of_scr... | [
"Matthew.walsh1@ocsbstudent.ca"
] | Matthew.walsh1@ocsbstudent.ca |
9f8789fccf3df008ae84be98d9f9d1eaa6a2e518 | 2952677aeb4ab4765fd0b588b8cf2a9f58408f3a | /requests/create_geo_objects.py | 22ffb604598aab36bd4d8167fbbfba21747d74b4 | [] | no_license | VToropov1337/MA | a60c69110a557a744a1b1a949d4dbcfc1d2ca8aa | 823c204154f973ded50b62ab2104358f5b2c7131 | refs/heads/master | 2020-03-20T21:58:45.039951 | 2019-06-27T18:24:35 | 2019-06-27T18:24:35 | 137,772,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import requests
import json
import pandas as pd
COL = ['title', 'comment', 'country', 'region', 'city', 'street', 'house',
'ltd', 'lgt', 'address', 'territory', 'metro_city', 'metro_competitor',
'problematical', 'at_code', 'category_id', 'regional_category_id']
token = '***'
params = {'Content-Type':... | [
"vladimirtoropov87@gmail.com"
] | vladimirtoropov87@gmail.com |
750fe16dc3a68faadc4d30e7bfff3463250936b3 | 13ad61867a93bcb664d4837b392d2228930e4a27 | /exercise/rename.py | 07573f06e9bab38522861cfa94356d45be0e166e | [] | no_license | AncientDragon/Git_Python | 198777020939b04d7f4a3c9d9c206ce91de633d6 | c8f4c17634fdfd00b7cca0873fff92ab16f8b2d0 | refs/heads/master | 2020-12-24T07:57:31.243457 | 2020-11-30T10:12:34 | 2020-11-30T10:12:34 | 73,353,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2/23/2018 11:04 AM
# @Author : Apy
# @File : rename.py
###rename
import os
# print "E partion include: %s "%os.listdir('E:/')
# os.rename('E:/12345', 'E:/123456')
# print "哈哈哈"
###re.findall
import re
dir_path = 'E:/a/'
# print os.listdir(dir_path)
fo... | [
"mr_ace@126.com"
] | mr_ace@126.com |
58c05ab3bd5c8eff804a197b485adcd1a28a1232 | 703606e145992b85c5094139815472104dfff786 | /List/448.py | 259b2e6b022bad1c95951738a5ae82b997a2f5cf | [] | no_license | nshoa99/Leetcode | 91f1d19857c60a3fd50b157a8befec57562af6ff | 7b1e75c7ff4e3fd2aa2071cbb0533ab175523932 | refs/heads/master | 2023-01-05T15:10:18.430827 | 2020-11-07T09:56:29 | 2020-11-07T09:56:29 | 305,736,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | '''
448. Find All Numbers Disappeared in an Array
Easy
3292
261
Add to List
Share
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
Find all the elements of [1, n] inclusive that do not appear in this array.
Could you do it without extra space an... | [
"nguyensyhoa999@gmail.com"
] | nguyensyhoa999@gmail.com |
640dccf341e9fd1d129f4f890615bf9d447b4af8 | d1f61cbde0a2f5916487581af3a75b447286910a | /assignment_Management/student/migrations/0006_auto_20210321_0050.py | b8f5308cc629115f83e23763ff9754104d89ec6e | [] | no_license | devanshiks/Assignment_Management_System | 8e6d308f280be9ac1e207e8504df42f7f0bc256e | 2d43da07f655ff5bb6110e735a336e45d01fad39 | refs/heads/main | 2023-03-28T16:13:10.471986 | 2021-04-04T18:54:56 | 2021-04-04T18:54:56 | 308,111,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # Generated by Django 3.0.3 on 2021-03-20 19:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('student', '0005_submission'),
]
operations = [
migrations.RemoveField(
model_name='submission',
name='submission_added_time'... | [
"68745733+devanshiks@users.noreply.github.com"
] | 68745733+devanshiks@users.noreply.github.com |
93e90f8008b9eb70c05f3db8771a4a04c3ee4d08 | 643e4cf0a3fe3a3ab04cf584b97e38b4838e4e1d | /1.2.2_[T.S].py | 7abc50bd411c7b5bf73393a0ff90c5a3264cd8e8 | [] | no_license | riley-csp-2019-20/1-2-2-catch-a-turtle-leaderboard-tiffany85615 | 188e86ba3a6b85a669321c431305edc702ce5866 | 20ef11e6aafcf1e87d676aa1a2459bf443888791 | refs/heads/master | 2020-08-31T22:19:17.319740 | 2019-11-08T15:59:14 | 2019-11-08T15:59:14 | 218,799,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | # a121_catch_a_turtle.py
#-----import statements-----
import turtle as trtl
import random
import leaderboard as lb
#-----game configuration----
shape = "turtle"
size = 10
color = "orange"
score = 0
timer = 5
counter_interval = 1000 #1000 represents 1 second
timer_up = False
#leaderboard variables
le... | [
"noreply@github.com"
] | riley-csp-2019-20.noreply@github.com |
fb5ab7fefb1602942552482e3abcdb141674b869 | 0c9ec5d4bafca45505f77cbd3961f4aff5c10238 | /openapi-python-client/test/test_version_dto.py | 42e411d4b0a5c74d862fd2bbd0bb770eb27d12b8 | [
"Apache-2.0"
] | permissive | yanavasileva/camunda-bpm-examples | 98cd2930f5c8df11a56bf04845a8ada5b3bb542d | 051f8f28c62845e68ce4059ab64264c5a0bdc009 | refs/heads/master | 2022-10-19T20:07:21.278160 | 2020-05-27T15:28:27 | 2020-05-27T15:28:27 | 267,320,400 | 0 | 0 | Apache-2.0 | 2020-05-27T14:35:22 | 2020-05-27T13:00:01 | null | UTF-8 | Python | false | false | 1,309 | py | # coding: utf-8
"""
Camunda BPM REST API
OpenApi Spec for Camunda BPM REST API. # noqa: E501
The version of the OpenAPI document: 7.13.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_clie... | [
"noreply@github.com"
] | yanavasileva.noreply@github.com |
7937369f1aa7ea27e2c1bfb5fe1d8b91569a4c89 | 3fa149cfcdd8ec56d51cf99a16cbf3afbd9b1266 | /django/mysite/blog/views.py | 2f789f2fc7fa924fcdb58c4d500f5c19f37ec596 | [] | no_license | leinian85/project | 045ec90475b012063624151d604d9148d2d8c948 | c2463da30cbdda8c35a557048988260e62212d08 | refs/heads/master | 2020-07-06T16:44:42.993050 | 2019-11-04T06:44:41 | 2019-11-04T06:44:41 | 203,082,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from . import models
def index(request):
return render(request,"blog/index.html")
def list(request):
return render(request, "blog/list.html")
def mypic(request):
return render(request, "blog/mypic.html")
def login(request):... | [
"42737521@qq.com"
] | 42737521@qq.com |
3e83d4edb0a33d5ee3d549153ed1b2ad03d8c085 | 677d3db8e30449a9879f673004513f3abfc62c0c | /coding-bat-in-python/Warmup1/monkey_trouble.py | 0942270f7253261974bbf4d1ce198f048699b518 | [] | no_license | ama0322/Algorithms-in-Python | ef1067916d8ebbd6ea1d865b127348dde559059e | 8ce54240773a6378e73cbfc203a8bc54baf65175 | refs/heads/master | 2021-03-27T20:23:43.296863 | 2018-02-19T00:19:33 | 2018-02-19T00:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | def monkey_trouble(a_smile, b_smile):
"""
We have two monkeys, a and b, and the parameters a_smile and b_smile indicate if each is smiling. We are in trouble if they are both smiling or if neither of them is smiling. Return True if we are in trouble.
monkey_trouble(True, True) → True
monkey_trou... | [
"noreply@github.com"
] | ama0322.noreply@github.com |
bb23d4d940e5fbfe15de2fa2cc015f9718ae0b3e | a708908fe6ca21001d90ef48568d97ff03a5010f | /config.py | 521a4bd7fa8a2d0839eca3172ebb34f2b331b5ea | [] | no_license | LukaFlores/deployment | d0b04dcf8cc88b7fea204d30fd29e0a5efb6edaa | b05dfd444b47576dd56a48a22ff45fb9074f9743 | refs/heads/master | 2023-06-23T11:53:31.594849 | 2021-07-20T23:00:46 | 2021-07-20T23:00:46 | 387,931,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # LIVE KEYS
API_KEY = 'AKY3RFVA67Y97IU30X2F'
SECRET_KEY = 'F8tvJSj9b8rWBEjeayBjxcXZIjhrUntjniyxEXAO'
API_URL = 'https://api.alpaca.markets'
# #PAPER KEYS
# API_KEY = 'PKRE3QDL0LQFGQAWZ7SQ'
# SECRET_KEY = 'hJGUi7L8wADRce9MuIQguk7f6XjqcFPUhkErfcfC'
# API_URL = 'https://paper-api.alpaca.markets'
DB_File = 'c:/coding/tr... | [
"85141937+LukaFlores@users.noreply.github.com"
] | 85141937+LukaFlores@users.noreply.github.com |
5ff1e2e4e4f9bb0132137b9e864f47504db28341 | 933f7c5966df4415df4fe7f372284dbec1481ff2 | /back-end/gene_map.py | 1b93df7dc917921d2e6697a5cd36b3384e92f0d5 | [] | no_license | LandonBecker/Phlash | 81bb97af443ec467b7c75f628dd2e6b8000bb450 | e4777060737f6dce5e2dba836d8793a21cc4c6cb | refs/heads/master | 2023-08-31T21:24:57.449205 | 2021-10-05T15:19:33 | 2021-10-05T15:19:33 | 294,181,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py | """Contains the functions for the Genome Map page.
Creates and returns the genome map.
"""
from dna_features_viewer import GraphicFeature, GraphicRecord
from Bio import SeqIO, Seq, SeqFeature
from werkzeug.utils import secure_filename
from contextlib import closing
from Bio import SeqIO, Seq, SeqFeature
from collectio... | [
"landonbecker123@gmail.com"
] | landonbecker123@gmail.com |
69ef6a67b254084b8d1faa95e29ddad03ff7961a | c64ff47c55c7d0d791d8a9dcaf1e29ae8827455c | /Sayka/takeCommand.py | 19807cc5a4b60a81968ba0094cd584b8bc3417cf | [
"MIT"
] | permissive | ajinkyaap/SAYKA-Intelligent-Personal-Assistant | 9859ffde1e428ad28dac357d9d5dd82b36823758 | 574ac3812c30b4ea57023384e152eb810e65f1f6 | refs/heads/main | 2023-07-07T21:20:09.568089 | 2021-01-18T14:03:31 | 2021-01-18T14:03:31 | 330,683,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import speech_recognition as sr
from speak import speak
from playsound import playsound as ps
def takeCommand():
r = sr.Recognizer()
with sr.Microphone() as source:
ps('start.mp3')
print("Listening...")
r.pause_threshold = 0.5
r.adjust_for_ambient_nois... | [
"noreply@github.com"
] | ajinkyaap.noreply@github.com |
1a8b7e284d3d940529ceb3867f19bc300281bf17 | 35057e54ae3378e8adb93dd6f2df02c39a980e1e | /지하철데이터/각시간대별_승차인원_최대역.py | aa1a462d21311b09d9210af151a51093e05cfbdc | [] | no_license | cjdfid2225/study | 79133b4908551294289ebbe5c934a3a1a61f6dab | bb4545e0ed463c2e9cae804225a0a8518f95f94b | refs/heads/master | 2023-06-08T14:09:02.171455 | 2021-06-28T04:00:22 | 2021-06-28T04:00:22 | 275,956,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import csv
import matplotlib.pyplot as plt
f = open('2020년 06월 교통카드 통계자료2.csv')
data = csv.reader(f)
#각 시간대별로 최대인원이 승차하는 역을 찾는다
#output: 역(시간대)
mx = [0] * 24
mx_station = [''] * 24
for row in data:
if data.line_num < 3:
continue
for i in range(4, 52):
row[i] = row[i].replace(",", "")
r... | [
"noreply@github.com"
] | cjdfid2225.noreply@github.com |
2863c98cb8176410c703c0fd4c2af26245e0829a | ac3db86631a4ab6fd9ef0d1397ccd842cef957fa | /blocks/eyeBlocks/timecomponent.py | 14a3c47580776b1a3ce2feb4754be17b0ad1e669 | [
"MIT"
] | permissive | csparkresearch/ExpEYES17-Qt | 57f5e19196bfd7a04454c0708c33d6eccd36e1e1 | 7a3bdc0df19569c0321434d8fd897439b1854fb1 | refs/heads/master | 2020-12-31T00:30:42.669312 | 2018-04-19T11:11:39 | 2018-04-19T11:11:39 | 86,545,764 | 1 | 4 | null | 2017-07-21T10:00:39 | 2017-03-29T06:22:12 | Python | UTF-8 | Python | false | false | 2,722 | py | # -*- coding: utf-8; mode: python; indent-tabs-mode: t; tab-width:4 -*-
############################################################################
#
# Copyright (C) 2017 Georges Khaznadar <georgesk@debian.org>
#
#
# This file may be used under the terms of the GNU General Public
# License version 3.0 as published ... | [
"georgesk@debian.org"
] | georgesk@debian.org |
f886e562f7cfcbf32e4934a9159ffe91c81369b4 | db725701719b8034b021f2bf41d8b11c18f4884f | /pytorch_torchtext_model.py | 7f8a56a1794877699e99614f8d1f97da57511687 | [
"Apache-2.0"
] | permissive | arthur-telles3/pt_customized_transformer | 6158446511b2abd3aad5d3f28a0afef967e740be | 11e9e800835b694d0e8c4b604d7af3f6c268b415 | refs/heads/master | 2023-03-15T01:02:49.374375 | 2021-03-19T01:22:44 | 2021-03-19T01:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,232 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch import Tensor
from torchtext.datasets import TranslationDataset, Multi30k
from torchtext.data import Field, BucketIterator
import spacy
from typing import Tuple
import random
import math
import time
SEED = 1234... | [
"atelles311@gmail.com"
] | atelles311@gmail.com |
e09f415251a47afb8438ac88d1a6352bd48c9774 | 6b3ae843cf665d40ff3ec087072856b7c819bf9b | /Apex_import/apex.py | 8fb4412ada016a08927ec054f5b90e17bd779d28 | [] | no_license | charlesareynolds/python | 5231748b8d29b5d3608650ea93c11d7aca023c14 | 4ced100d05b2f93faf6a18660f9b103c74b0a314 | refs/heads/master | 2022-11-06T07:24:11.706132 | 2022-10-27T02:03:18 | 2022-10-27T02:03:18 | 35,306,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | #!/usr/bin/env python
"""Module to hold APEX'isms
"""
__author__ = "Randy Sanchez"
__version__ = "$Revision: 1.4 $"
__date__ = "$Date: 08/07/2008 07:49:57 $"
__copyright__ = "Copyright 2008 LLNL"
Ada_Suffix = ".ada"
Body_Suffix = ".2.ada"
IDL_Ada_Dir = "IDL_Ada"
Internal_Dirs = (
".Rational_Location",
... | [
"charlesareynolds@gmail.com"
] | charlesareynolds@gmail.com |
5357c9994f096c88200299181ed677f3cdcb2aa4 | 75275e1cd5ef1a5dddd5fdcb82db03fdf1b609d3 | /lib/ansible/modules/cloud/alicloud/alicloud_vswitch_facts.py | 561d125b8647854e88f68e032792d213c1b52967 | [
"Apache-2.0"
] | permissive | jumping/ansible-provider | bc8b2bc51aa422de89d255ba1208ba8e8ae8f0be | 067ce1aa4277720bc481c2ba08e3d1b408b8f13c | refs/heads/master | 2020-03-13T21:30:50.287049 | 2018-04-27T13:12:23 | 2018-04-27T13:12:23 | 131,297,789 | 0 | 0 | Apache-2.0 | 2018-04-27T13:12:24 | 2018-04-27T13:07:37 | Python | UTF-8 | Python | false | false | 7,048 | py | #!/usr/bin/python
# Copyright (c) 2017 Alibaba Group Holding Limited. He Guimin <heguimin36@163.com.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
aa78bfa40dfed1c0b26da637de7a5fc54e3033d9 | 2906d7dfaf54d42139b90bc350ec87779b9ef35d | /image_processing/acquisitionlib.py | 7cd6debc4516ed504418d37fef20f8d6bb09a289 | [] | no_license | rthiermann/agarpad_processing | c983c2545ae3ada9d7d530f9cf518c8799c1ad9c | 7138018e86d6a98b55720c11ccb429ab5c7f84f4 | refs/heads/master | 2023-03-18T15:01:09.694093 | 2021-02-10T06:29:36 | 2021-02-10T06:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,264 | py | #################### imports ####################
import sys
import os
import numpy as np
#from nd2reader import ND2Reader # does not work properly
from pims_nd2 import ND2_Reader as ND2Reader
#from pims import FramesSequenceND
import tifffile as ti
#class ImageReaderND(FramesSequenceND):
# @property
# def pixel_... | [
"gletreut@physics.ucsd.edu"
] | gletreut@physics.ucsd.edu |
5ce39198570232fd919aed084fb6c6233f1715df | 08a46d882b8e69efd5090555915f39583cb0067a | /qa/rpc-tests/bip65-cltv.py | 82fbc5a444888817049eeb937b85991d8c768b5d | [
"MIT"
] | permissive | Bitcoin-OLD/Bitcoin-OLD | 3a7d36ce9d7ba6c238b5e67443290172318c09d0 | 16627f390aa418a99103843f9d94c48931fad826 | refs/heads/master | 2020-04-16T21:00:10.631744 | 2019-01-15T19:39:39 | 2019-01-15T19:39:39 | 165,907,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,320 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoinold Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test the CHECKLOCKTIMEVERIFY (BIP65) soft-fork logic
#
from test_framework.test_framework import ... | [
"bitcoinold@protonmail.com"
] | bitcoinold@protonmail.com |
83d75d742cdf7f8b7d4970dff0532f6e23253ee2 | 171179bbef63781fa55ffe94bd33868578272db0 | /prog/lu.py | 83a4dca99e822dc012b36010c749e84aba2dfab5 | [] | no_license | nineties/math-seminar | 9a038a4fb88bbcb2fbc2456860a3bd88b99ca10e | 51bbc071aa46418abf525969391a502312867c08 | refs/heads/master | 2020-04-16T16:36:22.207459 | 2018-09-12T22:41:08 | 2018-09-12T22:41:08 | 12,613,664 | 14 | 7 | null | 2019-11-08T12:10:17 | 2013-09-05T09:06:37 | HTML | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
import numpy as np
def lu(A):
A = np.copy(A) # 作業用
n = A.shape[0]
L = np.identity(n, dtype=float) # 対角行列
U = np.zeros((n,n), dtype=float) # 零行列
for k in xrange(n):
U[k,k] = A[k,k]
for i in xrange(k+1,n):
U[k,i] = A[k,i]
L[i... | [
"nineties48@gmail.com"
] | nineties48@gmail.com |
38f5fcd0c82d2fedebb31c1e82541d9708fd8458 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03252/s222988530.py | d03803223cba2148882efcfde3db4be3936b980f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations,permutations,accumulate, product # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Cou... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
73cf051165504a7ef34ac8613156ab6ea90f40c6 | cee55c2f601ec238148fc8d886dd4e6c1d437bb9 | /code.py | 00aa401a0cae32c679f1b55c907c56d78e932705 | [
"MIT"
] | permissive | Utkarsh007-Singh/recommend-clothing-size | 0a169245d6284de59e68daf83b53f08c0e9fafc4 | f84e7bb323557f2279bbe4ed5ec71b17f34ad2d4 | refs/heads/master | 2020-09-27T10:13:06.226667 | 2019-12-07T10:26:27 | 2019-12-07T10:26:27 | 226,492,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | # --------------
# import the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings('ignore')
# Code starts here
df = pd.read_json(path,lines=True)
df.columns=df.columns.str.st... | [
"Utkarsh007-Singh@users.noreply.github.com"
] | Utkarsh007-Singh@users.noreply.github.com |
a99f0536c1d5f211f5d364eb549957ee8b00dfec | 3c7057226c7bb01cd493cde5742b3979cf030f94 | /lmctl/client/api/behaviour_projects.py | 0b0e73b6319e5993be94a05d25387e22b98be3d4 | [
"Apache-2.0"
] | permissive | sharadc2001/lmctl | 2d047f776d1bbee811801ccc5454a097b1484841 | a220a3abeef5fc1f7c0a9410524625c2ff895a0a | refs/heads/master | 2023-05-27T06:14:49.425793 | 2021-04-29T20:08:52 | 2021-04-29T20:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from .resource_api_base import ResourceAPIBase
class BehaviourProjectsAPI(ResourceAPIBase):
endpoint = 'api/behaviour/projects'
| [
"daniel.vaccaro-senna@ibm.com"
] | daniel.vaccaro-senna@ibm.com |
6f1a204a2f1b3fb12e67f4c0bf1a4f3978724a3e | 9433b0c930386bf18bc58f3b71736348ceb1acf1 | /restconf/connectionserver/swagger_server/__main__.py | db49e4dcca3214b032f8dbd2a64f064dd685b389 | [
"Apache-2.0"
] | permissive | rvilalta/OFC_SC472 | 358bbf0a07cfcf6c0a7e90889a1e1e8ceae6168a | a4fa355b05671a7c5372439940e733a6cbf8f917 | refs/heads/master | 2022-11-08T08:30:31.933956 | 2022-10-17T04:47:28 | 2022-10-17T04:47:28 | 145,859,651 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!/usr/bin/env python3
import connexion
from swagger_server import encoder
def main():
app = connexion.App(__name__, specification_dir='./swagger/')
app.app.json_encoder = encoder.JSONEncoder
app.app.config['JSON_SORT_KEYS']=False
app.add_api('swagger.yaml', arguments={'title': 'connection API'}, py... | [
"rvilalta@gmail.com"
] | rvilalta@gmail.com |
eb46e992eb9904a5fdf802b84cd2ccfc34bff306 | b619c397f55b596e0f5293012c0a76dd0c6226d0 | /push/filters.py | 40b8080df71dbc6a7537c6c428ffcc711614baa3 | [
"MIT"
] | permissive | Mhamzaarif/django_infopush | cfcb05c4ebb7c1424aef0616a176256b1badbf29 | 9c41f455c0b18108be9f2f08401133b0c7717a5c | refs/heads/master | 2023-03-15T12:27:13.769522 | 2020-12-24T15:09:16 | 2020-12-24T15:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext as _
from commonstuff.filters import MyNullNotNullFilter
class IsDoneFilter(MyNullNotNullFilter):
"""
Model field stores datetime when push task has been done, but in admin
this filter reduces options to not sent (IS NULL) or already s... | [
"zemskyura@gmail.com"
] | zemskyura@gmail.com |
3fb4f0e2850f32ab1f80edb8ed59569c4b953632 | 84a5c4c2e0977d42425771098f5f881c750da7f0 | /neomodel_constraints/fetcher/constraints/__init__.py | 73fec18b7981f1156387bb109741685f95637d1e | [] | no_license | SSripilaipong/neomodel-constraints | 6c3023ba156275e48f5f7ebcbdd283ce8d41f9a1 | 4b91185ba9eec993c58e9ae770fd3d0e90f915ae | refs/heads/main | 2023-07-15T09:58:41.451631 | 2021-08-29T13:19:38 | 2021-08-29T13:19:38 | 390,312,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from .data import Neo4jConstraintQueryRecord
from .fetcher import get_constraints_fetcher
from . import v4_2
from . import v4_1
| [
"santhapon.s@siametrics.com"
] | santhapon.s@siametrics.com |
009c7689d899f6b590b2b405a7df7c8ed717a727 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/cuspup/cuspup_985b33e540b199c473b9a9aa9d00f4c4.py | 44cd2b03fca9c53826daa25735c52165e2446bed | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,044 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
d6837933673c1503000c6d39ad4772b2c03345e5 | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/itkMattesMutualInformationImageToImageMetricPython.py | 81440a32b1811b0ec96222199dc6ed9ec225ad20 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,289 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkM... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
ef861a13c033aa74f1aa1ce3cbdafdbcd57b5c39 | 64cfe0d4b5138cb8493491062b05e31e457903cc | /iocel | 5890f7714a3eedee6beb5c73d822120316f402e3 | [] | no_license | masatake/iocel | b73497e679d3e94a73430cebe94d743e839c94df | 8939e1d2b6ecce023f3a98d6e2742600f2c37239 | refs/heads/master | 2021-01-15T11:29:09.834822 | 2013-07-25T13:25:18 | 2013-07-25T13:25:18 | 3,324,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | #!/usr/bin/python
# Copyright (C) 2012 Red Hat, Inc.
# Red Hat Author(s): Masatake YAMATO <yamato@redhat.com>
# License: MIT (see below)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software wit... | [
"yamato@redhat.com"
] | yamato@redhat.com | |
cb954ce3d1e279cd28ba5dbf08c4ba236f90faad | 60d78f50d29049f3fa5f65c818483afdb2e97fd6 | /data/build_database.py | 777a3f4c93e609496828ad0469c199aac0dba547 | [] | no_license | ecgeil/radar | 7bc364dfedc09a36785fc22741b5eec486c27d74 | 90827e1c7436dc11cdd8a9f21a9cc0c6eea18abd | refs/heads/master | 2016-09-06T19:51:35.790070 | 2014-09-02T13:55:45 | 2014-09-02T13:55:45 | 22,656,360 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | """Script for building the training database""''
import os,sys
import numpy as np
import nexradutils
import sqlite3
import netCDF4
import tempfile
import shutil
import datetime
import PIL
from PIL import Image
srcdir = '/Users/ethan/dev/nexrad/data/kmlb'
dstdir = '/Users/ethan/dev/nexrad/data/kmlb_grid'
sqlfile = 'k... | [
"ecgeil@gmail.com"
] | ecgeil@gmail.com |
7dcfd73cbe7545f48aac779d51ddde20a249fdd4 | 3493c9edcc457ea692aa2f992f79c103f558d9c5 | /alarms/views.py | 51530a89d54e7b91f64f960cdf3d4e94156dbb65 | [
"MIT"
] | permissive | RashaMou/clock-api | ad2427d2a0bda03a05a871d63bd0a35f1fbbfd26 | 57c16e83cdb405feea268c6a03959207a12cb4d0 | refs/heads/master | 2023-07-05T13:18:42.767423 | 2021-08-12T15:15:29 | 2021-08-12T15:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from rest_framework import viewsets
from . import models, serializers
class AlarmViewSet(viewsets.ModelViewSet):
authentication_classes = []
permission_classes = []
queryset = models.Alarm.objects.select_related("sound", "task__crontab").all()
serializer_class = serializers.AlarmSerializer
filter... | [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
a1f7908d567bac4f484b55effb0cccdaf55518bb | 83df1fb88f7abba1198284bb4b8dc8d0a7ff6f93 | /src/tools/telemetry/telemetry/internal/backends/chrome/android_browser_finder.py | 6958262d5084870fa2bc43a01507674f3049ebeb | [] | no_license | JamshedVesuna/telemetry | 7f3385399e47b7b98f8d3eec80ade43690956cd7 | 1697886b155f22a42e13aa311538f1db65e6e6ed | refs/heads/master | 2021-01-20T09:12:34.645395 | 2016-01-22T08:40:44 | 2016-01-22T08:40:44 | 47,851,831 | 3 | 2 | null | 2020-07-24T04:58:51 | 2015-12-11T21:25:59 | HTML | UTF-8 | Python | false | false | 8,392 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Finds android browsers that can be controlled by telemetry."""
import logging
import os
import sys
from telemetry.core import exceptions
from telemetry.... | [
"jamshed.vesuna@gmail.com"
] | jamshed.vesuna@gmail.com |
02ac9f1a326d7feb811c38de3a86da45a2cfc8fb | 704a43d0ef8dfaacc7128a83be6d0da0a79ce8e0 | /flask-env/bin/python-config | 48dea811722ab0184d5b217a2b6f86f28fa3d022 | [] | no_license | varunsingh09/movie_app | b832beef08f8e0802477edebca91fa6b6a190292 | 3b28f0b2b5b9e0d44381d01af0905dda76f08b36 | refs/heads/master | 2023-05-14T04:08:45.644676 | 2018-06-15T19:14:36 | 2018-06-15T19:14:36 | 137,522,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | #!/home/varun/code/cba_python_mysql/flask-env/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('abiflags')
if sy... | [
"singh.varun1985@gmail.com"
] | singh.varun1985@gmail.com | |
8fb1606790c9ce97c9057ef02616e836312e04e1 | f6dd57e6919e9ce12dee7d1161bc255013f5ebad | /library/std/base/__init__.py | 056bf8f6737eb51fc50c5de472ee147035a4f836 | [] | no_license | askurandrio/ACTL | 459cb208ca3f5895d2c15d60a2a589ae827c6f2c | 26deab4e17e73107fc1e4fd85efb0dc5d86f94ff | refs/heads/master | 2023-08-20T00:25:22.710400 | 2023-08-08T17:39:53 | 2023-08-08T17:39:53 | 90,586,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | from .rules import RULES
from .executor import *
from . import objects
| [
"ask.lazer4@gmail.com"
] | ask.lazer4@gmail.com |
968779787b6716ccea812e83a19262cbbc5eda4f | 30f58c475a23b835771b8e25133ed9ef155eef59 | /myapp/migrations/0003_article_a_name.py | 2ac1e3dcddad2c873cafc0daa38e5ac6504a779f | [] | no_license | Kaushik-Sridhar/Reputation-system | 8b765ada22832e1576419e699f88052b8af54e92 | 1fd51ec9e0635b8f87d45d1597e4a91618c7c902 | refs/heads/master | 2020-03-18T11:28:35.802345 | 2018-05-27T06:38:36 | 2018-05-27T06:38:36 | 134,674,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-26 06:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0002_article'),
]
operations = [
migrations.AddField(
mo... | [
"noreply@github.com"
] | Kaushik-Sridhar.noreply@github.com |
59a37a9821870959439ef732507e76d4908702cc | 7c568ca8675ee507d231dc3ddc2c26db8af81d3f | /app/measurement/params.py | c7b56351a186ec99bc1eb35754f3bf154e71d86b | [
"MIT"
] | permissive | pnsn/squacapi | ccfb458c7230fc5b0a0be7921eb6db611d8c646a | 40d9608295daefc5e1cd83afd84ecb5b0518cc3d | refs/heads/main | 2023-04-30T22:10:51.651835 | 2023-04-28T17:01:06 | 2023-04-28T17:01:06 | 176,352,115 | 7 | 0 | MIT | 2023-04-28T17:01:07 | 2019-03-18T19:03:32 | Python | UTF-8 | Python | false | false | 1,063 | py | from drf_yasg import openapi
'''
Param overrides for doc generator (won't be needed in V3)
Needed for fields that have list of values allowed
'''
metric_param = openapi.Parameter(
'metric',
openapi.IN_QUERY,
description="Comma separated list of metric ids",
type=openapi.TYPE_ARRAY,
items=op... | [
"marczk@uw.edu"
] | marczk@uw.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.