blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91b1c10e64a295b822581c8cf1127bbf61ba56b2 | 7cecdae92dc9b32df74d45a1bd529bc544283f94 | /tests/test_config_reader.py | 20ca54e3cbd8839410c09f8f079c3409405dcb82 | [
"MIT"
] | permissive | Josef-Friedrich/jflib | 6d680bebc414a7b56918fdb33694ce666e41d9af | 722f8cd9fa7008fc1db77d7e785f6bfd90b5d7f6 | refs/heads/main | 2023-05-28T23:32:33.381374 | 2023-05-23T21:30:22 | 2023-05-23T21:30:22 | 180,605,227 | 3 | 0 | MIT | 2023-05-23T21:30:23 | 2019-04-10T14:58:43 | Python | UTF-8 | Python | false | false | 16,179 | py | import argparse
import os
import tempfile
import unittest
from jflib import config_reader
from jflib.config_reader import (
ArgparseReader,
ConfigReader,
ConfigValueError,
DictionaryReader,
EnvironReader,
IniReader,
ReaderBase,
ReaderSelector,
load_readers_by_keyword,
validate_k... | [
"josef@friedrich.rocks"
] | josef@friedrich.rocks |
be9f7d8b3ac111643c48d86d2142203de3228393 | 7b383cab8f9708dd9bc00c939cbab9600c0ca894 | /UP2/NCS1/USBCam/Classes/NCS1.py | 87c91137d99cfd455a3f827b54d10b7e35d6f62c | [
"MIT"
] | permissive | amirunpri2018/TassAI | 3f05b1b848d6d93fe491761589352bc0521496c3 | 3451f34d8973b67a823784e7db8fde03b274a60d | refs/heads/master | 2022-12-22T06:48:46.024068 | 2020-10-01T15:43:25 | 2020-10-01T15:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | ######################################################################################################
#
# Organization: Asociacion De Investigacion En Inteligencia Artificial Para La Leucemia Peter Moss
# Project: UP2 NCS1 Facial Recognition USB Security System
#
# Author: Adam Milton-Barker (AdamMiltonB... | [
"adammiltonbarker@eu.techbubbletechnologies.com"
] | adammiltonbarker@eu.techbubbletechnologies.com |
7c95681e4f7516d837f24831474d047624855e90 | 7cc312f65eb2d6af491e8b13ef57ff3ba2babf7f | /leetcode/python/palindrome-number.py | b8299c0c1fb21889b6b1e45498653348e650f966 | [] | no_license | tangwz/leetcode | df1c978999f4ed76254eb82be08785957052dca9 | 38e860a2fd103958d12a64a87e32f8c9c20d0a59 | refs/heads/master | 2021-01-22T13:13:04.181337 | 2019-11-26T08:00:39 | 2019-11-26T08:00:39 | 30,180,759 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # I think this problem is meanless
class Solution(object):
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if x < 0:
return False
if x == 0:
return True
tmp = x
y = 0
while x:
y = y*10 ... | [
"tangwz.com@gmail.com"
] | tangwz.com@gmail.com |
739e7233ae6e85a915862e2c952ccf33b1711970 | f776848c59ddfeb045b44b18901df81e75fd11a2 | /mysite/settings.py | 8371ef36b06bdce0a716277040fc96a54222bf81 | [] | no_license | bianak/my-first-blog | 44fc2b84802f83997ebe4fd55a49278c1aebc9c5 | f9c0f9a086a44f4d3a8bab16b7e5d5e036528c45 | refs/heads/master | 2020-12-31T04:56:12.538888 | 2016-05-01T12:21:09 | 2016-05-01T12:21:09 | 57,597,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,235 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | [
"bianak@gmail.com"
] | bianak@gmail.com |
1496cc8b9437c5d0ef5c0a07d256fbdbce3fd1b5 | c78ea793abf6c910d92dde56a48d0c880e5ba174 | /python/unionfind2.py | 288cc110cf2387a0e3a5f3bff5a05ba121f96c9a | [] | no_license | bdomokos74/Snippets | 9d10c29f2a99396ecf988cf79cd1d87303221596 | 3c2ce5e8f13802a768738830ca28884ba1975e0c | refs/heads/master | 2021-01-20T07:50:59.805027 | 2013-11-05T22:01:53 | 2013-11-05T22:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,875 | py | '''
unionfind.py
A class that implements the Union Find data structure and algorithm. This
data structure allows one to find out which set an object belongs to, as well
as join two sets.
The algorithm's performance, given m union/find operations of any ordering, on
n elements has been shown to take log* time per o... | [
"bdomokos@Domokoss-MacBook-Pro.local"
] | bdomokos@Domokoss-MacBook-Pro.local |
fd3ad031be0d00161054e0f826fde716d99ac206 | 52c4ebb5bfa5239093b0199e23b576aa2e54807a | /ecommerce/products/admin.py | a4845c5f3795439bab70b96415e7b13b60cf2e06 | [] | no_license | KUSH23/ecommerce | f216556a82da66df31a0ae8c8ccb2a5692d5efa6 | 7fe9249be88aca72894686bee5c9cd1e74226eba | refs/heads/master | 2020-07-07T16:57:08.641542 | 2019-08-20T16:27:48 | 2019-08-20T16:27:48 | 203,413,246 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.contrib import admin
from .models import Product
# Register your models here.
class ProductAdmin(admin.ModelAdmin):
list_display = ['__str__', 'slug']
class Meta:
model = Product
admin.site.register(Product, ProductAdmin) | [
"kushalsai2007@gmail.com"
] | kushalsai2007@gmail.com |
2de76a36c9302294182913712a4cbdbd7f90c964 | 9e1f60a867f66b1f4e4fc84fa4252c581e5e1a36 | /Chapter09/test_state_1.py | e33eaec766eaab31fbfd5891365def90b52cc707 | [
"MIT"
] | permissive | PacktPublishing/Clean-Code-in-Python | c216e002485b8cd7736f97b59215a3930f35359a | 7348d0f9f42871f499b352e0696e0cef51c4f8c6 | refs/heads/master | 2023-06-10T13:40:33.331115 | 2023-05-30T17:48:09 | 2023-05-30T17:48:09 | 145,072,942 | 523 | 181 | MIT | 2023-05-30T17:48:10 | 2018-08-17T04:48:38 | Python | UTF-8 | Python | false | false | 1,489 | py | """Clean Code in Python - Chapter 9: Common Design Patterns
> Test State
"""
import unittest
from state_1 import Closed, InvalidTransitionError, Merged, MergeRequest, Open
class TestMergeRequestTransitions(unittest.TestCase):
def setUp(self):
self.mr = MergeRequest("develop", "master")
def test_r... | [
"35489117+gaurav-packt@users.noreply.github.com"
] | 35489117+gaurav-packt@users.noreply.github.com |
0f964bce45a9a34367e7441978d9d150039184a5 | 9ae33e19ec06a95b537a1e71973f52463c654628 | /vampire-get.py | 478154238b1fcb4fa7daa4c97d4ba0965247587c | [
"BSD-2-Clause"
] | permissive | VerosK/samba-vampire-drivers | e38913aa2fb8aaa7f83219c8af22fe86610386bb | 924c735b247e216967db4834f16aa200e3c631a7 | refs/heads/master | 2020-05-02T13:01:50.634299 | 2013-09-15T19:31:54 | 2013-09-15T19:31:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,122 | py | #!/usr/bin/env python
import pexpect
from ConfigParser import ConfigParser
from optparse import OptionParser
import os
import re
import json
from zipfile import ZipFile
import StringIO
from pprint import pprint
import tempfile
import logging
reDRIVER_IGNORE = re.compile(r'Server does not support environment .*$')
re... | [
"kaplan.v@czechglobe.cz"
] | kaplan.v@czechglobe.cz |
63fb876f6910592a3479aeab743cdf4899f4e6bc | d4dda5ef5c808afff4b91d1fb2b7a4c2c13c68cf | /sampling.py | efbe8b4d5b5b7120b24d0ac749c6faf363488edc | [] | no_license | Sandeep-AnilKumar/Kaggle-TwoSigma-Rental-Interest | 7474f409db234add035ef9b7b8d0eb449dba903e | f667cfbd1e9fed843c7012b95f08f6a1e6d84876 | refs/heads/master | 2021-01-19T10:15:23.050156 | 2017-04-19T17:47:54 | 2017-04-19T17:47:54 | 87,845,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,275 | py | import pandas as pd
import time
import csv
from sklearn.ensemble import RandomForestClassifier as rfc
import numpy as np
from nltk.stem import PorterStemmer
import re
import xgboost as xgb
np.seterr(divide='ignore', invalid='ignore')
stemmer = PorterStemmer()
features = ['garag', 'cinema', 'hardwood', 'air condit', '... | [
"sandeepa@yahoo-inc.com"
] | sandeepa@yahoo-inc.com |
506f233829f19442d95d33bf7a1e1cd4473855f1 | 5d54668f3a8c05b0c07b28d56ce80c4261ff2652 | /opencv-master/samples/python/tutorial_code/imgProc/erosion_dilatation/morphology_1.py | 502457b471af6d9d51493147bb467b941d1f136e | [
"BSD-3-Clause",
"MIT"
] | permissive | AmitHasanShuvo/Face-Detection-with-Image-Enchantments | 43ff70d0885d0d3dd2909919d873fc907bdd4fba | 468e12c35db047d36cd7815d46576137528da47a | refs/heads/master | 2023-04-05T18:29:25.044797 | 2020-07-09T20:22:03 | 2020-07-09T20:22:03 | 277,646,487 | 3 | 1 | MIT | 2021-04-20T23:54:27 | 2020-07-06T20:52:31 | C++ | UTF-8 | Python | false | false | 2,469 | py | from __future__ import print_function
import cv2 as cv
import numpy as np
import argparse
erosion_size = 0
max_elem = 2
max_kernel_size = 21
title_trackbar_element_type = 'Element:\n 0: Rect \n 1: Cross \n 2: Ellipse'
title_trackbar_kernel_size = 'Kernel size:\n 2n +1'
title_erosion_window = 'Erosion Demo'
title_dilat... | [
"kaziamithasan89@gmail.com"
] | kaziamithasan89@gmail.com |
fd4d0a99bfba98753367c2dee4d75fda61fa6e52 | 128c0d2924f0c5a97346b5a05ea3e4c138b00c57 | /opencv/chapter16/HoughLines.py | 8e5ed09bcab15e090b4d4b4406ff19e9a82d3add | [] | no_license | GOD-TEN/MyNote | af0d6f8ae698c13c062750ef7931150eb2347a88 | d7737952f098cd9b145c52e672211da8f05dd785 | refs/heads/master | 2023-05-30T08:19:45.882762 | 2021-06-24T08:42:32 | 2021-06-24T08:42:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
img = cv2.imread("computer.jpg")
gray = cv2.cvtColor(img , cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray,50,150,apertureSize=3)
orgb =cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
oShow = orgb.copy()
lines = cv2.HoughLines(edges, 1, np.pi/180, 140)
for line in lines:
... | [
"1348800462@qq.com"
] | 1348800462@qq.com |
c84e27f853a3739f2c3a75ee9f54b29eab09c342 | a07248a9c15105dd7fad728d18fd381dea5ed17f | /aurevoir.py | 33a21a50e1bcd5bfe156d5807f98e13a1c8a3eb3 | [] | no_license | battyone/aurevoir | 207e84fd8aea68f4e864c93ed54a4cf782274016 | 143f637db81d35ad3e607bca17dd865791dd73e9 | refs/heads/master | 2020-09-28T21:48:55.414057 | 2017-01-23T04:21:31 | 2017-01-23T04:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | from flask import Flask, render_template
from logging import getLogger, basicConfig, DEBUG, INFO, WARNING
import os
from threading import Lock
from zeroconf import ServiceInfo, Zeroconf, ServiceBrowser
class RootListener(object):
def remove_service(self, z, service_type, service_name):
log.info("We're told... | [
"jerome.petazzoni@gmail.com"
] | jerome.petazzoni@gmail.com |
2145526225efcedfd80d26083e233b193732814f | 8ff6c3e513e17be6c51b484bed81d03150bdd175 | /2013-01-facegif/cutface.py | afb58002b5ace80bf5625eccd582ac4bee62a9f2 | [] | no_license | ricbit/Oldies | f1a2ac520b64e43d11c250cc372d526e9febeedd | 2d884c61ac777605f7260cd4d36a13ed5a2c6a58 | refs/heads/master | 2023-04-27T20:35:19.485763 | 2023-04-26T04:45:44 | 2023-04-26T04:45:44 | 2,050,140 | 40 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import cv
import os
import sys
def DetectFaces(image):
cascade = cv.Load('haarcascade_frontalface_alt.xml')
storage = cv.CreateMemStorage(0)
return cv.HaarDetectObjects(
image, cascade, storage, 1.2, 2, cv.CV_HAAR_DO_CANNY_PRUNING)
def cut_image(image):
grayscale = cv.CreateImage(cv.GetSize(image), 8, 1... | [
"bluepenguin@gmail.com"
] | bluepenguin@gmail.com |
317e5a23ae615ad38a5be8cd5a1acceaf1e40665 | 12b4051077b3c2c39f1dbdd565eacbf65eda4e9a | /benchmark2.py | ae78f23d86428e89d2c302db814e579b649cef60 | [
"BSD-3-Clause"
] | permissive | villawang/Continual_Learning_CV | b715295dfb66ee2f2fcd75a3874d63ac20cf8996 | 6715fa9c741df920e56aede11cbb85a4be41871e | refs/heads/master | 2022-10-08T09:29:51.004471 | 2020-06-08T09:51:26 | 2020-06-08T09:51:26 | 264,915,681 | 0 | 0 | BSD-3-Clause | 2020-05-18T11:15:51 | 2020-05-18T11:15:50 | null | UTF-8 | Python | false | false | 9,171 | py | import os, sys, shutil
shutil.copytree("./train/illumination/segment1","./benchmark2/sequence/train/task1")
shutil.copytree("./train/illumination/segment2","./benchmark2/sequence/train/task2")
shutil.copytree("./train/illumination/segment3","./benchmark2/sequence/train/task3")
shutil.copytree("./train/illumination/seg... | [
"noreply@github.com"
] | villawang.noreply@github.com |
43144455fedd5a060eab88def5055aa00f29455f | 9db36c25c175cc5f064dbe2300a9e92a2c2684b6 | /students/KevinCavanaugh/session8/Lab8-6 Dynamic SQL Transactions.py | a35e3e459caa2f4b5d1741177b245062cade5d60 | [] | no_license | KevCav91/Python210-W19 | 2507e52922e8f59d5d4e5c9615c1048bbd22b945 | 8000611c99b18b15c2992192dc11127d6775e350 | refs/heads/master | 2020-04-19T21:28:27.083710 | 2019-03-13T03:59:20 | 2019-03-13T03:59:20 | 168,441,925 | 0 | 0 | null | 2019-01-31T01:20:45 | 2019-01-31T01:20:44 | null | UTF-8 | Python | false | false | 9,184 | py | import sqlite3
from sqlite3 import Error as sqlErr
def create_connection(db_file):
""" Create or connect to a SQLite database """
try:
con = sqlite3.connect(db_file)
print('SQLite Version is: ', sqlite3.version)
except sqlErr as se:
raise Exception('SQL Error in create_connection():... | [
"kevincavanau@gmail.com"
] | kevincavanau@gmail.com |
aecde9e7abcdbfa41ccb962cbb2953491d867875 | 586a7372bc4f26082653e0a50926b5687dd9de40 | /src/tokens.py | 34c0ee689a4f8c96a19f316913f1084cf27ab981 | [] | no_license | mbucc/qiftoiif | 70ffe3a8e217d86a819d7e42225b2c5901d55168 | 75bc7ed3b5af58636e8520b5f2d0fa494f898b98 | refs/heads/master | 2016-09-05T14:02:38.539623 | 2010-03-10T00:56:31 | 2010-03-10T00:56:31 | 540,123 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,321 | py | #
# Copyright (c) 2010 Mark Bucciarelli <mkbucc@gmail.com>
#
# Permission to use, copy, modify, and distribute this software
# for any purpose with or without fee is hereby granted, provided
# that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ... | [
"mark@x30.crosscutmedia.com"
] | mark@x30.crosscutmedia.com |
4e6ebbffaa7463d3cfd44e97df532f2dee48d07a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2788/60595/251681.py | ce493d0bf81d1f4beb8b4ad066205aea69c75fcb | [] | 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 | 794 | py | def Test():
n=int(input())
boys=eval("["+input().strip().replace(" ",",")+"]")
m=int(input())
girls=eval("["+input().strip().replace(" ",",")+"]")
z=min(m,n)
parts=[]
j=0
if(z==n):
while(j<len(girls)):
if(check(boys[0],girls[j])):
parts.append([boys[0]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
53fa7f6b3bcd54e0d7438f5e5e06baf0bcea2920 | cb5adbdf41bb23964d0dd8fc5c04bd4385673b9a | /twobuntu/api/v1_2/urls.py | 2313b4377987ef2bf82bacf565073d1820df99d5 | [
"Apache-2.0"
] | permissive | nitstorm/2buntu-Django-Blog-Nitin-fork | 109d5a4ffeb7e646485b4730d1b1dd63e4c1257a | 64d7b09c0678cecbb9e79c8bbd9869bf4301e418 | refs/heads/master | 2021-01-18T01:03:28.407392 | 2014-07-13T05:39:48 | 2014-07-13T05:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | from django.conf.urls import patterns, url
urlpatterns = patterns('twobuntu.api.v1_2.views',
url(r'^articles/$', 'articles'),
url(r'^articles/(?P<id>\d+)/$', 'article_by_id'),
url(r'^authors/$', 'authors'),
url(r'^authors/(?P<id>\d+)/$', 'author_by_id'),
... | [
"admin@quickmediasolutions.com"
] | admin@quickmediasolutions.com |
4ab524e5911fa1a0819ce8c309fbea89a1cb8c53 | 6c564b6ca7c47d20b139eec8012773e45e629f16 | /v_env/lib/python2.7/site-packages/djangocms_blog/views.py | a18a4d6838825cd02033b14b0ac070b34afe288e | [] | no_license | blowUA/oscarbg | f76fa3c47981044b3f2f13b53d0e999eeea8369e | 321f5bd792df6369fa2092c64ae73e036c1351d5 | refs/heads/master | 2021-03-19T11:35:16.337676 | 2017-08-07T18:25:18 | 2017-08-07T18:25:18 | 96,817,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,464 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os.path
from aldryn_apphooks_config.mixins import AppConfigMixin
from django.contrib.auth import get_user_model
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
f... | [
"root@barneysfarm.com.ua"
] | root@barneysfarm.com.ua |
4b4271a8ba071eebed2374c64d25ea8b0cbc123c | 127882af5e2e0af03d7a917e534c00cf844b2529 | /size.py | 3770a3ec44094606df7f6d00eaf8c2907790624b | [] | no_license | aspencerpsu/PythonCookBook-Revamped | c496562a0796238af698fe54ffa7761cae0e334b | 444f978aba91607c250da20e82a99bdfd846a7f6 | refs/heads/master | 2020-06-10T22:36:11.196928 | 2017-03-14T16:43:46 | 2017-03-14T16:43:46 | 75,855,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from subprocess import Popen, PIPE
def command(directory):
return ["du", "-sh", directory]
def check_size(directory):
proc = Popen(command(directory), stdout=PIPE, stderr=PIPE, universal_newlines=True)
result = ""
exit_code = proc.wait()
if exit_code != 0:
for line in proc.stderr:
result = result... | [
"akeem@schwartzenegger.aint.on.no.joke.sh1t"
] | akeem@schwartzenegger.aint.on.no.joke.sh1t |
9835eecd936d4de08bae53466c78dbc12ef8eb9d | 0daa9cddd8a591fcc1b077bb7d5d6a4f5b801453 | /Live Video Feed/cam.py | fe77898088cb1e62368f4c92ce5181319029f70f | [
"MIT"
] | permissive | yuvaraj-06/EM_BOT.io | 5fbfc116d584d2c7ce1bd3024542833404ad2665 | b83fe9c223b99be49c1b7c0c575c04c54a9c429d | refs/heads/master | 2022-08-29T17:09:44.199304 | 2020-04-11T12:08:54 | 2020-04-11T12:08:54 | 244,861,061 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 23,181 | py | # Web streaming example
# Source code from the official PiCamera package
# http://picamera.readthedocs.io/en/latest/recipes2.html#web-streaming
import io
import picamera
import logging
import socketserver
from threading import Condition
from http import server
import os
import RPi.GPIO as GPIO
PAGE="""\
<html>
<head>
... | [
"noreply@github.com"
] | yuvaraj-06.noreply@github.com |
a4b1a60545658a8d8f78c60948c9a730f08c530f | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_sqr/trend_constant/cycle_12/ar_/test_artificial_1024_sqr_constant_12__100.py | 2239a2b9360d2647f6e4ca61b30fe39991f9a2e9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 1024 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 12, transform = "sqr", sigma = 0.0, exog_count = 100, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
23e530aff4d8b428e1040aedebaf067d2e74e9d6 | ab1416f6fd6655094298e6c7bab1ac47d2533342 | /samples/Python/filenames/DEPS | 6e5d1268bdd60e43376eea30b5d172bd8dad0369 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | monkslc/hyperpolyglot | 6ddc09e9d10d30bd8ce5c80a3bd755fa5714d621 | a55a3b58eaed09b4314ef93d78e50a80cfec36f4 | refs/heads/master | 2023-05-26T15:26:14.686247 | 2023-05-17T13:51:31 | 2023-05-17T13:51:31 | 248,387,967 | 43 | 11 | Apache-2.0 | 2023-05-17T13:51:35 | 2020-03-19T02:02:35 | RenderScript | UTF-8 | Python | false | false | 4,536 | gclient_gn_args_file = 'src/build/config/gclient_args.gni'
gclient_gn_args = [
'build_with_chromium',
'checkout_android',
'checkout_android_native_support',
'checkout_libaom',
'checkout_nacl',
'checkout_oculus_sdk'
]
vars = {
'chromium_version':
'f200986dfaabd6aad6a4b37dad7aae42fec349e9',
'node_ver... | [
"monkslc@gmail.com"
] | monkslc@gmail.com | |
082a1d0a91074a3a3545799fa89ac845b5d5790b | bf448de248ec95325839b5e355af6982b4e5632d | /todo_project/testing_app/views/index.py | ac307f51c5dad4b28290138bc92c859ef3195724 | [] | no_license | rusalinastaneva/Python-Web-Basics | b459b8f47918b52654d304f3db3de54156299f66 | ecdd72b44d4d0a1b107ef1f9fa10eb252bd4fd0e | refs/heads/master | 2023-01-05T13:15:58.691511 | 2020-11-02T20:32:16 | 2020-11-02T20:32:16 | 309,486,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django.shortcuts import render, redirect
from testing_app.forms.profile import ProfileForm
from testing_app.models import Profile
def index(request):
if request.method == 'GET':
context = {
'profiles': Profile.objects.all(),
'form': ProfileForm(),
}
return ren... | [
"rossavelrs@yahoo.com"
] | rossavelrs@yahoo.com |
5718784c595d36e780c62bac3c46b052db8c7ba1 | 308dbe988649bf2bdc21e65ea1546165675bd6f1 | /bin/countpep8 | 2a52665967c7957e9019b2698af1a19814287ff3 | [] | no_license | julie777/user_environment | 0ca424f8bf2bccc16959ef28821b34841232ca6d | 746c4516eaa1b801cb2f052969bc39c0737a460c | refs/heads/master | 2021-01-19T06:53:29.415289 | 2015-12-30T19:26:31 | 2015-12-30T19:26:31 | 42,820,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,512 | #!/usr/bin/python
import os
import sys
import threading
import subprocess
from collections import defaultdict
import multiprocessing
import argparse
config = None
counts = defaultdict(int)
def check_file(filepath):
try:
output = subprocess.check_output(['/usr/local/bin/pep8', '--statistics', '--max-line... | [
"julie.jones@movenetworks.com"
] | julie.jones@movenetworks.com | |
31451823a0339390e66441098803890d7228f75a | a017f3a0c2ae3e6286bb6409245f4dccd6b4ff53 | /forms/AllTasks.py | 4f82223abb7696fbf85501d93ec015c36cc4624b | [] | no_license | KaurJa/To-Do_App | cca528a72c89e44ca75859aa5d373b70ffed9846 | 986c1f3367edd274cb459ff49d3457287681b240 | refs/heads/master | 2020-04-04T17:51:03.092178 | 2018-10-08T04:59:04 | 2018-10-08T04:59:04 | 156,138,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | from anvil import *
import anvil.tables as tables
from anvil.tables import app_tables
class AllTasks(AllTasksTemplate):
def __init__(self, **properties):
# You must call self.init_components() before doing anything else in this function
self.init_components(**properties)
# Any code you write here will r... | [
"Jass9343@gmail.com"
] | Jass9343@gmail.com |
54b7de4e7b3aa0e145b36a1e60e08ff50247ff97 | c221d7c4ce09c40c5089a1dde8350eef1b22111b | /ball.py | dc1713bf914be4fffa975e723ff7f9c852ae09be | [] | no_license | karolina139/Arkanoid | e00057f8e54df3f8f0ee55bf471ba1a7e5417ff3 | 34251a6a2265fa8489b65c9d0e9c21480c8d00f9 | refs/heads/master | 2023-03-22T02:44:15.237815 | 2021-03-09T22:41:21 | 2021-03-09T22:41:21 | 346,149,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | import pygame
class Ball(pygame.sprite.Sprite):
"""Klasa tworząca piłkę."""
def __init__(self, width, height):
#inicjalizuj klasę bazową
pygame.sprite.Sprite.__init__(self)
self.screen_width = 800
self.scree_height = 600
self.width = width
self.height = height... | [
"255746@student.pwr.edu.pl"
] | 255746@student.pwr.edu.pl |
80da9ab7c2c2ddbd96b52a1722c7d9c5776c612b | 2981370bed1988f2b1173a4c4217df608635da21 | /meiduo_mall/meiduo_mall/settings/prod.py | e577b92386f022455cced19df3f0e2c12df12d5f | [
"MIT"
] | permissive | Zasling/meiduo_mall33 | 15c0eec1e028b6a2502ac1ab944f7bd42b40d5e8 | ec55597758d5052b311d65aee44533b001f6ddd8 | refs/heads/master | 2020-04-08T22:21:35.765256 | 2018-12-04T07:14:59 | 2018-12-04T07:14:59 | 159,783,731 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,390 | py | """
Django settings for meiduo_mall project.
Generated by 'django-admin startproject' using Django 1.11.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"zasling@163.com"
] | zasling@163.com |
a8b064ab5954d9afce97d2fefae22cdc3f005b5a | f571169e1293ec37556b2f30844ab28db2479e46 | /RNN_retry/make_Word2Vec_data.py | 59d91e2b2cf0d6b3810734ffcfb80c0e858e07c1 | [] | no_license | swallowtail224/classification_tweet | 7ea9331e3d338256dc69642cf4c160a00d2bd808 | 8ba0708af909c0af63c955a0919591bab587a70e | refs/heads/master | 2020-04-17T08:43:36.905165 | 2020-01-17T14:04:59 | 2020-01-17T14:04:59 | 166,423,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.3.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
from gensim.models import word2... | [
"gandamexsia@yahoo.co.jp"
] | gandamexsia@yahoo.co.jp |
b4391290703dfc6a10438c48de9f21f63720a332 | cc0c0f99a5cf563ff52a76f2ac17cdad09d22f01 | /venv/Lib/site-packages/itk/itkReinitializeLevelSetImageFilterPython.py | 3d980dd5b7380f3bcd09a86b369d64e85eb438f6 | [] | no_license | Marxss/carck_detect_system | 9c0d338bde322b4c7304fd0addb524d8697c8a7b | d2480f2108052af8af0aa5265a5239c309885043 | refs/heads/master | 2022-04-15T23:34:20.988335 | 2020-03-29T16:24:00 | 2020-03-29T16:24:00 | 214,625,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,562 | 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: _itkR... | [
"274065539@qq.com"
] | 274065539@qq.com |
b9d28f8e40fad24068d2f2fe803f3add69834370 | 3486ac68422353638bdf593c9cdbd7cbc0f925ce | /classes_new.py | 904ab17768c08a9524c212e09a0ba06073ec5c70 | [
"MIT"
] | permissive | NickF40/Buisbot | 35fba26ba694f61ca144db8a553208478271682e | 7c16804a864fc43d92aba04f0220dac789059093 | refs/heads/master | 2022-05-11T18:34:42.170177 | 2022-05-08T19:04:50 | 2022-05-08T19:04:50 | 137,491,511 | 1 | 1 | MIT | 2022-05-08T19:05:37 | 2018-06-15T13:33:50 | Python | UTF-8 | Python | false | false | 9,261 | py | """
Updated version of classes.py
Added some base classes, wide usage of inheritance planned
Todo: Create LessonsBuilder & define msanagers
"""
import time
from math import fabs
from markups import choice_marup
import mongo
import postgres
format = "%H:%M"
class Lesson:
def __init__(self, ... | [
"e_n_k@list.ru"
] | e_n_k@list.ru |
b6afcf86358caeaa41b9c3f1ff61df606b231ec9 | 9f81a38d42b2fc096b601a556c58c1b3bdf5508d | /bincol.py | 448a45668efc4dcbc948f5efd7c249291f98edc0 | [] | no_license | rizzo00/bincol | 1e7aaa58e2a3105afa68784992ad803b1f22b754 | 89960cf256b774a5d9410216753d78fd30c75752 | refs/heads/main | 2023-02-28T01:29:19.764583 | 2021-02-03T11:34:48 | 2021-02-03T11:34:48 | 332,751,273 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | import requests
import sys
import os
picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic')
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib')
if os.path.exists(libdir):
sys.path.append(libdir)
from waveshare_epd import epd2in13_V2
from PI... | [
"rizzo.00@gmail.com"
] | rizzo.00@gmail.com |
4fa0efb8dc0dd6987ee766db7a94b8729fca3054 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class168.py | 6263a03eb4672e046fa05de76c19787287b6648e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,188 | py | # qubit number=3
# total number=30
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
c7de402e23ffc1e90db73f1063f4c6f29ac379e0 | a0f0bfa44979566732b76c609a9198457e031a2b | /docs/source/conf.py | de97daef2a9bc7e1ee09bea6783833a6f2872132 | [
"BSD-3-Clause"
] | permissive | davidfischer/sporco-cuda | 951aebd1001e9cfe58e490c470b6addb163ca271 | ffe633b9cf7055550a0f2250e29bedd99cd098f1 | refs/heads/master | 2020-03-16T11:41:31.922467 | 2018-05-08T00:41:26 | 2018-05-08T00:41:26 | 132,652,756 | 0 | 0 | null | 2018-05-08T19:03:16 | 2018-05-08T19:03:15 | null | UTF-8 | Python | false | false | 10,177 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# sporco_cuda documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 22 21:03:01 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
... | [
"brendt@ieee.org"
] | brendt@ieee.org |
e20f1fad0a2da6986fc810ebc91ca2187ff03bae | 6415a3f0cc4dd8be73b57bb1352a312fe12fe306 | /Spotkanie3/Zad2.py | b98fb0d03b3349e405a3bce458223f1a21558339 | [] | no_license | Borys-karton/LabPython | f0689f2ac58dfa7bbae841fe973b5172bd74e0c9 | 37f8ab72a712090542ab8009b7f5ab826c6ff53a | refs/heads/main | 2023-01-29T04:44:38.514106 | 2020-12-10T01:24:38 | 2020-12-10T01:24:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | imiona = ["Adam", "Andrzej", "Ania", "Agata"]
for element in imiona:
print("Witaj uzytkowniku {}, jak Ci minął dzień?".format(element))
print("\n1.")
for x in range(0,5,1):
print(x)
print("\n2.")
for x in range(2,5,1):
print(x)
print("\n3.")
for x in range(0,10,2):
print(x)
| [
"mojkmac@gmail.com"
] | mojkmac@gmail.com |
ac11f4731115622edd1d97e678c31e4ac6f0883f | 255bf9d2516d8477b84c7b2513ffecaf10872713 | /simple3/migrations/0007_imagenes.py | d2d87428ad79a43fead94f9adcea2f46f6389149 | [] | no_license | tob447/simple3 | 5cbe4f2bb16fd2a2b1fe61de59be61fed424417b | b411793e31d55600f45da176353b81f5a0e55ba6 | refs/heads/master | 2021-01-24T09:12:01.055717 | 2018-04-27T04:57:07 | 2018-04-27T04:57:07 | 123,002,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-04-21 22:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('simple3', '0006_compresores'),
]
operations = [
migrations.CreateModel(
... | [
"fagudel7@eafit.edu.co"
] | fagudel7@eafit.edu.co |
41728409217d12d86f0b8c641f03b7a620528261 | feae8f7c8b3f1d79dbd918095bd198db156cd740 | /Restriction_API/urls.py | d32440faae5b0694eeb2942b8b37a44c814cd835 | [
"MIT"
] | permissive | ksarthak4ever/Restrict_API | 9a16879009bbcc5a8243b6366732cfa9e977bd67 | e53e671965b825fa167b080fe7212ec6f3e4c6ca | refs/heads/master | 2020-05-18T01:07:34.639542 | 2019-04-30T01:02:09 | 2019-04-30T01:02:09 | 184,081,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """Restriction_API URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Cla... | [
"ksarthak4ever@gmail.com"
] | ksarthak4ever@gmail.com |
e35b160dbed289599189d98ce6fabebd210e1af1 | 27375f6266f47c325f67337a3851f358cfcc533b | /django_app/config/urls.py | 5581a01b03f431a82d21b613d37c8d2141d25bdc | [] | no_license | hongdonghyun/drf_insta | ec044e3bfc300329edcf1812238620d2c427453f | 3398cd59a873f4a0e213589ce4271be83cfef730 | refs/heads/master | 2020-12-02T08:09:52.545944 | 2017-07-10T13:11:35 | 2017-07-10T13:11:35 | 96,778,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | """instagram URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"hong4367@gmail.com"
] | hong4367@gmail.com |
f4a37d716fd65c1a64a19bac2998ce2d01b7e931 | cbfe0a03ecf3cd423dd33c5219be2293e5377305 | /task30.py | 669e99f90b053debd9230e2043edbda86541b6a9 | [] | no_license | astarostin/projecteulertasks | bdefafee6e24f15060adab5b9377eecfdceed56d | 2edc99f15838ec711ad3d551d823c8d2ef47787a | refs/heads/master | 2021-01-21T21:39:36.836295 | 2016-03-18T14:53:13 | 2016-03-18T14:53:13 | 16,258,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | import math
powers = {}
def main():
print 'task 30'
fill_powers(5)
res = 0
for i in range(10, 1000000):
if test(i):
res += i
print res
def test(n):
s = 0
for c in str(n):
s += powers[int(c)]
return n == s
def fill_powers(n):
f... | [
"astarfryazino@gmail.com"
] | astarfryazino@gmail.com |
b1baa37ccc2300a62d8d9375b75162e34c2989df | 5a281cb78335e06c631181720546f6876005d4e5 | /openstack-placement-1.0.0/placement/tests/fixtures.py | be235b355a8c4dee2334904091ad0f96969adaab | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 3,272 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
393ccdde7ef08c546deeb32ee7f792b458c689fa | a63419b2c457a219c010876ece3980af8cfc3c1b | /_DJANGO_/django-player/gameplay/views.py | 556971862e1019a0cf46647d9fb7fb1688c69685 | [] | no_license | thomasm1/python_2018 | ba87560a1e25343c0429fcafe51bb867dc299223 | 6a57c7603055a2511a8734ab34ce21f76e4427ef | refs/heads/master | 2023-05-10T07:20:07.911734 | 2023-05-05T03:58:36 | 2023-05-05T03:58:36 | 147,065,041 | 2 | 5 | null | 2023-03-03T15:15:08 | 2018-09-02T07:41:32 | Rich Text Format | UTF-8 | Python | false | false | 1,150 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.views.generic import ListView
from .models import Game
from .forms import MoveForm
@login_required()
def game_detail(request, id):... | [
"thomasm1.maestas@gmail.com"
] | thomasm1.maestas@gmail.com |
3110c67c6673e46cd839713921988a00f652a37e | e7290064b5df4731167bab10606f451b446a21f7 | /python/ray/runtime_context.py | 1ec4a38511968bc138256290746c4f4428646c0f | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | sven1977/ray | dce9f6fa114741837341f14aef0a8c64c442aba6 | b73a496af19bce627a611e7af2cb02a3c5d99684 | refs/heads/master | 2023-09-02T00:57:47.167794 | 2023-08-17T09:33:04 | 2023-08-17T09:33:04 | 229,269,728 | 2 | 5 | Apache-2.0 | 2023-07-29T07:08:41 | 2019-12-20T13:27:01 | Python | UTF-8 | Python | false | false | 13,583 | py | import logging
from typing import Any, Dict, Optional
import ray._private.worker
from ray._private.client_mode_hook import client_mode_hook
from ray._private.utils import pasre_pg_formatted_resources_to_original
from ray.runtime_env import RuntimeEnv
from ray.util.annotations import Deprecated, PublicAPI
logger = log... | [
"noreply@github.com"
] | sven1977.noreply@github.com |
e208d251cbdca4ad8acfc48abbf05d97815c3c72 | f18785b7fa3a12f06a29562282dc50f2d1a7bc67 | /src/mariaClust_image.py | c41de83ff1fc3e6d578b8c42a49d33861667c75e | [] | no_license | IuliaRadulescu/MariaClust | b487ae86391f05b2ea32fbbf221df9423ee76196 | c188b837704507bcd507eb0abdc77113e36a9f8e | refs/heads/master | 2020-03-19T03:24:50.960121 | 2018-10-14T19:36:24 | 2018-10-14T19:36:24 | 135,725,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,417 | py | from __future__ import division
import cv2
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as st
import sys
import os
from random import randint
from random import shuffle
import math
import collections
import evaluation_measures
'''
=============================================
FUNCTII AUXIL... | [
"iulia.radulescu@prospectiuni.local"
] | iulia.radulescu@prospectiuni.local |
dd1a357c59491004293be2c4a668cf2b765e501c | 5a21320778eff1159fee232320dc3c22309d542b | /lineByLine.py | 20f5a0bd274662324e0fea9f792d59b17581890a | [] | no_license | TheRochVoices/LSTM | 5dc337a83a6bba535828795e94190a77e66542d6 | 6515d7127bb1af9104887bf9b7839b4fc6dfbc3e | refs/heads/master | 2020-03-21T22:31:32.223499 | 2018-06-29T17:19:12 | 2018-06-29T17:19:12 | 139,132,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,770 | py | import numpy as np
from keras.preprocessing.text import Tokenizer
from keras.utils import to_categorical
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers import Embedding
def genSeq(model, tokenize... | [
"rochaks001@gmail.com"
] | rochaks001@gmail.com |
ae77d3ac091bad1efdaf9614fef017f8eeb6c022 | ade9a658d227f8b91c9c19ceb7dfaf1bab24f909 | /tests/test_items/test_contacts.py | 4e77130f21744d24f35265713b9da73ed45cedc5 | [
"BSD-2-Clause"
] | permissive | spmsh/exchangelib | 3da14e89e5606178f0594ac0498063db0c3e62a2 | 9cf3d9f08926d8a923c00d3a3cb9d96203cb25b1 | refs/heads/master | 2023-08-30T23:01:03.929611 | 2021-11-23T00:41:03 | 2021-11-23T00:41:03 | 203,696,045 | 0 | 0 | BSD-2-Clause | 2021-11-23T00:43:06 | 2019-08-22T02:04:23 | Python | UTF-8 | Python | false | false | 10,088 | py | import datetime
try:
import zoneinfo
except ImportError:
from backports import zoneinfo
from exchangelib.errors import ErrorInvalidIdMalformed
from exchangelib.folders import Contacts
from exchangelib.indexed_properties import EmailAddress, PhysicalAddress, PhoneNumber
from exchangelib.items import Contact, Di... | [
"erik@cederstrand.dk"
] | erik@cederstrand.dk |
e1eca6386c795d0c9133574f9c9d774114791f16 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/word-count/5cf7181856df4d0a963c76fedfbdd36a.py | f9930a4d6aa5f919c9e249a5f9a7b5e2abcc8d31 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 908 | py | """Word Counting."""
from collections import Counter
import re
import string
# A regular expression that matches any punctuation character.
PUNCTUATION_REGEX = re.compile("[{}]".format(re.escape(string.punctuation)))
class Phrase(str):
"""A subclass of str that supports word counting."""
def __init__(self... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
126ea475038316b83e1fc50e4731c75444167e40 | 77eee7ae5859c3aabaf20697265fb618334a83e2 | /funcionario/migrations/0001_initial.py | afb792f4b535a5d9a50414febdec372416610aaa | [] | no_license | IvesCostaBr/sistema-protocolo | fac2d9bb3b5b67bdf0986ec9482e034837d231e2 | b0ca415b91c9168a4a70e42c84e185472e65802d | refs/heads/master | 2023-04-19T18:52:29.533153 | 2021-05-17T02:52:14 | 2021-05-17T02:52:14 | 367,528,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # Generated by Django 3.2.2 on 2021-05-16 04:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('setor', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Fun... | [
"ivespauiniam@gmail.com"
] | ivespauiniam@gmail.com |
36b4cbfa903749ebd0abeca63bc54624190c90ac | b22cdd12b2cd7dcf7f32e02c74792e2a13315a94 | /redis/carsaddition.py | 3016fc5ab7b7c22bd2ff641c700856d97d955348 | [] | no_license | rabichith10/teamOrange_CRS | 7e86fa10be720db3b1ce9c7ba399af109d0ce2a3 | 81c533bbc1c87b2c290b4ff18e6122c10706c25f | refs/heads/main | 2023-06-18T13:26:44.478433 | 2021-07-23T06:34:06 | 2021-07-23T06:34:06 | 388,608,646 | 0 | 1 | null | 2021-07-22T22:32:21 | 2021-07-22T22:02:16 | null | UTF-8 | Python | false | false | 25,134 | py | import redis
redis = redis.Redis(
host= '127.0.0.1',
port= '6379')
redis.geoadd("carlocation",52.5167, 13.3833, 1001)
redis.geoadd("carlocation",52.5167, 13.3833, 1002)
redis.geoadd("carlocation",48.1372, 11.5755, 1003)
redis.geoadd("carlocation",50.9422, 6.9578, 1004)
redis.geoadd("carlocation",50.1136, 8... | [
"noreply@github.com"
] | rabichith10.noreply@github.com |
5f1ecd3237ac06fa0500003d3ce52987a8a22090 | c0afbbc2dc0079ddbbcf63c206d37b5db529c879 | /webapp/migrations/0002_auto_20170906_1407.py | 4eed98a7940044708ff87583202c8bdf78240135 | [] | no_license | bchangip/ratemyprofessor | 615fe2bb2eb12c3b51e7b116b885069e477ef7e7 | 2af92904b46641f6b8c941ee7bcab5ccc8d9ad47 | refs/heads/master | 2021-01-18T16:21:32.313000 | 2017-10-11T22:39:02 | 2017-10-11T22:39:02 | 100,443,082 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-09-06 14:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webapp', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | [
"xchangip@gmail.com"
] | xchangip@gmail.com |
1b0df24d4c5b13149929ecf7e8e911387dd5a6e3 | b1aa109324d1b9b11edffe4bce89282ae195b3b5 | /sentimentanalysis.py | bf7aba8e6ee7378d40c754815642a00982c7490d | [] | no_license | kaivalyavohra/sentimentanalysis | 1a21fd95062ba6d7d012eebf1a784b41277a35ce | 8d6627011f25ead1b4915abc1defa7837fdc3689 | refs/heads/master | 2020-06-14T16:56:14.153675 | 2019-07-03T13:57:41 | 2019-07-03T13:57:41 | 195,064,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import tweepy
from textblob import TextBlob
numoftweets=0
#twitter account authentication
auth = tweepy.OAuthHandler("SEE TWITTER API","SEE TWITTER API")
auth.set_access_token("SEE TWITTER API", "SEE TWITTER API")
api = tweepy.API(auth)
#initialize subjectivity and positivty rating
score,score2=0,0
searchstring=inp... | [
"noreply@github.com"
] | kaivalyavohra.noreply@github.com |
88441b7e0974e4fc5de5bd965e9a9ad800acd21e | c7dfacea4969b4fef264429e7c21d6c2d4c932b4 | /src/baxter_examples/src/baxter_examples/recorder.py | 032f365f567755301f351b69f2b1e7a75a832475 | [
"BSD-2-Clause"
] | permissive | DeepBlue14/arm_wkspc | 697944c72be9a8efaf97a84b6c26a84ebc8de3a6 | 04009550321868722d207924eed3609be7f54882 | refs/heads/master | 2020-03-21T10:10:05.644158 | 2018-06-23T23:16:40 | 2018-06-23T23:16:40 | 138,436,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,350 | py | # Copyright (c) 2013-2014, Rethink Robotics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditio... | [
"james.perl12@gmail.com"
] | james.perl12@gmail.com |
5c7619b4c3404664eee56b77a698ea3584697135 | c3c4a3b1ae65f6855d5b333bf7e3e1e9c427fa8d | /code in python/7-3 查询水果价格.py | 5385788c8503a2a2994df8cba45aac8bf01dd02d | [] | no_license | Yif1999/Programming-in-Python | fb400f19e6e123e1afcf768b678c580a2c0d3324 | 515995cd9f383aba60fdbacc6476b679f6c9595a | refs/heads/master | 2023-06-22T18:52:27.574016 | 2021-07-02T07:15:34 | 2021-07-02T07:15:34 | 373,847,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | print('[1] apple\n[2] pear\n[3] orange\n[4] grape\n[0] exit')
cmd=list(map(int,input().split()))
for i in range(5):
if cmd[i]==0 :
break
elif cmd[i]==1:
print('price = 3.00')
elif cmd[i]==2:
print('price = 2.50')
elif cmd[i]==3:
print('price = 4.10')
elif cmd[i]==4:
print('price = 10.20')
... | [
"3180101376@zju.edu.cn"
] | 3180101376@zju.edu.cn |
1b619b69b89bc115f7076f0884b11de16029f768 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_graph_ql_api_resolver_policy_operations.py | 38e54b6b1cfaa067458f84d88918cd32ea53c32f | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 38,418 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
d019d9c4441d4b9861d5ae74a62bd4d78938c1aa | d271c9ab8686ab3f76f409fc1a73b3b06347c6d8 | /AgentNet.py | 7cdeb4c70255af750e98389c6ad977a1f932c77d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | guoyaq/ElegantRL | a741269341d0c02b9f150c9e174ab5d9f7693eaa | 271f7ee37c524f3184990303880c1056dd67312a | refs/heads/master | 2023-01-20T23:45:35.230154 | 2020-11-26T01:42:50 | 2020-11-26T01:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,085 | py | import torch
import torch.nn as nn # import torch.nn.functional as F
import numpy as np # import numpy.random as rd
"""ZenJiaHao, GitHub: YonV1943 ElegantRL (Pytorch model-free DRL)
Issay, Easy Essay, EAsy esSAY 谐音: 意识
"""
class InterDPG(nn.Module): # class AgentIntelAC
def __init__(self, state_dim, action_di... | [
"noreply@github.com"
] | guoyaq.noreply@github.com |
05df3df23b0a20d367651cc969838f802024aa98 | ea16dd8717b39f45fb1450658bca94e641909120 | /src/core/views.py | 7585e36f8a1b2e313e4723b4687eb6eb2bd06167 | [] | no_license | beingabeer/MMI-CRM | 80e39e946f579a465ed69898e47ef09bad669569 | 941c5511715f857609ebd8b232b01b4d4b102b4d | refs/heads/master | 2022-12-09T09:15:15.244283 | 2020-05-10T22:56:34 | 2020-05-10T22:56:34 | 252,863,189 | 0 | 0 | null | 2022-12-08T03:58:46 | 2020-04-03T23:16:15 | Python | UTF-8 | Python | false | false | 6,850 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.forms import inlineformset_factory
from .models import *
from .forms import OrderForm, CreateUserForm, CustomerForm
from .filters import OrderFilter
from django.contrib.auth.forms import UserCreationForm
from django.contrib i... | [
"abeer.sewak@gmail.com"
] | abeer.sewak@gmail.com |
94b0a380ce4543b547a5176caef0e9ce5901f3ca | ad71b2aaab2bf1127f40fef008ac6f6d1334c32c | /share/rpcauth/rpcauth.py | 219286929731362f0553450cf62c1d98e5fd84b4 | [
"MIT"
] | permissive | minblock/carpaticoin | 00eb755770f370d54d73ae9b227e4d4bbd60babb | f65cf89970b36a073b49435a3833a2a83a7f2145 | refs/heads/master | 2021-05-22T01:38:29.187393 | 2020-04-04T04:41:16 | 2020-04-04T04:41:16 | 252,909,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from argparse import ArgumentParser
from base64 import urlsafe_b64encode
from binascii import hexlify
fro... | [
"POSTMASTER@provgn.com"
] | POSTMASTER@provgn.com |
5a0a258f467174abea5efd18a4d45fb9abc6a76c | 76c7ad077dfb1685f01117b17e5240638e52f1d5 | /env/demo/demo/apps/home/urls.py | 7ef80347855f3f1839a25ff26c0d5ee89e40d3ea | [] | no_license | simaski/pythonExample | 5394b07c66b4a1326e3628a92d135fcae5cc76ba | 5682857e084a34f2796b71e4a191b2a14f1535de | refs/heads/master | 2020-05-15T08:32:03.536714 | 2019-04-18T21:28:46 | 2019-04-18T21:28:46 | 182,159,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | __author__= 'jimmy'
from django.urls import path
from . import views
urlpatterns = [
path('', views.index_view, name="index"),
path('about', views.about_view, name="about"),
path('products', views.products_view, name="products"),
path('contact', views.contact_view, name="contact"),
] | [
"jhernandez@technisys.com"
] | jhernandez@technisys.com |
ce0673f87c6f91128d89ed3e4bce6d17338ace3c | 49aede51568d7c93aff1c0d21853954724bb2f46 | /src/index.py | 46e61f8b2beb26c8bdb45eb216ac049c18cdecfc | [] | no_license | crackoscl/pruebaGYM | fd5a0fdd22b5229fda603ca98978afab85017e95 | 6899e714cfd07f17e6620c538bd5088ec55c94b0 | refs/heads/main | 2023-02-19T16:35:07.595853 | 2021-01-27T02:23:37 | 2021-01-27T02:23:37 | 332,944,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from flask import Flask,request,jsonify
import psycopg2
from psycopg2.extras import RealDictCursor
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
def conexion():
return psycopg2.connect(
host="localhost",
database="gym",
user="postgres",
password="Lagox69"
)
... | [
"gilbert.ata@gmail.com"
] | gilbert.ata@gmail.com |
e300b1c61215c776dc8a07dcd130919a3eb92c8f | 58938fe66aaba6dc6281901ae603decfa8c8e43a | /src/utils.py | 977090bb5b830f8cd8a6b2c86ada2e108aeaf0dd | [] | no_license | Jigar3/pharmazon-backend | d7a428c72bf5db69d583fc95d065a7e60d2c2eb8 | df7023edbc40c82a659bb87734ab4f935e676ed3 | refs/heads/master | 2020-05-03T06:33:12.580164 | 2019-04-04T05:35:30 | 2019-04-04T05:35:30 | 178,476,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from bs4 import BeautifulSoup
import requests
agent = {"User-Agent": 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'}
url = "https://www.medplusmart.com/product/"
def getMedList(query):
page = requests.get(url + query, headers=agent).text
soup = ... | [
"chavada.jigar.3@gmail.com"
] | chavada.jigar.3@gmail.com |
401839f8d0b5a34685c9b6be91601ad227d91c4d | ffce81084d0414f30ffff8527a4b85ef4bca7942 | /bin/screenshot-sway | c42533d4731bd3a02e71984c1528f8aac9a39d82 | [
"Unlicense"
] | permissive | jtprince/dotfiles | a054df68c3db35f5a1278b2ccec4b69ae6151ecf | 64cd2776832e3d651d1a9b4a62c0921823fc5677 | refs/heads/main | 2023-08-31T09:26:13.271873 | 2023-08-24T21:27:41 | 2023-08-24T21:27:41 | 9,928,741 | 4 | 1 | Unlicense | 2023-02-11T01:26:54 | 2013-05-08T04:59:36 | TeX | UTF-8 | Python | false | false | 7,209 | #!/usr/bin/env python
"""
Arch:
yay -S grimshot tesseract tesseract-data-eng swappy \
python-pytesseract espeak pico-tts sox
If you are using a different python env:
pip install pytesseract
"""
import time
import re
import datetime
import subprocess
import argparse
from pathlib import Path
class Sc... | [
"jtprince@gmail.com"
] | jtprince@gmail.com | |
31d8faa2e645049e29d423b77cba64a42291c2bc | ac4df2d4c859eb9fbcff8c41d6add8cf5beb0e4a | /env/bin/sqlformat | 9e8ba2026764967ef1a71d241dcf96d1cfc03e1c | [] | no_license | SudhanshuJoshi09/Simple_Ticket_Booking_Simulation | 351eae7b54e9aee014d5c4bba3a52c39eaacaa54 | 539c80c6f0bc4dc9959d64105514b6cda2da874a | refs/heads/master | 2023-08-16T00:05:49.607474 | 2021-09-24T01:48:12 | 2021-09-24T01:48:12 | 332,390,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | #!/Users/sudhanshujoshi/Documents/Development/trash/railway-reservation/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sudhanshujoshi49@gmail.com"
] | sudhanshujoshi49@gmail.com | |
7d27b0ea4af2d7ba836d9fc62e317a4481780e97 | 9a5b835f4ea3c9f7585d59ac48218ba4488c4e63 | /Easy/Day 17 - Breaking the Records/solution.py | e33cc60aaddbb2dd1b2844a6a7c883bde1514339 | [] | no_license | JiaweiTan/hackerrank | 95cbf5595e314af1b1cb6440fdcd7f162f740364 | 2ad1e8bb71d5bb7cb0ebf246cda84fa4ce37a73b | refs/heads/master | 2021-05-23T00:43:23.758814 | 2020-04-22T15:44:31 | 2020-04-22T15:44:31 | 253,159,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the breakingRecords function below.
def breakingRecords(scores):
noOfHighBreaks = 0
noOfLowBreaks = 0
highest = scores[0]
lowest = scores[0]
for n in range(1,len(scores)):
if scores[n] > highest:
... | [
"JiaweiTan1996@gmail.com"
] | JiaweiTan1996@gmail.com |
6ab3e1a39cd93671912027393c5a68e9026211cb | 7941390ad02fca9f8c66ceaf1d71a9fd0815f50e | /simple_NER/annotators/remote/allenai.py | b54499e860da539887f6b0098ac177a14e67b49b | [
"MIT"
] | permissive | msgpo/simple_NER | 08cde36758f1d97560c3db9e36918a7e4abe08dd | 5eaed615d9075d879e4b2af461f2e99acc0f9e68 | refs/heads/master | 2022-04-19T13:07:56.507469 | 2020-04-12T18:43:42 | 2020-04-12T18:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | from simple_NER.annotators import NERWrapper
from simple_NER import Entity
import requests
def allen_NER(text, host):
url = host + "named-entity-recognition"
data = {"sentence": text}
return requests.post(url, json=data).json()
class AllenNlpNER(NERWrapper):
def __init__(self, host="http://demo.all... | [
"jarbasai@mailfence.com"
] | jarbasai@mailfence.com |
99b238bea7127df3c68b95e414f228fb460c563e | 17c8725147ac6dc3a61333affb2a2dd1102e348f | /read_statistics/migrations/0002_readdetail.py | 1c3f135b954dc085408e7c1271722683cd38767d | [] | no_license | Rcurtain/YSHSite | 4dad0ad071f6eba31d6131148ff3b20d0ce37002 | f32243ab316515d725cdb4453ebeac3aa855d394 | refs/heads/master | 2020-04-07T02:44:27.814418 | 2018-12-16T07:44:59 | 2018-12-16T07:44:59 | 157,987,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # Generated by Django 2.1.2 on 2018-11-19 10:23
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('read_statistics', '0001_initial'),
... | [
"r_curtain@163.com"
] | r_curtain@163.com |
21b2985688bc49f39e57f1aa2c6b541719f2a644 | 581bd715fcbfa6094e63e90fad8b3abc031c9346 | /lambda/dp_patch_story.py | 9ee7383407e324f5e06876a0e4439d24e2b83faf | [] | no_license | stevekinney/dogpointing | f602497090e004d707c48f177a67e190150665b3 | ef03d21bad3df0acd1aa8d663261d001c08cb4db | refs/heads/master | 2021-09-01T22:29:09.977341 | 2017-12-28T23:08:24 | 2017-12-28T23:08:24 | 115,666,508 | 0 | 0 | null | 2017-12-28T23:10:23 | 2017-12-28T23:10:23 | null | UTF-8 | Python | false | false | 3,050 | py | import logging
import boto3
import botocore
import time
import random
from datetime import datetime
from datetime import timedelta
from boto3.dynamodb.conditions import Key
logger = logging.getLogger()
logger.setLevel(logging.INFO)
dynamodb = boto3.resource("dynamodb", region_name='us-east-2', endpoint_url="http://dyn... | [
"brad.culberson@sendgrid.com"
] | brad.culberson@sendgrid.com |
d5710f1de78a66cab1a6ea2d011e6ecbcf373c71 | e3d8f5b953b1cf605fbbaccacdc83ede462e714e | /Game Control/directxkeypress.py | d1ac59f5343dc9aac5accac0676aeea047535fb2 | [
"MIT"
] | permissive | alanx0401/TrovePyFishing | a703bd1f69aff0a0012ac7302a09f53c3c7aef54 | d9ea8dbf199a42d1afd5c164914b5c4c020c0f44 | refs/heads/master | 2021-04-26T22:26:35.769945 | 2018-03-06T14:52:18 | 2018-03-06T14:52:18 | 124,093,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | # direct inputs
# source to this solution and code:
# http://stackoverflow.com/questions/14489013/simulate-python-keypresses-for-controlling-a-game
# http://www.gamespp.com/directx/directInputKeyboardScanCodes.html
import ctypes
import time
SendInput = ctypes.windll.user32.SendInput
W = 0x11
A = 0x1E
S... | [
"noreply@github.com"
] | alanx0401.noreply@github.com |
3dd267f794d2b0b929fd7ea3529b59d9507ba38a | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/app/__init__.py | 9826abe1d2a81963769b6af01ae5ebf38641f8f6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 2,758 | py | # Copyright 2013 Google Inc. 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 applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
3e8b2173d23506f90b22a85f3582bec15dfce6a7 | 8c4f78cc3fcc00a8a46b9e3803d6f6bedddb2a68 | /contact/migrations/0003_auto_20170307_1320.py | bdc3b4946633b48dcd1ce65001026ab7f070b1c5 | [] | no_license | kidsfm/app | d09a345d9c6dfa5d3bd880d6101511bed6faa5f1 | 611e21f6e5747ac587833ca2ef77a740b6a71c24 | refs/heads/master | 2023-08-29T03:06:12.322901 | 2017-09-12T16:48:29 | 2017-09-12T16:48:29 | 81,123,507 | 0 | 0 | null | 2021-09-07T23:26:35 | 2017-02-06T19:28:49 | HTML | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-07 18:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contact', '0002_auto_20170307_1044'),
]
operations = [
migrations.AlterFiel... | [
"r-champagne@neiu.edu"
] | r-champagne@neiu.edu |
92567d4c350a444364ac3fa59dfdf8eb6606265e | 3b9737755475a851677547c20384c3b545c88774 | /gvc3202/exploit.py | 50a62ed684f9400cd2500243ba785f6913d14f0b | [] | no_license | up777/grandstream_exploits | 7af6fe7a2076b0311569bb1a2e77dbf3096c1816 | 0bf7a719477b304990bb98247f3b5e025d3e56b7 | refs/heads/master | 2020-06-18T03:01:32.838911 | 2019-03-31T10:55:19 | 2019-03-31T10:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | #!/usr/bin/env python2
"""
CVE-2019-10655: Grandstream - GVC3200 (Video Conferencing Unit) Unauthenticated RCE
Author: Brendan Scarvell
Vulnerable versions: < 1.0.3.51
A command injection vulnerability exists in the `starttraceroute` parameter.
Additionally, supplying 93 characters in the "phonecookie" cookie overwrit... | [
"bscarvell@gmail.com"
] | bscarvell@gmail.com |
541e28ec93c85cc1adc61eecd87bdde2a641136b | c91d029b59f4e6090a523bf571b3094e09852258 | /src/utils/middlewares.py | 64ca375d393cdaff4d003588764a00f79181c0a1 | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 2,927 | py | import re
import threading
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import redirect
from geral.functions import is_alternativa
from utils.functions import get_client_ip
request_cfg = threading.local()
try:
from django.utils.deprecation import MiddlewareMixin
... | [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
b1c5aa3c510fbdbecf5b9cd9ff4fb9a6c6e66c83 | a86bd65fc4d901ea7a33fb666caa430a1ae6d1a0 | /setting.py | fe2c8828c8bb73997e531f0e6d0c423994798fc4 | [
"Apache-2.0"
] | permissive | andyhuzhill/433QQBot | a2e2700ac7a361eb1470889ac403a26342b6fdae | 211a4757008042fb8ca4bdd5f4e356e5fca6ff12 | refs/heads/master | 2022-07-16T22:36:57.502924 | 2020-05-15T08:17:40 | 2020-05-15T08:17:40 | 265,263,012 | 1 | 0 | Apache-2.0 | 2020-05-19T14:02:00 | 2020-05-19T14:01:59 | null | UTF-8 | Python | false | false | 2,586 | py | import os
import json
import configparser
cfg_name = 'setting.conf'
BASE_DIR = os.path.dirname(__file__)
FILE_PATH = os.path.join(BASE_DIR, cfg_name)
cf = configparser.ConfigParser()
def read_config(section: str, option: str) -> str:
"""读取指定的配置值.
### Args:
``section``: 在conf文件中的段落.\n
``... | [
"xuanking@gmail.com"
] | xuanking@gmail.com |
3b70ca2b35afdf97f401ed2f67c039305769db02 | 6740ccdcdb62b5d1afd92c1ad9f57353e93bcfa1 | /checkout/migrations/0006_orderitem_name.py | 211703860e55053977c4ce4ffc68b1e4f8948049 | [] | no_license | Amyh97/miletone-project-4 | 4f2a10a8364ce0f3f1fd2da88705dddd46f16de8 | 57658de674d5de15312e1c26ecbd773f4b7607dd | refs/heads/master | 2023-04-01T09:24:58.938068 | 2021-03-31T10:29:52 | 2021-03-31T10:29:52 | 335,349,196 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 3.1.6 on 2021-03-24 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checkout', '0005_auto_20210324_1133'),
]
operations = [
migrations.AddField(
model_name='orderitem',
name='name',
... | [
"amy.hollis@btinternet.com"
] | amy.hollis@btinternet.com |
f3e46e8de53108b8175863fac2003556b51fdbdc | 5dc393ffb3d65094d2c4f6bc8b9980e2fc167670 | /pandas/stats/tests/test_fama_macbeth.py | f48dde20f138ac2a2f78bf479e668b579e96ac1f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | JWCornV/pandas | 913db2a34cb9f9820f986412e9c3cf868ecef24d | 6078fba9410918baa486ca008cc9e3ba066c03ec | refs/heads/master | 2020-12-25T10:14:13.384789 | 2012-06-27T17:10:54 | 2012-06-27T17:10:54 | 4,813,052 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | from pandas import DataFrame, Panel
from pandas.stats.api import fama_macbeth
from common import assert_almost_equal, BaseTest
import numpy as np
class TestFamaMacBeth(BaseTest):
def testFamaMacBethRolling(self):
# self.checkFamaMacBethExtended('rolling', self.panel_x, self.panel_y,
# ... | [
"wesmckinn@gmail.com"
] | wesmckinn@gmail.com |
29400e5d502de8984c008549b041a52bea849c26 | a5feab13bb857953bd741c6e282ab0c996971841 | /basicforms/basicapp/migrations/0027_auto_20190403_1126.py | 4a7ae193d66922f5d2a605e62a3d9b181725ee7a | [] | no_license | sbt4104/django-busapp-deployment | 823e215a01516626ebc1385f2135f878d8f741c9 | 3fc8f31583243e98739d362c629143fde07645de | refs/heads/master | 2020-06-28T22:21:48.229863 | 2020-03-14T18:56:45 | 2020-03-14T18:56:45 | 200,357,220 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # Generated by Django 2.1.7 on 2019-04-03 11:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('basicapp', '0026_auto_20190403_1055'),
]
operations = [
migrations.RenameModel(
old_name='notifi',
new_name='Notifications',... | [
"sthorat661@gmail.com"
] | sthorat661@gmail.com |
b0969a4a527c8e3a025346cc9521c1e038958cc3 | 38946ffd967f0db87b8847cc3e7dc446e83a9c7e | /hw3/p2/baseline.py | 066dc1ea10e1bf658517bacd5a993edff92cc0de | [] | no_license | cigarbeer/ML2018SPRING | 8fe2d3baf637fbc17e777a504e3b815664b2da41 | 1559a7625256d433222ec3d419af78993b8d21e8 | refs/heads/master | 2021-09-17T19:33:59.317093 | 2018-07-04T14:26:43 | 2018-07-04T14:26:43 | 124,334,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,172 | py | SEED = 0
import numpy as np
np.random.seed(SEED)
import pandas as pd
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Reshape
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Activation
from k... | [
"r06921038@ntu.edu.tw"
] | r06921038@ntu.edu.tw |
be5cdea3551cb340c36e10d3d17ba7a15f6f5d02 | 8c88eb1d81fd36172bc95099eed628a60f356aee | /dppractice/codechef.py | c4ec948fc54405301cd38fcb5bb399c7ebd2cacd | [] | no_license | Roshan84ya/data-structure-with-python | 2d6aa9baa1901740f152e02d6422f45ef7bd1c6f | 7ef8dea5691685a0e9c194651d123b655a3bf131 | refs/heads/main | 2022-12-26T21:48:25.027318 | 2020-10-04T04:13:06 | 2020-10-04T04:13:06 | 301,036,232 | 5 | 1 | null | 2020-10-14T22:59:58 | 2020-10-04T04:04:48 | Python | UTF-8 | Python | false | false | 1,562 | py | def findminsubsetsum(arr,row,column):
dp=[False]*row
for i in range(row):
dp[i]=[False]*column
dp[i][0]=True
for i in range(1,row):
for j in range(1,column):
if... | [
"noreply@github.com"
] | Roshan84ya.noreply@github.com |
7dbb8959b233092833590760e034f6ebe7360014 | 1065a2782e4947b5bf14ec4536e4ad7addc7aec3 | /strategy/cryptoalpha/casubc.py | f4bb09a5cb12cc696d58f6af909445370b6e56b8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Johannesduvenage/siis | 0bf6875d4a5f3638cadb01ed5541aab29ba1d77a | 57e537cf9b6a71c8ad0b3bb0759772d126496a17 | refs/heads/master | 2020-09-10T21:51:56.814014 | 2019-11-13T23:57:34 | 2019-11-13T23:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,900 | py | # @date 2018-08-24
# @author Frederic SCHERMA
# @license Copyright (c) 2018 Dream Overflow
# Crypto Alpha strategy, sub-strategy B.
from strategy.indicator import utils
from strategy.strategysignal import StrategySignal
from monitor.streamable import StreamMemberFloatSerie, StreamMemberSerie, StreamMemberFloatBarSerie... | [
"frederic.scherma@gmail.com"
] | frederic.scherma@gmail.com |
c460a2b642fc7a313a2110c6c89ada18de78db9c | 92f87f8852045b0e3fb161f516c9e4c8931fd6ae | /src/server/oasisapi/data_files/migrations/0001_initial.py | a8fffad4f2aa30b3f486a2ef20e6fd08d5c1feec | [
"BSD-3-Clause"
] | permissive | OasisLMF/OasisPlatform | 5dc9d83924f06481ef58f2f2bcf0d36c7e1ebb2b | 4a301ec37e6c07af73abbbeaeb9e747a248a44e1 | refs/heads/main | 2023-08-14T20:28:32.951816 | 2023-08-03T12:02:08 | 2023-08-03T12:02:08 | 57,235,529 | 43 | 22 | BSD-3-Clause | 2023-09-13T12:11:26 | 2016-04-27T18:13:16 | Python | UTF-8 | Python | false | false | 1,733 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-15 10:24
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
... | [
"daniel.evans@jbarisk.com"
] | daniel.evans@jbarisk.com |
901ed40757453f72482e04347a567f48a4452388 | b29acb2e230b3cf2f8be070850c34ed5d62dc80c | /Python/YPS/10/Sample1.py | ff99a7a4d11b7f13bd9fd07db5ef310bd2a798dc | [] | no_license | MasatakaShibataSS/lesson | be6e3557c52c6157b303be268822cad613a7e0f7 | 4f3f81ba0161b820410e2a481b63a999d0d4338c | refs/heads/master | 2020-06-17T13:42:08.383167 | 2019-11-11T07:23:14 | 2019-11-11T07:23:14 | 195,940,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | f = open("Sample.txt", "w")
f.write("こんにちは\n")
f.write("さようなら\n")
f.close()
| [
"masataka.shibata.ss@gmail.com"
] | masataka.shibata.ss@gmail.com |
111773a94a919d20fdbcc7a6f24eb9824d940be9 | e024fb3705970ac0b4d18ef39d9eb90856272039 | /python/learn_python_the_heard_way/ex14.py | 3f3347832ce3b0e3320827a880fc653254238c9f | [] | no_license | pengzhangdev/scripts | 4fc9c54b38aff587e832e5ac4360145caef0f7e1 | 66eec17ccd2e2774d48a14815bfd70e201efbaf5 | refs/heads/master | 2021-04-12T07:14:43.874821 | 2017-09-01T08:48:17 | 2017-09-01T08:48:17 | 20,473,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #! /usr/bin/python
from sys import argv
print
script, user_name = argv
prompt = '> '
print "Hi %s. I'm the %s script." % (user_name, script)
print "I'd like to ask you a few questions."
print "Do you like me %s?" % user_name
likes = raw_input(prompt)
print "What do you live %s?" % user_name
lives = raw_input(promp... | [
"werther0331@gmail.com"
] | werther0331@gmail.com |
67ae1842593a37877143fd006841397092c661e2 | 787c04c7bd8dd51dafc030d21e75891808df3dbf | /src/example.py | dd171e96187ec2072eb469b36902accf0366cac3 | [] | no_license | rasyadhs/random-json-generator | a7cd0670f5b986cb428815724c2fc0bb4bd8839d | cb4585771d0d4efdfe9f69cb40d7e25514bc4b0b | refs/heads/master | 2022-01-05T18:36:36.263799 | 2019-05-01T13:01:28 | 2019-05-01T13:01:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | #!/usr/bin/python3
# This is a helper file that helps you to generate random json data.
import multi_json_generator
import sys
import time
import argparse
import json_generator
def custom_method(main_object):
# This formats card_index. As I want card index map with user_id
pass
# main_object["payment_met... | [
"ankur3.kumar@paytmmall.com"
] | ankur3.kumar@paytmmall.com |
3fc5667310c4f116f9078ae8b07b622e7b91b154 | bbb5447fa5c39c050f23e8b62a91df052818570d | /modules/ibm_app_domain_shared_info.py | e47b4b30b53100306ee9d568fa4aca3a21e41555 | [] | no_license | Trickster4/ansible-collection-ibm | b28b79174b1f1b3f0dcba09e4888396e16b945bd | 14455103b7cb4845e6cfa3803cce7b2a0546af03 | refs/heads/master | 2021-01-03T22:33:46.082228 | 2020-02-09T19:49:09 | 2020-02-11T04:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,417 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Mozilla Public License, version 2.0
1. Definitions
1.1. “Contributor”
means each individual or legal entity that creates, contributes to the
creation of, or owns Covered Software.
1.2. “Contributor Version”
means the combination of the Contributions of o... | [
"amallak1@in.ibm.com"
] | amallak1@in.ibm.com |
c9fcd284c3525e263a2c0ac08e2878e5632f28cc | bc09a1ecdd1ad75aef569ee09ce6f265777936bc | /accounts/views.py | 789b59d9eb80aa6711f91fab50c7e679823b0ce2 | [] | no_license | Erik-FN/Python_Real_State | 9cd708189e722fdea833b6e4e5e538d034e90c7e | afde2cdca623efc07fb00e359b5bd8b14e02ff19 | refs/heads/master | 2022-10-03T01:12:57.021861 | 2020-06-02T20:19:49 | 2020-06-02T20:19:49 | 254,611,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | from django.shortcuts import render, redirect
from django.contrib import messages, auth
from django. contrib.auth.models import User
from contacts.models import Contact
# Create your views here.
def register(request):
if request.method == 'POST':
#Getting the form values
first_name = request.POST['... | [
"erik.fnoble@gmail.com"
] | erik.fnoble@gmail.com |
4da7fd4f09f7351dad66cba40cd0625849491560 | 1efa59e25582bef2338cec96f0f80caad9ae9dbb | /swagger_server/models/schedule_option_section.py | 17a4b456e4de1139b7d80f253d5491b93dfd34bc | [
"MIT"
] | permissive | pablokvitca/cs3200-project-backend | ee1cd2d1da0dd54e3106c94dc267e7b257dab0cd | aec890bb4fb2b532cb8099016ebbec7b273bb266 | refs/heads/master | 2021-10-27T21:14:10.818409 | 2019-04-19T21:06:05 | 2019-04-19T21:06:05 | 178,476,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class ScheduleOptionSection(Model):
"""NOTE: This class is auto generated by t... | [
"pablokvitca@gmail.com"
] | pablokvitca@gmail.com |
ba6aeae64431208cbabea1456729c92c602f9921 | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0163_add_account_number.py | b5f637bb6f9f02103a1375f7fd3e3ed9b338b0fa | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 2,043 | py | # Generated by Django 3.2 on 2021-04-23 10:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project_core', '0162_callpartfile_proposal_keywords_null'),
]
operations = [
migrations.AddField(
... | [
"carles@pina.cat"
] | carles@pina.cat |
0b57e8f2b54b12010a3ec4c8bbbf67d4f7f346d4 | 8cf8fe0e08b7a0aafb6058b158f3218751a17fc2 | /retinanet/model/msdnet.py | 001d1472d704cc5b4a2b2f8f92ffb4e606927d8a | [] | no_license | zl1994/DLSFPN | 09aa4d9ce8bfd7dc43a3ee215d8edb1d4cd86326 | 50f77c2d27c79c6bed8b24bb96e5e7a11d1549c3 | refs/heads/main | 2023-09-03T10:12:48.817407 | 2021-11-09T03:07:00 | 2021-11-09T03:07:00 | 426,065,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,586 | py | import torch.nn as nn
import torch
import math
from mmcv.runner import load_checkpoint
import logging
from mmcv.utils import get_logger
# c3 c4 c5
feature_extract_layer = [ [4, 7, 10, 14, 18], [5, 10, 15, 21, 27], [7, 14, 21, 28, 35] ]
# fpn_sizes = [ [192, 448, 576], [288, 768, 640], [384, 704, 608], [320, 608, 1056]... | [
"noreply@github.com"
] | zl1994.noreply@github.com |
31274141d59b98537ab248800a734a0c04d967d3 | 34ee52d56f37fd9d56e7980e2ffe3dfccfc03ad7 | /07 - HTTP Request/passport_update_password.py | 827dd35adc3737d43f5344c817befacf6f292bc7 | [] | no_license | daydreamboy/HelloPythonScripts | 8206f19988f7a2ecb4e34c18e74f89ce48959ba3 | ddd65ffa513f984c43010f5a90aa8dab825acba3 | refs/heads/master | 2022-04-15T18:36:34.211981 | 2020-02-05T13:26:10 | 2020-02-05T13:26:10 | 108,149,240 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Usage:
#
#
# Example:
# '/passport/user/resetPassword'
#
from PassportRequest import *
import sys
import time
def main():
# parser = argparse.ArgumentParser()
# parser.add_argument('--path', default='/', type=str, nargs=1, help='the path of default test doma... | [
"wesley4chen@gmail.com"
] | wesley4chen@gmail.com |
8f036d76f8a2b93c9255eac63f79f22c2a7bd076 | b50b0f73896c8fca9029ac775caf6357c27ee209 | /14.py | 058b9908cb358be99a47e72cda1927e73d42a665 | [] | no_license | meysam81/Euler-project | 05e12b485fd313e3445d9c78400c9e2dbad5b47d | a8a80ed1cecc062780c83821031718b19e5e5452 | refs/heads/master | 2021-05-04T20:31:42.548004 | 2020-05-06T16:52:35 | 2020-05-06T16:52:35 | 119,821,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | def collatzProblem(n):
#result = 0
#print(n)
#if(n == 1):
#return n
if(n % 2 == 0):
return(int(n / 2))
else:
return(int(3 * n + 1))
#return result
max = 0
hold = 0
result = 0
for n in range(2, 10**6):
count = 0
hold = n
while(n != 1):
#print(n)
count = count + 1
if(count > max):
... | [
"MeysamAzad81@yahoo.com"
] | MeysamAzad81@yahoo.com |
ee67b8bc83d01f5f2c77dc3c9bbc160a0985cd0e | 37a34a0909ff18e4392a8b7cec89203d8ce3bca0 | /server.py | f97decb97ff34efba8a3029f66115241399dc992 | [] | no_license | chongchuanbing/api_demo | 906f87a1857482c8c9f9f3764f2ed166d68c81d5 | 64e0091a33893ec92ea07cec68cb69e30093619b | refs/heads/master | 2020-08-13T20:24:48.383223 | 2019-03-07T08:47:35 | 2019-03-07T08:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import os
import time
from flask import request, render_template
from flask import send_from_directory, redirect
from flask_cors import CORS
from app import init_app_br
from app.api.api_response import get_json_data
from app.api.api_base import get_docs
from app.app import create_app
from app.config import in_product... | [
"496662960@qq.com"
] | 496662960@qq.com |
01f2b39e906fa6896ddad81b11c800af607781d7 | 652121d51e6ff25aa5b1ad6df2be7eb341683c35 | /examples/mouse_and_key_modifiers.py | 6d28b7351cebc4f69acb343c35eb8233fa6877a3 | [] | no_license | jgalaz84/eman2 | be93624f1c261048170b85416e517e5813992501 | 6d3a1249ed590bbc92e25fb0fc319e3ce17deb65 | refs/heads/master | 2020-04-25T18:15:55.870663 | 2015-06-05T20:21:44 | 2015-06-05T20:21:44 | 36,952,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from PyQt4 import QtCore, QtGui
class MouseAndKeyModifiers(QtGui.QWidget):
def __init__(self, parent = None):
QtGui.QWidget.__init__(self, parent)
layout = QtGui.QVBoxLayout()
label = QtGui.QLabel("Click here to test mouse buttons: Left, Right, Middle\nand keyboard modifiers: Ctrl, Alt, Shift, and Command (a... | [
"jgalaz@gmail.com"
] | jgalaz@gmail.com |
780f6f6cd4ffb052da87bd6b0e91520bf61b9560 | ee9552aed56ca61bd2f2a4000ad1338b7f62744b | /restwork/gs14/gs14/settings.py | 16ae6319381fbf5750ea4c63fb8388d76a60bb5e | [] | no_license | satishraut/geeks-repo | a9c41ac578772a57d8835d83f54c2e38e1f174ac | ad3560efeb25c74b3a5bcec9097ed64ec1419b40 | refs/heads/main | 2023-01-13T22:40:41.576912 | 2020-11-16T11:30:31 | 2020-11-16T11:30:31 | 310,078,162 | 0 | 0 | null | 2020-11-16T11:30:32 | 2020-11-04T17:55:56 | Python | UTF-8 | Python | false | false | 3,091 | py | """
Django settings for gs14 project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | [
"satish.raut777@gmail.com"
] | satish.raut777@gmail.com |
799da5f90332c8958a0a8e05156cccd1664b11fc | 2acc7b60a1f2352dac778ca3e418793011bce53a | /LAB3/Entropy/Entity.py | b5749aefbe3b5cf23eea516dd5ede2b025084cbc | [] | no_license | mlynarzsrem/TI | c3379725199f2627cf50b71a88bc2bf7382327b3 | f5c9eeb1dae9f11c3bbf7232d1895f9e7332b608 | refs/heads/master | 2021-01-25T13:29:17.831394 | 2018-05-10T14:31:21 | 2018-05-10T14:31:21 | 123,579,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | from collections import Counter
class Entity:
def __init__(self,object,parent,child):
self.object =object
self.objectCount = 1
self.parents =[]
self.children = []
if(parent is not None):
self.parents.append(parent)
if(child is not None):
self.... | [
"mlynarzsrem@gmail.com"
] | mlynarzsrem@gmail.com |
2a423cedae0d542fded7abe5a56e9e6177b69fb6 | 9ab60b9797cc2de229b840b8eeca4c1404076adb | /src/GL/texture.py | ca725a9c2be163fb596566a894d286805178daf6 | [
"MIT"
] | permissive | ChsHub/GLImageViewer | 2acf016fed5c19dbae416a41953ae345a2c27e23 | cb838215c43c8f6ad1470b369c74a5a7dea32ef6 | refs/heads/master | 2021-07-13T05:58:40.060239 | 2020-06-05T18:46:14 | 2020-06-05T18:46:14 | 157,926,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | from logging import info
import OpenGL.GL as gl
import numpy
from PIL import Image
from numpy.lib.arraypad import np
def get_texture_image(path):
with Image.open(path) as texture_image:
width, height = texture_image.size
texture_image = texture_image.convert('RGB')
texture_image = list(te... | [
"christian1193@web.de"
] | christian1193@web.de |
ec2f456a167ccd3e44915be5628c8c39cde79351 | e3c425f4841b5d3c140ecd5c0aede930788e9c78 | /exposing/_version.py | 6a27987a8cba79e77e7ec06fe0349b417f6ae225 | [] | no_license | w4k2/exposing | f250e491ddd8e1a47e6b3706a50dfccd3da59cf0 | 6abbced18aa567ed45426ba915f3b56e7aeca028 | refs/heads/master | 2021-04-03T05:23:53.394528 | 2019-02-27T14:19:16 | 2019-02-27T14:19:16 | 124,964,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | """
``exposing``
"""
__version__ = '0.2.2'
| [
"pawel@ksienie.com"
] | pawel@ksienie.com |
a0a21d1a4fa5f9ed0ec4fdf03246a0292c5fdad2 | 1c1c0fe586b93bcae85522f8479efb37773b8770 | /memoapp/urls.py | e7ed57b937158bb77c4322bd92ed2c34b3d0f6ce | [] | no_license | crypturgus/memolink | 2b6c04ee17de966af4eaf6f5fdc43bf08774a906 | 43173ce22ffec285dc9045de2f8021278bc95d54 | refs/heads/master | 2021-01-24T07:23:29.188555 | 2017-06-04T21:47:43 | 2017-06-04T21:47:43 | 93,341,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.conf.urls import url
from memoapp import views
urlpatterns = [
url(r'^$', views.index, name='index'),
] | [
"mkukawski@gmial.com"
] | mkukawski@gmial.com |
3a88ef40ce18dfd5247af9fa7e6469e54982eef1 | ed1b6ce64a787c0b5b80c3f68576d0f3c396bc55 | /peples_heigth/solution.py | e3e9b8477e234b9dd55c3ab9faa01d21c05d7454 | [
"MIT"
] | permissive | andriiglukhyi/leetcode | 23481c236356baa9260eb7a4c24f5a1d5d9d2dc1 | 22be8c8417b28b2888be5aee82ccfe47f57f1945 | refs/heads/master | 2021-07-24T18:46:38.680457 | 2018-10-21T00:59:06 | 2018-10-21T00:59:06 | 135,516,915 | 1 | 0 | MIT | 2018-10-21T00:59:07 | 2018-05-31T01:44:57 | Python | UTF-8 | Python | false | false | 335 | py | class Solution:
def reconstructQueue(self, people):
"""
:type people: List[List[int]]
:rtype: List[List[int]]
"""
people.sort(key = lambda person: [-person[0],person[1]])
newlist = []
for person in people:
newlist.insert(person[1],person)
... | [
"andriigluxii@gmail.com"
] | andriigluxii@gmail.com |
f3ef8db2828fa6cac30cafcf42c0a836c21234ae | e3b0113a913daf5884d4f4ae2cbc17796785ad5a | /orders/migrations/0011_auto_20191030_1714.py | c0432f18e308accfe091bf0a77c9a19f54020310 | [] | no_license | meemeee/pizza | 2023068bc487cb9fbdfab280ab7ddfe128a6db7b | 739a7227c8fcd0d10eb210df26d9f7525d9b5ab9 | refs/heads/master | 2022-04-20T09:09:22.894284 | 2020-04-22T09:21:14 | 2020-04-22T09:21:14 | 218,509,060 | 0 | 0 | null | 2020-02-17T16:45:31 | 2019-10-30T11:11:36 | JavaScript | UTF-8 | Python | false | false | 961 | py | # Generated by Django 2.2.6 on 2019-10-30 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0010_auto_20191030_1709'),
]
operations = [
migrations.AlterField(
model_name='orderdinnerplatters',
name=... | [
"lethitramy27@gmail.com"
] | lethitramy27@gmail.com |
c9bd9882b8c70a69e85ab9473681185ba3564970 | 0b909f1657083407bfedb9742770ae2e31211f5e | /LSTMIMG/Base_Model.py | bd077351c290d34e5ec6e66006fa731b3535d813 | [] | no_license | jwonged/Visual-Question-Answering | 4ee3eef84f6d638699ae71bab21b3dac594ae13e | 9f4e1b2c8bc91ca801747beceadca14f37752640 | refs/heads/master | 2021-09-14T15:14:35.725572 | 2018-05-15T13:10:24 | 2018-05-15T13:10:24 | 107,781,120 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,979 | py | '''
Created on 31 Mar 2018
@author: jwong
'''
import csv
import json
import os
import pickle
import time
import os
import math
from model_utils import generateForSubmission
from vqaTools.vqaInternal import VQA
from vqaTools.vqaEval import VQAEval
import numpy as np
import tensorflow as tf
class BaseModel(object):
... | [
"dsjw2@cam.ac.uk"
] | dsjw2@cam.ac.uk |
f524991a8cd90641162df26314d6222d274db957 | 0274a35ad1054ea4f0036c6c8651c7826876f77f | /testData/wrappers_storage2/bio/bismark/custom_wr1/wrapper.py | 395d82e4e9f33f685dc1b449361a71de44f90b75 | [
"MIT"
] | permissive | JetBrains-Research/snakecharm | 32e280f1d389c1fed04bfe19004a1b8275e7ae4c | f3c09f1a48f94063c20a4aa151399a15fc62f4a4 | refs/heads/master | 2023-09-01T02:44:03.341042 | 2023-08-29T08:12:39 | 2023-08-29T08:12:39 | 165,259,818 | 64 | 10 | MIT | 2023-04-20T17:14:57 | 2019-01-11T14:49:20 | Python | UTF-8 | Python | false | false | 55 | py | output_dir = snakemake.output.get("custom_html", None)
| [
"noreply@github.com"
] | JetBrains-Research.noreply@github.com |
d371f0c79b6ac549d7b5d9d34d43e21684e18b86 | c9cfcd8d85121fba6608557ab74e33b574e1f39d | /ultrachronic/__init__.py | 424030c0ba7bdb5fb9a2cf78ab5c565f0cdc39a7 | [
"MIT"
] | permissive | yoavram/ultrachronic | b588c8e7f291cf9697e42868fa53e3c70c7edd37 | eabd55c6c97da606688a73244faee7572ae381d0 | refs/heads/master | 2021-01-12T08:12:00.023379 | 2018-12-20T08:09:51 | 2018-12-20T08:09:51 | 76,501,608 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from .ultrachronic import jsonify_result, repeat
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
| [
"yoav@yoavram.com"
] | yoav@yoavram.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.