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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c39e8230c431368878239dd20fc0eb3c5513713d | 65184b509bd974d0475f7b51c50b7b6701adf57e | /packageDaisy/euler.py | 00a7a1dd501c508f48c4277d09b60813ce668caa | [] | no_license | Locki22/Assignment5 | a043ea23e6c4a881d3b14da432f6d17a6b1802d5 | 0e250d7e9df4a41b7e3735869a6794529a57d754 | refs/heads/master | 2020-06-17T05:16:19.555629 | 2019-07-26T21:06:28 | 2019-07-26T21:06:28 | 195,809,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 14:59:51 2019
@author: nickh
"""
def euler(initial, tendency, h=1):
"""Integrate forward in time using Euler's method of numerical integration.
initial + h*tendency
Arguments
---------
initial : float
The initial state.
... | [
"noreply@github.com"
] | Locki22.noreply@github.com |
c5e0dd3c000acac9c2ceaabe7ab9ea965ce8179e | c07516e3cd8a0f94be5e77fc8ff83f4552c145d3 | /Day 5/password-generator.py | b31e56264fa320668901292a68c76fd7b610707e | [] | no_license | zaahidali/100-Days-of-Python | 3556c5db3a054be8b2a60cd780d59e1da1a23d6c | 1613c0e62430affeb4486d24f358e8bc120c5255 | refs/heads/master | 2023-07-13T05:24:04.593860 | 2021-08-24T17:13:16 | 2021-08-24T17:13:16 | 398,355,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | #Password Generator Project
import random
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers... | [
"zahid.4317@gmail.com"
] | zahid.4317@gmail.com |
cd7fe7d9b83a05f42d321c44d90d1d46ece98287 | 3dfd14d5b19fffb361b55f55581547e1ee2ff3a3 | /adi/trash/browser/browser.py | 45f138f31c032ecfe60b78a7656656b9d3d5163e | [] | no_license | idgserpro/adi.trash | 5a13036bcfa0c495cc3571d8acc35ee883a3e7d4 | a9c6fb350b6cd4ce4e40646ac12598cc9dbf407f | refs/heads/master | 2021-01-01T18:51:38.472346 | 2017-07-26T18:17:09 | 2017-07-26T18:17:09 | 88,053,711 | 0 | 0 | null | 2017-04-12T13:16:18 | 2017-04-12T13:16:18 | null | UTF-8 | Python | false | false | 3,096 | py | from plone import api
from zope.i18nmessageid import MessageFactory
from Products.statusmessages.interfaces import IStatusMessage
from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
_ = MessageFactory('plone')
class Trash(BrowserView):
def _... | [
"contact@ida-ebkes.eu"
] | contact@ida-ebkes.eu |
0a3714c4393419c790f0b83b5e274f57f3d9effd | c140ad38b1463024e289ceb0d5d6d44a45c91724 | /test/test_sed.py | de9b9a31a4d19a6bce8f59f8af9aff375038c1e6 | [
"Apache-2.0"
] | permissive | NVIDIA/hpc-container-maker | 3a333526decbd18352ef8d1fb3bec0033be221e8 | 60fd2a51c171258a6b3f93c2523101cb7018ba1b | refs/heads/master | 2023-08-21T13:32:27.132476 | 2023-06-12T21:12:40 | 2023-06-12T21:12:40 | 126,385,168 | 419 | 88 | Apache-2.0 | 2023-09-11T18:33:26 | 2018-03-22T19:26:41 | Python | UTF-8 | Python | false | false | 1,626 | py | # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
e1801dc6a75d9de1f8b1bfd8f299d1984ab4f812 | 92cdb723909e6c096780ea7251349512393632f0 | /deeppavlov/agents/ner/dictionary.py | 71c1f954f24596fc6932e5f67515c9e2ec65fcb3 | [
"Apache-2.0"
] | permissive | World-Speak/deeppavlov | f89a6fb59eb7e0285059a428a0cdbc0063793746 | 3bc3c01e96368adf4dda7e7198d03a84ef8c0812 | refs/heads/master | 2021-07-20T15:07:29.857887 | 2017-10-30T16:24:52 | 2017-10-30T16:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | import copy
import os
import pickle
from collections import defaultdict
from parlai.core.dict import DictionaryAgent
from parlai.core.params import class2str
def get_char_dict():
base_characters = u'\"#$%&\'()+,-./0123456789:;<>?ABCDEFGHI' \
u'JKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstu' \
... | [
"arkhipov@yahoo.com"
] | arkhipov@yahoo.com |
bf0f163132ee363249ab666a58a0edde8ea1a057 | a82cacae7081f4a04fabdf87cb2833d4ce8bc6db | /crm/forms.py | bca14f2bd27002ded460bf7ea07585e02a7218ca | [] | no_license | sadhikari89/mfscrm | 55909712f808344611d8ed3b45b3cc17d88125e9 | ea1275f8a97542a07e0ffc08d5b597d7e95d2490 | refs/heads/master | 2020-03-31T06:30:01.629465 | 2018-10-08T05:11:38 | 2018-10-08T05:11:38 | 151,985,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django import forms
from .models import Customer, Service, Product
class CustomerForm(forms.ModelForm):
class Meta:
model = Customer
fields = ('cust_name', 'organization','role', 'bldgroom', 'state',
'account_number', 'address', 'city', 'zipcode', 'email')
class ServiceForm(... | [
"surajadhikari@unomaha.edu"
] | surajadhikari@unomaha.edu |
9002cd217cd0450f581da569094cf0043a5f2e4e | 9bd08d744f07d9cea9d5a95ecf3e9aede6c0b7f2 | /Web/manage.py | 9d1c895b0d94e16af1a9dc11a45ff1e2cde752e1 | [
"MIT"
] | permissive | tunglambk/image_style_transfer | f05d28dfd91e83efc3263b84ef0a9395329940c1 | 9b5e01f12d5363cf61a7b7538a5daa54600f8eda | refs/heads/master | 2022-12-26T01:19:59.685210 | 2020-10-04T10:55:33 | 2020-10-04T10:55:33 | 297,641,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python3
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Web.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"lamphambatung92@gmail.com"
] | lamphambatung92@gmail.com |
38659ed0474ddb03208bf582aa89246ec5811daa | 7f7c8b33462c07d73c9426bc54640f6657a06693 | /scripts/common.py | a77bddfddfd29c0be5726f1fa26381c8f27bde0b | [
"MIT"
] | permissive | zenithght/gengine | 6ae148dd67718b92f54d3821c681dd171f6710bf | d4ce904883c61023dade814cec1182a9d61fc8dd | refs/heads/master | 2020-06-30T23:31:58.729647 | 2016-11-18T12:37:29 | 2016-11-18T12:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,489 | py | #!/usr/bin/python3
import platform
import os
import sys
import argparse
import multiprocessing
import os.path
debugMode = False
targetDir = None
rootPath = None
buildPath = None
binaryPath = None
itMustRun = False
html5Mode = False
buildUrho3D = False
targetPlatform = "undefined"
targetMode = "undefined"
def printn(... | [
"gauthier.billot@fishingcactus.com"
] | gauthier.billot@fishingcactus.com |
8d9bb6926f1bd85ef8da53778229913d6ac4bc86 | a8160d8e37a227fd4d8b5fed6a1c4c1eef980612 | /dsnalgo/sort_pile_of_cards.py | cd0bcb2f01f2b3b82b47bf0086785a3c148482e7 | [] | no_license | gauravtatke/codetinkering | c5d5e1259592b681573c864bc9aabfbfd5d41cbd | fe3c39e0c1cb689dad5f5305a890f21a3edb2260 | refs/heads/master | 2022-09-29T02:39:50.601689 | 2022-09-21T16:02:51 | 2022-09-21T16:02:51 | 93,332,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/env python3
# We have N cards with each card numbered from 1 to N. All cards are randomly shuffled. We are allowed only operation moveCard(n) which moves the card with value n to the top of the pile. You are required to find out the minimum number of moveCard() operations required to sort the cards in incre... | [
"gauravtatke23@gmail.com"
] | gauravtatke23@gmail.com |
94e2a43014b05f292486e68815f57b103be12c22 | f161fa804dc78cb87c160368b24a7ff34bfcd20d | /clubCalendar/clubCalendar/settings.py | c7f75f5230485e48dc77e444618aa74174e0450d | [
"MIT"
] | permissive | AkshilVT/clubCalendar | 42bf47afce2b4fa2d5f50adf5f4a1cad5a74c211 | 3a9d51d3b3586e22d2f16f8b8797508d86300b0a | refs/heads/main | 2023-03-31T11:23:44.556582 | 2021-03-28T08:24:49 | 2021-03-28T08:24:49 | 351,843,313 | 1 | 0 | MIT | 2021-03-26T16:21:54 | 2021-03-26T16:21:54 | null | UTF-8 | Python | false | false | 3,267 | py | """
Django settings for clubCalendar project.
Generated by 'django-admin startproject' using Django 3.1.5.
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 pa... | [
"72624080+kavania2002@users.noreply.github.com"
] | 72624080+kavania2002@users.noreply.github.com |
b7330826eae31b9d839278ea4340891bf58b4dd4 | 7abd326c73cbbf5bacb5c343177be1f35689f175 | /venv/bin/python-config | 19afd2d11d9faa9cdab0634bbbb72134a5d3561c | [] | no_license | vipul-rao/company-to-domain | 763c476639f1fb39e8dff4bc3111ee7a96ac22ae | 7f9b8a3ad6d213abd60d69f7900e2f03952e3872 | refs/heads/master | 2020-03-09T10:14:18.358904 | 2018-04-10T03:52:03 | 2018-04-10T03:52:03 | 128,730,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | #!/home/vipul/PycharmProjects/domain/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"vipulrao355@gmail.com"
] | vipulrao355@gmail.com | |
97fa0e9ee730c87d48b090216f91c70f823bd477 | 682638ecc330000ac70d92db66552546aaa72d2f | /eg.py | b2100faeadce53e2dc2275b1fa9765c09b758f44 | [] | no_license | inirpa/fashion-mnist-keras | 5f2e095af2f7a939d22bdccfe513ee5e8d29a8f2 | b31b522e23d52c2b4838bcf7a7bd773c6a12e37e | refs/heads/master | 2022-01-06T20:17:30.405540 | 2019-02-18T04:12:27 | 2019-02-18T04:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data
#########download and extract data set
# Load the fashion-mnist pre-shuffled train data and test data
# data_train = pd.read_csv('data/fashion_train.csv')
# data_test = pd.read_csv(... | [
"nirparai@yahoo.com"
] | nirparai@yahoo.com |
6ffb9e979f6730bd14fd463eb7ba98fc4547a482 | db739516bba702ebe230016e090d6b6f00caf83a | /lib/annotate.py | af8b132c417571b998feb898cfd6358bf821e123 | [
"MIT"
] | permissive | adamewing/discord-retro | 2cb9a37adfd0604de2cc7a9c353886ea9d8d2137 | 1afc09d60ffc138c0890bd02d707fe5d408a63d8 | refs/heads/master | 2021-01-10T21:08:07.972791 | 2013-03-11T23:16:04 | 2013-03-11T23:16:04 | 4,288,385 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | #!/bin/env python
"""
Copyright (C) 2012 by Adam Ewing (adam.ewing@gmail.com)
Released under the MIT license, see LICENSE.txt
"""
import pysam, sys, re
def uniqann(annList):
uniq = {}
for ann in annList:
uniq[ann] = 1
return uniq.keys()
def checkfile(fname):
try:
open(fname)
e... | [
"adam.ewing@gmail.com"
] | adam.ewing@gmail.com |
da0e360ef04be5b4a9aef897331aa98e4b9ce97c | 4d93c6999f1c938f12b7ff6fb779557e1a77479f | /chapter11/names.py | 37cab2bbcddd9ca3a3f64613ed94eea1aa8473fc | [] | no_license | MadhuV99/pywork | 5efd1aac74f2c88413bb90bbc9e0d0c250057e7c | 81ea17d8bed89ba57cdd35d2ceb0560f68a21cc8 | refs/heads/main | 2023-01-20T06:50:03.004849 | 2020-11-29T16:01:06 | 2020-11-29T16:01:06 | 312,609,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # names.py
from name_function import get_formatted_name
print("Enter 'q' at any time to quit.")
while True:
first = input("\nPlease give me a first name: ")
if first.strip().lower() == 'q':
break
last = input("Please give me a last name: ")
if last.strip().lower() == 'q':
break
for... | [
"madhuvasudevan@yahoo.com"
] | madhuvasudevan@yahoo.com |
7e087ad12814d8c1853c447a882c149bcee80703 | 34fae60a658df5877e5fe0574a93fec2ebffb27f | /trolls/urls.py | 0ae5254ac392d43d3a67ebcaa95aec3d3bcddb6b | [] | no_license | MoniCore/react_frontend_django_backend | 0cc0432c6a7aaa854d6ed837d323dc4908706481 | ad69245db33e6f0727507667fe171bc10a7a8852 | refs/heads/master | 2023-06-24T12:39:50.839767 | 2021-07-24T17:13:59 | 2021-07-24T17:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from django.urls import path
from django.urls import re_path
from django.contrib.auth import views as auth_views
from . import views
app_name = 'trolls'
urlpatterns = [
path('dashboard',view=views.trollsdashboard, name='trollsdashboard'),
] | [
"pheonix20210101@gmail.com"
] | pheonix20210101@gmail.com |
67d83f8708af74d0a824b6d18678142207d2bfcf | f08073f559ba9f415e6f2bf029fcb44194043d51 | /verifiable_mpc/trinocchio/wip_keygen_geppetri.py | 811ba5ac8f9c70c691996666a5c912f29fd6b644 | [
"MIT"
] | permissive | marcusmjh/verifiable_mpc | ac4c90456a886883cfe61130ef0b3a4d24aa0065 | 8f9b734c28e98057cb3928870cb504ab045c3a83 | refs/heads/main | 2023-06-20T08:58:08.667413 | 2021-07-14T08:23:41 | 2021-07-14T08:23:41 | 385,866,654 | 0 | 0 | MIT | 2021-07-14T08:23:14 | 2021-07-14T08:23:13 | null | UTF-8 | Python | false | false | 2,729 | py | # WORK-IN-PROGRESS
""" Implementation of Geppetri key gen steps with BN256 curves
Using pairings.py from https://github.com/randombit/pairings.py
Alternative for bn128 by Ethereum: https://github.com/ethereum/py_ecc/blob/master/py_ecc/bn128/bn128_curve.py
"""
import os, sys
project_root = sys.path.append... | [
"a.j.m.segers@tue.nl"
] | a.j.m.segers@tue.nl |
9b6fafae6e237ae5ae6bc66af26f63455b3fe79b | 080b9a32a5665e5fdf2be3ff45aee2c2c0bdcaf6 | /topicApp/migrations/0006_auto_20191007_2031.py | e4e1f0a73f64a090857a6539af325ad70495c85f | [] | no_license | brittmagee/EidsonBikeCo-SEI23-Project4 | 10d4e7135ed323be3fe3ab7c6b23c7b0d1d728ba | 193ff51daa3d73fe0612519aaea5fbb4f9240e45 | refs/heads/master | 2021-06-20T23:49:28.602813 | 2020-01-04T03:57:39 | 2020-01-04T03:57:39 | 212,595,585 | 0 | 1 | null | 2021-06-10T22:02:34 | 2019-10-03T14:04:40 | JavaScript | UTF-8 | Python | false | false | 465 | py | # Generated by Django 2.1.11 on 2019-10-07 20:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('topicApp', '0005_auto_20191007_2026'),
]
operations = [
migrations.AlterField(
model_name='bike',
name='color',
... | [
"brittgmagee@gmail.com"
] | brittgmagee@gmail.com |
d163b55d4ea29236a3c4039c83ab916de00909ce | 2f37b47c9676d316d639b210a11f22a15ef62929 | /IOT/urls.py | a35d862be019b26c7350382ce430b03b96199e41 | [] | no_license | SumanthKumarAlimi/IOTCLUB | 241cca39d2ddb0dcf5e97e70c8196805be371548 | 7af83b00597fd85535fba9527dc7e4f60ebda240 | refs/heads/master | 2020-06-11T02:44:10.034539 | 2019-06-26T04:26:35 | 2019-06-26T04:26:35 | 186,881,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from django.conf.urls import url
from . import views
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
url(r'^$', views.homepage, name='index'),
url(r'^workshops/$', views.workshops, name='workshops'),
url(r'^course/$', views.course, name='course'),
url(r'^achievement... | [
"director@digi-labs.co.in"
] | director@digi-labs.co.in |
7988673d625c38b116306c3d3c27e2d0d379bbe3 | 8bb0536528c72829fe117dd2f8adf264f4c8b05e | /v2/theme/browser/v2_generic_view.py | 49421e022e714390d10282b20e243a371ad3f29d | [] | no_license | v2lab/v2.theme | b688b14121dfdca6ead8baf2b7f59e247dfa52dc | 1fe5dd22fd9a40804cf2f386c70afed7a6d3dff4 | refs/heads/master | 2021-08-20T05:04:03.694831 | 2021-07-14T12:09:45 | 2021-07-14T12:09:45 | 16,309,357 | 0 | 0 | null | 2014-07-15T04:59:52 | 2014-01-28T10:59:17 | Python | UTF-8 | Python | false | false | 5,639 | py | import time
from Acquisition import aq_inner
from zope.component import getUtility
from Products.Five import BrowserView
from Products.CMFPlone.interfaces import IPloneSiteRoot
from collective.contentleadimage.config import IMAGE_FIELD_NAME
from collective.contentleadimage.leadimageprefs import ILeadImagePrefsForm
from... | [
"sachoco@gmail.com"
] | sachoco@gmail.com |
9219214be204f69c7705e81f0d1058af1e0041f4 | 1171af9cc0c1b524959bf6a3018eddee48034318 | /config.py | 7ffb7a2c45bb2b381f2b4a6211dcca004100c8b5 | [] | no_license | fengo4142/robotframework-email | 44e2c467b7f6f524a71e23d2c46def465be34437 | ce587a54dea0684494638225cb803a85041c25a7 | refs/heads/master | 2020-10-02T01:53:23.741721 | 2019-05-23T11:10:11 | 2019-05-23T11:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py |
# condition to send email if 'True' email will be sent
SEND_EMAIL = True
# email smtp (smpt of yahoo, gmail, msn, outlook etc.,)
SMPT = "smtp.gmail.com:587"
# email subject
SUBJECT = "MyProject Automation Execution Status"
# credentials
FROM = "XXXXX@gmail.com"
PASSWORD = "XXXXX"
# receivers
TO = "XXXXX@gmail.com"... | [
"shiva.adirala@zenq.com"
] | shiva.adirala@zenq.com |
e14a0b8c28734a04f58c05b7c832436033fda1be | cb86daa80f9de85f632fd91de04006d32c0102a0 | /process_tweets/cross_verify_tweets.py | 441f5c5ff9eef1dd16804b7f7daec357cfa86b88 | [] | no_license | ericshape/CREDBANK-data | a537fd4c2b2046daa5dca2e826af6e7cc1ab09f4 | 2d37e9fca16f3c0fae338135e6048da46dd0cc13 | refs/heads/master | 2021-01-17T11:04:56.271620 | 2016-04-09T23:36:45 | 2016-04-09T23:36:45 | 55,520,040 | 0 | 0 | null | 2016-04-05T15:34:01 | 2016-04-05T15:34:01 | null | UTF-8 | Python | false | false | 2,998 | py | # created by Ji Wang ericshape @ 4/5/16 11:47 AM
import numpy as np
import json
import sys
import re
idRegEx = re.compile(r".*ID=")
endElRegEx = re.compile(r"'.*")
ratingsFile = "cred_event_TurkRatings.data"
tweetsFile = "cred_event_SearchTweets.data"
merge_outputFile = "merge_timeline.output"
inputFile = "cred_eve... | [
"wangjiprc@gmail.com"
] | wangjiprc@gmail.com |
dfff7c198e095b1ee257e50bf1e6ce303894264d | 4ba5d35bb6513dd0f45ce515cd5d5c8bdf1a9627 | /pic.py | 6b42fe492eb5f8ae04d1019a7b8c6e70def95e27 | [] | no_license | alanwong2357/CS147-Mask-Detection-System | 02cfd7bafd12afa2d732be3d3364c636d5016f65 | 98a0c958f06ea134ab0bdbc78075ef48635e722c | refs/heads/master | 2023-05-15T06:37:35.841235 | 2021-06-04T09:18:19 | 2021-06-04T09:18:19 | 373,779,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import cv2
videoCaptureObject = cv2.VideoCapture(0)
while(True):
ret,frame = videoCaptureObject.read()
cv2.imshow('Capturing Video',frame)
if(cv2.waitKey(1) & 0xFF == ord('y')):
cv2.imwrite('pic.png', frame)
cv2.destroyAllWindows()
break
elif(cv2.waitKey(1) & 0xFF == ord('q')):
videoCaptureObject.... | [
"alanwong2357@gmail.com"
] | alanwong2357@gmail.com |
fb627818bd609c0bff8ac51d2e910b7ebb29b86f | e463fa2008ebceb3aae88eed000303abc060d471 | /student_admit/studentnet.py | 5e3b7023353588621adb8cd5646c57db9ef9e39e | [] | no_license | satyam15mishra/Pytorch_NNs | 437c8d069a45b0cac14249a6bc31778c8cd8f18f | 636500476706e7a4b0047a79800a1e6a792402fb | refs/heads/master | 2020-08-12T10:54:15.507633 | 2019-11-12T05:14:04 | 2019-11-12T05:14:04 | 214,754,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import torch
from torch import nn
data = pd.read_csv('studentdata.csv')
X = data.iloc[:,[1,2,3]]
y = data.iloc[:, 0]
def plot_data(data):
X_plot = np.array(data[['gre', 'gpa']])
y_plot = np.array(data['admit'])
admitted = X_plot[np.argwhere(... | [
"noreply@github.com"
] | satyam15mishra.noreply@github.com |
4d95c1bb8a988d7e5e3af479f81f0a22535e8b70 | 8bfbc75043aa155939d3fa6b0029c21720d2db22 | /test.py | 7ede08cae896b2b4051bd6faf896be0d5f1660a2 | [] | no_license | miguel-mzbi/computer-vision | a18f1122284ff1b4dacef0b3dca2c30267fada24 | 15659208d3cc63f6d1ba4c1e8f8eb04162124d1a | refs/heads/master | 2020-09-03T18:06:56.979020 | 2019-11-27T03:16:04 | 2019-11-27T03:16:04 | 219,528,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
def getMask(hsvImage):
lower = (0,10,50)
upper = (180,40,100)
mask = cv2.inRange(hsvImage, lower, upper)
return mask
def applyMask(mask, hsvImage):
return cv2.bitwise_and(hsvImage, hsvImage, mask=mask)
def processFrame(cap):
... | [
"miguel.mzbi@gmail.com"
] | miguel.mzbi@gmail.com |
ebf76df12eb5235a73cdd6f5d758ef04022f8eeb | f889a1de574dc55425677bcbea6410bf360cddd6 | /labels/serializers.py | 74182afaf2891bdffd2e90bdb064a3c2a8072f99 | [] | no_license | Hagbuck/MyBlackSmith | 816b3b711db021ee702a19b3240bb30c48271bc6 | 671088bee46d2fa705bfd9b37f059610bcdd2252 | refs/heads/main | 2023-01-24T12:23:18.255371 | 2020-12-02T16:46:19 | 2020-12-02T16:46:19 | 313,397,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from rest_framework import serializers
from .models import Label
from accounts.serializers import UserSerializer
from projects.serializers import ProjectSerializer
class LabelSerializer(serializers.HyperlinkedModelSerializer):
user = UserSerializer()
project = ProjectSerializer()
class Meta:
mod... | [
"anthony.vuillemin@outlook.fr"
] | anthony.vuillemin@outlook.fr |
66e2e93e2395070c67f8869a11803e3cfb16d2bc | a67980fc4b398bb8a9cc3250ba4efaf461cf4f87 | /tiandiPythonClient/__init__.py | afa480458a033c8a9af3ff3dd7178b2b6f268329 | [] | no_license | RobbieXie/NetflixConductorPythonClient | b4651e50916ecee898a97f4a2bc83d97cf66874c | 7347a6a7b4f87ff0812f48ac8e1441b72db52882 | refs/heads/master | 2021-03-24T10:32:37.679252 | 2018-01-20T12:44:02 | 2018-01-20T12:44:02 | 116,361,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | __version__ = '1.0.0'
VERSION = tuple(map(int, __version__.split('.')))
__all__ = ['workflow'] | [
"619835217@qq.com"
] | 619835217@qq.com |
81f0eb4b24ff712328b49bbcd84509d2ab1cc296 | a3a89b54af31deb583ea039657cc6a8c79a91bff | /PG/pytorch_util.py | a4a6b2ac237a5d31813f1e76c1e461b4281c8392 | [] | no_license | bunengzhucefeng/rl_algorithm_reimplementation | 1c4348a4914f090943e04aa8b5b8a2b6a105f35a | 5ef53154ea68de9f3cb84e829944646476148f9b | refs/heads/main | 2023-06-08T18:20:19.827511 | 2021-07-02T12:28:24 | 2021-07-02T12:28:24 | 382,340,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | from typing import Union
import torch
from torch import nn
Activation = Union[str, nn.Module]
_str_to_activation = {
'relu': nn.ReLU(),
'tanh': nn.Tanh(),
'leaky_relu': nn.LeakyReLU(),
'sigmoid': nn.Sigmoid(),
'selu': nn.SELU(),
'softplus': nn.Softplus(),
'identity': nn.Identity(),
}
d... | [
"1801213983@pku.edu.cn"
] | 1801213983@pku.edu.cn |
68f4bea959f9353ceedb880f2548198b8b3a7073 | 60e821452f5c7e517be23dc4a513881d2d3d953d | /tempCodeRunnerFile.py | d5f7b8b3189aed3f7457b23b64cebec8304aa18b | [] | no_license | Akj1710/Desktop-Assistant | 451672625f43c8a2f35373675b8cf3aa4630f530 | bf6bd4068d81559258b7087f4c63d6f4b914e598 | refs/heads/master | 2022-12-30T17:30:40.929377 | 2020-10-22T13:56:39 | 2020-10-22T13:56:39 | 306,356,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py |
def takeCommand():
#it takes microphone input from the user and converts into string
r=sr.Recognizer()
with sr.Microphone() as source: | [
"camtam1710@gmail.com"
] | camtam1710@gmail.com |
16c2b16ecf6b6fd0fb698e196b6d01c2bda07d10 | d78411d389ce2a02b72b3ae8793d8b04a0eb76c0 | /src/utils/badges.py | 6d7a404db49f79c2a93e72c12f9d43bc286b78e3 | [] | no_license | codeday/discord-challenge | 338d483cf94cb7ae08606e07e9b58b41b3e28c81 | a17f2e895b4c7c0c33b4a8090a57b2ef502c4892 | refs/heads/master | 2023-02-25T19:38:04.918062 | 2021-02-03T00:24:44 | 2021-02-03T00:24:44 | 328,318,328 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import json
from jwt import encode
import time
import requests
import logging
from os import getenv
def gql_token():
secret = getenv("GQL_ACCOUNT_SECRET")
message = {
"scopes": "write:users",
"exp": int(time.time()) + (60*60*24)
}
return encode(message, secret, algorithm='HS256').decod... | [
"nikhil@gargmail.com"
] | nikhil@gargmail.com |
f30c88dfd616203247b156a17bed169e52e39d60 | 36bc6ceb273d4703a5cc92a59d8b82fbccdb5deb | /bhabana/tools/generate_vocabulary.py | 35d245996af8815d7b4d61f02fe1d91f833ddff3 | [
"Apache-2.0"
] | permissive | dashayushman/bhabana | a18345dcedde8712777b10a5edb42883490fb4d5 | 7438505e20be53a4c524324abf9cf8985d0fc684 | refs/heads/develop | 2022-10-30T22:28:56.103462 | 2018-02-09T10:40:33 | 2018-02-09T10:40:33 | 106,683,432 | 0 | 1 | Apache-2.0 | 2022-10-06T22:44:07 | 2017-10-12T11:23:08 | Python | UTF-8 | Python | false | false | 4,977 | py | # Copied from
# https://github.com/google/seq2seq/blob/master/bin/tools/generate_vocab.py
#
# Copyright 2017 Google Inc.
#
# 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.ap... | [
"dash.ayushman.99@gmail.com"
] | dash.ayushman.99@gmail.com |
da992c15b4e0a9fd1234d5e3a0f1a2116b27e0a9 | cfef60d72091264f6bccaf218d4ec8f301a7b7ad | /fabric_helpers/machines/ubuntu.py | 96a52ee465b554be0c0b3af1a234fede00f59cbc | [] | no_license | punteney/fabric_helpers | 9a6fbeceaa7c24257dcb1c13cc0244194a07085e | 291af17b3cbc25b71d7887a6f09ba8caba8d63de | refs/heads/master | 2021-01-19T22:29:32.823515 | 2010-11-15T18:03:40 | 2010-11-15T18:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | from fabric import state
from fabric.api import run, sudo, cd, local
from fabric.contrib.files import append
from fabric_helpers.machines import Machine
class UbuntuServer(Machine):
def __init__(self,
public_address,
env_name,
open_ports=[],
private_address=None... | [
"punteney@gmail.com"
] | punteney@gmail.com |
df24f45384238ba36f523f3f1d406f6de20dd805 | cf999cbba3a57065fcb138f0a03b3492c596e993 | /correlation.py | 6feecfe40984b9d5d8c5e1de719c107a2614e137 | [] | no_license | Michal-Stempkowski/NotSoAwesomeSRNotAtAll | 79c368fef9250429b248982718318bad45d878a5 | 16930077c5012f1bc83ea2709a54b0e2420a4b07 | refs/heads/master | 2021-01-01T16:59:49.641981 | 2015-01-28T15:56:12 | 2015-01-28T15:56:12 | 28,886,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,306 | py | from functools import reduce
import os
from audiolazy.lazy_filters import z
from audiolazy.lazy_lpc import lpc
from audiolazy.lazy_math import dB20
from audiolazy.lazy_synth import line
from numpy.fft import rfft
import matplotlib.pyplot as plot
import math
from numpy.ma import abs
class Point(object):
def __ini... | [
"michulix@gmail.com"
] | michulix@gmail.com |
8619b701ca3e625d7e82d606e87038282feb7484 | 9987ac2bcb8e2734a34a8ebe8b81de6ff66050ee | /covidsample/covidsample/urls.py | cca3b3faa5dc5df92cc3d02a8fd41158784f402f | [] | no_license | ShivamDhoundiyal/covid_project_sample | a3037b075c9e794e50068ffbf6724057c1bb359b | d78fc4c06487b8ed7c064bcad1aded66e058eeda | refs/heads/master | 2023-05-06T22:11:01.112088 | 2021-05-29T17:37:08 | 2021-05-29T17:37:08 | 372,034,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """covidsample URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
... | [
"noreply@github.com"
] | ShivamDhoundiyal.noreply@github.com |
3063a211d9d9d17cd1f5aede9bd9170c6237a64a | b36e5a6d1a450cbbd9545b2aa85eee5245515d6b | /myslq.py | 8386670d125a055b4d84894ece014bc5d1e0680d | [] | no_license | ikerseco/mysqlpy | 54d333fe41f41cbc3057cac2a8e788cda2224967 | 4482fdb780e6e40f8c2ece7bbb07152aeeb0c850 | refs/heads/master | 2021-03-30T21:58:07.358819 | 2018-08-17T15:05:24 | 2018-08-17T15:05:24 | 124,822,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,957 | py | import pymysql.cursors
import json
from m_arr.array_explo import explot
from m_arr.array_explo import implot
from inser_t.insert import read
#from inser_t.insert
"""
print("Zure datubasera konektatzen:\n")
dbi = input("\t*jarri zure databasearen izena:")
useri = input("\t*user:")
passwordi = input("\t*password:")
host... | [
"33206796+ikerseco@users.noreply.github.com"
] | 33206796+ikerseco@users.noreply.github.com |
25e821a9bec8b64ae9e066769b7eebc81a5708ff | 02a4c0b5f4451441d01ef5db012a2362475f70c7 | /SSL_pretask/src/layers.py | 0add36a15a998549cdb28a6cce42609fa33d7470 | [] | no_license | YasminHeimann/Anomaly-Detection-on-Graphs | bb2045b279c232a8aa52124e68124d225f4b7c6d | db3ba31642b1163e99d6f2cefd1c6c71f3d476fd | refs/heads/master | 2023-08-17T08:37:49.481721 | 2021-09-22T23:44:38 | 2021-09-22T23:44:38 | 387,911,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,297 | py | import math
import torch
from torch.nn.parameter import Parameter
from torch.nn.modules.module import Module
from torch import nn
import torch.nn.functional as F
class GraphConvolutionBS(Module):
"""
GCN Layer with BN, Self-loop and Res connection.
"""
def __init__(self, in_features, out_features,... | [
"yasmin.heimann@mail.huji.ac.il"
] | yasmin.heimann@mail.huji.ac.il |
ab93a5d3ea18d2855c94ec70eb505259cf21f234 | f703a31c8d215d3d40b4e7520b02cc96a1190076 | /prob_calculator.py | 266b7d3d90c01d62e58e16963b95d5e4369f5498 | [] | no_license | alfredojry/probability-calculator | 4be73105cf0acb34ebadc4391a7e15d0b885e86f | 93c440cb5fb776e894c9429d819de41a2029fdc5 | refs/heads/master | 2023-07-19T02:15:02.931123 | 2021-09-13T01:05:07 | 2021-09-13T01:05:07 | 405,791,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | import copy
import random
# Consider using the modules imported above.
class Hat(object):
def __init__(self, **kwargs):
self.contents = []
for k, v in kwargs.items():
self.contents += [k] * v
def draw(self, n):
if n > len(self.contents):
return self.contents
... | [
"43357527+alfredojry@users.noreply.github.com"
] | 43357527+alfredojry@users.noreply.github.com |
4869a312afecf5587acf929abf9f9adcd24f3ff4 | 3a50c0712e0a31b88d0a5e80a0c01dbefc6a6e75 | /thrift/lib/python/any/test/serializer.py | e10f1866cd979f95c40dfcde5b071bca2dbe8ba4 | [
"Apache-2.0"
] | permissive | facebook/fbthrift | 3b7b94a533666c965ce69cfd6054041218b1ea6f | 53cf6f138a7648efe5aef9a263aabed3d282df91 | refs/heads/main | 2023-08-24T12:51:32.367985 | 2023-08-24T08:28:35 | 2023-08-24T08:28:35 | 11,131,631 | 2,347 | 666 | Apache-2.0 | 2023-09-01T01:44:39 | 2013-07-02T18:15:51 | C++ | UTF-8 | Python | false | false | 7,122 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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 requi... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
84aadccad73e8e097a909f5cd923cc4bfa9a9772 | 9e54fca9aaa7f96d4084606465ebe20f4789d229 | /export.py | f8d94e123cc8c04026be91dbe45a5d97e35b3adc | [
"Apache-2.0"
] | permissive | AliceWn/git-rv | c05dbaba52097c5c30d9f55ee79ea17162e66de7 | 918a4adae67f43fe4cafeafbc086f089f60e31a6 | refs/heads/master | 2020-05-15T19:42:50.603260 | 2015-09-23T20:48:13 | 2015-09-23T20:48:13 | 182,462,578 | 0 | 0 | Apache-2.0 | 2019-04-20T23:06:45 | 2019-04-20T23:06:45 | null | UTF-8 | Python | false | false | 16,180 | py | # Copyright 2013 Google Inc.
#
# 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... | [
"dhermes@google.com"
] | dhermes@google.com |
21bc273b168a4292b9ba2c6ea2d0ece7a0b03517 | 018e9acbf1a7e8dca939095082cd2cb490a08029 | /recommender_system_matrix_factorization/pyspark_MF.py | 0f20746e86d63838f31ff247e74a3cd0d0b0ea05 | [] | no_license | C-Dongbo/machine_learning | 9843e47a6164daa9032b9b89af318b26ffe7d286 | a0a82e0b645a449935575c7c6bf462913ae279fb | refs/heads/master | 2021-03-01T14:29:22.946163 | 2020-09-27T23:23:51 | 2020-09-27T23:23:51 | 245,792,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | import numpy as np
import pandas as pd
import pyspark
from pyspark import SparkContext
from pyspark.sql import SQLContext
from pyspark.mllib.recommendation import ALS, MatrixFactorizationModel, Rating
sc = SparkContext(master="local", appName="first app")
df_rdd = sc.textFile('./data/ml-1m/ratings.dat').map(lambda x... | [
"chlehdrms3@gmail.com"
] | chlehdrms3@gmail.com |
eb621fa706f1fb5e6a98134f911aa9907b0257da | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__numpy_1_15_4/numpy/matrixlib/tests/__init__.py | aeeeb27fd221b666a211ced69a956b7500092e85 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__numpy_1_15_4/numpy/matrixlib/tests/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
f0e30cd721e3980995d0f449df77418b9cfddd8a | 30e1dc84fe8c54d26ef4a1aff000a83af6f612be | /deps/src/libxml2-2.9.1/python/tests/reader5.py | 220a3e5bbafc048a0ea35a0277fe47bbaca38f99 | [
"MIT",
"BSD-3-Clause"
] | permissive | Sitispeaks/turicreate | 0bda7c21ee97f5ae7dc09502f6a72abcb729536d | d42280b16cb466a608e7e723d8edfbe5977253b6 | refs/heads/main | 2023-05-19T17:55:21.938724 | 2021-06-14T17:53:17 | 2021-06-14T17:53:17 | 385,034,849 | 1 | 0 | BSD-3-Clause | 2021-07-11T19:23:21 | 2021-07-11T19:23:20 | null | UTF-8 | Python | false | false | 1,246 | py | #!/usr/bin/python -u
#
# this tests the Expand() API of the xmlTextReader interface
# this extract the Dragon bibliography entries from the XML specification
#
import libxml2
import sys
# Memory debug specific
libxml2.debugMemory(1)
expect="""<bibl id="Aho" key="Aho/Ullman">Aho, Alfred V.,
Ravi Sethi, and Jeffrey D. ... | [
"znation@apple.com"
] | znation@apple.com |
19118ac2682ba0a41cc6ecf02fba8d63dfcff830 | f575ab0c484632ca7b8fe21760500fdc514ee355 | /code_chef_programs/Beginner/Days_in_month.py | f576c38f6c406f5d51f90239df6314d2bb8874eb | [] | no_license | sonalisaraswat/My-Programs | dae042327c7f1076d51e98ef28166c0784b50570 | 2b3ef3804b12db34dc1efe26ab9a383fd65a29f5 | refs/heads/master | 2018-09-06T07:08:32.939030 | 2018-06-25T14:48:33 | 2018-06-25T14:48:33 | 117,707,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | for t in range(int(input())):
w,s=[ch for ch in input().split()]
L1=[4,4,4,4,4,4,4]
L2=['mon','tues','wed','thurs','fri','sat','sun']
if(int(w)==28):
print(*L1,sep=' ')
elif(int(w)==29):
ind = L2.index(s)
L1[ind] += 1
print(*L1, sep=' ')
elif (int(w)==30... | [
"noreply@github.com"
] | sonalisaraswat.noreply@github.com |
d950a029ed1fbe2bbb26026def4d45c05ac2ac00 | 8670b4495264bf90742554f73a5d33e7b64138fd | /venv/lib/python3.8/site-packages/pymavlink/dialects/v10/ardupilotmega.py | d43e6f9e45336fce552f725b43abae230783006a | [] | no_license | BIwashi/dronekit-sitl-docker | aaa532245cc0f04bcd7dfbbf967ca754c03ea784 | 209c5a14a50efead4758a6881906862689ea1e57 | refs/heads/master | 2023-01-06T10:19:44.907874 | 2020-10-26T16:31:36 | 2020-10-26T16:31:36 | 298,338,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346,699 | py | '''
MAVLink protocol implementation (auto-generated by mavgen.py)
Generated from: ardupilotmega.xml,common.xml,uAvionix.xml,icarous.xml
Note: this file has been auto-generated. DO NOT EDIT
'''
from __future__ import print_function
from builtins import range
from builtins import object
import struct, array, time, json... | [
"saxo-folatre1129@outlook.jp"
] | saxo-folatre1129@outlook.jp |
613a05d5b9323597ee0f9e94723dca996486037c | 527a8996239ce00c469642ba6e15406afe15c70c | /cybersecmodule/cybersecmodule/urls.py | c56e5fabed14c8617c13e62d8c023f101817d0db | [] | no_license | gabrielgamero/pythonapp2 | 596302ee525dc75d6b34d8c8e8805f503e6b1f94 | b2a1594641e35e8ebbcb5639344b81f8b625cd64 | refs/heads/master | 2023-03-13T15:15:17.653599 | 2021-03-12T03:56:45 | 2021-03-12T03:56:45 | 346,925,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | """cybersecmodule URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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')
Clas... | [
"gabriel.gamero@pucp.pe"
] | gabriel.gamero@pucp.pe |
0f0f679d63b3379178b8318f35c97e7382f885c9 | 9f5648f4b50d7657f3692b20e4a8d6761af7f9bf | /manage.py | 18a6d194bf48e15ecad6ff89ce45df50ac58280d | [] | no_license | DevelopWithAP/quality_control | 2fe2617bbffdb814e2d68b60a17fcd09408c5afd | 41b7eaadcd6e65029f8fb359923dd48ba9f033c7 | refs/heads/master | 2023-08-27T06:09:18.013082 | 2021-11-08T15:57:02 | 2021-11-08T15:57:02 | 398,589,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | 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', 'quality_control.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"apostolisparga@gmail.com"
] | apostolisparga@gmail.com |
5a9714251bbb986adb690630e02932243d1f0693 | ed4230d4dc48477a25528c76c159ae934ef2b5a6 | /2019_2-Proyecto_Taller_Django/diazstone/inicio/migrations/0010_fotito.py | c921235c3d0992798afc01a45a50889e8e690e38 | [] | no_license | Yhatoh/USM-Tareas | 2092bf87a5bd48e7414c5e048bd7b5b2fbebff7c | 939be727b0ba82426c7c8ce4661e1c1c626a6987 | refs/heads/master | 2023-02-21T13:27:33.185330 | 2021-01-25T03:12:46 | 2021-01-25T03:12:46 | 324,416,603 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 2.2.6 on 2019-10-10 05:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inicio', '0009_auto_20191009_2057'),
]
operations = [
migrations.CreateModel(
name='Fotito',
fields=[
... | [
"gacarmonat@gmail.com"
] | gacarmonat@gmail.com |
02c053a332e8c66afa1b50f843361da692cf6096 | 4b05c7f8c5b7505e96842f12e34150829374f0b3 | /mysql_connect.py | 6e383072c37ae2e8af7f43c5aa4be62e236fbd76 | [] | no_license | jcodewriter/craigslist-scraping | 11d01ea889bcf1a42fd4cf00c66ed156a0b48630 | 92ff84e777b55fd09fc0a4b00179cd21ba6f1cbb | refs/heads/main | 2023-05-24T00:01:58.878050 | 2021-06-18T22:31:26 | 2021-06-18T22:31:26 | 378,133,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from mysql.connector import MySQLConnection, Error
from mysql_dbconfig import read_db_config
""" Connect to MySQL database """
db_config = read_db_config()
connect = None
try:
print('Connecting to MySQL database...')
connect = MySQLConnection(**db_config)
if connect.is_connected():
print('Connectio... | [
"jcodewriter@gmail.com"
] | jcodewriter@gmail.com |
a574f989e0cfb49efad5504ef1959e4592372c4b | 0a5b1693b93dcd23b7b56ed888dd0a3fda78e90f | /usersapp/urls.py | 411dc70ddb3f3d7a9878c59656f0389abf89ce5f | [] | no_license | welz-atm/NoteAppDjangoandRN | 831859b5202ef34b536f747dead7290911e6f2ec | 6d575810208f2215b8d9fdd1917fdfef7b931b64 | refs/heads/master | 2023-01-07T17:08:29.770201 | 2020-11-06T16:03:26 | 2020-11-06T16:03:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django.urls import path
from usersapp.api.views import register_user, change_password, ObtainAuthTokenView, AllUsers
from rest_framework.urlpatterns import format_suffix_patterns
app_name = 'notesapp'
urlpatterns = [
path('register/', register_user, name='register_user'),
path('list/', AllUsers.as_view()... | [
"59687594+welz-atm@users.noreply.github.com"
] | 59687594+welz-atm@users.noreply.github.com |
1d50097e0a83ffa78fdcb9bc614bf2bf6cbe3300 | a4d5fc4fc6f528bae0b1c352010aa816e3e7dcb6 | /analysis/sorting_busan.py | e664bc467531e5c5f297161c6c7b46803b46d2a5 | [] | no_license | sseung30/project | b3bb5cdb7770ecd95c70f8669190ffc62bda50fc | 5bc72410c1eb7375e72203e61c3bd18d56f81811 | refs/heads/master | 2022-12-03T23:08:51.679822 | 2020-08-23T18:30:26 | 2020-08-23T18:30:26 | 289,080,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
get_ipython().run_line_magic('matplotlib', 'inline')
import numpy as np
import pandas as pd
from datetime import datetime
import warnings
warnings.filterwarnings('ignore')
# In[2]:
# 한국어 표시를 위해 나눔스퀘어 사용
# matplotlib 폰트설정
plt.rc('font', family='NanumSquareOTF') # Fo... | [
"noreply@github.com"
] | sseung30.noreply@github.com |
3355b64a3de450994ba4ceeab1aa8a93558c962b | ada2c8c05027f523d29fa0f60c642fa537fc074d | /src/app/settings.py | 02eb23aa1a4dd64717e3643dda0e9a61aaf1eb77 | [] | no_license | Tehtehteh/sendify | fc9290a90ead2d4107ec09b956dbfe927a6b63cc | c4f236fb7877b7d99eafce75f38d05a1d1ef01a7 | refs/heads/master | 2020-03-21T03:55:22.478681 | 2018-06-24T19:11:22 | 2018-06-24T19:11:22 | 138,081,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | import os
import logging
from copy import deepcopy
logger = logging.getLogger('application')
async def create_settings():
return Settings.from_defaults()
class Settings(object):
_defaults = {
'app': {
'port': 8080,
},
'db': {
'host': 'localhost',
... | [
"tehfvpr@gmail.com"
] | tehfvpr@gmail.com |
8528817f2e818ab95c640dec2fbc42d988e68de4 | 8bd63bc56b39d26458ad54b7f18c4b149c1e3ce2 | /sphinx-files/rst-files/Data/code/2011/11/000032/binary_liquid_mixture_immiscibility_and_stability.py | d86c0be99462bbdd27b0749ff15621910c02ba82 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | isabella232/scipy-central-rescue | 43270c0e1850b989fbe9a5b1a06c3be11d16464a | 2b331610d52c189ae96bea4f4ce2ec343146b608 | refs/heads/master | 2021-09-06T09:17:30.627497 | 2018-02-04T19:41:11 | 2018-02-04T19:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,469 | py | # License: Creative Commons Zero (almost public domain) http://scpyce.org/cc0
#Determines regions of immiscibility and any limits of essential instability
#for a binary liquid mixture of components B and C. the excess Gibbs energy of
#mixing is given explicitly by an empirical equation:
#deltaGex/RT = xBxC[k1+k2... | [
"jiayue.li@berkeley.edu"
] | jiayue.li@berkeley.edu |
5a347c87bc2dbee5984e90800c414e99838da150 | 40a9818f59f430992be53b428851ddf476e866f4 | /SparkCourse/total-spent.py | b3cb6b27cd2ad63c9f01bc3e70f2a86660a4c5f0 | [] | no_license | fejxc/python | baed124af1e796aebf202a4c0c99e93b3688ccce | b3566d9ffffad78158ac67cb4c02badaac544bea | refs/heads/master | 2023-05-04T11:17:35.003910 | 2021-05-25T15:51:50 | 2021-05-25T15:51:50 | 287,763,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | from pyspark import SparkConf, SparkContext
conf = SparkConf().setMaster("local").setAppName("FriendsByAge")
sc = SparkContext(conf = conf)
def parseLine(line):
fields = line.split(',')
customer_ID = int(fields[0])
amount_spent = float(fields[2])
return ( customer_ID, amount_spent)
lines =... | [
"1031364436@qq.com"
] | 1031364436@qq.com |
24cbc9c4271d2f7d14986f9fe038a23070e18c79 | 2fd6fdb39f3c62d1d9dac0fdbb20ba077f204a9d | /Acquire_Valued_Shopper_Challenge/gen_vw_features.py | 57652060d9936d4e28ff0e6b4596590f85c7aabb | [
"MIT"
] | permissive | snafis/Kaggle | 60443822c516c52a7a88ca46b44ed194bfd31d62 | c617c7fa47aa9cbf7a236559b53ba190622a4e5f | refs/heads/master | 2022-09-06T09:57:25.760379 | 2020-05-25T04:34:10 | 2020-05-25T04:34:10 | 195,595,726 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,480 | py | # -*- coding: UTF-8 -*-
"""
Kaggle Challenge:
"http://www.kaggle.com/c/acquire-valued-shoppers-challenge/"
'Reduce the data and generate features' by Triskelion
After a forum post by BreakfastPirate
Very mediocre and hacky code, single-purpose, but pretty fast
Some refactoring by Zygmunt Zając <zygmunt@fastml.com>
... | [
"shifath.nafis@gmail.com"
] | shifath.nafis@gmail.com |
b0d9fef2ad69d5bfe724b957d8aff99d7220846f | 80abb2b35886bcc4ea305ef7a91b7a8a4541b81c | /q2_phylofactor/_phylofactor.py | 487b75951b2d8e3983e221a8201ff8a0d278eba8 | [] | no_license | johnchase/q2-phylofactor | fcbdedc224356eede5b06378fd894f4a10f766b5 | af9acec44fc56618e985ff679ff006314a6c316d | refs/heads/master | 2020-03-16T23:41:21.564707 | 2018-07-09T23:27:26 | 2018-07-09T23:27:26 | 133,087,391 | 1 | 3 | null | 2018-06-14T21:42:58 | 2018-05-11T20:50:08 | Python | UTF-8 | Python | false | false | 4,954 | py | import os
import subprocess
import tempfile
import biom
import skbio
import pandas as pd
import qiime2
from q2_types.tree import NewickFormat
from qiime2 import Metadata
def run_commands(cmds, verbose=True):
if verbose:
print("Running external command line application(s). This may print "
"... | [
"chasejohnh@gmail.com"
] | chasejohnh@gmail.com |
b40cd4001119de85952c78f3996d2b98f1343b32 | 9c225ac6c033deecb01c95e47fcd5ee3737a0e44 | /rango/models.py | a7e0fbf7f643f7fdfd7cbb039d23c9a99a2a0090 | [] | no_license | shanQshuiY/rango | a70784cf959482e2e72ccdf56895128cf1633b41 | a0681e75bcbfc77e5b10434c1acc58dd8cb428fc | refs/heads/master | 2021-07-01T16:56:41.747044 | 2017-09-22T10:48:21 | 2017-09-22T10:48:21 | 103,117,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
from django.template.defaultfilters import slugify
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
views = model... | [
"yangzhihuilzy@sina.com"
] | yangzhihuilzy@sina.com |
d4d14e7908dbf00e1dc37aa7dda53942b6749f3f | 7020c615dbc3391c43869e6b8f58a30860f1206b | /app/views.py | 86821cddd3e2ccaf5238ab27d20e143402eccaec | [] | no_license | jerrylizilong/autotest_platform | ae6358c95b14dd09757ee9c7fd5d3aa5c677689b | 6c43ee096396a6568d3e1dd2844a26f74e73611e | refs/heads/master | 2023-08-17T23:20:33.895934 | 2023-08-05T14:04:18 | 2023-08-05T14:04:18 | 142,558,059 | 649 | 268 | null | 2023-08-05T14:04:20 | 2018-07-27T09:36:53 | JavaScript | UTF-8 | Python | false | false | 883 | py | from flask import render_template, session
from app.view import user
from app import app
@app.route('/')
@app.route('/index')
@user.authorize
def index():
list = session.get('user', None)
username = list[0]["username"]
return render_template("util/index.html", message='Hello, %s' % username)
@app.route('/... | [
"lizion138@163.com"
] | lizion138@163.com |
bdfd83783996168ac1c732dceec9cb1333f00075 | 9e8ebc9d4b27d550a23a8c94d80bfdfcd429548f | /withPool.py | 637d7398c64a8d7ba800b33bcf4974defeefb350 | [] | no_license | MDProject/ConvNN | d51196807069273a530633516c555fec5b657df7 | a108f0b5c649f2c1d597e1cea91600f75a4b27ba | refs/heads/master | 2020-05-24T11:29:18.976381 | 2019-05-31T08:03:07 | 2019-05-31T08:03:07 | 187,249,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,024 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torch.nn.functional as F
import torch.optim as optim
import os.path as IO
import numpy as np
conv1 = []
conv2 = []
conv3 = []
FC = []
class Net(nn.... | [
"noreply@github.com"
] | MDProject.noreply@github.com |
47e8742a744f9ec9021e601b6a15d12833728306 | 9b0b204c3093a0d545fed6e0119f550a2f39f862 | /src/grammar_tester/lgmisc.py | ef5eee449822455d58ad8cc76b81467b2fa7ca17 | [
"MIT"
] | permissive | akolonin/language-learning | 581909ff84014949d33225e40bbb90e40a7dccc7 | 022c34a3066aa97ea0d007419e026247a4f78dd5 | refs/heads/master | 2020-03-22T09:55:51.442357 | 2018-12-24T14:50:13 | 2018-12-24T14:50:13 | 139,869,814 | 0 | 0 | MIT | 2018-12-24T14:43:24 | 2018-07-05T15:39:42 | Jupyter Notebook | UTF-8 | Python | false | false | 7,675 | py | import re
import os
import shutil
import logging
from .optconst import *
__all__ = ['get_output_suffix', 'print_output', 'LGParseError', 'LG_DICT_PATH', 'create_grammar_dir', 'get_dir_name',
'ParserError']
LG_DICT_PATH = "/usr/local/share/link-grammar"
LINK_1ST_TOKEN_INDEX = 0
LINK_2ND_TOKEN_INDEX = 1
... | [
"alex-gl@mail.ru"
] | alex-gl@mail.ru |
6c25422c8ff41dbdd27f33cd691c33afb6f7064f | 17e9b949c0ee60a24673583ad1f7296e00512ab1 | /backend/isic/isic_crawler.py | f3570005f65cfcf529446b2e3e6ab0869fe854b3 | [
"MIT"
] | permissive | Huy-Ngo/skin-crawler | 5a47aa1fdfffae71ee0bcfb158a709e5ae6aab00 | fada2c8608dd01c06d7987a409854ca86dee2ea1 | refs/heads/main | 2023-01-30T03:47:08.428625 | 2020-12-02T07:00:47 | 2020-12-02T07:00:47 | 311,970,798 | 4 | 3 | MIT | 2020-12-02T07:00:49 | 2020-11-11T12:55:37 | Python | UTF-8 | Python | false | false | 4,051 | py | import requests
import os
from io import BytesIO
from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
"""A module to fetch data from International Skin Imaging Collaboration API
For further information about the API: https://isic-archive.com/api/v1/
"""
def ISIC_request(response, num=100):
""... | [
"noreply@github.com"
] | Huy-Ngo.noreply@github.com |
220fab6089513f0840fae4e66571819307003fef | 6b8703c5e7a8a2b0a0308bc2399695695bf89a0a | /mysite/urls.py | 8a2b3675dab4177ab42c102be20eb01efba834a0 | [] | no_license | IreneGaoc/CMPUT404LAB6 | 2078fb1d2e5623ec0584deaf41aa6117dd8c43d0 | a48a975059e716c4f7d1cc409f4990f33eacd4bb | refs/heads/master | 2020-04-23T00:26:23.045490 | 2019-02-15T01:10:01 | 2019-02-15T01:10:01 | 170,779,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.contrib import admin
from django.urls import include path
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),
]
| [
"zgao1@ualberta.ca"
] | zgao1@ualberta.ca |
6bef0061951f422698c3e7c02ff2d483b56ab394 | 599caedb27dbd4573a8f717f23cd652b30aa6574 | /main.py | d6abf6b38e71c9357c910ead0a50d31de0f6a736 | [] | no_license | Kaedenn/Kaye | d3b752409fccad96fd8c45ed105a4692d2d81a66 | d57a195088b2108be24c7a97cab9dc9b7c5d87b9 | refs/heads/master | 2020-05-18T05:12:31.502003 | 2016-02-14T01:04:38 | 2016-02-14T01:04:38 | 31,037,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/usr/bin/env python
"""
Kaye--a remake of Neru Kye, which is a remake of Kye.
"""
import sys
import source
if __name__ == "__main__":
game = source.kaye.Kaye()
game.main()
| [
"kaedenn@gmail.com"
] | kaedenn@gmail.com |
7a4ea8fb4fbee69b0722d5a4867d805e6c6c95da | 3d65a2d72e65083c752281368cf040ae977e4757 | /plot_scripts/plot_spagetti.py | b30fed38d6694fb61a31c8c4cb7aff780abb1d61 | [] | no_license | florisvb/OdorAnalysis | 6b4b2c32979b9139856aee20cc63c34cfe63819e | 18beae8d3c6be271f171b1c36c9fd932a8a404ba | refs/heads/master | 2020-06-03T14:48:34.962795 | 2012-10-23T22:28:21 | 2012-10-23T22:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,207 | py | #!/usr/bin/env python
import sys, os
from optparse import OptionParser
sys.path.append('../')
sys.path.append('../analysis_modules')
import flydra_analysis_tools as fat
import fly_plot_lib
fly_plot_lib.set_params.pdf()
import fly_plot_lib.plot as fpl
fad = fat.flydra_analysis_dataset
dac = fat.dataset_analysis_core
fap... | [
"florisvb@gmail.com"
] | florisvb@gmail.com |
46d902ffa02a481fd53104565242dfa4f6b75921 | 255604fa876c9a54dfaef9057b9373c70e0a4cbb | /NewsPaper/NewsPaper/settings.py | 8a37750dc8511cff1c61ac8662faaa935c1be059 | [] | no_license | Ritter00/NP_D4.4 | 39fba8c2ebd6cfd8d6ca1fda61be8836bfef5ff4 | 5c8118dc4c3ffc25095a45d3d3990ba7397f4184 | refs/heads/main | 2023-08-16T01:50:12.642934 | 2021-09-23T09:10:56 | 2021-09-23T09:10:56 | 405,026,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | """
Django settings for NewsPaper project.
Generated by 'django-admin startproject' using Django 3.2.6.
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... | [
"olzim@tut.by"
] | olzim@tut.by |
a195765ba259353475c5b8845033de67c2618de3 | 61f39d1febf9077e77250f4f1576b04d903ab2f0 | /argument by value.py | 0b8463ca16ff935d6a9ecdcd0e21603d69872767 | [] | no_license | malli1996/interview | f387c14449e03ae5af8628288add47849ec4e762 | ee2be057c778817a42d5d5d8167e676705448142 | refs/heads/master | 2020-07-03T01:49:29.088570 | 2019-08-16T01:10:50 | 2019-08-16T01:10:50 | 201,747,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | '''def foo(l):
l = [4,5,6]
return l
mylist = [1,200,3]
foo(mylist)'''
def foo(ii):
ii = 5
i = 6
foo(i)
| [
"noreply@github.com"
] | malli1996.noreply@github.com |
789fc68e0ed940ae1793520de0f87348d70c0aad | a4b15a63e222581d024a84f02588ffa498b34f60 | /pandoratradingsolution/predictions/admin.py | de425e540888a506997cc524fae7bcb531a4a526 | [] | no_license | inikishin/PandoraTradingSolutions | 286e95d4b84c2de80195e6fe4b98fddb94429a53 | 9551014188a40876dee8ca176b8ec0430958e5af | refs/heads/master | 2023-05-04T23:48:55.510647 | 2021-05-24T12:08:54 | 2021-05-24T12:08:54 | 265,003,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from django.contrib import admin
from .models import PredictionHorizon, Prediction
admin.site.register(PredictionHorizon)
class PredictionAdmin(admin.ModelAdmin):
list_display = ['ticker', 'horizon', 'created', 'currentprice', 'predictprice', 'prctChange', 'probability']
list_filter = ['created', 'ticker', 'h... | [
"inikishin@gmail.com"
] | inikishin@gmail.com |
2bd62843ae04e565226e5515c198315358a1d2ac | c5073f127ba5f5e6d6ea90b288b1d4902b00db77 | /experiment-files/cgi/submit.cgi | 15b45c6623734c5e771c854c14c878d30a2c9b2c | [] | no_license | halpinsa/2018MScDiss | 2e65d545a28a65095f80b834cc8d991b3de8758c | 9ce9839d57023d39bb01c93da24e181cf5717a5b | refs/heads/master | 2020-03-26T18:49:16.866918 | 2018-08-18T17:48:16 | 2018-08-18T17:48:16 | 145,232,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | cgi | #!/usr/bin/python
import cgi
import cgitb
import sys
cgitb.enable()
import os
import psycopg2
import json
print "Content-Type: application/json"
print
f = open('req.txt' , 'r')
for line in f:
p = line.strip()
f.close();
#Define our connection string
conn_string = "host='pgteach' dbname='online_questions' user='s1... | [
"halpinsa@tcd.ie"
] | halpinsa@tcd.ie |
4db586bf6bffedab7a1c883b8f6c0e720434fe87 | 10d87423fe57af7258d7c327db06034a80700571 | /gym_minigrid/envs/fourroom.py | ed6047002a07f36ceead3de4c7fbb76645a275c5 | [
"BSD-3-Clause"
] | permissive | johannah/gym-minigrid | dee47bc1cd5587d069f2094173053ee3f1e42f5e | 127eef302c4e52f0b976c10304a2b33390fbca78 | refs/heads/master | 2021-08-30T10:27:25.191472 | 2017-12-17T14:08:59 | 2017-12-17T14:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from gym_minigrid.minigrid import *
from gym_minigrid.register import register
| [
"maximechevalierb@gmail.com"
] | maximechevalierb@gmail.com |
7e7d1b9026dfc15931ee9281fa1c3cbbd6ee0303 | c818eafff8fb9cfb052e9c016aa7de67de246f21 | /sales/migrations/0027_remove_return_receipt.py | b27fbc4fb3e044ba81c8479d9cf55a5e81ca6c45 | [] | no_license | mugagambi/mgh-server | a4275b07243f476db9d63e568c8b9331190b75f0 | da966882bd695df606622ab816cd93fab1d53773 | refs/heads/master | 2021-10-22T05:52:15.354561 | 2019-03-08T11:50:19 | 2019-03-08T11:50:19 | 120,087,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Generated by Django 2.0.3 on 2018-04-17 15:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('sales', '0026_return_approved_by'),
]
operations = [
migrations.RemoveField(
model_name='return',
name='receipt',
),... | [
"mugagambi@gmail.com"
] | mugagambi@gmail.com |
60479426cc9150e33b3165fffc354d6ed03f1068 | 3493b395b7d8aba7a42401eb5a997967ab07352f | /models/image.py | aef03ebb693bc35a19f12da78775ee9e43d2a2b1 | [] | no_license | hachibeeDI/Giza | 334af48372defd66b6ab872bb2b753f32d69c8f4 | 12552ce5863f66d418c8c57d4c387e9ea6494999 | refs/heads/master | 2021-01-10T20:21:22.825538 | 2014-02-21T01:17:31 | 2014-02-21T01:17:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # -*- coding: utf-8 -*-
from __future__ import (print_function, division, absolute_import, unicode_literals, )
from os import (path, )
from base64 import b64decode
from flask import (jsonify, )
from .project import Projects
_ALLOWED_EXTENSIONS = {'PNG', 'png', 'JPG', 'jpg', 'jpeg', 'gif'}
def make_image(entry_i... | [
"daiki.ogura@soliton.co.jp"
] | daiki.ogura@soliton.co.jp |
0d5db6af7c7852a4890054a62024e6713e579c74 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TriggerCommon/TriggerMenu/python/l1menu/Menu_Physics_HI_v5.py | 15f0ee3b1a83a6c0196d246fe4a72355984a0428 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,900 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
def print_available():
from TriggerMenu.l1.Lvl1Flags import Lvl1Flags
defineMenu()
available = []
for i in range(512):
if i==463: continue #reserved for L1_RD2_BGRP14, L1_RD3_BGRP15 now assigned to 510 for partition 3 ATR-1... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
e5f7db27e87fcf2cc39af20e1eb5c98990f5410f | dbd64d5167ac127c3d1c142e49b4b2a4043ecd7b | /confirmation.py | ad7f26bdb603d9d9b098e1ce714562b52c9abb4c | [
"MIT"
] | permissive | minMaximilian/webdev2 | 25e5f0e44ed816bfa2e0dbd9355514f7f811d287 | d8334979398ff8ec47300da9e45b2c0f62f23d55 | refs/heads/master | 2022-10-25T15:24:47.897110 | 2020-06-08T09:10:20 | 2020-06-08T09:10:20 | 270,599,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | #!/usr/bin/python3
import os
import sys
restricted = "restricted"
sys.path.append(os.path.abspath(restricted))
from cgi import FieldStorage
import pymysql as db
import passwords
from html import escape
form_data = FieldStorage()
confirm = form_data.getfirst("confirmUrl")
if not confirm:
confirm = ""
confirm = e... | [
"sebastian.8295.8295@gmail.com"
] | sebastian.8295.8295@gmail.com |
d9ffcbceac38827fdbfd583282e8743c87b35428 | fe7e57c1001f8c95c141fd959fe942b320468a63 | /py_lby/rename/rename-prefixAdd.py | 91f578894fc8ac86f9c29966c497ffafd9e01eda | [] | no_license | libaiyu/PE_mark | 66178449a0fb66459b8f85e0c83e8687c24e4993 | 13fa601116b3b10ca2a55586c1b8d6b3d4c6c0c1 | refs/heads/master | 2020-06-26T13:26:19.543740 | 2017-07-13T07:49:18 | 2017-07-13T07:49:18 | 97,019,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | #! python3
# _*_ coding: utf_8 _*_
import os
import re
dirName = input('please input the directory: ')
fileType = input('input the file type: ')
fReg = re.compile('.' + fileType + '$')
prefix = input('please input the prefix: ')
pre = re.compile('^' + prefix)
files = os.listdir(dirName)
count = 0
finishCount = 0
for... | [
"709097185@qq.com"
] | 709097185@qq.com |
230b09e8b8a16de4af9b5873a5e364a68838722f | f0ee834c8f60e5c2513ded18a48260299a80ba5d | /datatypes/q12_datatypes.py | 2aebb2d350e1d0502bc7e189f1ad041e4e2b09e4 | [] | no_license | shres-ruby/pythonassignment | 7d62bf425e463b5cc464c346b824565de25d3b07 | 189eadb5e5ae991cb3be3fab921c2f189177f059 | refs/heads/master | 2022-11-12T18:06:58.881945 | 2020-06-28T12:36:08 | 2020-06-28T12:36:08 | 275,580,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # 12. Write a Python script that takes input from the user and displays that input back in upper and lower cases.
c = input("Enter a string : ")
up = c.upper()
low = c.lower()
print(f"Upper case : {up}\nLower case : {low}") | [
"shres.ruby@gmail.com"
] | shres.ruby@gmail.com |
d6de6dc5bc55bc7f91d52729d40f91cb11fc47c6 | 184b81559cb5ae10eeebe17c5260ff15cfce08e2 | /projeto_revendas/models.py | 32390579a0e1819ef31df57ea4003f5f9362eb85 | [] | no_license | Brcolt/revenda_carros | ba3f8cb4bd3ece480df2725a550ae2460b7d40c7 | 3e529e1e331eda16cd548b3935e199209b6fa55f | refs/heads/master | 2023-02-09T02:48:34.146971 | 2021-01-03T18:54:39 | 2021-01-03T18:54:39 | 326,478,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from django.db import models
from django.core.validators import MinValueValidator
from django.utils.datetime_safe import datetime
# Create your models here.
class Carro(models.Model):
modelo = models.CharField(max_length=50, null=False)
marca = models.CharField(max_length=50, null=False)
ano = models.Po... | [
"brunocolt.ufrn@gmail.com"
] | brunocolt.ufrn@gmail.com |
5dfe888d6a2fc84bcc3698d8c94a53e631c5dbc6 | 564b3ec642ac471ed02bfee3816892342176cfb4 | /tagger/modules/recurrent.py | a35d7a16805fd97c4f5019a9ad49883f3ee09147 | [] | no_license | maning-xbmu/chinese-self-attention-srl | 7c2edffcb2b24adc806ed91408cce249a16bf078 | 0f58ec4566e3eaab62a779dda3e95a26c813ec3d | refs/heads/master | 2022-07-12T14:27:41.466568 | 2020-05-14T15:01:08 | 2020-05-14T15:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,799 | py | # coding=utf-8
# Copyright 2017-2020 The THUMT Authors
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
import torch.nn as nn
import tagger.utils as utils
from tagger.modules.affine import Affine
from tagger.modules.layer_norm import LayerNorm
... | [
"976611019@qq.com"
] | 976611019@qq.com |
78598224140536167f75d8b24ba0b0e9f07edb6f | bcf07603c2e75a47b20d5e40972bb8f37ffb74bd | /facebook-echobot/lib/python3.6/_bootlocale.py | b5a60607fb67adeeab4707fa21ef4ba575afead0 | [] | no_license | abhishekSinghG/Messenger-Bot | f41340028d57487ef376042c93d52b52e7fd0362 | 5a5212c218d155f02edd06fd5dae1eda3aabfcac | refs/heads/master | 2022-05-01T17:31:01.452311 | 2019-10-25T05:07:07 | 2019-10-25T05:07:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | /Users/abhisheksingh/anaconda3/lib/python3.6/_bootlocale.py | [
"abhisheksingh@Abhisheks-MacBook-Pro-2.local"
] | abhisheksingh@Abhisheks-MacBook-Pro-2.local |
7c30ca77ff7ab8d16b8eccdf763b818abbd72e45 | ac810c7e637afd67cf19704a1a724eaac56fed93 | /Hackerrank_python/4.sets/30.Symmetric Difference.py | 880ecccb9397cfde54a05b96340d08a4c960acc0 | [
"MIT"
] | permissive | Kushal997-das/Hackerrank | 57e8e422d2b47d1f2f144f303a04f32ca9f6f01c | 1256268bdc818d91931605f12ea2d81a07ac263a | refs/heads/master | 2021-10-28T06:27:58.153073 | 2021-10-18T04:11:18 | 2021-10-18T04:11:18 | 298,875,299 | 41 | 8 | MIT | 2021-03-01T04:40:57 | 2020-09-26T18:26:19 | Python | UTF-8 | Python | false | false | 194 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
M=input()
x=set(map(int,input().split()))
N=input()
y=set(map(int,input().split()))
f=x^y
for i in sorted(f):
print (i)
| [
"noreply@github.com"
] | Kushal997-das.noreply@github.com |
82f7ae8a799b1f6418b9cc3009b6543768380a9c | 0e0e984ef9f8c4815e613715fe6657f60bcfd61b | /emp/models.py | af3b9dee4c4d79d436823a099aebe90797d9898a | [] | no_license | peyo-karpuzov/cv-project | 0c8cb982d81f83c75c7f249de1101246832a0876 | 7d082f8acd8035d5389077474406025f003f876a | refs/heads/master | 2020-05-26T13:01:16.395139 | 2019-05-26T09:03:45 | 2019-05-26T09:03:45 | 188,240,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from django.db import models
from django.contrib.auth.models import User
class JobOffer(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
company_name = models.CharField(max_length=30)
position = models.CharField(max_length=50)
starting_salary = models.PositiveIntegerField()
... | [
"peyo.karpuzov@gmail.com"
] | peyo.karpuzov@gmail.com |
546f4b0a7b9e573b93414313b979be1eeb48b1b5 | b43c6c03eea348d68d6582c3594760bbe0ecaa08 | /gitlab/tests/conftest.py | 929f128062588569e26097e5ee90aebcc993b89f | [
"MIT"
] | permissive | imsardine/learning | 1b41a13a4c71c8d9cdd8bd4ba264a3407f8e05f5 | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | refs/heads/master | 2022-12-22T18:23:24.764273 | 2020-02-21T01:35:40 | 2020-02-21T01:35:40 | 24,145,674 | 0 | 0 | MIT | 2022-12-14T20:43:28 | 2014-09-17T13:24:37 | Python | UTF-8 | Python | false | false | 2,278 | py | import os
from os import path
from subprocess import Popen, PIPE
import pytest
class DataFileHelper(object):
def __init__(self, base_dir):
self._base_dir = base_dir
def abspath(self, fn):
return path.join(self._base_dir, fn)
def relpath(self, fn):
return path.relpath(self.abspath... | [
"imsardine@gmail.com"
] | imsardine@gmail.com |
e4b9f8ab5bb19544e331e60d7ba9441168e86c0f | 3c9727c4b5a89684b861fa90424e43c5a914ea45 | /Production/test/get_py.py | 5234fbfb2b6066772be282bce7ee1e8393f89862 | [] | no_license | vhegde91/TreeMaker | f51b453243081ccef0cfa721468ed7f7f9ca51f2 | e9dc3e3de793250980b29bebfef9b07c78bc97f7 | refs/heads/Run2 | 2021-08-11T03:45:45.430562 | 2018-04-11T14:30:28 | 2018-04-11T14:30:28 | 78,883,127 | 0 | 0 | null | 2017-01-13T20:14:01 | 2017-01-13T20:14:01 | null | UTF-8 | Python | false | false | 6,669 | py | import re,sys,getopt,urllib2,json
from dbs.apis.dbsClient import DbsApi
from optparse import OptionParser
# Read parameters
parser = OptionParser()
parser.add_option("-d", "--dict", dest="dict", default="", help="check for samples listed in this dict (default = %default)")
parser.add_option("-p", "--py", dest="... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
d6b1c2132c968c9c9d620843cf716f7edc2ef978 | 2f26cb652666310b94b3c0d0bd2e66200ce24db1 | /cinemaredux.py | 6d2e1124614596a8d49c9a652b2ed17e3aa4c873 | [] | no_license | digitaldickinson/PythonVideoprocessing | 1a0e29f90477d5bdf7dee6ffc5396c624550be96 | 630c8bf29ac69f9f413f76f97056f92b3331e81f | refs/heads/master | 2022-05-27T21:24:16.087312 | 2018-04-16T11:35:23 | 2018-04-16T11:35:23 | 129,378,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,895 | py | """
A SCRIPT TO CREATE CINEMA REDUX STYLE IMAGE FROM A VIDEO FILE
Inspired by Brendan Dawes cinenmaredux work - http://www.brendandawes.com/projects/cinemaredux
"""
#import some libs to work with
import cv2 #The openCV lib to do video processing
import numpy as np #use this for arrays
import os, os.path #using this to... | [
"judgemonkey@mac.com"
] | judgemonkey@mac.com |
6fe28c1650cd7e713a29cacf981272ea53492be1 | 98c76cb102adbbd3d91ba456e0e29424a143a96b | /Pi/teststuff/twitterNameGetter.py | 2171eeac9535742ff69720d6222013849bfcf12e | [
"MIT"
] | permissive | juggler2000/Mimic | b7ca7ba8d40133cdae7cb2ecda1c56031bf7ccf3 | 190e35380ec5dd0bd823a6fe4500f4d97c343675 | refs/heads/master | 2021-05-14T03:47:26.950159 | 2017-11-29T22:22:34 | 2017-11-29T22:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python
# encoding: utf-8
import json
import re
import tweepy #https://github.com/tweepy/tweepy
#Twitter API credentials
consumer_key = "qsaZuBudT7HRaXf4JU0x0KtML"
consumer_secret = "C6hpOGEtzTc9xoCeABgEnWxwWXjp3qOIpxrNiYerCoSGXZRqEd"
access_key = "896619221475614720-MBUhORGyemI4ueSPdW8cAHJIaNzgdr9"
acce... | [
"samrtreadgold@gmail.com"
] | samrtreadgold@gmail.com |
9ba94fdaa0336d97658bb817cac17daeacb40efa | 11841e8fb1e44c69ae7e50c0b85b324c4d90abda | /zipfile1.py | 57928210c0c0f271bff15ecb5d69c931b5a2dca3 | [] | no_license | chenlong2019/python | 1d7bf6fb60229221c79538234ad2f1a91bb03c50 | fc9e239754c5715a67cb6d743109800b64d74dc8 | refs/heads/master | 2020-12-08T11:11:49.951752 | 2020-01-10T04:58:29 | 2020-01-10T04:59:50 | 232,968,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import os, zipfile
#打包目录为zip文件(未压缩)
def make_zip(source_dir, output_filename):
zipf = zipfile.ZipFile(output_filename, 'w')
for parent, dirnames, filenames in os.walk(source_dir):
for filename in filenames:
pathfile = os.path.join(parent, filename)
zipf.write(pathfile, filename)
... | [
"1174650816@qq.com"
] | 1174650816@qq.com |
21ab63765addf9a377cd36f8efccad65c9aa8bba | 5cf1a6c9c5f1cb6235c8e67433d63ec7f62a0292 | /logpuzzle/logpuzzle.py~ | 35e95e9f4c9635c1504e591aa2462790c9426df6 | [
"Apache-2.0"
] | permissive | sparshpriyadarshi/google-python-exercises | 3c5664c99ebb396b391a06e3ded9f9824106205d | c31c3523afcd083ded79dd87d216760c34538a84 | refs/heads/master | 2021-11-11T09:09:32.830455 | 2017-12-05T21:51:03 | 2017-12-05T21:51:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | #!/usr/bin/python
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
import os
import re
import sys
import urllib
"""Logpuzzle exercise
Given an apache logfile, ... | [
"sparsh11194@gmail.com"
] | sparsh11194@gmail.com | |
fcb806b070156928c2b03ad6d408e9055efc9a9a | 3cde5a749af89c9dc4d2aca3fb9bf7c56d9a4a7f | /website.py | 43a44ed6750624703414cd6a969170689fe73bba | [] | no_license | akrherz/kimthub | b211974c071f6ed5f2caa7349ba8ff8e2ec2f87b | 028894591841e83ddc35d2157fe4044049d20db8 | refs/heads/master | 2020-12-29T00:25:50.689178 | 2019-04-01T15:46:14 | 2019-04-01T15:46:14 | 16,999,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # website tool to configure this application
from twisted.web import resource, server
class HomePage(resource.Resource):
def __init__(self, r):
resource.Resource.__init__(self)
self.r = r
def render(self, request):
s = self.r.dumpObs()
request.setHeader('Content-Length', le... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
20eabdb496e5e0bb99f97dfe377c3c4da5527f60 | fb1d80581c4ef8c981c5abd20eda3ea989e48472 | /medicine/migrations/0013_auto_20191210_0138.py | f6262a49494adc44a4d02697d40b85e9c2e1d58b | [] | no_license | harrycode007/Online-Pharma | 49988336f8c82c9d6f913e21f5570f8f7b7c6f6d | 5f10489d08c55e9a0c3b7389ee7ad5cde7b66ea8 | refs/heads/master | 2022-07-10T12:05:46.777883 | 2020-05-20T07:09:14 | 2020-05-20T07:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | # Generated by Django 2.2.1 on 2019-12-09 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('medicine', '0012_auto_20191210_0134'),
]
operations = [
migrations.AlterField(
model_name='medicineordered',
name='A... | [
"1999hari@gmail.com"
] | 1999hari@gmail.com |
ece9158673edc340e1fa78bffe1386a47cf2f0d2 | 4e9577550faf6e2c43fc3b04913e2dc66bbc1659 | /RegExPuller/regex/string_process.py | dad516ba5e20199a5a86fed05569d2626801f268 | [] | no_license | wfearn/reg-con-proc | 300c9b3e383442d59fddcd025ee41c516ec20c98 | 4b657bd599d114063ca6552deb78f833c950fcc3 | refs/heads/master | 2020-04-12T08:03:46.601542 | 2016-10-05T23:07:08 | 2016-10-05T23:07:08 | 61,832,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | #!/usr/bin/env python
import re
class StringProcess:
def __init__(self):
#Finds all strings that begin with a section number, beginning with
#Section, or simply a number.
self.section_match = re.compile(r'((?:\A\Section\s\d+\.[\d]+)|(?:\A[\d]+\.[\d]+\s))',
flags=re.IGNOREC... | [
"wilson.fearn@gmail.com"
] | wilson.fearn@gmail.com |
faa04cf9b649637aa3a8ae10ba45572c0cbe8c45 | acd6f7ceb59b66b686e427b6cfb39d6e9d1bee32 | /ratuil/widgets/listing.py | af6dc919a6470151399370b482c0ff68e7d30ca4 | [
"MIT"
] | permissive | jmdejong/ratuil | c564b20a38eb680c7b096075ae00fc1c46b45043 | 41143d0c69c71b52170217e4952c44fac940da98 | refs/heads/master | 2021-06-26T21:46:48.800827 | 2021-01-23T13:01:07 | 2021-01-23T13:01:07 | 206,735,153 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py |
from . import Widget
from ..strwidth import strwidth, crop
class Listing(Widget):
def __init__(self, selected=0, selector_char="*", items=None):
if items is not None:
self.items = list(items)#[line.strip() for line in etree.text.splitlines() if line.strip()]
else:
self.items = []
self.selector = select... | [
"troido@protonmail.com"
] | troido@protonmail.com |
9dd3c227c916b4fae2af88a5f15365217a4ad4d1 | 373cb4ff0f0af7fdb5be1aae67fdea8cedc86579 | /positional-args/calc.py | 40d7a5f9095453e1e143a0c864b3b5ec70977b58 | [] | no_license | jasonwcc/learntopython | c4205081400670e598f51f812e1834be071125cb | 7749637be9706b223320e7a807b7ff98c3199eb0 | refs/heads/main | 2023-08-16T21:23:11.222929 | 2021-09-01T09:56:53 | 2021-09-01T09:56:53 | 372,115,653 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | import argparse
parser = argparse.ArgumentParser(description='Calculation')
parser.add_argument('num1', type=int, help='First number to my calculation')
parser.add_argument('num2', type=int, help='Second number to my calculation')
args = parser.parse_args()
num1 = args.num1
num2 = args.num2
| [
"jasonwcc@yahoo.com"
] | jasonwcc@yahoo.com |
46a751943f89d543f81dd8c19df208e00b649bdd | e86c0e71d4a1e5c659026b3f6845dda7c703e420 | /Data Structures/Linked Lists/doubly_linked_list.py | cbcec5c2cc22afb19cc0cc6346a40d9c350786eb | [] | no_license | YashKarnik/Python-Data-Structures-and-Algorithms | 31fd484fcb73a5305275ec2452ba5403565014c3 | 09070581219a5ca9861b145d63285a42f5804b37 | refs/heads/Main | 2023-06-02T12:46:45.234062 | 2021-06-20T20:52:52 | 2021-06-20T20:52:52 | 340,924,382 | 0 | 0 | null | 2021-02-25T19:54:44 | 2021-02-21T14:43:44 | Python | UTF-8 | Python | false | false | 1,499 | py | class Node:
def __init__(self, data=None):
self.data = data
self.next = None
self.prev = None
class DLL:
def __init__(self):
self.head = Node()
def append(self, x):
new_node = Node(x)
if(self.head.data == None):
self.head = new_nod... | [
"55018090+YashKarnik@users.noreply.github.com"
] | 55018090+YashKarnik@users.noreply.github.com |
f38046e829ead21f90db3089dc7385dc29dd748d | 3c51c6ff82ec3581bf74d6a93e72231e9ef6bef5 | /user/serializers.py | 461247a5fe7db3d2c6764000386cdcfd26178e32 | [] | no_license | gmlwndla97/Asset-Kiwoom | fede62d1c3713d4781e8d65cb267f979c4faee6c | a956fc05ce3374d7c05aab1ec7b0f8e041c90f0e | refs/heads/master | 2023-04-25T23:00:08.724943 | 2021-06-09T09:27:20 | 2021-06-09T09:27:20 | 335,189,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from rest_framework import serializers
from .models import *
class StockSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__' | [
"37864097+gmlwndla97@users.noreply.github.com"
] | 37864097+gmlwndla97@users.noreply.github.com |
070ec4587529830064cb1f09a6002173f4c4b629 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /visitcountermacro/0.10/visitcounter/db/db1.py | 757b0f4fd0f6e872268d96b058d57bd53e82efa7 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | sql = ['''CREATE TABLE visit (
id integer PRIMARY KEY,
page text,
count integer
);''',
'''INSERT INTO system (name, value) VALUES ('visitcounter_version', 1);''']
def do_upgrade(cursor):
for statement in sql:
cursor.execute(statement)
| [
"Blackhex@7322e99d-02ea-0310-aa39-e9a107903beb"
] | Blackhex@7322e99d-02ea-0310-aa39-e9a107903beb |
4db0ac8e630e1411595e405c50925a61a43013a6 | 6d9fd1a912c07125bcc9c0d0b8fda913f142214f | /linear_model_homework_1/program/python/3.19.py | 04e097b88551bbd94014e6ee7e7eeed6d8c16740 | [] | no_license | zakizhou/linear-regression | dad6730cd3f3af7e2329da79740fc26255b70f22 | 70663cbc725d7f8ae83e440b1f4cb80ab3087868 | refs/heads/master | 2020-06-30T20:21:45.519918 | 2016-11-22T15:18:38 | 2016-11-22T15:18:38 | 74,353,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 20 21:07:42 2016
@author: Windows98
"""
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
from sklearn import preprocessing
from sklearn import linear_model
dataframe = np.loadtxt("C:/linear_model/data/3.19.txt").T
dataframe... | [
"windows98@ruc.edu.cn"
] | windows98@ruc.edu.cn |
397b05b89c59aeb232b4e7f383c73cb06250f850 | 0fcb0644430f1a67d972167c9060042156e3889e | /warcreplay.py | fc342f31a562ae975429b73358cac9d80123a626 | [
"MIT",
"ISC"
] | permissive | odie5533/WarcReplay | dc6344d5e01ab72cb8f20127148bf2dd5ea57883 | 82e46b6b86816f72398d5c2eb69668990e62ded4 | refs/heads/master | 2020-06-02T23:41:36.707950 | 2013-11-11T05:50:02 | 2013-11-11T05:50:02 | 14,255,070 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | # Copyright (c) 2013 David Bern
import argparse
from twisted.internet import reactor, protocol
from twisted.web.client import _URI
from hanzo.httptools import RequestMessage, ResponseMessage
from TwistedWebProxyServer import WebProxyServerProtocol
from warcmanager import WarcReplayHandler
def _copy... | [
"odiegit@gmail.com"
] | odiegit@gmail.com |
148d3e817efcd11b28dcc6c13e49112239d6e335 | 39f95a7b4abe665f1b0e3a0f4b356db002ddce2e | /tests/test_exceptions.py | 3f14f4213f02a864daf23f5b39c6897b7609a298 | [
"MIT"
] | permissive | gitter-badger/tapioca-wrapper | d96a538071d44c36f93f0bbd7318510dfc9f7633 | 4e6dbd85da1a218d00f08fee84dfea29a83d61c3 | refs/heads/master | 2021-01-16T18:48:50.848519 | 2015-09-09T15:21:41 | 2015-09-09T15:21:41 | 42,362,017 | 0 | 0 | null | 2015-09-12T15:29:44 | 2015-09-12T15:29:44 | Python | UTF-8 | Python | false | false | 1,889 | py | # coding: utf-8
from __future__ import unicode_literals
import unittest
import responses
import requests
from tapioca.exceptions import (
ClientError, ServerError, ResponseProcessException)
from tests.client import TesterClient, TesterClientAdapter
class TestExceptions(unittest.TestCase):
def setUp(self... | [
"filipeximenes@gmail.com"
] | filipeximenes@gmail.com |
5e51e3c095bef0631ef516c25556452ebefe712a | 40175eaab5a644290979510d92e90fac5d24bf14 | /src/yass/augment/__init__.py | d29cb101c3a3b906fc6824e64e0d2e172e33dfcc | [
"Apache-2.0"
] | permissive | paninski-lab/yass | 7877716500340a81be22217df5c3380b4fcc4f0d | b18d13a69946c1fee28fbc1f67215d3a89d892af | refs/heads/master | 2022-10-08T03:33:23.887282 | 2022-09-29T14:23:22 | 2022-09-29T14:23:22 | 108,300,713 | 68 | 25 | Apache-2.0 | 2021-01-08T19:19:45 | 2017-10-25T17:10:51 | Python | UTF-8 | Python | false | false | 51 | py | from yass.augment.run import run
__all__ = ['run'] | [
"jinhyungp.lee@gmail.com"
] | jinhyungp.lee@gmail.com |
8b89589468f4d10204c42dbb6c396d9dea17db66 | 3bb4f4c802cdbdb16ce869dfcbadcfa6e393dd34 | /src/est_dir/PI_MPI.py | 13b8e40d4c81304b019e9bc466a295b6e6cc6eb2 | [
"MIT"
] | permissive | Megscammell/Estimate-of-direction-in-RSM | b5ed1b4d00ebf08e0f2d127552274d307e24c5af | 3ab2678617203a7046f61b9c38b0f4878ed336fe | refs/heads/main | 2023-04-18T03:04:50.782508 | 2022-04-20T12:31:42 | 2022-04-20T12:31:42 | 339,388,391 | 0 | 0 | MIT | 2022-07-05T17:13:04 | 2021-02-16T12:15:48 | Python | UTF-8 | Python | false | false | 14,956 | py | import numpy as np
import time
import est_dir
def compute_direction_MP(n, m, centre_point, f, func_args, no_vars, region):
"""
Compute estimate of the search direction by applying Moore-Penrose
pseudo inverse.
Parameters
----------
n : integer
Number of observations of ... | [
"scammellm@cardiff.ac.uk"
] | scammellm@cardiff.ac.uk |
1ce8eab6442ed03dd6f60806e1900e36fe0df0d2 | 1670dca534ef4fd7e8d9ca9e6d55b5885e4071f9 | /AlgoExpert/Day2.py | 4117f3dcd99612ad1bd1b4b1307b4ac6c8d06480 | [] | no_license | Tejas1510/Pythonary | 24512a6c5abfee17457397aa37849f3a5a739002 | 55c11f74d9f540bf696acecaa78febecd14d8422 | refs/heads/master | 2022-11-23T23:27:32.219513 | 2020-08-02T17:22:17 | 2020-08-02T17:22:17 | 264,151,076 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | #Modification of last Day Question
#Find a triplet that sum to a given value
#Brute Force approach requires o(n^3)
#We will Solve it with the help of hash map in O(n^2) approach
#This question has been asked in multiple times in most of the FANNG Company interview
def Solution(a,TargetSum):
for i in range(0... | [
"noreply@github.com"
] | Tejas1510.noreply@github.com |
3b748842c44a85b0d6b3d7622a1cd07c132eaff4 | 9116830aa778251bcc5bee416dcebe0f46cdbc9c | /aliyun-python-sdk-release-test/aliyunsdkecs/request/v20140526/DescribeLimitationRequest.py | 13cde07f821f3d9c43ca260b78e3e24d81138b1b | [
"Apache-2.0"
] | permissive | tianxiaasa/aliyun-openapi-python-sdk | 99b94ed4fa9272bc846d5e4e85ab013bbe247b45 | 430c590633c22ea76228d0081e690185c9ad1571 | refs/heads/master | 2021-01-01T06:55:52.762015 | 2017-07-14T10:08:43 | 2017-07-14T10:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"jenkins@e010125002162.bja"
] | jenkins@e010125002162.bja |
a22e80a8d748d74187b75b7ca9f43ed5399f0094 | 420ed6ae166e89a9915e2632af1ac341366feb00 | /dataLoader/__init__.py | 5d564aa3286b97a13f6a2a3d800db1eb269478d5 | [] | no_license | kejingjing/Detector | 0294aa73cb4ce736ea1f5554de2ae66efdd0ce70 | fb57a44b6e22afb0681c21aa4eafc6f597dc3563 | refs/heads/master | 2020-03-21T04:23:25.359928 | 2018-06-20T17:20:04 | 2018-06-20T17:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | # -*- coding: utf-8 -*-
from .VocBboxDataset import VOC_BBOX_LABEL_NAMES
from .dataLoader import getVocDataLoader
| [
"mandeer163@163.com"
] | mandeer163@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.