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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d245c164d82570270462eb60a5a767d451d575f | 2bea6f65b6532589b05e64c4d87875f2521e3d08 | /Solver.py | be5231b21b1545281358020eb98e03d98fb2adbd | [] | no_license | JochemBruijninckx/supply-chain-analytics-2 | 21a64d47cbf4ed9531cb6a7010b45848547f45b0 | e3dd8c0c821f3debccba0afcd4f7e0b1d154f6c7 | refs/heads/master | 2023-08-09T03:34:37.971660 | 2021-03-28T14:00:20 | 2021-03-28T14:00:20 | 339,403,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,747 | py | import math
import copy
import time
from Model import Model
def solve(problem, settings=None, bounds=None):
# Create regular model
model = Model(problem, settings, bounds=bounds)
model.write(problem.instance_name)
model.solve(problem.instance_name)
# Load the solution into our problem object
... | [
"jochembruijninckx@gmail.com"
] | jochembruijninckx@gmail.com |
55b461faccac5bf670cf7329c54c33c214927f2a | fa08e70e023946c1e818017beb46d695e0553c49 | /utils/dataset.py | 7f84b3198c21081c7d19ac3b394abeac7316f4fa | [] | no_license | rhythmcao/slu-dual-learning | f9d5b2403a358aed1d494134252eef764037fe92 | daee32d9cc03610bb2e2ed06e8259d36e923cfcc | refs/heads/master | 2023-04-11T03:57:10.799918 | 2021-04-01T06:27:47 | 2021-04-01T06:27:47 | 352,605,195 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | #coding=utf8
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from utils.constants import DATAPATH
from utils.example import *
import numpy as np
def read_dataset(dataset='atis', choice='train'):
assert choice in ['train', 'valid', 'test']
assert dataset in ['atis', ... | [
"ruishengcao@gmail.com"
] | ruishengcao@gmail.com |
23397448d1fe6599e575a43d4155512a93975142 | d9f6894acb9bc7f86e218fdec9f55d131889f4c3 | /env/bin/gunicorn_paster | d6d38ef658a6cd5087a558e75a0a1ab97881df4e | [] | no_license | Marckhz/easycredit | 9f2fbc678c14a2fb6b2f972a6041b5aa6bf90a3b | bc67ad796ee7d3b5c1a93e0eaa4a907211ad9644 | refs/heads/master | 2020-03-26T20:39:14.767302 | 2018-08-20T00:35:49 | 2018-08-20T00:35:49 | 145,337,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | #!/home/marco/ConCredito/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"marcohdes94i@gmail.com"
] | marcohdes94i@gmail.com | |
6a07e41eadd5843c9f9ea52799678337cdcbf8b2 | 891ee5786d43c148674a1a691b0f8203f8d1b007 | /day02/solution.py | ca9f8b09f3336af1c4de57bf10c6b4f3be7b3273 | [] | no_license | bwdvolde/advent-of-code-2020 | 537d665d7bac766c75978a8faca337f2978fbc0d | afca0cd30d4c289e64d48fdd5263073f47a0b882 | refs/heads/main | 2023-02-07T07:03:22.117138 | 2020-12-25T08:55:25 | 2020-12-25T08:55:25 | 316,995,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import re
from read_file.read_file import read_file
class Entry:
def __init__(self, lower_bound, upper_bound, letter, password):
self.lower_bound = int(lower_bound)
self.upper_bound = int(upper_bound)
self.letter = letter
self.password = password
def is_valid_part_1(entry):
... | [
"devolder.billie96@gmail.com"
] | devolder.billie96@gmail.com |
d0877718d33c3a193b412968aad59094e9d5eef6 | 4e6113103b89e55a0b44e8a6a7a638d80a75c8cf | /build/lib/riot_api/api/post/tournament_v4.py | 53af310cde18320b7721a8d2763fe2c6d696ed07 | [
"MIT"
] | permissive | Alex-Weatherhead/riot_api | 236eca3586ab4f3ca74cb61f46a6e9b5207c0dd6 | 2d589f57cd46e0f7c54de29245078c730acd710f | refs/heads/master | 2020-05-01T17:08:34.087151 | 2019-04-03T01:53:22 | 2019-04-03T01:53:22 | 177,592,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,987 | py | from . import endpoints
from ...api import _request_executor
def codes (service_platform,
api_key,
tournament_id,
spectator_type,
team_size,
pick_type,
map_type,
allowed_summoner_ids=None,
count=None,
metadata=None):
... | [
"22604743+Alex-Weatherhead@users.noreply.github.com"
] | 22604743+Alex-Weatherhead@users.noreply.github.com |
9b9fe3aff8048b6c6c4093f1e775cfafe5aeee20 | b9222036fb8693c1c201e7de134e6ac9fdd78521 | /object_size.py | 2f4d51352b9259d75af5530a91cadc9ed027f2da | [] | no_license | RenYates/TissueScanning | e6d8f5be3705c18cb0fff92195806a0bf3716f7e | eb48577715d5647515b3b9ef201465bf4c8cf110 | refs/heads/master | 2021-06-29T00:45:19.241342 | 2020-11-09T23:03:09 | 2020-11-09T23:03:09 | 187,892,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,281 | py | # import the necessary packages
from scipy.spatial import distance as dist
from imutils import perspective
from imutils import contours
import numpy as np
import imutils
import cv2
def midpoint(ptA, ptB):
return ((ptA[0] + ptB[0]) / 2, (ptA[1] + ptB[1]) / 2)
def object_size(image, cnts, width):
# width of qu... | [
"15ly1@queensu.ca"
] | 15ly1@queensu.ca |
38261d5119fefbf26f954891b562e86666dcca04 | 13c80bc1ca61cb8c6b8cf4e14e736def5a8e9157 | /dawanda-exporter.py | 1178ad2d47b16c1912ae08ad0a460450ba428750 | [
"MIT"
] | permissive | youngage/dawanda-exporter | 6fb5092d707f07b4b9be35c8c40b4c3129c1e317 | e838fbaf7e94d2fe17248ce2b0515cd70ba0f7d6 | refs/heads/master | 2020-03-26T01:47:13.583337 | 2018-08-11T12:37:24 | 2018-08-11T12:37:24 | 144,382,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,777 | py | #!/usr/bin/env python3
import argparse
from getpass import getpass
import json
import logging
import sys
from tempfile import mkstemp
from time import sleep, strftime
import traceback
from zipfile import ZipFile, ZIP_DEFLATED, ZIP_STORED
try:
from bs4 import BeautifulSoup
except ImportError:
print('MISSING Be... | [
"helge.jung@youngage.eu"
] | helge.jung@youngage.eu |
31721c0fd2e68f0c38ec1c14db4ce512bc605cdb | 0627c9e2d7dc9ec452134f18be3e2f92b9a1a40e | /zmian_na_04.01.2021/IO_project/IO_project/settings.py | 7de6d7c624542db80195ae59451b9fe6dc97a731 | [] | no_license | IOSebastianiSzymon/IO | 576f0818960393a736984e0014519ea2b796f5a9 | bc707435f6e0244e8f2fdc70ade2e11521abf48b | refs/heads/main | 2023-02-11T20:02:34.500260 | 2021-01-04T13:09:33 | 2021-01-04T13:09:33 | 303,470,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,479 | py | """
Django settings for IO_project 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/
"""
... | [
"noreply@github.com"
] | IOSebastianiSzymon.noreply@github.com |
2bc186d49fd3741a5945895a8313e016d372f690 | d10724d15f2888c5d2de8abb340995aa2a2074b9 | /examples/python/src/07fizzbuzz/main.py | a7bacd972b2efa6b474803bcf2f437439b106265 | [
"MIT"
] | permissive | podhmo/prestring | 5849e7f7de3626e8a1f48740190d98cd55bd3721 | 8a3499377d1b1b2b180809b31bd7536de5c3ec4d | refs/heads/master | 2021-07-16T06:35:10.555681 | 2021-03-28T05:35:37 | 2021-03-28T05:35:37 | 31,548,112 | 10 | 1 | MIT | 2021-03-28T05:27:35 | 2015-03-02T15:53:34 | Python | UTF-8 | Python | false | false | 292 | py | def fizzbuzz(n: int) -> str:
if n % 3 == 0 and n % 5 == 0:
return "fizzbuzz"
elif n % 3 == 0:
return "fizz"
elif n % 5 == 0:
return "buzz"
else:
return str(n)
if __name__ == "__main__":
print(", ".join(fizzbuzz(i) for i in range(1, 21)))
| [
"noreply@github.com"
] | podhmo.noreply@github.com |
694a55ffe10f4262a60d4c2029e30a6b57a22ff9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/499.py | b15fef3836eebfaaa053844940f5b5fa956d25de | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | for _ in xrange(input()):
print "Case #%d:" % (_+1),
n = raw_input()
l = len(n)
nn = map(int, n)
def dfs(c, less, st):
if c == l:
return int(st)
if less:
v = dfs(c+1, 1, st + '9')
else:
v = 0
if c == l-1 or nn[c] <= nn[c+1]:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8d3542cd2af74501b3466b835a0066195a42106b | 8e84abd6d1c943e5a530e2d86fb295f6c84f89b2 | /Q1_&_Statistical_aproac.py | 766883cb3e68dd78093599ba0053a274a72d6480 | [] | no_license | SusuHao/Text-Mining | f34cb6c5b8f13b7fceb29efac16c0bd152b548f6 | 828a2e198d1dad19e08c1ab463d27b5733e820fe | refs/heads/master | 2021-01-11T20:18:31.464632 | 2017-01-16T05:53:56 | 2017-01-16T05:53:56 | 79,086,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,677 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.manifold import MDS
from sklearn.decomposition import TruncatedSVD
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import Normalizer
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette... | [
"noreply@github.com"
] | SusuHao.noreply@github.com |
dd9b6c4854567505f701afee829db2ed9f4ed619 | a4029532841b6a3b930cfba18c9a872db8680f1b | /hello.py | 7b9ee8766288b039d0c9d0d33a0b6f6ef9aebb6e | [] | no_license | leowf/visual_code | b7f870b65406d86be3bf7e51d00f2820b8244ae2 | 995abff96e76672b4260397a897ab7ab2d32928f | refs/heads/master | 2022-12-15T03:32:09.837149 | 2020-09-14T07:33:41 | 2020-09-14T07:33:41 | 295,301,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | print("hello flask!") | [
"leowf01@gmail.com"
] | leowf01@gmail.com |
45b7193b9e36e0ceb7d6cdceeb758a380ea8adb4 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=75/sched.py | 580c5a476d4a3ce082bab13eb8366ff4f2034cf6 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | -X FMLP -Q 0 -L 2 84 250
-X FMLP -Q 0 -L 2 79 400
-X FMLP -Q 0 -L 2 66 300
-X FMLP -Q 1 -L 1 54 250
-X FMLP -Q 1 -L 1 50 250
-X FMLP -Q 1 -L 1 49 400
-X FMLP -Q 2 -L 1 41 300
-X FMLP -Q 2 -L 1 37 125
-X FMLP -Q 3 -L 1 35 250
-X FMLP -Q 3 -L 1 31 300
30 125
28 125
26 300
25 100
21 100
19 12... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
2adfa7d968a07dd30d191878d89081daf3f7949b | c7e028d71b5dd72eb18b72c6733e7e98a969ade6 | /src/demos/datastructures/fifo.py | 74444fc181f799a0428cb21e7b27d0e754254573 | [
"MIT"
] | permissive | antoniosarosi/algoritmia | da075a7ac29cc09cbb31e46b82ae0b0ea8ee992f | 22b7d61e34f54a3dee03bf9e3de7bb4dd7daa31b | refs/heads/master | 2023-01-24T06:09:37.616107 | 2020-11-19T16:34:09 | 2020-11-19T16:34:09 | 314,302,653 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | #coding: latin1
#< full
from algoritmia.datastructures.queues import Fifo
dfltFifo = Fifo([0, 1])
listBasedFifo = Fifo([0, 1], createList=lambda data: list(data))
for i in range(2, 6):
listBasedFifo.push(i)
dfltFifo.push(i)
while len(listBasedFifo) > 0:
print(dfltFifo.pop(), listBasedFifo.pop()... | [
"amarzal@localhost"
] | amarzal@localhost |
604e1cf9670914ce04a204ab023bee3c7df91028 | 55569f12da5bd2cfa3c38829a509a5a66c7ae9c8 | /cws.py | 32cb4b27380c6ad0a0101ca0a7e06116301bd4d9 | [
"MIT"
] | permissive | fhltang/chews | 92da2253a2a4dbab49839ce4314766dc90595164 | 87f774a9ad1e034b4b387c910a0f29f5dad01403 | refs/heads/master | 2022-12-21T03:56:42.799961 | 2022-05-23T23:17:07 | 2022-05-23T23:17:07 | 101,605,982 | 0 | 0 | MIT | 2022-12-09T06:31:42 | 2017-08-28T05:10:42 | Python | UTF-8 | Python | false | false | 9,012 | py | # Code for managing life cycle of Cloud Workstations.
import enum
import hashlib
import time
import libcloud
class Error(Exception):
pass
class StateError(Error):
pass
class Volume(object):
_SALT = 'volume'
def __init__(self, context, cws_name, volume_name):
self._context = context
... | [
"francis.tang@gmail.com"
] | francis.tang@gmail.com |
0f71214394ea80e1e5ca7752eaf879a8f93f5a0c | af36fdba6ef43a9d4d61b201d7181a30b659a2e9 | /pra10/wikipedia_API.py | d7ef2fc974f73dcb03a694f232eeaab9969e0ca7 | [] | no_license | woochul-hyun-uni/programming1_pra | df1de139fefbdcfafad34844a326233ad96d7483 | cfb9d4efc25d07e8db9854f287e34fac07558894 | refs/heads/master | 2023-02-24T00:06:08.731485 | 2017-10-05T15:23:36 | 2017-10-05T15:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import wikipedia
def main():
choice = input("Enter a page title or search phrase: ")
while choice != "":
try:
page = wikipedia.page(choice)
print(page.title)
print(page.summary)
print(page.url)
except wikipedia.exceptions.DisambiguationError as e:... | [
"woochul.hyun@my.jcu.edu.au"
] | woochul.hyun@my.jcu.edu.au |
b64d842a5f0f64d7ae91f197a6e0a98a5a0be31d | f7a474af31989a7492411b9e18ba76d3c1527029 | /Day-18/DjangoForm/views.py | b64cc455fe609dd5123bb340d8d00f2c33eeac6a | [] | no_license | chikkalarameshsaikumar/Django-TOT | 01fa4190ca7d2c23e3e0d74e704037babd5b3217 | fb91bb6b2db306b1379f2c00f8d5d27e9b5821f2 | refs/heads/main | 2023-02-05T00:13:03.310573 | 2020-12-25T11:10:03 | 2020-12-25T11:10:03 | 339,008,757 | 0 | 1 | null | 2021-02-15T08:18:18 | 2021-02-15T08:18:18 | null | UTF-8 | Python | false | false | 1,545 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
# Create your views here.
# from DjangoForm.forms import DynamicHtmlFormGen, RegisterForm
from .models import Register
from .forms import Reg
def registerForm(request):
if request.method=='POST':
#data = request.POST
#print(data)
... | [
"rravikumar34@gmail.com"
] | rravikumar34@gmail.com |
72d60e449d5f5339a2cc810ed032d685439af130 | b483c961320d2840497643aac7e4b4eaab70eb7a | /app/bookmark/tests/test_bookmark_details_api.py | 0bc27dd99320a6f80d6d0235a707cd9c3c76358f | [
"MIT"
] | permissive | Shahroz16/bookmark-app-api | 12e359d40c953ec7edd4bbc169e7ac3101a75d13 | 7451ab894a4b6de461b3a62577b914f6f2712542 | refs/heads/master | 2020-04-12T15:18:40.462963 | 2019-03-22T11:00:08 | 2019-03-22T11:00:08 | 162,576,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import BookmarkDetail
from bookmark.serializers import BookmarkDetailSerializer
BOOKMARK_DETAILS_URL = reverse('... | [
"shrozali@gmail.com"
] | shrozali@gmail.com |
45e3d003adda4530fe51d38d0b9dfa66e4d681a6 | df6a182f6be1fd5ad6393cf5200d0d6d26dd992a | /core/views/genres.py | 3cec6457f453710dad1ce81c5e4c6d0f1cdab76e | [] | no_license | LizaMetla/liblessonDjango | 560dcd3d866cfe1003c21df80397dd60aa10b7f8 | 7e4acc082399b25ad8614adf338ed9441571554d | refs/heads/master | 2023-06-20T21:27:54.789874 | 2021-07-03T15:45:12 | 2021-07-03T15:45:12 | 376,153,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.generic import TemplateView
from core.forms import GenreForm
from mixins.auth import AbsLoginMixin
class GenreCreateView(AbsLoginMixin, TemplateView):
template_name = 'core/genre-create.html'
def get_context_data... | [
"liza.metla@gmail.com"
] | liza.metla@gmail.com |
c666864202b8a020bd1fbf62891737b1d82993b4 | f2481cf8e8802219e99b8d7057f93f44c0d0ba2c | /rango/migrations/0005_userprofile.py | 099137a9c807b9fd6ccdc958515c05513ad976ec | [] | no_license | sibsones/tango_with_django_project | 011c7aaf9e7b234dc419eff4563d97feb8222012 | fd2c34edc43f668a9289fd2ac3b572abfb7e3f19 | refs/heads/master | 2020-04-19T04:50:53.985613 | 2019-02-07T16:44:47 | 2019-02-07T16:44:47 | 165,224,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-02-07 10:04
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depend... | [
"2260702s@student.gla.ac.uk"
] | 2260702s@student.gla.ac.uk |
3278c70f6d0adc70a0bdbf0573b625a2f594e0a4 | ababd7fdd615419880f55c2f0938e91c46643923 | /CULTIVO/SUELO.py | eec11ee9b4e12122e4455044ae71930cc8e05632 | [] | no_license | sativa/Tikon | aa7faaf2e377a91b6dafbdf961c1c93d45ddbd04 | 0f7c5821d971bb5ca46f4f398d19c4a7c89badc9 | refs/heads/master | 2021-01-21T18:18:00.912488 | 2016-08-07T02:50:05 | 2016-08-07T02:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from NuevoCoso import Coso
# Esta clase representa los suelos de una parcela.
class Suelo(Coso):
ext = '.suel'
def __init__(símismo, nombre, directorio):
# El diccionario de los datos para cada suelo
dic = dict(Nombre=nombre, Textura_suelo="", Profundidad_suelo=(), Color="", Albedo=(), Lími... | [
"julien.malard@mail.mcgill.ca"
] | julien.malard@mail.mcgill.ca |
b10d5b121f3e73cea133b65794eafed83928cf88 | 2ea49bfaa6bc1b9301b025c5b2ca6fde7e5bb9df | /contributions/Ruud/Python/Data Structures/2016-10-07.py | 6919122f960fe5c13bd2f44b54f466ad6257c302 | [] | no_license | 0x8801/commit | 18f25a9449f162ee92945b42b93700e12fd4fd77 | e7692808585bc7e9726f61f7f6baf43dc83e28ac | refs/heads/master | 2021-10-13T08:04:48.200662 | 2016-12-20T01:59:47 | 2016-12-20T01:59:47 | 76,935,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | Following PEP 8 styling guideline.
Working with `set`s
How to count
A thread-safe `Queue`
Special `queue` methods | [
"ruud@arfie.nl"
] | ruud@arfie.nl |
fc34da7d0a63f931eb43704be15efd3f638678f9 | 650b3dd4cc74f32db78f7d99cef9907aec78a222 | /dialogs/tools/fDepreciation_data.py | 832cfd0bbed68f7aae6e702a9f8b189942aee073 | [] | no_license | mech4/PKTrx | 29b871ab587434e7c208175c248f48d9b6c80a17 | cf01bc5be8837d632974786d2419c58b94a0381d | refs/heads/master | 2020-03-29T19:55:07.331831 | 2012-09-18T20:22:52 | 2012-09-18T20:22:52 | 6,289,691 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import sys
import com.ihsan.foundation.pobjecthelper as phelper
def FormSetDataEx(uideflist,params):
config = uideflist.config
uipData = uideflist.uipData.Dataset.AddRecord()
app = config.AppObject
res = app.rexecscript('accounting','appinterface/AccountingDay.GetLastCloseDate',app.CreateValues())
... | [
"wisnu27@gmail.com"
] | wisnu27@gmail.com |
f537c996a4274187fd0bb92ebd24bd534cedd400 | 0e1b1f5e2893070ebdcb5eb15b07b89b0f31f471 | /submodules/ont_fast5_api/setup.py | 1763434727ef2ef7df46a7d1a9feb850b9fa9999 | [
"MPL-2.0",
"MIT"
] | permissive | sheffield-bioinformatics-core/STRique | 1a4a3e59e0ac66174ed5c9a4498d6d8bed40b54d | fd2df916847727b3484b2bbad839814043d7dbea | refs/heads/master | 2022-12-27T22:28:31.893074 | 2020-09-29T14:31:45 | 2020-09-29T14:31:45 | 296,618,760 | 0 | 0 | MIT | 2020-09-18T12:45:30 | 2020-09-18T12:45:29 | null | UTF-8 | Python | false | false | 2,341 | py | import os
import re
from setuptools import setup, find_packages
__pkg_name__ = 'ont_fast5_api'
def get_version():
init_file = os.path.join(__pkg_name__, '__init__.py')
with open(init_file, 'r') as init_fh:
verstrline = init_fh.read()
vsre = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search... | [
"matthew.parker@sheffield.ac.uk"
] | matthew.parker@sheffield.ac.uk |
bcfed8ec3f9751d32f44af9a5318aa9d368658da | b1a75194b53305243ff87b92f3c19c7ccbfe7fae | /conftest.py | 80decbf07c7cd9a2ca2aa7289eba63a81aed4160 | [] | no_license | SNadezhdaI/stepik-auto-tests-course | a15dc1718df38667dcad30afbcf8405bf8698ac7 | 015cd37c4cf863fcb08187b20bedeb6687efbb3f | refs/heads/main | 2023-09-05T00:21:35.563137 | 2021-10-19T20:15:22 | 2021-10-19T20:15:22 | 412,529,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import pytest
from selenium import webdriver
def pytest_addoption(parser):
parser.addoption('--browser_name', action='store', default="chrome",
help="Choose browser: chrome or firefox")
@pytest.fixture(scope="function")
def browser(request):
browser_name = request.config.getoption("browser_na... | [
"79163793388@yandex.ru"
] | 79163793388@yandex.ru |
e7591c29d28eb94dede0687778c05ae5ebba9be1 | b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6 | /verp/hr/doctype/department/department.py | 78df3a770042e793040a9911f00f7b77bfe97d92 | [] | no_license | vsadminpk18/verpfinalversion | 7148a64fe6134e2a6371470aceb1b57cc4b5a559 | 93d164b370ad9ca0dd5cda0053082dc3abbd20da | refs/heads/master | 2023-07-13T04:11:59.211046 | 2021-08-27T06:26:48 | 2021-08-27T06:26:48 | 400,410,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import NestedSet, get_root_of
from verp.utilities.transaction_base import delete_events
from frappe.model.docu... | [
"admin@vespersolutions.tech"
] | admin@vespersolutions.tech |
212ae839fc4995842e57d2a227c3fc5d77dc51fb | 8a58b02b1dfc97bf56a5fd94732316c032e24a70 | /api/tests.py | d76ab163735695925faa78e7a7a3345bf8ab58bb | [] | no_license | momentum-team-2/example--django-recipebook | ab04d4957268ed8251e84d8a09cfc60a138c9d9f | 4a4e17c396fcc9f4c648cea494c4ae6d5dc5e570 | refs/heads/main | 2022-11-28T13:40:13.301591 | 2020-08-05T14:09:55 | 2020-08-05T14:09:55 | 279,464,956 | 0 | 0 | null | 2023-09-04T18:58:14 | 2020-07-14T02:50:58 | Python | UTF-8 | Python | false | false | 762 | py | from django.test import TestCase
from rest_framework.test import APIClient
from users.models import User
from rest_framework.authtoken.models import Token
# Create your tests here.
class RecipesAPITestCase(TestCase):
def test_user_is_added_to_recipe_on_creation(self):
user = User.objects.create(username="t... | [
"clinton@dreisbach.us"
] | clinton@dreisbach.us |
718559c2ac4ab854f51d624b912324dcf7fe2be7 | 20b76d0a9a2d31ec929ffcdb082931201b58361f | /homework/2020-09-20/2020-09-20-杨婷婷.py | 46f6234d029e6c75645919444ff24e57147ec43e | [] | no_license | yangtingting123456/interfaceiframe | 3a6ff3f386cb98dcf7849ea3ab52a8ce93c6d306 | 12fc9ec2366f220a5cb1ce51c3a6a9ad7316316e | refs/heads/master | 2023-01-02T00:13:53.878122 | 2020-10-26T06:08:16 | 2020-10-26T06:08:16 | 306,569,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # 1、charles 的 三种过滤方式操作截图做成文档
#见charles四种过滤数据文档
# 2、charles 抓取 论坛 注册 、发帖数据,截图抓到了请求即可
# 3、requests 编写脚本 实现获取access_token、增加标签接口、实现查询标签接口、实现删除标签接口
# 用的公司项目做的,登录(获取token,密码md5加密)-获取用户列表-用户更新,详情,-退出等;
# 4、requests 模拟 https://www.qq.com的请求,用re模块截取出
# <meta name="description" content="(.+?)" />中的content内容
# import requests... | [
"3048903923@qq.com"
] | 3048903923@qq.com |
63bf7b2d11cc8e21ef72573a2d0886feb4b3e5c1 | 9fef12768592678e9d6a38852558dcfdf40671c0 | /realtors/migrations/0003_auto_20210304_1535.py | 88991c47246cd561f9f346895378a335db46a74a | [] | no_license | mnjayswal84/btre_project | 6366bc600f30ac91110621920cfa377103416dae | 7a416fe80d25c05adcf5f147a30b77a29a1ee00b | refs/heads/master | 2023-03-21T12:45:22.285686 | 2021-03-04T11:13:54 | 2021-03-04T11:13:54 | 333,825,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # Generated by Django 3.1.5 on 2021-03-04 10:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('realtors', '0002_auto_20... | [
"mihir.j@simformsolutions.com"
] | mihir.j@simformsolutions.com |
87963d9f79ea0bacba2f103ea07f3d7b5fa68329 | 811b3ad8cf06ad6c196a3c3d0437027dc12bb65a | /test/first_project/first_app/views.py | 4b4ab683ae5e6d2265ebf4922822bbef7539a310 | [
"MIT"
] | permissive | imsks/Web-Dev-with-Django | b9de3ceb904452e8a63eb3d15943dea9aa4a9cce | dec87795d18c24a5492758202c29a463bbba105a | refs/heads/master | 2020-05-26T01:43:46.164923 | 2019-08-11T04:14:57 | 2019-08-11T04:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from django.shortcuts import render
from first_app.forms import NewUserForm
# Create your views here.
def index(request):
return render(request, 'first_app/index.html')
def users(request):
form = NewUserForm()
if request.method == "POST":
form = NewUserForm(request.POST)
... | [
"sachinkshuklaoo7@gmail.com"
] | sachinkshuklaoo7@gmail.com |
d8782e2c28f1dd51ec2e5bc836156abd30f05050 | d8080248b1cd1419fa92f4d72fbe24b1197f91d1 | /getcode.py | 118bdfb7072df7555e7f0c3cc68eb0ec4dd533d2 | [] | no_license | wblyy/Get_Verification_code | 23fcb981b8fd2058156c6fba7746b2b7935d6258 | c760c2e6a0e7199411c38b5498f045bc0d07ecc5 | refs/heads/master | 2020-05-18T17:20:22.280325 | 2014-12-04T09:33:43 | 2014-12-04T09:33:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | #coding=utf-8
import requests
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
post_verifycode_url = "http://54.223.153.21:9000/"
def post_verifycode(filepath, code=None):
codetype = {
"en": "1004",
"cn": "2004",
}
try:
r = requests.post(post_verifycode_url+"baike_code?ty... | [
"wblyy0911@gmail.com"
] | wblyy0911@gmail.com |
3326bb1fb5cbac4d64d7c676e5314aa82ee4732b | 90596c0ea387748e300aa01753231ab703e9393f | /events/urls.py | c3d0824eb33ddf598f0fb59095d69978df492ef8 | [] | no_license | brunoasilv/StreetEvent | 7931dc537e1bca6d263b2e278bcf112ac9618b8e | e1f1b6f3dcee0a6d14a137d89e6cdcc316d3d56c | refs/heads/master | 2022-11-26T02:28:42.359818 | 2020-07-31T14:48:03 | 2020-07-31T14:48:03 | 284,059,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from django.urls import include, path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('createOccurrence/', views.createOccurrence, name='createOccurrence'),
path('createOccurrence/register', views.registerOccurrence, name='registerOccurrence'),
] | [
"brunos@ua.pt"
] | brunos@ua.pt |
cfd74d1c0517e174874f8f15b351bd7482fe723f | 8c2844290d933a0560ee6b50143b7bb4d0d93f1b | /midgard/parsers/bernese_compar_out.py | 527ada7ff0238e472573f4b1458f6c1db6f0593a | [
"MIT"
] | permissive | kartverket/midgard | 33ec346829b988b364ee43ca8392f3960a6f5b9a | 31939afee943273b23fa0a5ef193cfecfa68d6c0 | refs/heads/master | 2023-07-20T01:32:37.045520 | 2023-06-06T10:25:52 | 2023-06-06T10:25:52 | 131,258,554 | 18 | 10 | MIT | 2023-05-22T10:35:21 | 2018-04-27T07:00:45 | Python | UTF-8 | Python | false | false | 21,943 | py | """A parser for reading coordinate comparison in Bernese OUT format
Example:
--------
from midgard import parsers
p = parsers.parse_file(parser_name='bernese_compar_out', file_path='COMP211670.OUT')
data = p.as_dict()
Description:
------------
Reads coordinate comparison data from files in OUT format
... | [
"michael.daehnn@kartverket.no"
] | michael.daehnn@kartverket.no |
8d6dee6211d3b8e0bd8f42cb2ce3ca58cf345e87 | 54bc239124576563c1f0c72e381fb2a4fcaa6a9e | /Adafruit_AD8495_Guide/AD8495_Temperature.py | 4546df8dcb61aa12248110733193b2823c7e335d | [
"MIT"
] | permissive | jonsampson/Adafruit_Learning_System_Guides | 79359154e26e710b088e0c1cbc9969a26a938a25 | b941d8209cec42e3dce5f5e6b533584e3e99ac73 | refs/heads/master | 2020-07-29T17:43:53.439741 | 2019-10-14T01:53:01 | 2019-10-14T01:53:01 | 209,904,940 | 3 | 1 | MIT | 2019-09-21T01:04:35 | 2019-09-21T01:04:34 | null | UTF-8 | Python | false | false | 283 | py | import time
import analogio
import board
ad8495 = analogio.AnalogIn(board.A1)
def get_voltage(pin):
return (pin.value * 3.3) / 65536
while True:
temperature = (get_voltage(ad8495) - 1.25) / 0.005
print(temperature)
print(get_voltage(ad8495))
time.sleep(0.5)
| [
"kattni@adafruit.com"
] | kattni@adafruit.com |
a9a475960b93e3db4b1ea17a2d7950f0ea9ce5b7 | 388e6813bd12e42ca39c46d7382249bd7d833bca | /base/094/solver.py | 30087abab74ebaf275778b2c8b55624b4d933b66 | [] | no_license | jardellx/arcade | c592693a49986690ee9758d2e6ff1a90f2d3c0fb | e7ae255d2111c8c32486a4271ac0dcec2702522f | refs/heads/master | 2023-08-14T19:46:51.652562 | 2021-10-06T11:54:46 | 2021-10-06T11:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | def eh_vogal(letra):
vogais = "aeiouAEIOU"
if letra in vogais:
return True
return False
texto = input()
saida = ""
for x in texto:
if x == " ":
saida += " "
elif eh_vogal(x):
saida += "v"
else:
saida += "c"
print (saida) | [
"andreinamendes63@alu.ufc.br"
] | andreinamendes63@alu.ufc.br |
6d8e0b06af1fe6c38ccb5fa6ae767ea297b9a966 | 7c5bdcd556a8454481553611a07b7c63e3a3bb1c | /lambda/TopicRuleIotEventsFunction/TopicRuleIotEventsFunction.py | 81ded0d619031f56fbf5544f0792ed028f339047 | [] | no_license | sangeethsajeev/capstone_project | 080aa6aa50741522eba0d6ba0eebda16d92e2ce1 | fe05108ebcae285a4f44f620130dd12c52a3baa0 | refs/heads/master | 2022-12-27T05:24:26.905815 | 2020-10-12T17:09:05 | 2020-10-12T17:09:05 | 294,651,121 | 1 | 0 | null | 2020-10-12T15:03:25 | 2020-09-11T09:25:31 | Python | UTF-8 | Python | false | false | 1,520 | py | import boto3
import cfnresponse
iotClient = boto3.client('iot')
def createTopicRule(ruleName, topicSql, topicDescription, inputName, roleArn):
response = iotClient.create_topic_rule(
ruleName=ruleName,
topicRulePayload={
'sql': topicSql,
'description': topicDescription,
'actions': [
... | [
"asrece.86@gmail.com"
] | asrece.86@gmail.com |
fcd289284e4efed97c2a82f8d042206f5de93157 | 96e53e30bd01d232f09ae030f34257573b32369c | /frames.py | 958503d74e7f7307dea8ecfe1231f43c48c9b3f2 | [] | no_license | Aster-Iris/menatbot | 6b53be673fadad4aacc90c044c34c515120de200 | 7d1b5c1000351d473b8e279a11dc45465bcf5ded | refs/heads/master | 2023-04-13T10:31:25.948331 | 2023-01-20T12:30:44 | 2023-01-20T12:30:44 | 219,141,774 | 0 | 1 | null | 2023-02-16T04:39:03 | 2019-11-02T11:04:32 | Python | UTF-8 | Python | false | false | 15,070 | py | import re
import os
import json
import discord
from fuzzywuzzy import process
from collections import OrderedDict
from itertools import chain
dir_path = os.path.dirname(os.path.realpath(__file__))
class Frames:
def __init__(self):
self.info_regex = r'^-v'
self.regex = r'(^\S*)\s*(vt1|vt2)?\s+(.+)'... | [
"nerekmichal@gmail.com"
] | nerekmichal@gmail.com |
18b214c4cf04361391d182819b1fe59372391e3d | 7e133f923cfce156a523d868eefcc6ca2a1fa4ab | /1 Sem/Python/Британские учёные.py | 7fd3b10fe573f3bcb9e7193caf51276e6d59acca | [] | no_license | krimmkr/MIPT-Programming | 78fb9853dbfab2ed6aef423e0bb4fb2d4c9e2500 | b2f6d37a031f0d47980870f52e7dff592cf15ae2 | refs/heads/master | 2020-03-18T15:07:19.177035 | 2018-05-28T19:36:17 | 2018-05-28T19:36:17 | 134,888,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from random import shuffle
text = input().split(' ')
for i in text:
temp = list(i)
shuffle(temp[1:-1])
print(text, sep=' ') | [
"noreply@github.com"
] | krimmkr.noreply@github.com |
f2e13fa61c33372dc14195d71ce1621f73418304 | a8fc4173c729a48c7d20b150fd067d4d8a1f3846 | /app1/models.py | 4cdb4e4b7277e9b3ae72434a996dd16a87360cf2 | [] | no_license | su6838354/ocp | 313dbfd1fd43bd0d51fcd0a220f2481a489d4cc8 | 1dc98bc7e87f642e2f6d8274419ddaf846b21931 | refs/heads/master | 2020-04-05T09:55:47.311188 | 2017-08-16T14:15:22 | 2017-08-16T14:15:22 | 81,633,748 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,301 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class _User(models.Model):
objectId = models.CharField('主键', max_length=30, primary_key=True)
salt = models.CharField(max_length=100, default='', null=True)
email = mode... | [
"suyuan1573@gmail.com"
] | suyuan1573@gmail.com |
9e450b6b92e3daf14bb83e04fca230d46a8d2849 | 2c3a9f50c7a55aff1119909190f8f4472283afae | /test.py | d9e45930699a691b199d74589d8143fe56427122 | [] | no_license | sunder3344/python_script | 0c609667985dbaae7e6123e9fa782d7ced972462 | ea1c1d12c3f505a4b30d1089598205639cd9503c | refs/heads/master | 2020-07-03T02:30:51.975529 | 2019-01-11T04:11:16 | 2019-01-11T04:11:16 | 74,204,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #coding=utf-8
def log(func):
def wrapper(*args, **kw):
print('===call %s():' % func.__name__)
return func(*args, **kw)
return wrapper
def logWithParam(text):
def decorator(func):
def wrapper(*args, **kw):
print('%s ===call %s():' % (text, func.__name__))
ret... | [
"sunder3344@sina.com"
] | sunder3344@sina.com |
1d8e65a59c8fb5f1110b2ca01d7ca08764315240 | 854afc6c576b3466db59d7b098d08d071c29139d | /main/migrations/0003_product_image.py | 656566c1511ee525231e12628fc3838615f63c60 | [] | no_license | Peterc1712/CLCI-A3-django.ecommerce.app | c5bb7f40f11d47202b0d6e420dadaa5b67eb932d | 978fba586aa77639e1444fb3f67a3e1257714ef6 | refs/heads/master | 2023-09-01T22:08:34.618231 | 2021-11-02T14:17:27 | 2021-11-02T14:17:27 | 423,859,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 3.2.6 on 2021-10-16 03:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_customer_order_orderitem_product_shippingaddress'),
]
operations = [
migrations.AddField(
model_name='product',
... | [
"peter.chung@student.uts.edu.au"
] | peter.chung@student.uts.edu.au |
fe859ca1c52becc338725ff15bd6adef5fbb361c | f6894df72d1b4958c50c4ae598ae092af2a5a32f | /Docker_Control_panel/docker.py | 5459c96fc621c7d5bb00d35988382f1697f8beac | [] | no_license | Zahidsqldba07/Python-Flask-applications | d19135091ef7e384193856f5a830ac8ffe6c0df1 | 2d0cf7810a0ad8baf8c4d656785b009fab77c764 | refs/heads/main | 2023-05-31T13:18:34.285304 | 2021-06-26T14:34:44 | 2021-06-26T14:34:44 | 521,623,318 | 1 | 0 | null | 2022-08-05T12:06:13 | 2022-08-05T12:06:13 | null | UTF-8 | Python | false | false | 221 | py | #!/usr/bin/python3
import cgi
import subprocess
print("Access-Control-Allow-Origin: *")
print("content-type:text/html")
print()
fs=cgi.FieldStorage()
cmd=fs.getvalue('x')
op=subprocess.getoutput("sudo "+ cmd)
print(op)
| [
"venkateshpensalwar@gmail.com"
] | venkateshpensalwar@gmail.com |
178826d2adfe700318ad4b33e99180716f786e78 | 546bbc52c76c19913d57b592572697179833f599 | /baseline/uer/utils/data.py | b0ec96b0e98d952607bf131bcfe2830296b61eb9 | [] | no_license | sheller2010/AutoIE2 | d3a64f83f42e4f48f778027aa72acb4c6efe82f4 | 41eb7e7625fde7a532c2c592880bbe672cfaf7dc | refs/heads/main | 2023-06-16T17:25:57.474246 | 2021-07-19T09:37:31 | 2021-07-19T09:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,439 | py | import os
import random
import pickle
import torch
from multiprocessing import Pool
from uer.utils.constants import *
from uer.utils.tokenizers import *
from uer.utils.misc import count_lines
from uer.utils.seed import set_seed
def mask_seq(src, tokenizer, whole_word_masking, span_masking, span_geo_prob, span_max_len... | [
"noreply@github.com"
] | sheller2010.noreply@github.com |
ffd4c2e8f9b2b32a63248f015518bc3a2832f8dd | 2dbdf395b691d26861909bc47a858bd76de1c5e5 | /main.py | 28d4bae908a4faffc19bdf53edb522399bfab01d | [] | no_license | hkhare42/placebo_app | a867e7d429a670935511106ec6dd3b1ced911551 | 96e6f3f87173f342254ba09690f4d28bb8c3c496 | refs/heads/master | 2020-06-21T04:15:34.199361 | 2016-12-08T14:43:06 | 2016-12-08T14:43:06 | 74,806,629 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,076 | py | from kivy.app import App
from kivy.uix.screenmanager import ScreenManager, SlideTransition
from kivy.uix.floatlayout import FloatLayout
from kivy.graphics import Color, Rectangle
import codecs
import requests
import random
from kivy.utils import get_color_from_hex
# from kivy.config import Config
# Config.set('graphics... | [
"khareharshit@gmail.com"
] | khareharshit@gmail.com |
86fd160d79dd80ef7cc6e2c71d7e79b9a6feb620 | 531d496fc882f2888e56b3e9518de8c1f5cc198e | /Web Application/trivia_quiz/views.py | 548830e310699841fcf40cc7f601cb1e224d4452 | [] | no_license | satista/Data_Science | 79d3a3e9be82c442e3f359db8202008c9dd384b1 | 1b52dea56fdffeee0d5ba1d157e5e39fa663ea6d | refs/heads/main | 2023-03-23T23:23:45.629765 | 2021-03-16T17:29:01 | 2021-03-16T17:29:01 | 302,077,469 | 0 | 0 | null | 2020-10-29T21:20:28 | 2020-10-07T15:20:44 | Jupyter Notebook | UTF-8 | Python | false | false | 377 | py | from django.shortcuts import render
from .models import trivia_quiz
# Create your views here.
#CRUD - create retrieve update delete
#List all the trivia quiz
def trivia_quiz_list_view(request):
trivia_quiz_obj = trivia_quiz.objects.all()
content = {
"trivia_quiz_obj": trivia_quiz_obj
}
retu... | [
"47756835+satista@users.noreply.github.com"
] | 47756835+satista@users.noreply.github.com |
77e8fbc9bed47d65344b5cc9003be7ee08f8b7f6 | d42eeb160cb06d5238fe83aa4dfa030ca71a4087 | /growth_v01.py | 5d21f62532d6a73fffbea73c00f1db18775b549b | [
"MIT"
] | permissive | diegopmayer/crescimento-populacional-brasileiro | 28f0b75e5ca45bf761d98be7cb8ee5b9f5086612 | 3964ec5368ce6015ee76e0b9221a72c6baec6e3b | refs/heads/master | 2020-05-30T10:00:57.346653 | 2019-06-01T19:26:39 | 2019-06-01T19:26:39 | 189,663,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import matplotlib.pyplot as plt
#Variables with label's name
title_name = 'Crescimento da População Brasileira 1980-2016'
x_name = 'Ano'
y_name = 'População x 100.000.000'
#Functions to label's name
plt.title(title_name)
plt.xlabel(x_name)
plt.ylabel(y_name)
plt.legend()
#data to graphic
ano = [year for year in rang... | [
"dpmayer@hotmail.com"
] | dpmayer@hotmail.com |
6279bb7dc4eab7bf1d3db696e27c99d8bfccb52d | 8469f426b47222d8f0c82c5f05131e61ea7bf623 | /uri1001/uri1038.py | e457d15a1db5b4f4c419457e1dd215415c1aa5cf | [] | no_license | jamil2gomes/uri-python | 493b07448fc9ddc9e86ae30808c0cd7465444281 | db3c9ae4dac93c4c03c040ee46a74a6c5987bc11 | refs/heads/master | 2020-08-23T07:18:13.146535 | 2019-10-26T01:59:46 | 2019-10-26T01:59:46 | 216,568,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | split = input().split(" ")
item = int(split[0])
qnt = int(split[1])
total = 0
if item == 1:
total = qnt * 4
elif item == 2:
total = qnt * 4.5
elif item == 3:
total = qnt * 5
elif item == 4:
total = qnt * 2
elif item == 5:
total = qnt * 1.5
print("Total: R$ {:0.2f}".format(total))
| [
"jamil.lannister23@gmail.com"
] | jamil.lannister23@gmail.com |
db985281b42e7256f86e97b45e00e71da8cd0b1d | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/psu/instpol.py | 82e180acf3f6c666ea7d10c6bd65a11d575327f0 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 6,877 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
78494f279a863c7e8050471c823747064c1d61ed | efea4efb891c3f91f2d165778832eff7cf0264a5 | /linearSVCtest.py | bc8e76d514f34c7b65f04da4d59f18a7fd8188ed | [] | no_license | Sapphirine/TwitterBasedMovieRecommendationSystem | 759a860a56fbb29da9fbd2cc79fa0231f6f927ca | 78170e39ffb28c969b40963bcd23583a88887421 | refs/heads/master | 2021-01-10T15:34:00.039266 | 2015-12-23T16:52:34 | 2015-12-23T16:52:34 | 48,466,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | ##Author Xing Lan
##TPC: Big data analysis
##Linear SVC classification test
#from sklearn.feature_extraction.text import CountVectorizer
#from sklearn.svm import LinearSVC
import os
import numpy as np
import pickle
#import time
#import nltk
##set the working dictionary
os.chdir("/Users/lanxing/Desktop/TPC big data/fi... | [
"yao.yang.cksp@gmail.com"
] | yao.yang.cksp@gmail.com |
af8dd99afea7c75e39cb4277511cca74253830a3 | f3d13fd10dc1c2a0086e85a01db99173a49470b6 | /tourmarks/migrations/0002_auto_20180512_1755.py | 602c6d52d7c0585ec21e5675d558cb664b172a68 | [] | no_license | gh720/test_proj1 | 0c3c864c3e92cdb6dc60d108719b6ca9221e7ead | df28a8e3a903d9db0aea0c442f34f755a7fe76c9 | refs/heads/jwt_auth | 2022-12-12T18:33:16.478209 | 2018-05-14T09:51:24 | 2018-05-14T09:51:24 | 133,282,157 | 0 | 0 | null | 2022-12-08T02:05:25 | 2018-05-13T23:25:26 | Python | UTF-8 | Python | false | false | 519 | py | # Generated by Django 2.0.5 on 2018-05-12 12:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tourmarks', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='visit',
old_name='location_i... | [
"name@name.com"
] | name@name.com |
ea44472cf613f7a505cdbd709dcbf6b69628ed94 | 35d42fa466f6457c83f9e89b6e87e050c0189bf2 | /news/urls.py | 8cd7b45c9fe79d8f08621a003fef854c096236ef | [] | no_license | Burence1/The-Moringa-Tribune | 4c0473f50f84f0f6563369b805d7b00bf8aa43ec | b035a082580eb1e8841e504c87f56392f85ae43e | refs/heads/main | 2023-05-12T11:17:26.898628 | 2021-05-27T13:48:13 | 2021-05-27T13:48:13 | 365,954,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | from django.conf import settings
from django.conf.urls.static import static
from django.urls import path,re_path
from . import views
urlpatterns = [
path('',views.news_today,name='newsToday'),
re_path('archives/(\d{4}-\d{2}-\d{2})/',views.past_days_news,name = 'pastNews'),
path('search/',views.search_results,nam... | [
"burensomondi@gmail.com"
] | burensomondi@gmail.com |
ec44f9d859a52ea23febe2b58e708b0a57791bac | 63104fedde095c400dcf92fd90c07ef51ead5ea9 | /chet_nechet.py | cff0248475a89819d047e6d0a2ea4c2622354307 | [] | no_license | Artarin/Python-Trashbox | f5295e776a5aa548e5dee92531231b0069300417 | c7c20ea2bb0c78fc02b10c10496cee5daf54b419 | refs/heads/master | 2023-01-03T04:36:12.051489 | 2020-10-30T16:15:30 | 2020-10-30T16:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | #Заданы две клетки шахматной доски. Если они покрашены в один цвет,
#то выведите слово YES, а если в разные цвета — то NO. Программа получает
# на вход четыре числа от 1 до 8 каждое, задающие номер столбца и номер
#строки сначала для первой клетки, потом для второй клетки.
a = int(input())
b = int(input())
c = int(i... | [
"oskarualds@mail.ru"
] | oskarualds@mail.ru |
b7e4e280e4c4ea18117163135448ed4e9f3b14b8 | 19be48da7eb090f31fd88b1cef9c8ef3a6aaa0eb | /funcion23.py | c746bc134e246f9f9e9ecf9b80faae8d064e47c1 | [] | no_license | smith-sanchez/t09_Carrion_Villavicencio | 376608d60dd175d872f2622b38ff220b6160ff9a | 4cbb0e0694b35fd7135748bc7ef13db7c7374390 | refs/heads/master | 2020-11-27T05:08:14.629793 | 2019-12-20T18:36:00 | 2019-12-20T18:36:00 | 229,316,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # funcion 23
# salario de un chef
import libreria
import os
#import os
dia=int(os.sys.argv[1])
precio_dia=float(os.sys.argv[2])
# import libreia
salario_total=libreria.salario(dia,precio_dia)
print(" el salario es:",salario_total) | [
"noreply@github.com"
] | smith-sanchez.noreply@github.com |
d92fef518f89eec2329a096bce5710368a2371ee | 072e0706d4751d9b2788a16d8e273baeceffde2e | /02_DS/week2_priority_queues_and_disjoint_sets/3_merging_tables/merging_tables.py | db7e90825832869354017aa5f603fd00d21f3f73 | [] | no_license | AndreiZn/Algorithms_and_DS | 74ee046568eee8be10a7c8eee8feaaa7c3afcfe4 | 3a139ca68d056cb2d0fa489f8a56e084910e1055 | refs/heads/master | 2021-09-08T03:42:09.847221 | 2021-09-06T21:17:57 | 2021-09-06T21:17:57 | 202,354,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | # python3
import os
class Database:
def __init__(self, row_counts):
self.row_counts = list(row_counts)
self.max_row_count = max(self.row_counts)
n_tables = len(row_counts)
self.ranks = [1] * n_tables
self.parents = list(range(n_tables))
def union(self, i, j):
... | [
"anznobishchev@gmail.com"
] | anznobishchev@gmail.com |
1a20eabfbc7f573e3b0fa38c7ad36bd5c8bfb1cc | 21f62294ecf92126f07d396aa5825631f1c4c845 | /flocking.pyde | e3dcbc336b7e0a96a4dcd3c62c3f1429514b05ff | [
"MIT"
] | permissive | cody-berry/flocking | 50dc6657d84f8c15dbf52b86871ce4560b4382c4 | bd2cbda878e2993e59b3d6dcfd5fa7d3b54cab41 | refs/heads/main | 2023-07-18T03:57:11.178746 | 2021-09-07T12:01:39 | 2021-09-07T12:01:39 | 401,462,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | pyde | # Cody
# August 30, 2021
# Flocking simulation
# Coding Challenge #124 —— Daniel Shiffman
# Boid rules:
# Separation: Steering to avoid crowding other boids
# Alignment: Steer in the average direction of nearby boids
# Cohesion: Steer towards nearby boids
# Obsticle Avoidance: Get away from obsticles
#
... | [
"cody.tian@icloud.com"
] | cody.tian@icloud.com |
4c3cf47ce7068940c3eacbc788ec7144396160d0 | 2fada6a77030fb32b1ead048a4c59f7a47c4b839 | /1jgg_mp/30_score.py | 2c20560915f56a35d7af9ccbf36bb2f285dab135 | [] | no_license | pgbarletta/facu | 77ba96f344ea651fb0576e46a1865128f03a3fec | 53a5061bbb313ea498a7e54eb1d05ee55ed5dcbd | refs/heads/master | 2021-01-21T20:59:33.355424 | 2017-07-13T13:52:21 | 2017-07-13T13:52:21 | 92,293,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from modeller import *
from modeller.scripts import complete_pdb
log.verbose() # request verbose output
env = environ()
env.libs.topology.read(file='$(LIB)/top_heav.lib') # read topology
env.libs.parameters.read(file='$(LIB)/par.lib') # read parameters
# read model file
mdl = complete_pdb(env, 'mp.B99990030.pdb')
... | [
"pbarletta@gmail.com"
] | pbarletta@gmail.com |
60f8367ccb07dc2bd4bfcc6e255bcfa7bb1e4b19 | 8af70681695c8727724f3f47ca9f1e1d9a2d3d2a | /Travail/Python/great_heuristique_v5_feh.py | 401ad7d1b7a6246fd5c83619d654d3a1750a2959 | [] | no_license | LixonClem/Stage | f6cf32a9f6c4b050049ede2be6e80a6a5f2f451b | 71f8e6810d1322ac3a3d00970fd5214aaaf35f88 | refs/heads/master | 2020-03-18T19:11:53.137075 | 2018-07-26T14:16:50 | 2018-07-26T14:16:50 | 135,140,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,146 | py |
# -*- coding: utf-8 -*-
import numpy as np
import scipy as sp
import matplotlib.pyplot as py
import random as rd
import math as m
from lxml import etree
import os.path
global Capacity
global instance_test
global lam
global Error
global KNN
global relocation
global mu
global nu
global execute
Capacity = 100
KNN = ... | [
"clement.legrand-lixon@ens-rennes.fr"
] | clement.legrand-lixon@ens-rennes.fr |
49131845d1781dc4fcddbc8a2237f30f37bab6e9 | e476bfa232b733e17a0ee69c5bbdd66c2dab589b | /R.Briggs.Python_for_kids/correct_number.py | 3621093be5abc84af3ad2ff5ac04b6ed5dbb60b0 | [] | no_license | I-hel-l/python | 36deb9ed6e00743b991d43153b5b47c2559766e7 | fcc69c364554d131bb85e80b4bbdae1812f63596 | refs/heads/master | 2022-12-23T06:51:28.353136 | 2020-10-05T06:39:44 | 2020-10-05T06:39:44 | 258,753,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py |
money = 8000
if (100 <= money <= 500) or (1000 <= money <= 5000):
print('The condition is met!')
else:
print('Condition not met!')
| [
"id13061992@gmail.com"
] | id13061992@gmail.com |
3cdf8011b618b07498f42f587746389db19ab840 | e7964338707afba0228866a33f954a974fcc693b | /code/linreg/boston3d_loss.py | 93704fc901be370ade12eb00fcf6b4701c31b2e4 | [
"MIT"
] | permissive | anawatbk/msds621 | f96346ddc4fd47d7b9c3a40e2632da7a39aaf2e0 | 869a309e235359119f30477c7a57763e222197e5 | refs/heads/master | 2023-03-25T10:20:02.072200 | 2021-03-10T09:39:33 | 2021-03-10T09:39:33 | 333,196,889 | 0 | 0 | MIT | 2021-03-10T09:39:34 | 2021-01-26T19:41:04 | Jupyter Notebook | UTF-8 | Python | false | false | 2,523 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from mpl_toolkits.mplot3d import Axes3D # required even though not ref'd!
from matplotlib import rcParams
import matplotlib as mpl
from sklearn.linear_model import LinearRegression, Ridge, Lasso, LogisticRegression
from sklearn.ensemble import Rand... | [
"parrt@cs.usfca.edu"
] | parrt@cs.usfca.edu |
22378801d4b6576b4b1e94a7ff806f4eda02baae | e4bc18c121d9a4883b70f4c4b18d33b97fa49548 | /OES/oes/index/views.py | a6f2d041c4722b90cfd86accf1f8c7864c1e4153 | [] | no_license | sunjinsong/online-education-platform | ba10c50d29cd24f3ba1e2760368d37ae662f40a2 | ce653ccef4cb5c8386efabc427eee4256cd79d5f | refs/heads/master | 2022-12-22T12:34:16.098721 | 2020-09-24T12:20:41 | 2020-09-24T12:20:41 | 294,900,073 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from django.shortcuts import render
from .models import SlideShowTop,SlideShowBottom
# Create your views here.
from courses.models import Course
from organizations.models import Organization
def index(request):
slides=SlideShowTop.objects.all()
slides_bottom = SlideShowBottom.objects.all()
course_list = Co... | [
"673074094@qq.com"
] | 673074094@qq.com |
fa65816e2cfb758c378945e5151479007fa07174 | 02b5012356592f2f2b1e75a884aa715049cb71c0 | /env/lib/python3.7/stat.py | f0b28a1ccbbab165353351e42a45beafd2cb41e7 | [] | no_license | wsiqing/KSquare | d7b5ecdbd4e5d846e4d76225477452836c58f3bd | f7e959010493d0dceb30b4dc4f9d6839f0b436c0 | refs/heads/master | 2020-04-07T19:31:49.762406 | 2018-11-22T03:48:28 | 2018-11-22T03:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /Users/yukimoto/anaconda3/lib/python3.7/stat.py | [
"shtomcom@gmail.com"
] | shtomcom@gmail.com |
d3d140c8f717f45b6a828980ac963c2f3e3a1098 | bd5611b95d9bfa80a3fba331fbaa7fcee561b633 | /main.py | 54de849d04e06ecdfa08f51152fd286a3fc91592 | [] | no_license | brazer/SteemNotificationServer | d6dc8048c5cceb96d0a9a67da39c1e80570af820 | ef184a777c2e634be846c4a18ea3a758206fafc1 | refs/heads/master | 2020-03-29T10:27:22.426572 | 2018-09-21T19:43:51 | 2018-09-21T19:43:51 | 149,806,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | import threading
from steem.blockchain import Blockchain
from model import Vote, Comment, Follow
def parse_next_block(block):
transactions = block['transactions']
for transaction in transactions:
operations = transaction['operations']
for operation in operations:
name = operation... | [
"salanevich.anatol@gmail.com"
] | salanevich.anatol@gmail.com |
5c97af41a1774f86f8de44b3008cd498ea9860f9 | e3fe268f5f0c9dc7bbc4df24796d4d347607c384 | /migrations/0003_fix_tweet_id.py | 5ae17aac3997275d3ed6f2a0f8f4d035e45f69e8 | [] | no_license | eyeseast/beijing_air | 70b7f065eba1ee7152369047f0380b51dcad0299 | c2fbaaf30beabeac1b9aae069cd415f4127d3d19 | refs/heads/master | 2021-01-19T15:03:13.965034 | 2010-02-13T15:50:55 | 2010-02-13T15:50:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py |
from south.db import db
from django.db import models
from beijing_air.models import *
class Migration:
def forwards(self, orm):
# Adding field 'SmogUpdate.id'
db.add_column('beijing_air_smogupdate', 'id', orm['beijing_air.smogupdate:id'])
# Changing field 'SmogUpdate... | [
"chrisamico@web48.webfaction.com"
] | chrisamico@web48.webfaction.com |
dfa5c23cb31d92a13364ba4353601996d1aece31 | a1b192cb09a50219b0b16f9910318ba20d71e2e4 | /seller/migrations/0001_initial.py | 53fdca4ec26b2ae1e85ca9d79e8215afdc84c2e9 | [] | no_license | sakshipatne29/ShoppingApp | 20d2397625e09ac21f7e0e336378d4acd71d0ba8 | abb52adb0ac7e77769f9c7b04e0ebb68eb23bb07 | refs/heads/master | 2022-12-04T19:07:37.824836 | 2020-08-15T06:44:17 | 2020-08-15T06:44:17 | 287,693,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | # Generated by Django 2.1.7 on 2020-01-07 09:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('ShoppingApp', '0001_initial'),
]
operations = [
migrations.CreateModel(
nam... | [
"sakshipatne206@gmail.com"
] | sakshipatne206@gmail.com |
4e210b9c9ccca1c22a9822913c5a925758b57bd1 | d0ad533a311ed8603c9a271f7bee7f1f36b48323 | /loan4u/settings.py | 63440d30f75ce61b4da1ec689c738c0dcefa6c9b | [] | no_license | christie-joseph/loan2 | 1b1a9a09189a27329918da82388d845284f34426 | cd337d7fe887b1c40881af689b2a4161a25f0718 | refs/heads/master | 2022-01-14T08:56:55.604587 | 2018-11-23T17:22:26 | 2018-11-23T17:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,695 | py | """
Django settings for loan4u project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
i... | [
"noreply@github.com"
] | christie-joseph.noreply@github.com |
41c9d295e2d724898ffac2ed8acb1e9bb08fba51 | a4041998897913c09f13c8ff6bd9452acd2cc4e0 | /test_project/someapp/views.py | a45bab2a6f316ba3ea7cecbd863cfdc6ec424b58 | [] | no_license | dromanow/django_simple | 73a25d80df976a16314d09ac5f8a0e842f871732 | 22cdbfc38e4cc2e11939e0f458e8d6068f34fa9f | refs/heads/master | 2023-07-18T06:02:37.655660 | 2021-09-09T16:02:22 | 2021-09-09T16:02:22 | 404,030,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from .models import SomeModel
class SomeModelView(ListView):
model = SomeModel
template_name = 'someapp/index.html'
# queryset = SomeModel.objects.all()
def get_queryset(self):
return SomeModel.objects.select_r... | [
"denis.romanow@gmail.com"
] | denis.romanow@gmail.com |
bfb4f12275d4630557cbb7716232b552fb2bc121 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2014/w33.py | e5aa36b9425bc3b95b355755a29e3a5445ba785d | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | n=input()
ar=[0]*1000001
i=0
while i<n:
k=input()
x=raw_input().split(' ')
j=0
while j<k:
ar[int(x[j])]=1
j=j+1
i=i+1
i=1
while i<=1000001:
if ar[i]==1:
print i,
i=i+1
| [
"sailesh.ku.upadhyaya@gmail.com"
] | sailesh.ku.upadhyaya@gmail.com |
0907f798af431c2d6c383ca74dbf7bc8e1850daa | 2f3a2318c2b2b891c0e5b22d31f56e63adf94025 | /proximity.py | 2257d869f9c3d5ba75c1ce98c35278c4e5791941 | [] | no_license | piano-man/smart_lighting | 4edcef3fd6e8476f469ed2420bdcb486a0b4d514 | f467a96c9a988d5403dce43352bcfdcc72d8f848 | refs/heads/master | 2021-01-02T08:30:22.225529 | 2018-03-27T22:27:24 | 2018-03-27T22:27:24 | 99,013,741 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.IN) #Read output from PIR motion sensor
#GPIO.setup(3, GPIO.OUT) #LED output pin
while True:
i=GPIO.input(11)
if i==0: #When output from motion sensor is LOW
... | [
"icm2015003@iiita.ac.in"
] | icm2015003@iiita.ac.in |
f171dcf7166219415a77dffee8ae4e950c5df132 | d9c976c1812ab5c9606042b8138527a2345d34af | /songuyento.py | 7582693fab1c21b4a0562ca407c47c44be720153 | [] | no_license | hoana2007/PythonByEx | 757361a748db7b394b9e44afcdd08b110e166e38 | ec5a9901a86fad98b96e97c94ed3ba88d408abee | refs/heads/master | 2020-12-15T13:13:18.407226 | 2020-01-20T13:54:46 | 2020-01-20T13:54:46 | 235,113,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | def range_prime(n):
numbers = [True] * n
numbers[0] = False
numbers[1] = False
for i in range(2, int(n**(1/2))):
k = i * 2 # Đánh dấu bội số của i
while k < n:
numbers[k] = False
k = k + i
primes = [i for i in range(2, n) if numbers[i]]
return primes
n =... | [
"hoana2007@outlook.com"
] | hoana2007@outlook.com |
7e6448f2793bf033036579c65c34ebcdbf85e254 | a3ee53ce0e544c7b432f6e92f677edb53ddf6ba1 | /virtualplotter.py | ac69c2ee6514e845caa14551ba0ceddd240db0a5 | [] | no_license | derikvanschaik/quick-and-simple-beginner-projects | 40fb0dba4a8e7532dd418433cd1b2e0796f78aeb | 459b21e1bf964ed536c587d5dfb6bb5a7c2f545f | refs/heads/main | 2023-07-23T12:00:59.731131 | 2021-09-05T20:05:59 | 2021-09-05T20:05:59 | 377,302,572 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | import PySimpleGUI as sg
BG = 'white'
def update_cur_pos_label(cur_pos, label, label_pos, canvas):
canvas.delete_figure(label)
return canvas.draw_text(f"Point current position: {cur_pos}", label_pos)
def main():
sg.theme('Material1')
size = (400,400)
bott_left, top_right = (0, 0), (400,400)
canvas = sg.Graph(... | [
"derikvanschaik@gmail.com"
] | derikvanschaik@gmail.com |
6f3e3f2f7ca6c0342aca5a9638fc8eab77130d69 | 3258bc4854d71ccc523cbfd072a8734ccb66c2c5 | /lecture_code/OURKITCHEN/ourkitchen/settings.py | 4a8b7c33a980eea4eb156f64b78a5fdc169d8095 | [] | no_license | minwooDB/open_api | 2f3b18e696f674df48e74242c58a4d21be67261c | b46a568a7cc633a2093c51024d76efe377d447c0 | refs/heads/master | 2022-12-22T23:56:36.952572 | 2019-11-14T07:16:33 | 2019-11-14T07:16:33 | 218,244,235 | 0 | 0 | null | 2022-11-22T04:49:15 | 2019-10-29T08:58:32 | Python | UTF-8 | Python | false | false | 3,177 | py | """
Django settings for ourkitchen project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"alsdn114560@gmail.com"
] | alsdn114560@gmail.com |
67558cce12fa4dac149bcb1e868f56821bca6d40 | 5e45a4d8cec4ccfe3d51687175bb9d3546485cd8 | /완전탐색/모의고사.py | b0150e19af3e469ba0a872eb94f08cdd4ff77be9 | [] | no_license | unnullian/AlgorithmPractice | 5fea2ffb9d580af242cfd017c76be77ed4dde99e | 278400279578870ede831239663ed773f115ddc3 | refs/heads/main | 2023-06-10T12:49:01.550131 | 2021-07-02T01:31:45 | 2021-07-02T01:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | def solution(answers):
answer = []
hash_map = {k:0 for k in range(1, 4)}
pattern1 = [1,2,3,4,5]
pattern2 = [2,1,2,3,2,4,2,5]
pattern3 = [3,3,1,1,2,2,4,4,5,5]
st1 = []
st2 = []
st3 = []
for i in range(len(answers)) :
st1.append(pattern1[i%len(pattern1)])
... | [
"unknown90420@naver.com"
] | unknown90420@naver.com |
2008b3dbe90ff6f13aa32832741f8f39400092f3 | 395a71b505a21b6843f5d48e653b8ef4223a61b7 | /app/venv/bin/blueprint-create | d4336d103660f8f833d8bfd39859540bc02cc39e | [] | no_license | kwl3434/PEviewer-Packer-Protector-PEinfo-website | 55a5600644668390819902e26eebdfb03da0805d | 7e18c8146f52e423865f82583396538e81530ad9 | refs/heads/master | 2023-05-27T21:14:27.837789 | 2021-04-29T07:43:00 | 2021-04-29T07:43:00 | 176,113,366 | 4 | 7 | null | 2023-05-01T20:32:30 | 2019-03-17T14:32:01 | Python | UTF-8 | Python | false | false | 2,957 | #!/PEviewer-Packer-Protector-PEinfo-website/app/venv/bin/python2
import errno
import logging
import optparse
import sys
import blueprint.cli
from blueprint import context_managers
import blueprint.git
parser = optparse.OptionParser('Usage: %prog [-d <subtrahend>] [-P|-C|-S|-R|...] '
'[... | [
"32947371+kwl3434@users.noreply.github.com"
] | 32947371+kwl3434@users.noreply.github.com | |
8ab19fa5fd2feeb2f90170490301f9dafdc9b5cb | b16c3d8e3bae87428f414312f4ffcbb9b39573fc | /.venv/bin/easy_install-3.7 | bc71d2a00d65a44e164bfb1f8f94a0223b89a102 | [] | no_license | zhengzhongjin/ComputationalGenomics | 190a2512bb208535d19656be7752db9f438f5e68 | a0fe18436ed2310dca310fa03442a4eccf7b23b1 | refs/heads/master | 2021-06-23T23:32:57.431088 | 2019-12-15T11:13:09 | 2019-12-15T11:13:09 | 220,879,131 | 1 | 1 | null | 2021-04-26T19:45:45 | 2019-11-11T01:45:40 | C++ | UTF-8 | Python | false | false | 285 | 7 | #!/users/zzjin/course_project/ComputationalGenomics/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zzjin@gradx.cs.jhu.edu"
] | zzjin@gradx.cs.jhu.edu |
7d6ab9147f7e2b8536e088e2f9369d2f7f13d547 | 4a36849188747a1e3cc4b052eb6bc3a21e3e53bb | /POJ/3061.Subsequence/3061.Subsequence.py | e877888939ef6ca21888b36bf9aeb5ccaf105122 | [] | no_license | koking0/Algorithm | 88f69a26f424d1b60a8440c09dd51c8563a86309 | 2828811ae2f905865b4f391672693375c124c185 | refs/heads/master | 2022-07-06T17:10:07.440930 | 2022-06-24T14:59:40 | 2022-06-24T14:59:40 | 216,952,717 | 35 | 48 | null | 2020-07-21T02:46:26 | 2019-10-23T02:41:09 | Java | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
# -*- coding: utf-H -*-
# @Time : 2020/1/28 16:27
# @File : 3061.Subsequence.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
# >>> Author : Alex
# >>> QQ : 2426671397
# >>> Mail : alex18812649207@gmail.com
# >>> Github : https://github.com/koking0
# ☆... | [
"alex18812649207@gmail.com"
] | alex18812649207@gmail.com |
a976c9d14e1dee06b2ff83170340b7db50d36e35 | f0cdda3cf2817bcf991a14cf46e38c353e6872a6 | /src/epuck2_gazebo/scripts/epuck2_control_codes/epuck_pid_controller.py | 83a881db1ca46ec151e0f02e6df04aef77f70ca8 | [] | no_license | vinits5/gym-vinit | efc1b5312674840333eea4fb3912aa579c295f5f | 3ebd79ee94a51c12a6b64fe743ebc742f8d5e63d | refs/heads/master | 2020-03-22T00:55:19.272167 | 2018-06-30T19:00:12 | 2018-06-30T19:00:12 | 138,631,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | #! /usr/bin/python
import rospy
import math
from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
import matplotlib.pyplot as plt
import numpy as np
import tf
from tf.transformations import euler_from_quaternion
from std_srvs.srv import Empty
import time
velocity_publisher = rospy.Publisher('epuck2/cm... | [
"vinitsarode5@gmail.com"
] | vinitsarode5@gmail.com |
2be6e03963662472280160148c47c1ae27b413e0 | 248c5865e790ddb8fc098062b08cba9b00a3cdb6 | /jsonMod.py | 84e2d5b282a4047d49d0cd1ad17cafc8ccfeacdb | [] | no_license | yourant/jg5 | d71a1e7e633617eab5a7d41e071cacfc0b8190c8 | c05a24cc28e749db56584afaa273169dce907cfb | refs/heads/main | 2023-03-13T08:14:38.742638 | 2021-02-23T06:54:47 | 2021-02-23T06:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,784 | py | import requests
import json
import re
url = 'http://54.222.221.139:8088/wanna-console/wanna/message/anon/get'
param = {'webSiteNo': '01', 'code': 'M1236', 'locale': 'en_US'}
all_lan = ['en', 'fr', 'de', 'es', 'pt', 'sv', 'da', 'nb', 'is', 'fi']
all_plat_code = ['M1236', 'M1284', 'M1243', 'M1316']
class JsonMod():
... | [
"1532611298@qq.com"
] | 1532611298@qq.com |
23a50a2b4da06d596b1c7971e5d4afb4285e8767 | e2265493d2c94c32834541b5b3c1a937c1d25450 | /venv/Lib/site-packages/social_core/tests/backends/test_strava.py | 741ea88517da49b606172d96c53d4645d74b4743 | [] | no_license | BekturMuratov/todoist_api | a209665eb6154c47c501c296cfcecac29d2e2fb5 | 35df8cb4a867e4ba123b0f30a4d7426792ba6ace | refs/heads/master | 2023-08-13T02:35:20.379169 | 2021-10-04T15:27:30 | 2021-10-04T15:27:30 | 413,477,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | import json
from .oauth import OAuth2Test
class StravaOAuthTest(OAuth2Test):
backend_path = 'social_core.backends.strava.StravaOAuth'
user_data_url = 'https://www.strava.com/api/v3/athlete'
expected_username = 'marianne_v'
access_token_body = json.dumps({
"token_type": "Bearer",
"expi... | [
"Muratov225@gmail.com"
] | Muratov225@gmail.com |
dcae8117729ff8761a27195b4513d6be32743ee9 | 0dc758bc71a2ce345d1d64b0662664a13e31515c | /basic/list2.py | 716b2904914c40aca3878ba06507c92a00921f78 | [
"Apache-2.0"
] | permissive | vasyl-shumskyi/google-python-class | b4748e8a77965a5fa147047f862b41d9fa7dc912 | d4c98bf39b2af0c7f828050b3442ce6324272aaf | refs/heads/master | 2021-01-22T09:26:54.122995 | 2017-04-05T07:28:47 | 2017-04-05T07:28:47 | 82,465,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | #!/usr/bin/python -tt
# 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/
# Additional basic list exercises
# D. Given a list of numbers, return a list where
# al... | [
"vasyl.shumskyi@gmail.com"
] | vasyl.shumskyi@gmail.com |
0564832fefe25917c2968f933f065792cce19e13 | 948da9e511b31ff37552388649abe80ea5d38f19 | /blackhole.py | 9bb19a5e4decb4c87e84db280a10aa7db00c84ea | [] | no_license | juanurzua94/Inheritance-and-Animation | e20297ec22536faf95a6743bf22e654c73512d23 | 507140465d947c081a409b519b78fb1ee83e2941 | refs/heads/master | 2020-03-21T17:00:29.181973 | 2018-06-27T00:26:30 | 2018-06-27T00:26:30 | 138,807,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Black_Hole is derived from Simulton: i.e., it updates by finding and removing
# any Prey whose center is contained within its radius
# (returning a set of all eaten simultons), and
# displays as a black circle with a radius of 10
# (width/height 20).
# Calling get_dimension for the width/height (for
# contai... | [
"jpurzua@uci.edu"
] | jpurzua@uci.edu |
774d66cb1470234449465f0188cd76c1b7dd3b9f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_gigabits.py | 5b528902501ccb6eb2a2803116afd4524cf7a3d7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py |
from xai.brain.wordbase.nouns._gigabit import _GIGABIT
#calss header
class _GIGABITS(_GIGABIT, ):
def __init__(self,):
_GIGABIT.__init__(self)
self.name = "GIGABITS"
self.specie = 'nouns'
self.basic = "gigabit"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
109e9e3110831891b1598a8c71aceb1aea69f13d | aaddccb9fcbfb568bb10ccc2ae644998fcff03a2 | /Tensorflow Projects/yolo_tensorflow/train.py | 6ebbb03ec7023fe3add36face62b6cc106056183 | [
"MIT"
] | permissive | clhne/Ubuntu14.04_LC | 9948087a3b9e49e3eeda2ab1de2832afee8894e2 | c5a3e1662aca562cb31ae48e224e2e86509c5c90 | refs/heads/master | 2022-11-04T22:07:38.270149 | 2018-03-09T02:41:13 | 2018-03-09T02:41:13 | 124,469,553 | 3 | 1 | null | 2022-10-31T20:11:40 | 2018-03-09T01:24:57 | C++ | UTF-8 | Python | false | false | 6,217 | py | import tensorflow as tf
import datetime
import os
import argparse
import yolo.config as cfg
from yolo.yolo_net import YOLONet
from utils.timer import Timer
from utils.pascal_voc import pascal_voc
class Solver(object):
def __init__(self, net, data):
self.net = net
self.data = data
self.wei... | [
"luchenglin@leadcoretech.com"
] | luchenglin@leadcoretech.com |
9c2aa150b9b7abbab3bc15bcc19cbffd2f73bcfe | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/deqp/src/scripts/khr_util/registry.py | 58dab52c64d273336ed333499b874f040502eb67 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 11,636 | py | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# drawElements Quality Program utilities
# --------------------------------------
#
# Copyright 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
11cb7c1066e417c8a9457d88bc2ca91dafccd076 | cda05670b5952f890018e54f133373912b77a4e9 | /Hackerrank/Python/Loops.py | e91a4a9e13bc4e3fd69c9027cb3a18cbaf14f6d2 | [] | no_license | rishichawla/CompetitiveProgramming | 30bd59a7a496da7b8bbac3f8aef5b52b2a580504 | 6596938395d48dddd160294dcf1f73d064541d09 | refs/heads/master | 2020-03-31T03:43:48.832372 | 2019-10-21T10:35:08 | 2019-10-21T10:35:08 | 151,875,473 | 0 | 1 | null | 2019-10-09T14:18:41 | 2018-10-06T19:40:24 | C++ | UTF-8 | Python | false | false | 175 | py | # https://www.hackerrank.com/challenges/python-loops/problem
if __name__ == '__main__':
n = int(input())
l = [i**2 for i in range(n)]
for i in l:
print(i)
| [
"rishi.chawla14@gmail.com"
] | rishi.chawla14@gmail.com |
2d32a2dd27389430754868b22aa0dee710fde449 | 5b6a98d871dc04623f96e5e37e4f6f2efbe1bdda | /Other/Training/Useless/auto_encoding01raw.py | 940cb35c945713ed54bff483421bdfdce230a64f | [] | no_license | bolatroniks/AlphaEvolution | 5ab9bbe698b26ae0b43041aa69a33a3a1bc76ec9 | 3873e042a1d442fed05206e9608f5a1447e95b9b | refs/heads/master | 2022-12-12T04:33:08.148714 | 2019-11-27T19:56:07 | 2019-11-27T19:56:07 | 185,647,627 | 0 | 1 | null | 2022-12-08T06:35:25 | 2019-05-08T17:03:27 | Python | UTF-8 | Python | false | false | 4,777 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 27 21:35:27 2017
@author: renato
"""
import numpy
import Pycluster
from sklearn.cluster import KMeans
import numpy as np
points = numpy.vstack([numpy.random.multivariate_normal(mean,
0.03... | [
"renato.o.barros@gmail.com"
] | renato.o.barros@gmail.com |
ea2f3fd552459d85a170b03d4f5e904f7c191349 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04000/s750895351.py | 7378de763ab9a50cfa785771268623df0b68e5e7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import sys
input = sys.stdin.buffer.readline
from collections import defaultdict
def main():
H,W,N = map(int,input().split())
d = defaultdict(int)
for i in range(N):
a,b = map(int,input().split())
a -= 1
b -= 1
for x in range(3):
for y in range(3):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
db8cf8813ddff05f44e5040fb86e0b586ca7cef5 | 968b8341b2327b84a1405a4742cba482e556b3f3 | /Configuration/python/histogramDefinitions.py | 7278c15fdd5098bf0c2f9962704a80fd53ff4ae5 | [] | no_license | tmrhombus/OSUDisplacedHiggs | 130652d5bc5540b5eed5b51036b429d2ffb8e058 | 1366e79119cee20a97b91c4c33251922adc058fb | refs/heads/master | 2021-01-01T16:57:21.364029 | 2017-08-04T14:01:56 | 2017-08-04T14:01:56 | 97,959,263 | 0 | 1 | null | 2017-07-21T14:57:03 | 2017-07-21T14:57:03 | null | UTF-8 | Python | false | false | 42,998 | py | import FWCore.ParameterSet.Config as cms
# import definitions of d0/dz
from OSUDisplacedHiggs.Configuration.objectDefinitions import *
###############################################
##### Set up the histograms to be plotted #####
###############################################
#ElectronD0Histograms = cms.PSet(
# ... | [
"nunezornelas.1@osu.edu"
] | nunezornelas.1@osu.edu |
3357a70b2ecd4f3212b41073723613285ecef369 | fd540b341a290a37c3a3a7e8fbffda93bfed2864 | /cloudops/devops/cijenkins/apps.py | 5fe331e54a5b8fb5ea9eb285f051e1e8d35867ab | [] | no_license | bopopescu/devops | 69d88b8209d744d4e722b482d1a7b1a5e95b0850 | 6a03805fc805f7604273e92f19f7fdea953451c2 | refs/heads/master | 2022-11-28T17:58:42.923890 | 2018-11-16T09:49:07 | 2018-11-16T09:49:07 | 281,549,091 | 0 | 0 | null | 2020-07-22T02:01:07 | 2020-07-22T02:01:06 | null | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class CijenkinsConfig(AppConfig):
name = 'cijenkins'
| [
"83098148@qq.com"
] | 83098148@qq.com |
714c38f965dd80a8f4f4b2f7f6cbe55f29e53778 | 04c5dd05a4571fce72f537f93eb2a58913a17cfe | /pypelco/setup.py | 569a84361cbc0e2ebc273496bde0ba64f27406df | [] | no_license | ska-sa/pypelco | 72402ead78149caf599d506898d91f87082f66df | 40b21936a2d78f9505e55effb1e6f915bf17c2e5 | refs/heads/master | 2021-01-01T06:50:07.697089 | 2014-07-30T08:28:44 | 2014-07-30T08:28:44 | 22,337,426 | 1 | 0 | null | 2014-07-30T08:28:46 | 2014-07-28T09:29:02 | Python | UTF-8 | Python | false | false | 178 | py | from distutils.core import setup
setup(
name='pypelco',
version='0.1dev',
packages=['pypelco'],
license='MIT',
long_description=open('README.rst').read(),
)
| [
"martin.slabber@gmail.com"
] | martin.slabber@gmail.com |
10c05665316e6ebc86e866f4e4e2e896452a2d8a | 8cd268c0b26a08cbf1f5f5c5b328f3295c75937d | /src/contact/views.py | 6320b86e4b87a1f08e241f2050874f9a540cee9b | [
"MIT"
] | permissive | rsm23/trade-motors | 3197d2dcdc60da780c91c4d84c8148db84f3f0f4 | 3336585b36cb8945e73ca38ef620a86fc7de0c27 | refs/heads/master | 2022-03-29T04:17:28.941317 | 2017-10-02T20:40:09 | 2017-10-02T20:40:09 | 105,381,566 | 0 | 0 | MIT | 2020-01-21T14:13:52 | 2017-09-30T15:59:53 | Python | UTF-8 | Python | false | false | 2,340 | py | from django.shortcuts import render_to_response, RequestContext
from vehicles.context_processor import global_context_processor
from .forms import ContactForm
from dynamic_preferences import global_preferences_registry
# import settings so send_mail can have access to email settings
from django.conf import settings
fro... | [
"haroon@sitture.com"
] | haroon@sitture.com |
6c39c671da8ea030b974588fc017b2bac50a4db6 | feeeab5dc580786a35dbddcb99ddab85bc893668 | /managers/cc_help.py | 208cebfbd552ce1485297a7e2ef7c4c00e44949c | [] | no_license | idelfrides/POC_test_creditCard_type | 54dd3c5de02547802074e2acf50295463e92f17d | 10792ac8f3393a6e3d621d24a43eb794ec241a02 | refs/heads/master | 2020-08-08T01:58:54.997806 | 2019-10-08T14:43:23 | 2019-10-08T14:43:23 | 213,668,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py |
# from .help import get_digits
import re
from .help import get_digits
# there are codes --> code
CC_TYPE_GENERIC = 0
CC_TYPE_VISA = 1
CC_TYPE_AMEX = 2
CC_TYPE_DINERS = 3
CC_TYPE_DISCOVER = 4
CC_TYPE_MASTERCARD = 5
CC_TYPE_ELO = 6
CC_TYPE_JCB = 7
CC_TYPE_MIR = 8
CC_TYPE_UNIONPAY = 9
CC_TYPES = (
(CC_TYPE_... | [
"idelfridesjorgepapai@gmail.com"
] | idelfridesjorgepapai@gmail.com |
b603e746dc5f758e8ad5e6b8160c2676e856d555 | 6fbd56a12f8675c8ee6dd9ad23101a9c02d34387 | /setup.py | 9ee9310affb4d9f8071f556091f427c1ae42963a | [
"MIT"
] | permissive | matthiasdebernardini/topology | aa666940786dfdbc1fe1f732b73365d1eb596893 | 5cb7cb1e9a602874e7a325f95e50dfe110ca8efb | refs/heads/main | 2023-02-14T18:54:40.751005 | 2021-01-05T09:29:01 | 2021-01-05T09:29:01 | 328,508,598 | 0 | 0 | MIT | 2021-01-11T00:26:57 | 2021-01-11T00:26:56 | null | UTF-8 | Python | false | false | 846 | py | from setuptools import setup
import io
with io.open('README.org', encoding='utf-8') as f:
long_description = f.read()
with io.open('requirements.txt', encoding='utf-8') as f:
requirements = [r for r in f.read().split('\n') if len(r)]
setup(name='lntopo',
version='0.1.0',
description='Tools to wo... | [
"decker.christian@gmail.com"
] | decker.christian@gmail.com |
31cb950512503b022a03ac1e83ea42c8f4d63f78 | bcd9f237407954a015e79dad6c1efd5da39b78e9 | /tools/div_free_base.py | 0b1ef82017bc12fcbc5bfd81d5ba603840e67d95 | [
"MIT"
] | permissive | royvelich/hamiltonian-interpolation | d317cff4277381b91877aa8eb25a3394715680f1 | d18c2f401feffc672998c5fa1d50c1de03dba902 | refs/heads/master | 2023-08-28T13:02:48.865232 | 2021-10-14T15:15:26 | 2021-10-14T15:15:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | import torch
import math
import numpy as np
from torch.nn import Parameter
import torch.sparse
from shape_utils import *
from param import device, device_cpu
import quaternion as quat
from base_tools import *
def compute_eigenvectors_3d(vert, k):
kv = torch.arange(1, k+1, device=device, dtype=torch.float32).unsqu... | [
"marvin.eisenberger@in.tum.de"
] | marvin.eisenberger@in.tum.de |
bc9d45300161229d609bb0f7aa32108c35c8b740 | f361bff53d4f572cb84f6c00581ee9f5a9b1ef77 | /todo_project/todo_app/admin.py | 8741c318586c79c849857178baacbda72f582ad5 | [] | no_license | AjaY-A-J/todo_app | cae1b42645e4bb6603f32a0b89e06acde82a0f9e | 2e2ff222661c8985108d8b89b7354fdcb7886c59 | refs/heads/master | 2023-06-11T06:36:32.786600 | 2021-07-03T07:26:51 | 2021-07-03T07:26:51 | 382,551,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from todo_app.models import Task
# Register your models here.
admin.site.register(Task) | [
"ajayj11021998@gmail.com"
] | ajayj11021998@gmail.com |
97d4161cbd5fcee8969175a8304d2910d0f49588 | 3d954220e07c76a081238549715108916f41d9ec | /Saved/Project_prev.py | fd9b2d961257ff2817643cf1d3739cc0b6627ee8 | [] | no_license | Hotchmoney/NeuralNets-Crime | 3c530dceb2d61ab435fcaf8726f5edbbaad5e095 | 793f786fa8b6904dd860e632f899a668b81c56c1 | refs/heads/master | 2021-05-01T14:31:52.319130 | 2018-02-11T05:18:09 | 2018-02-11T05:18:09 | 121,087,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | import numpy
import matplotlib.pyplot as plt
import pandas
import math
from keras.models import load_model
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mean_squared_error
numpy.random.seed(7)
... | [
"hotchkissrnd@gmail.com"
] | hotchkissrnd@gmail.com |
feb5a545428069471023e52d8880ae8b2fad2321 | 4cd8330ec6380adc485a902fd72ecc0b4dffac11 | /autodot/conf/settings.py | 9aeb74910ada14d699fe80329dfdc1dd1f00584a | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"JSON"
] | permissive | spurfly/django-autodot | 9b04ac561bc39a64199de3c79c9c8fcc5a31f78f | 3be875812a11436594671b28138c518639c719df | refs/heads/master | 2021-01-18T15:15:08.506831 | 2011-05-05T11:48:03 | 2011-05-05T11:48:03 | 1,575,265 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
MEDIA_URL = getattr(settings, 'COMPRESS_URL', settings.MEDIA_URL)
if not MEDIA_URL.endswith('/'):
raise ImproperlyConfigured(
'The MEDIA_URL and COMPRESS_URL settings must have a trailing slash.')
MEDIA_ROOT = getattr... | [
"Jameson.Quinn+pyjamas@gmail.com"
] | Jameson.Quinn+pyjamas@gmail.com |
2158e8067cd9d63acebc081e566af22f4a3499f8 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/network/v20191101/connection_monitor.py | bfaf57c8f178117cd1274495f9a585d412064692 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,417 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
a507d124f2b368eb5c8a2917c26182464ee82d80 | 0f460d915073394419edae4fd474b8cd0f3fbb20 | /ee/clickhouse/views/element.py | b446df5e51a83798bb68df723686a4a031eb048f | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | adamb70/posthog | a74a209e404ea1a4971a693b4e245f20b9c26685 | 54ae8f0e70092f86b4aefbd93b56680dbd28b1c5 | refs/heads/master | 2023-01-24T10:59:32.608200 | 2020-11-18T13:42:26 | 2020-11-18T13:42:26 | 311,673,788 | 0 | 0 | NOASSERTION | 2020-11-10T13:53:18 | 2020-11-10T13:53:18 | null | UTF-8 | Python | false | false | 2,479 | py | from rest_framework import authentication, request, response, serializers, viewsets
from rest_framework.decorators import action
from ee.clickhouse.client import sync_execute
from ee.clickhouse.models.element import chain_to_elements
from ee.clickhouse.models.property import parse_prop_clauses
from ee.clickhouse.queri... | [
"noreply@github.com"
] | adamb70.noreply@github.com |
65dee06c04a9d05d64c166c0b7e5e83898d94e9c | a78e2e6aeea1968297b2c221906edc2aa661c820 | /example/pop_op/server.py | dc1024cee5c959c07cc132d70c56a904c11e2301 | [] | no_license | its-dirg/proof-of-possession | 09e475e43fe42734e8c4962f302341661be76e3a | da8b69ec9cfabab48178105ce89773094f01dd29 | refs/heads/master | 2020-04-01T22:00:22.119397 | 2015-09-29T12:27:49 | 2015-09-29T12:27:49 | 36,801,142 | 0 | 1 | null | 2015-08-21T10:49:00 | 2015-06-03T12:07:55 | JavaScript | UTF-8 | Python | false | false | 6,663 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring,import-error,no-name-in-module
import json
import ssl
import sys
import logging
from oic.utils.authn.authn_context import AuthnBroker
from oic.utils.authn.multi_auth import AuthnIndexedEndpointWrapper
from oic.utils.authn.user import Use... | [
"mathias.hedstrom.mh@gmail.com"
] | mathias.hedstrom.mh@gmail.com |
01c6775be2db39c9556c8c55c3d1e8c38e94c04b | 77721977db9f9095b46459dbd5000cfd87a1f67f | /tests/app/migrations/0001_initial.py | 5c32401e9dfdf9fcd2fc6da97f7a9183c9c383d8 | [
"MIT"
] | permissive | saruba/django-backoffice-extensions | f4a1e82b4684621b61dd16b00a1c688c389a7ac6 | 107cf92d4152587bfc471fc742baf7c3b5e616a5 | refs/heads/master | 2022-11-29T10:25:56.120566 | 2020-08-19T07:40:30 | 2020-08-19T08:01:26 | 280,137,144 | 1 | 0 | MIT | 2020-07-16T11:33:40 | 2020-07-16T11:33:39 | null | UTF-8 | Python | false | false | 1,441 | py | # Generated by Django 3.0.7 on 2020-06-29 13:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"hey@marcosgabarda.com"
] | hey@marcosgabarda.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.