blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
457f651d068dae1e551d1eb386df946c6f285aa0 | 200bcbebf6e4009abe2807cd5d844d655fb431c2 | /ch16/ex_1.py | 4a5bec19fa2e81e6d802f1d059478721dc42b9d3 | [] | no_license | SHUHAIB-AREEKKAN/think_python_solutions | 7b022fd7e19e87495c2c9722e0b1516d4fa83b85 | bf1996d922574c367ea49e9954940662166c46b2 | refs/heads/master | 2021-01-25T08:07:19.865147 | 2017-06-08T07:43:05 | 2017-06-08T07:43:05 | 93,716,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
class Distance():
""" x start ,and y end poin"""
def distance_between_points(x,y):
print("distance between"+str(y-x))
finder=Distance()
finder.x=10
finder.y=30
distance_between_points(finder.x,finder.y)
| [
"homeshuhaib@gmail.com"
] | homeshuhaib@gmail.com |
3d8b1d820a82cdc819d0a188b21e2b3751932b77 | c662dd9d93a2aa5430f3b6731c91f3f5c0add3b4 | /180374156.py | e7ef14051b7c38d742ed9b792650bd846804a9c3 | [] | no_license | deadpool-liu/- | 86b4cd7a35276eef814ec73ef703d7cdb2f84d3d | 946e2dcf87e79c19b25e7a3decc4d6cc4d30d543 | refs/heads/main | 2023-01-12T19:30:07.777783 | 2020-11-19T14:19:22 | 2020-11-19T14:19:22 | 286,028,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | def func(x):
return (x - 60.39636407237782) * (x - 60.39636407237782)
def for_back(function):
x = 30 # 初始值
step = 1 # 初始步长
magnification = 2 # 放大倍数
print(x, step, magnification)
if function(x) > function(x+step):
while function(x) > function(x + step):
print(x... | [
"noreply@github.com"
] | noreply@github.com |
c51427dac75e8302202610302e6adea7783b101a | 1e5cbe7d3085a5406c3bf4c0dd3c64ec08005e19 | /p017.py | b6a8c9aab5a2ed049721f5f7a8d9ce1d7b608766 | [] | no_license | mingrammer/project-euler | 0dfdd0ba83592c49003cb54708e2c520de27f6ac | 4ae57ac9279472c68a27efc50f6d0317f9b73f17 | refs/heads/master | 2021-01-21T16:38:28.983077 | 2018-09-26T10:24:21 | 2018-09-26T10:24:21 | 38,953,014 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Number letter counts
one_digit = [3, 3, 5, 4, 4, 3, 5, 5, 4]
ten_to_twenty = [3, 6, 6, 8, 8, 7, 7, 9, 8, 8]
two_digit = [6, 6, 5, 5, 5, 7, 6, 6]
hundred = 7
thousand = 8
and_letter = 3
sum_len = 0
sum_len += sum(one_digit)
sum_len += sum(ten_to_twenty)
sum_len += 10*sum(two_digit) + 8*sum(one_digit)
sum_len += 10... | [
"k239507@gmail.com"
] | k239507@gmail.com |
bd06eae999b50905759544ab6ba8529547dfa5a9 | 6e466f7432de5f0b66a72583bc33bf0c96120cd4 | /userprofiles/views.py | 2985d63d975451dcb8e22f6676228a78da2b4370 | [] | no_license | Venezolanos/cines-unidos | c9ecc471f1d972af0a3dde89b979e3b8426e712c | e9f5f3b69d9a87098cb9ebf8e392677f111f7f51 | refs/heads/master | 2020-05-29T14:40:30.130621 | 2016-08-25T19:58:53 | 2016-08-25T19:58:53 | 65,574,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from django.shortcuts import render
from django.views.generic import CreateView
from .models import UserProfile
class UserCreateView(CreateView):
model = UserProfile
template_name = 'userprofiles/user_create.html'
success_url = '/'
form_class = 'UserForm'
def form_valid(self, form):
form.save()
return supe... | [
"undefined.hlo.o@gmail.com"
] | undefined.hlo.o@gmail.com |
2069d7e4e6bca3a487aeb162fcc562847e89e129 | 9c7301c9f1dec177998194f1478aa59c2c648fa1 | /store.py | b831f82caa8a9ee8277870e99af73c24b60de7f6 | [] | no_license | git-remove/ReadTopProc | fe208f2cccda0fea96643d902af72ba9f5994977 | c2e9fda1ea6631d2ba58c98187f9148571c1f4ae | refs/heads/master | 2020-05-19T12:54:12.455674 | 2019-05-05T12:01:55 | 2019-05-05T12:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | #-*- coding:utf-8 -*-
# Copyright 2017 Xiaomi, 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... | [
"ab0sin1the2@gmail.com"
] | ab0sin1the2@gmail.com |
04da252c160648f95aaacb775b8dc1de76ad4af7 | 366d9d365fd2b388f103137a772d4c64751bda0e | /runs10.py | 39259822072e0af445ec3d04d521e59ad7fbb271 | [] | no_license | halqin/py_practise | d3df4d86c4ae51ad6667c4583f0f8543b83f137e | bb3e3123565ea4779486a63ef1c4ef20b821a9c0 | refs/heads/master | 2021-09-09T13:10:48.252939 | 2021-09-05T09:09:50 | 2021-09-05T09:09:50 | 174,799,283 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | def group2(seq):
# same value
# distinct color
'''
>>> group2(['4R', '4B', '4Y', '4K'])
True
>>> group2({'6B', '7B', '8B', '9B', '10B'})
False
>>> group2(('11R', '2B', '7Y', '2B', '9K'))
False
'''
if len(seq) > 4:
return False
colorDic = {}
colorList = list('RYBK')
for i in colorList:
colorDic[i] = ... | [
"hao.qin@ugent.be"
] | hao.qin@ugent.be |
63b096074fa76642abd003ae6518dbf1b77cdb39 | eae8d3b6bd1adfc16391e06afadd2f7e0ae0cb65 | /src/visual_xlsx.py | 35662fd310832198b1a57ae26829901d45a2b525 | [] | no_license | joseph5wu/255-assignment2 | 61deef5fd99e5e49621ad3e54ebfc61f46250fe3 | 12acde2230f741c2a65fab51d93cfeea9f22dfc0 | refs/heads/master | 2021-01-10T09:21:30.839557 | 2015-12-01T04:01:35 | 2015-12-01T04:01:35 | 47,001,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import xlsxwriter as xlsx
country_name_ISO2_code = {"AU": "Austrilia", "CA": "Canada", "DE": "Germany", "ES": "Spain", "FR": "France", "GB": "United Kingdom", "IT": "Italy", "NL": "Netherlands", "PT": "Portugal", "US": "United States"}
def get_destination_country_name_list():
workbook = xlsxwriter.Workbook('../data/... | [
"valoriazhou@gmail.com"
] | valoriazhou@gmail.com |
29736a42933c9d083eefb3ce743cf07d17391fbf | f1279aa4dca5f2cf2816de5945c3ce81e3d2a74e | /manage.py | c752a1d87f2d9600f19027c8e64f25722defd995 | [] | no_license | mbojorquez/1erNegocio_v1 | f3e26be34044a2e4a2dfad9bb3810a1fdfab14b6 | ac70e8c6e8022c509614723c7666d77d2ca89d11 | refs/heads/master | 2023-04-25T21:35:43.518957 | 2021-04-29T01:46:03 | 2021-04-29T01:46:03 | 362,646,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'primernegocio.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"mbojorquezspzo@gmail.com"
] | mbojorquezspzo@gmail.com |
d0e9d7f2f0054efa555e29cf78a607c4fa27ad27 | a90a606ea4b43e8716239f75585dd149e686721b | /Beginner/Forgotten_Language.py | ad3d74838c1fd472ad103f30e28569095f61fec6 | [] | no_license | ramanmishra/Code-Chef-Solutions | b79eb16f899e3c1fb7f7c5559c5ef3f360a11d6f | 18158829096149f94e7146ffb8fb9699721f2c26 | refs/heads/master | 2020-04-17T23:37:42.036443 | 2019-02-16T19:54:54 | 2019-02-16T19:54:54 | 167,043,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | t = int(input())
for i in range(t):
dict_word, number_phrase = map(int, input().split())
ans = ['NO'] * dict_word
phrases = []
words = list(map(str, input().split()))
for j in range(number_phrase):
number_words_and_phrase = input().split()
phrases += number_words_and_phrase[1:]
... | [
"raman.mishra7@gmail.com"
] | raman.mishra7@gmail.com |
48eab225481599f1e2d1af2ed3301bf3489cc301 | fef0c0fb85f567027b896aecc7e44d087524a16f | /jina/types/document/__init__.py | aa3e47313321c529ab34429fed8c6d7ad197fc5a | [
"Apache-2.0"
] | permissive | dr-r00t3r/jina | bbd6164365ad8910d73b5e51bb157e44f78885e3 | 355343ae990d2d7aa658a76eb207aed656139004 | refs/heads/master | 2023-09-03T14:47:00.889113 | 2021-11-11T14:25:41 | 2021-11-11T14:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,070 | py | import base64
import json
import mimetypes
from collections import Counter
from hashlib import blake2b
from typing import (
Any,
Dict,
Iterable,
List,
Optional,
Tuple,
TypeVar,
Union,
overload,
TYPE_CHECKING,
)
import numpy as np
from google.protobuf import json_format
from goog... | [
"noreply@github.com"
] | noreply@github.com |
8a3e759a3384c9e89d7bb417e7587f6f23a26599 | a11082b1812e9bdf8fe27ba8d69dea84c9a04e8e | /lib/OptTranLane.py | 72e8c46b23688dcf7eac5e3a26bd3f749941cc7d | [
"MIT"
] | permissive | chawins/DART | 8b88f771c420f7ad2913b17ef9beb00ea8e98527 | f62254ff92ff67bab427cb44fe470a5f39975cbe | refs/heads/master | 2021-09-13T15:50:10.680538 | 2018-05-01T20:42:34 | 2018-05-01T20:42:34 | 102,515,522 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 19,306 | py | import random
from lib.keras_utils import *
from lib.utils import *
from parameters import *
from skimage.transform import ProjectiveTransform
EPS = 1e-10 # Epsilon
MIN_CP = -2. # Minimum power index of c
MAX_CP = 2. # Maximum power index of c
SCORE_THRES = 0.99 # Softmax score threshold to consider success of ... | [
"chawins@princeton.edu"
] | chawins@princeton.edu |
9a6e984e05f946fb47176fd1e463fb0fbbe1f739 | 8168895c50924ce7f2df0570c490cc4c9cea3619 | /jupytext/cli.py | a1555c3dd4e7c4583ae59f99c151a3128ffb1ede | [
"MIT"
] | permissive | GapData/jupytext | fe146bc59ab1cfe623840fad5a900b70dc84d05b | ae943a9a701090fe16c69e0e87b784f833a2ea14 | refs/heads/master | 2020-04-01T18:27:54.812349 | 2018-10-16T21:13:14 | 2018-10-16T21:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,838 | py | """Command line conversion tools `jupytext` and `nbsrc`
"""
import os
import sys
import argparse
from .jupytext import readf, reads, writef, writes
from .formats import NOTEBOOK_EXTENSIONS, JUPYTEXT_FORMATS, check_file_version, one_format_as_string, parse_one_format
from .combine import combine_inputs_with_outputs
fro... | [
"marc.wouts@gmail.com"
] | marc.wouts@gmail.com |
27f9bb69a8cfc8e0e20e74407468703dcc74b2db | eb9423bc56aed51844a1f92616a4ee2528baec38 | /accounts/migrations/0006_auto_20210708_2259.py | e136411e60da9ea521f4c149675c2d2d3e2275c8 | [] | no_license | kioshiokamoto/django-first-crm | fa64d120a8bff6092f84c4f6c174372896b1c9e8 | f6b4fbba612cecc43b70caae63b0d71a86e8d957 | refs/heads/main | 2023-07-07T01:43:14.548295 | 2021-07-21T17:43:00 | 2021-07-21T17:43:00 | 388,199,604 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 3.2.5 on 2021-07-09 03:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20210708_2259'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
... | [
"kjor29@gmail.com"
] | kjor29@gmail.com |
26630aa93e9df5c7dca765efb15eab32728bf86d | 0ab846f7bb16facca22fdfab2f19dba117a3df81 | /social/migrations/0001_initial.py | 3d506295e980ce8bda27cba94cbbd6014b5a4aa6 | [] | no_license | isidentical-archive/Aspava | eeff1b16a51f5f9ae3de881b7c423fa058f879c8 | d7c61a9b0fcc628facca1aa0043858a1937e4eea | refs/heads/master | 2020-05-18T19:57:50.661189 | 2019-09-29T12:48:08 | 2019-09-29T12:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,226 | py | # Generated by Django 2.2.1 on 2019-05-04 17:18
import django.contrib.auth.models
import django.contrib.auth.validators
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
... | [
"btaskaya33@gmail.com"
] | btaskaya33@gmail.com |
52cc2477230420a781d815fc1caa2ed81dfd17f4 | 745bcb25650164e69c41569a4467be52574dfd98 | /tests/constants.py | 4348cf16cc71b8e26b01d6d59c09a93368d0110b | [] | no_license | oyurimatheus/who-wants-a-beer | 70fbc370fc64028453c5bf54e52b543a52e90ca7 | 9f38f208d1aba96975696c2c41eabd5c90d67b32 | refs/heads/master | 2020-04-10T15:12:29.114833 | 2018-12-19T14:10:22 | 2018-12-19T14:10:22 | 161,100,925 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | API_URL='http://127.0.0.1:5000/delivery'
| [
"yurimatheusb@hotmail.com"
] | yurimatheusb@hotmail.com |
077ac9dca59548238a9b2ccb2f1af9e9e1dca208 | 6e87d604f51ba6212f9c50d4a1508b302bc7e8e6 | /apps/accounts/forms.py | e877b5b21c7e94e8c332f989dc206c0f88c13da5 | [] | no_license | whg517/django-example-BookMarks | 1e8c23e409eda47e761b62bbda82bea958f96d4e | fd6af726c0c7d8b0e1ce77148612767ae3036444 | refs/heads/master | 2022-12-08T20:16:27.163157 | 2020-06-28T11:16:16 | 2020-06-28T11:16:16 | 153,598,970 | 0 | 0 | null | 2022-12-08T10:44:46 | 2018-10-18T09:32:00 | Python | UTF-8 | Python | false | false | 1,222 | py | # encoding: utf-8
"""
@author: wanghuagang
@contact: kiven517@126.com
@software:
@site:
@file: forms.py
@time: 2018/10/16 16:06
@desc:
"""
from django import forms
from django.contrib.auth.models import User
from .models import Profile
__author__ = 'wanghuagang'
class LoginForm(forms.Form):
username = ... | [
"21030747+whg517@users.noreply.github.com"
] | 21030747+whg517@users.noreply.github.com |
f457a73cbca000fc2a445c94d38d41594ff73c95 | 64c5341a41e10ea7f19582cbbf3c201d92768b9f | /webInterface/aligner_webapp/yalignve/bin/easy_install | 93fd0dc0b09c482e2de9bddd82e729cf5bbb7991 | [] | no_license | CLARIN-PL/yalign | 6b050b5c330b8eaf7e1e2f9ef83ec88a8abe5164 | 6da94fbb74e803bea337e0c171c8abff3b17d7ee | refs/heads/master | 2023-06-10T18:30:42.112215 | 2021-06-24T13:07:17 | 2021-06-24T13:07:17 | 51,368,327 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/home/nlp/Downloads/Aligner/aligner_webapp/yalignve/bin/python2
# -*- 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())
| [
"krzysztof@wolk.pl"
] | krzysztof@wolk.pl | |
f9d797c43df21655a86fdee684138f49cb9bed79 | af33dc088dbbd4274abf44c1356dc3a66c65ca28 | /normalize.py | c4c09e44d178aecccf7ba71c87dc260b8ee0261a | [] | no_license | rasoolims/PBreak | dce2b14165e864803544a062a4dc68b3a6edffa7 | f2f5b4bdc626f1695ccd55aed8e35c8c69e827bf | refs/heads/master | 2023-01-18T15:58:07.947365 | 2020-12-09T18:57:34 | 2020-12-09T18:57:34 | 300,011,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from break_words import *
if __name__ == "__main__":
parser = get_lm_option_parser()
(options, args) = parser.parse_args()
normalizer = Normalizer()
with open(options.input_path, "r") as r, open(options.output_path, "w") as w:
for i, line in enumerate(r):
sen = line.strip()
... | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
1b6758d8d1c24cae2881f19fe2f83411629f0054 | 2efd0aea5a9660e8c76856fb2e2f1829b3874f2e | /mackelab_toolbox/tqdm.py | 9cb3466b255767a3589a0429406edf0dc42de9ec | [] | no_license | mackelab/mackelab-toolbox | 591fb9f1adf71362f4af0b96f2fe1dd7cf43739f | 6c3f58cddec65002707d063d2cfe749e38a86f0f | refs/heads/master | 2023-08-21T18:55:23.989744 | 2023-04-05T11:08:49 | 2023-04-05T11:08:49 | 204,728,518 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | # https://github.com/tqdm/tqdm#redirecting-writing
import sys
import logging
from time import sleep
import contextlib
from tqdm.auto import tqdm
class LoggingStreamHandler(logging.StreamHandler):
"""
tqdm-aware susbstitute for logging's standard stream handler.
The default handler writes to stderr, which ... | [
"alexandre.rene@freeneurons.ca"
] | alexandre.rene@freeneurons.ca |
b9e628eb7b82cbbaf084c8ae111c31f6a63b94e8 | 9b71c813096222a37029641fe2392490ac32d652 | /tests/collapse/reducer.py | 650c808a466da485229cb6a5c4091cf15ee4425b | [] | no_license | dpetrovych/nonopy | 2771f76b997da691d07c9047c3201c432a46abbe | ee464a304760fd48164d5013e71179eef06004c7 | refs/heads/main | 2023-02-12T22:32:48.463682 | 2020-12-14T21:13:51 | 2020-12-14T21:13:51 | 307,117,251 | 1 | 0 | null | 2020-12-14T21:13:52 | 2020-10-25T14:29:35 | Python | UTF-8 | Python | false | false | 1,922 | py | from nonopy.collapse.reducer import BulkReducer, SlimReducer
from nonopy.collapse.result import CollapseResult
from tests.testcase import TestCase
from tests.utils import stoline
class BulkReducerShould(TestCase):
def test_none_results(self):
reducer = BulkReducer()
result = reducer.reduce([None,... | [
"noreply@github.com"
] | noreply@github.com |
1ad775a3425e73dfbed82ad078db34ddac8f89d9 | e0020f1366cbc5a71dabe1ab826033d8ef009a6b | /shannonlib/preprocessing.py | 4058cecf74207917db729168d0f1bcc851b54c4a | [
"MIT"
] | permissive | okartal/divscan | 62537ccfe5864602e39466d7417337a59db041b4 | 4368b10666a95cb51a3e67e0294cab216b02fd10 | refs/heads/master | 2020-09-12T16:40:42.417070 | 2020-01-28T08:51:37 | 2020-01-28T08:51:37 | 222,482,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # -*- coding:utf-8 -*-
# preprocessing.py
"""Functions for preprocessing data.
"""
def impute(data, method='pseudocount'):
"""Imputes missing values of a data frame.
"""
if method == 'pseudocount':
# given by the parameters of a uninformative Dirichlet prior on the
# probabilities
... | [
"oender.kartal@mykolab.ch"
] | oender.kartal@mykolab.ch |
7ee1193d1e418c327ffcd48da235c61995453529 | c2494e2bee5f93a33e2dd72051ecab1d26176d86 | /jobplus/app.py | 7071630a73ae585531b4229f92ff972a40d45609 | [] | no_license | LouPlus/jobplus12-4 | 356d62752e7227816c8bad9fee1e2b50970e5b98 | 28b4b61ea90262b9ab1587f8ef3e74df4ce9c8ea | refs/heads/master | 2023-05-12T06:47:28.302083 | 2019-07-01T02:31:15 | 2019-07-01T02:31:15 | 194,101,111 | 0 | 1 | null | 2023-05-01T20:58:43 | 2019-06-27T13:31:11 | TSQL | UTF-8 | Python | false | false | 1,257 | py | from flask import Flask, render_template
from flask_migrate import Migrate
from flask_login import LoginManager
from jobplus.config import DeployType, preConfig
from jobplus.models import db, User
from jobplus.handlers import blueprints
def create_app(deployType: DeployType) -> Flask:
app = Flask(__name__, static... | [
"f.hang@outlook.com"
] | f.hang@outlook.com |
9ebcdddd13615153715341467d10cc3710f85a1b | e68ded7f7ad7f8d37172393ce6f0d852499cb9cc | /lib/admin/urls.py | 2e1dc25e2f8ad3374b7dc0810064eabf6d05a964 | [] | no_license | elshobaky/Al8az | 9e93a4c5c049969bc43718554def9c71735b8824 | feb6b1b487591e59fad4f9062ffbf7729cf2335a | refs/heads/master | 2021-01-01T06:14:46.347976 | 2017-07-16T15:06:12 | 2017-07-16T15:06:12 | 97,391,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | """
url mapping for admin app a part of OpenAl8az project.
By : Mahmoud Elshobaky (mahmoud.elshobaky@gmail.com).
"""
# import app engine frameworks
import webapp2
from webapp2_extras import routes
# import app settings
from settings import *
#import project modules and request handlers
from request_handlers import *... | [
"mahmoud.elshobaky@gmail.com"
] | mahmoud.elshobaky@gmail.com |
49be057ff2047be2b384ad0122012c526a1548b1 | afabd1f1778d4911c825409501f215c634319f0b | /src/python/wordalign.py | 3c3e198d3fff84aee4424baca774edd1fa2272e8 | [] | no_license | texttheater/xlci | 030b275a8ecf2bea640c9f9b70aa3fb9fbc768df | 702d3e90b2a97f56b98da62cd072f0988fcfa5a7 | refs/heads/master | 2021-12-24T09:40:10.803445 | 2021-12-22T13:54:49 | 2021-12-22T13:54:49 | 173,109,877 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,162 | py | #!/usr/bin/env python3
"""Converts (M)GIZA++ output to a token-offset-based format.
Input example:
# Sentence pair (1) source length 8 target length 5 alignment score : 0.000275724
tom is obviously scared .
NULL ({ 2 }) jak ({ }) je ({ }) vidět ({ 3 }) , ({ }) tom ({ 1 }) má ({ }) strach ({ 4 }) . ({ 5 })
Assumi... | [
"noreply@texttheater.net"
] | noreply@texttheater.net |
446b1954ef0713f46373376108286f757197384f | bade79e88dd32b42b4841a1e1a94eddfc86652bf | /Agreement/modus/skio/protocol/pms.py | a2649f7c82895dd6c1173cf5fd9b2ba7fdb2a83c | [] | no_license | a452669850/DCSNEW | 927171b10f455b396b50e8400001efcdb5fd1217 | 7578b6b18e021108c3e8b31c5dab2a17ac16a79d | refs/heads/master | 2023-01-04T11:25:09.787625 | 2020-10-20T13:16:54 | 2020-10-20T13:16:54 | 305,712,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,498 | py | import socket
import struct
import typing
from modbus_tk import defines as cst
from modbus_tk.exceptions import ModbusError
from modbus_tk.modbus_tcp import TcpMaster
from pubsub import pub
from Agreement.modus.skio import exception
from Agreement.modus.skio.define import IDev, IVar, T_Val, ValType
_T_OUTPUT_VALUE =... | [
"a452669850@outlook.com"
] | a452669850@outlook.com |
0770d2c11aa10133b98c39627fe8b603309d2098 | c5fa86f4996276d61384fabd691162a2256000a6 | /apps/search_engine_deploy/compose/test-rabbitmq-connect.py | 5b5ec478ea200077b0d9d6b482659db314af0000 | [] | no_license | pksmall/otus-ops | f6297f206ff8f3db62242910112fc2cc253f911e | 7c8f382fb34fa4d928bd7946cddeb382514ec528 | refs/heads/master | 2021-01-03T21:20:18.335281 | 2020-03-15T15:12:59 | 2020-03-15T15:12:59 | 240,240,272 | 0 | 0 | null | 2020-02-13T11:14:43 | 2020-02-13T11:05:04 | Python | UTF-8 | Python | false | false | 942 | py | from os import getenv
from pika import BlockingConnection, ConnectionParameters, PlainCredentials
mqqueue = getenv('RMQ_QUEUE', 'urls')
def callback(ch, method, properties, body):
return
if __name__ == "__main__":
try:
mqhost = "35.197.19.215"
mqport = 31706
credentials = PlainCrede... | [
"pksmall@live.ru"
] | pksmall@live.ru |
6a1b5ebf199b6e023eb697766367c49bb5ec0a63 | 569e1d859320e77ec11cf06f21d3c7d85a4f868e | /App/char_pos_tagger/coffee2.py | 0b7e763fdfeab8c7f454c9b4bf18caa1d391d563 | [] | no_license | martinschnurer/BachelorWork | 2f6b578635aeffe06197855fa70fd926a0866452 | 14b4ee844c9a98c5d980d4b2b6762195dc00a4c3 | refs/heads/master | 2021-01-19T08:24:44.228002 | 2017-04-09T22:33:37 | 2017-04-09T22:33:37 | 87,626,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | import tensorflow as tf
import numpy as np
"""
[
[20 10 20 30 35 68 255]
[50 31 20 18 1 255 0 5]
]
"""
def length(data):
max_numbers = tf.reduce_max(data, axis=2) + 1
sign = tf.sign(max_numbers)
suma = tf.reduce_sum(sign, axis=1)
return suma
# state = tf.Variable(state_, dtype=tf.float32)
#... | [
"martin.schnurer@gmail.com"
] | martin.schnurer@gmail.com |
217ccb92296cf39042a30cba2c587c4da9ac194d | 6e402eabc041dfef73a41a987b53eea6b566fb0c | /best/buses/handlers/bus.py | b35a6dcae3ad41131a502f9e77f978a3afe77103 | [] | no_license | batpad/bombayography | fb125a168ccdb217aff3672074001edb9866f2e8 | 0c6a64d32f826f8b9e43a695a327d64fcb4f58cf | refs/heads/master | 2021-01-25T05:15:51.161024 | 2011-01-02T10:30:23 | 2011-01-02T10:30:23 | 1,213,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from rapidsms.contrib.handlers.handlers.keyword import KeywordHandler
from buses.models import *
class BestHandler(KeywordHandler):
keyword = "route"
def help(self):
self.respond("Send route <bus_no>")
def handle(self, text):
bus_no = t... | [
"b@pad.ma"
] | b@pad.ma |
1574bf91fa053aef47cf8548c54380b76988e91f | 80861e99492590d314dde6f3f19103c6d36fd02f | /ucsmsdk/methodmeta/EquipmentInstantiateNNamedTemplateMeta.py | 526b9387bec99f130ce1272c4922def3c95d0f68 | [
"Apache-2.0"
] | permissive | CiscoUcs/ucsmsdk | 2abf67cc084b0f23e453ae3192669a56018aa784 | d0f0fe2bfc7507e3189408e0113e204bd0d69386 | refs/heads/master | 2023-08-31T04:07:22.546644 | 2023-08-30T06:44:19 | 2023-08-30T06:44:19 | 46,483,999 | 83 | 94 | NOASSERTION | 2023-08-30T06:44:20 | 2015-11-19T10:06:22 | Python | UTF-8 | Python | false | false | 1,336 | py | """This module contains the meta information of EquipmentInstantiateNNamedTemplate ExternalMethod."""
from ..ucscoremeta import MethodMeta, MethodPropertyMeta
method_meta = MethodMeta("EquipmentInstantiateNNamedTemplate", "equipmentInstantiateNNamedTemplate", "Version142b")
prop_meta = {
"cookie": MethodProperty... | [
"vijayvikrant84@gmail.com"
] | vijayvikrant84@gmail.com |
71140f608cbb71effd4d197e1027868c93bdd655 | a8160d8e37a227fd4d8b5fed6a1c4c1eef980612 | /leetcode/LC83_remove_duplicate_in_linked_list.py | 91e0d6563c8457440677c1f7ea8ce3e5535e45cc | [] | 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 | 833 | py | #Given a sorted linked list, delete all duplicates such that each element appear only once.
#
#Example 1:
#
#Input: 1->1->2
#Output: 1->2
#Example 2:
#
#Input: 1->1->2->3->3
#Output: 1->2->3
#
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.nex... | [
"gtatke@box.com"
] | gtatke@box.com |
00adbcc57931f94cdad0e40b2a1ec78dc5c800a5 | aa3386e4de615b1423859a0be677ff237ffd0a35 | /es.py | a12caeeadd99bd0d8fcaeceb0409b8d19dff7900 | [] | no_license | kosano/dz | 3706f23f34c116d0b0053cf4046e5c59d47f3667 | cb0b32bbb119eee8f6c6fa0b1c19eb183369c6b7 | refs/heads/master | 2022-12-12T20:06:10.118263 | 2020-09-10T15:47:38 | 2020-09-10T15:47:38 | 247,706,166 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | import requests
import json
HOST = 'http://node01:9200/poi/info/_search'
def search(kw):
headers = {'Content-Type': 'application/json'}
data = json.dumps({"query": {"term": {"poiCenter.keyword": f"{kw}"}}})
return requests.post(HOST, headers=headers, data=data).json() | [
"17629296573@163.com"
] | 17629296573@163.com |
a4e969cf1aba0818fcce2f0589c09f8557df1e0b | 1867c4c3f402424863f0dce931e4d4553d04bb0a | /office/migrations/0007_auto_20210110_2013.py | 7e6ff6eea0045a4fcfe44fe6ebca6e0a16256754 | [] | no_license | AnthonyRedGrave/innowise-task-api | 67f02792cf1b8fe30e0469a85375d9a45cbf858b | 819593d0873c40bd20925a9cd503548bb1544295 | refs/heads/master | 2023-02-20T13:51:35.054540 | 2021-01-27T18:37:57 | 2021-01-27T18:37:57 | 327,998,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # Generated by Django 3.1.5 on 2021-01-10 17:13
import datetime
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),
('office',... | [
"obarnev@inbox.ru"
] | obarnev@inbox.ru |
a773e41ef132000b96c67ea4fe54eb8f7125c6ab | 93c22f53bc7ce33a4384c53f02988e6c9ccd86c9 | /re_flags_ascii.py | 392bb3d7d26fc66b2dea16eb68f1e9ebb5721655 | [
"Apache-2.0"
] | permissive | Kalpavrikshika/python_modules | a5ce678b58f94d32274846811388d991c281d4d3 | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | refs/heads/master | 2020-03-08T02:23:08.650248 | 2018-06-28T07:38:01 | 2018-06-28T07:38:01 | 127,858,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import re
text = u'Français złoty Österreich'
pattern = r'\w+'
#Give Ascii flag to compile in ascii.
ascii_pattern = re.compile(pattern, re.ASCII)
#Defined in unicode by default.
unicode_pattern = re.compile(pattern)
print ('Text :', text)
print ('Pattern :', pattern)
print ('ASCII : ', list(ascii_pattern.finda... | [
"vrikshikakalpa@gmail.com"
] | vrikshikakalpa@gmail.com |
be00add404e2acdba62eebca02a3ab37fe76711f | ab4fe21b6df474f88686836cc464cd7a28d89a2e | /students/km63/Vovchenko_Ivan/homework 1.py | 769387e9f6bdbda54b4db1a78c171337618be48b | [] | no_license | vnchenko/python_language | 187b4a442de134a61fa7b2a33bc91667e0c6dce7 | c14cbd00f64f301229a093f967bafa824a89ed9d | refs/heads/master | 2021-01-11T04:24:26.370615 | 2016-12-01T21:07:57 | 2016-12-01T21:07:57 | 71,166,154 | 0 | 0 | null | 2016-11-17T20:09:25 | 2016-10-17T17:58:02 | Python | UTF-8 | Python | false | false | 3,297 | py | #exs1---------------------------
"""
Напишіть програму, яка отримує три числа і друкує їх суму. Кожне
число користувач вводить у окремому рядку.
"""
print('Program that takes three numbers and prints their sum')
a=int(input('value#1:'))
b=int(input('value#2:'))
c=int(input('value#3:'))
print(a+b+c)
#------------------... | [
"noreply@github.com"
] | noreply@github.com |
7a0b86fbc1f077005a0d2ac5db3006640f0f1c48 | 3b3336f20a2b1bba75d20774e8ba1962407dacd7 | /example/example/urls.py | 665bb2bf7bfee8b85811821e26b487b615b1fadf | [] | no_license | se0kjun/django-clockguard | 961749b12096f9c33f0477f0c924c9a63bb35304 | 84af2e1eaee2097ef824a53e2bf0dd7a77c09051 | refs/heads/master | 2021-01-10T04:08:57.024461 | 2016-01-04T13:42:41 | 2016-01-04T13:42:41 | 48,736,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """example URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"hong921122@gmail.com"
] | hong921122@gmail.com |
c6870fc890d4ad22ef39102bc76bb25bfaf40b53 | 5ce78db5eac3fa35670bfd85c9c90f45da73d3c6 | /webinterface/settings.py | d59eaecdbe9ce7f3b8c8597dadd8a14f204f3620 | [] | no_license | kamart02/USV_Czajka | 593892731f411e1bd2515e03d563e71c6d57cba4 | e0f7eee1880c92baa2b2e4ece4e0f929a0a98f85 | refs/heads/master | 2023-07-11T10:30:51.521303 | 2021-08-16T10:51:47 | 2021-08-16T10:51:47 | 328,945,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | """
Django settings for webinterface 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... | [
"kamart02@wp.pl"
] | kamart02@wp.pl |
a918c9b0cee38128dd1fcc930b4bec2c06e6d455 | f53891174b71e3b52497b3ab56b30ca7056ef1b7 | /drake/src/drake/cxx/sofia_sip.py | e9f65c8e7cde80d69f69cf90df794dcedeb2da91 | [
"Apache-2.0",
"AGPL-3.0-only"
] | permissive | infinit/elle | 050e0a3825a585add8899cf8dd8e25b0531c67ce | 1a8f3df18500a9854a514cbaf9824784293ca17a | refs/heads/master | 2023-09-04T01:15:06.820585 | 2022-09-17T08:43:45 | 2022-09-17T08:43:45 | 51,672,792 | 533 | 51 | Apache-2.0 | 2023-05-22T21:35:50 | 2016-02-14T00:38:23 | C++ | UTF-8 | Python | false | false | 1,256 | py | # Copyright (C) 2009-2019, Quentin "mefyl" Hocquet
#
# This software is provided "as is" without warranty of any kind,
# either expressed or implied, including but not limited to the
# implied warranties of fitness for a particular purpose.
#
# See the LICENSE file for more information.
import drake
import drake.cxx
i... | [
"mefyl@gruntech.org"
] | mefyl@gruntech.org |
693ab37a53774db951cd32d19956f6554bd81680 | 93bc782ac66af1adb19d7f04e73452e85fa21ffc | /watch/tsys.py | 944644bddc1da9127dcf0936dc55b87b48231be7 | [] | no_license | etsmit/watch | b8b9304124e501a536047a39dcf2751a2fb2b064 | 9dd1ba3a4bbf9b1876b3cdfdbce68b258eab9925 | refs/heads/master | 2021-01-01T06:51:20.953365 | 2017-07-18T22:12:50 | 2017-07-18T22:12:50 | 97,527,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,397 | py | """
Class for computing the System Temperature from hot and cold loads
Cashes the hot+cold and off spectra as theses will remain relatively constant
Revised to store more data
"""
##################################################
# Imports
##################################################
import statistics
import ra... | [
"noreply@github.com"
] | noreply@github.com |
08572d7e13674ef0ffc16d9029cc1059ed6640c1 | 34c702c14c9f4388de7b2235ce5f36a146ce01db | /Roma/Sokolov.py | af5b821f002bd934eb65a23411cef302ffb619f5 | [] | no_license | b1bab0ba/Public | e40d5bfd6c77fef59924a1460c047a1a7a9abb4f | 312d152bbb481307e1250118cf14218b652a4068 | refs/heads/master | 2023-04-10T20:57:07.081996 | 2021-04-22T06:46:31 | 2021-04-22T06:46:31 | 299,714,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
leds=[24,25,8,7,12,16,20,21]
GPIO.setup(leds, GPIO.OUT)
def lightUp(ledNumber, period):
GPIO.output(ledNumber,period)
time.sleep(1)
GPIO.output(ledNumber,0)
def blink(ledNumber, blinkCount, blinkPeriod):
for j in range (0, blinkCount):
... | [
"kuzmin.da@phystech.edu"
] | kuzmin.da@phystech.edu |
a5a46356428a18fbccc661b250af675d7b5334c5 | 8dde6f201657946ad0cfeacab41831f681e6bc6f | /62. Unique Paths.py | 59341fd6c2040b99346b7d2dce4546f675fd0360 | [] | no_license | peraktong/LEETCODE_Jason | c5d4a524ba69b1b089f18ce4a53dc8f50ccbb88c | 06961cc468211b9692cd7a889ee38d1cd4e1d11e | refs/heads/master | 2022-04-12T11:34:38.738731 | 2020-04-07T21:17:04 | 2020-04-07T21:17:04 | 219,398,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | class Solution(object):
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
# DP
dp = [[1] * n for i in range(m)]
for i in range(1, m):
for j in range(1, n):
dp[i][j] = dp[i - 1][j] + dp[i][j - 1]
... | [
"caojunzhi@caojunzhisMBP3.fios-router.home"
] | caojunzhi@caojunzhisMBP3.fios-router.home |
c6d04dc7e037d338200595adeee1a84de4c8674e | 7be2bef4c9ed1d88fc7a34fe81d3a7858bfc9dee | /orders/migrations/0003_topping.py | 8e7a43c18092503d13bf63943c3342957d610390 | [] | no_license | kunalthadani/Pizza | 62ba21d5896b1d0824b12911114e0e7293db0af4 | cfe62921da879911a51cfaf2f66090cabb0fab5b | refs/heads/master | 2022-11-29T08:14:25.556692 | 2020-08-04T17:12:50 | 2020-08-04T17:12:50 | 285,046,020 | 0 | 0 | null | 2020-08-04T17:13:23 | 2020-08-04T17:05:51 | Python | UTF-8 | Python | false | false | 513 | py | # Generated by Django 2.0.3 on 2019-07-08 14:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0002_auto_20190708_1957'),
]
operations = [
migrations.CreateModel(
name='Topping',
fields=[
... | [
"k.thadani14@gmail.com"
] | k.thadani14@gmail.com |
3b7045d3c99356989f8c61b23e1d3e499923095d | 8f3fca2746854de017f944f5adbea91ec5bf2670 | /l.py | 8cb569eb40ea17f8ff9d6a6258926d2354bcb98e | [
"Unlicense"
] | permissive | altg0x0/16_sorting | b8bb783b576f2e0b8a8234c6ea0145eba05d6f2c | 2a52fe62451f032b91c4a4d4b953bd505362fc17 | refs/heads/master | 2021-01-23T08:03:55.148789 | 2017-02-10T19:42:00 | 2017-02-10T19:42:00 | 80,529,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | n = int(input())
arr = []
for _ in range(n):
arr.append(list(map(int, input().split())))
indices = sorted(range(n), key=lambda x: arr[x])
print(*indices)
| [
"altg0x0@yandex.ru"
] | altg0x0@yandex.ru |
dd3fefcb9f3a049b8d44548dc179c3ce3894b3c0 | e86adb09ff5e5bb58766a95fab68d6b5397bb93c | /assets/src/sec120_word_embeddings/intro_samples/similar_words.py | d52cac4b440b1e71006ab98b0b1e357ab020a92a | [] | no_license | kohama1988/NLP | 1e4920c1fa50ae61b37790c205430ad3379c1e9f | 41639571a0e4dd70ce38b009843114cdf6eb0176 | refs/heads/main | 2023-07-10T01:02:14.933478 | 2021-08-17T14:51:40 | 2021-08-17T14:51:40 | 396,376,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import gensim.downloader as api
model = api.load('glove-wiki-gigaword-50') # <1>
tokyo = model['tokyo'] # <2>
print(model.wv.similar_by_vector(tokyo))
| [
"kohama1619@yahoo.co.jp"
] | kohama1619@yahoo.co.jp |
5f166b46fd473fcfe25f0b06cc08d3f91de88d09 | b479dfae48efbcca59c0040bf3d0bfffb179c4e2 | /qiafan/OFFER/62.py | 64e3f7daf8c0189dd447b82ce8a31810d9db8346 | [] | no_license | zjsdcae/LeetCode | c1293b8eaca49e9155f68ada9609fd92b0aaff9d | c3d25117c35ccd6f84579c22ad5d16a1c873d643 | refs/heads/master | 2022-12-11T01:35:35.194984 | 2020-09-15T15:57:52 | 2020-09-15T15:57:52 | 263,896,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | class Solution:
def lastRemaining(self, n: int, m: int) -> int:
index = 0
for i in range(2,n+1):
index = (index+m)%i
return index | [
"yuanwei12345@gmail.com"
] | yuanwei12345@gmail.com |
338450551acd71a052baaad9a5cf0df9ff29a966 | 3194d7f69295a6aa156885aef039b5bf01694b4c | /diskspace.py | 9197a549e5bfa5d2cc81a65d76cb615e3f2d458f | [] | no_license | sandeepmuthathi/python | bdde36337c8ef5a5e2dcebb5120e764c7fb41d4c | 80f480ce91b0f8253b1bb4de7e3633036e31374b | refs/heads/master | 2020-04-09T22:31:41.016115 | 2019-10-18T09:39:55 | 2019-10-18T09:39:55 | 160,630,688 | 0 | 0 | null | 2019-03-07T13:37:08 | 2018-12-06T06:38:42 | Python | UTF-8 | Python | false | false | 205 | py | #Find the disk space usage
import psutil
for part in psutil.disk_partitions():
if psutil.disk_usage(part.mountpoint).percent > 70:
print("Disk usage on {} is High".format(part.mountpoint))
| [
"sandeep.m@endurance.com"
] | sandeep.m@endurance.com |
9064db7215ddf739be50920ed6fb4617e8f43fa8 | 96a6b85ccc89977b36899b98d6c13d301da01778 | /py314.py | dc2282ddfa5311284b4987845c507715dc9d45e1 | [] | no_license | ImBeeMaster/python3_learning | 903d6d4938e332c7adcd3df3b03d5944a370c921 | 53e0803f08f91ea320ebe6bc6f4357d1a7a2dc8f | refs/heads/master | 2020-03-22T21:59:00.587106 | 2019-11-08T21:37:17 | 2019-11-08T21:37:17 | 140,726,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | def cheese_and_crackers(cheese_count, boxes_of_crackers):
print(f"You have {cheese_count} cheeses!")
print(f"You have {boxes_of_crackers} boxes_of_crackers!")
print("Man that's enough for a party!")
print("Get a blanket.\n")
print("We can just give the function numbers directly")
cheese_and_crackers(20... | [
"Oleksii_Pasichnyk@epam.com"
] | Oleksii_Pasichnyk@epam.com |
682ad7458ee8c3a3b669d39d903e656bb7072887 | 651a296c8f45b5799781fd78a6b5329effe702a0 | /monomial/mono_upto_enum.py | 3a359439d6875442b34669e9b22902025af36554 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | #!/usr/bin/env python
def mono_upto_enum ( m, n ):
#*****************************************************************************80
#
## MONO_UPTO_ENUM enumerates monomials in M dimensions of degree up to N.
#
# Discussion:
#
# For M = 2, we have the following values:
#
# N VALUE
#
# 0 1
# 1 3
# ... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
78e35e55c826ae856b9d53c7c2c5c5f48a3902e4 | 0cfb82a60dca3062436359b9544ed849d7d0c9f3 | /app/user/serializers.py | 7f27500a58b9ddf9580c3150d75f033ffefebdd0 | [] | no_license | ivburychka/recipe-app-api | 3474d2358bd03065fb02244f766dfa0beec029f5 | 625991dde45ce2be1d51548ff7309a24bb65fa10 | refs/heads/main | 2023-06-08T12:47:48.910665 | 2021-07-01T09:38:11 | 2021-07-01T09:38:11 | 380,924,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users"""
class Meta:
model = get_user_model()
fields = ('email',... | [
"iv.burychka@gmail.com"
] | iv.burychka@gmail.com |
1cc98c58b0790dbe9fcc7b0cafa6d97fb43db76b | c7a39ecf433a6b954096aed2ef8ef2b3366fab35 | /quora_project/questions/api/views.py | 686c01b36dd75ef3c615aec616367168208b3896 | [
"MIT"
] | permissive | vojta-janousek/Questions-and-Answers-Website | 78f28a8f8ad6e66f7f6aca6db733e41eef3c1485 | 02cfb6274a73f64382e57f3718beb5ee89c2d1ac | refs/heads/master | 2020-11-24T16:09:10.519718 | 2020-04-01T20:58:17 | 2020-04-01T20:58:17 | 228,234,952 | 0 | 0 | MIT | 2020-06-07T17:19:59 | 2019-12-15T18:58:25 | Python | UTF-8 | Python | false | false | 2,803 | py | from rest_framework import viewsets, generics, status
from rest_framework.exceptions import ValidationError
from rest_framework.generics import get_object_or_404
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework.response import Response
from questions.a... | [
"janousek315@gmail.com"
] | janousek315@gmail.com |
0284d92e23809cd7d04fd9c59c3266ec025e9d92 | 3dc9f2aaea2620d6c382211369548d9b52f4039a | /FaceQuality/qualityface/config.py | f0753116b5bb74da50ad2f23270be1c25b0be2cd | [
"MIT"
] | permissive | banana1024/FaceProjects | 6fd4961d73356139c7ebba85428a9c40b02335a8 | 87ae30191c01eadc3cfa59b751db91f1aa76bc5d | refs/heads/master | 2022-09-18T15:40:19.346332 | 2020-05-29T08:15:17 | 2020-05-29T08:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import torch
import torchvision.transforms as T
class Config:
# data preprocess
test_transform = T.Compose([
T.ToTensor(),
T.Normalize(mean=[0.5] * 3, std=[0.5] * 3),
])
# training settings
checkpoints = "checkpoints"
restore_model = "last.pth"
device = 'cuda' if torch... | [
"forrest_zhu@foxmail.com"
] | forrest_zhu@foxmail.com |
36d1659899c751faab31746278931f92921306ef | 714a0f72ffbfe354b39d0b16dcd3ff6b74665506 | /Session5/elif.py | 37340dcd6997667efa1bfc9426d41a639f11fcd0 | [] | no_license | alaphu03/NguyenManhPhu-Python-C4T | c22c448b7b92706c030871ec886c7b29c5a02a7a | 857410e57545d84a29fc4eef0222f1c64759143f | refs/heads/master | 2020-06-10T19:26:03.198779 | 2019-07-11T15:06:23 | 2019-07-11T15:06:23 | 193,721,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # month = int(input("thang trong nam:"))
# if month < 4:
# print("mua xuan")
# elif month <7:
# print("mua he")
# else:
# if month < 9:
# print("mua thu")
# else:
# print("mua dong")
| [
"phunguyen2004@gmail.com"
] | phunguyen2004@gmail.com |
95132659c08cd22b261b2fb2da0dec6bb7160444 | 81b25449e7e07569620f4116e1c59afb87f29a2b | /python/object_oriented_programming/hand_alt.py | 018c338f9a40a6bb1ef54f40e8c8ff8b88ab73d1 | [] | no_license | sljudge/sample_code | 05fe24798a06b8b7314c42fb6abe11b89bd64740 | 8ba596050a85b3dde2bb8d00d920aca57750fa85 | refs/heads/master | 2020-11-25T11:47:36.089539 | 2020-01-21T15:39:43 | 2020-01-21T15:39:43 | 228,642,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # Make a copy of the hand, and try to update it
new_hand = self.hand.copy()
for letter in word:
try:
new_hand[letter] -= 1
except KeyError:
# if 'letter' isn't in the hand, we can't make the word from this hand.
return False
... | [
"samuel.judge.92@gmail.com"
] | samuel.judge.92@gmail.com |
4a67afebd76697c044e83f219959afbfbc761c45 | f17c3d3f6db9e05fcef3d0578d3c9fa412253888 | /django/mysite3/mysite3/__init__.py | 267012a716e1e6ffec8bf12022e946c4a5d07673 | [] | no_license | hayden2020/gitprotect | 1789b4605bd4ee5c54b8dbfc4b000630afd33139 | 3f7efc34d2ba89823fac19af33c9a9c0aebd1225 | refs/heads/master | 2022-12-10T04:44:13.464958 | 2020-08-23T14:39:06 | 2020-08-23T14:39:06 | 275,585,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | # file: mysite3/_init_.py
import pymysql
# 让Django 用PYMYSQL 对mysql 服务器进行操作
pymysql.install_as_MySQLdb() | [
"1345608604@qq.com"
] | 1345608604@qq.com |
ff55a023d0f8d80896942cf970b0fd3231db63e0 | 458c020b75e961b11fe98bd1987b0378d91e8d09 | /main.py | 8fd277fff50713389915da1446778cee7ab70085 | [] | no_license | sukyami/Assignment01 | 8b084adf9782730173f2deefe171597424561bc2 | 8779f89ba57d146344e77f2ad78b22b5566cf2e7 | refs/heads/master | 2023-02-13T10:42:53.246550 | 2021-01-06T16:26:19 | 2021-01-06T16:26:19 | 326,768,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | print("1")
print("2")
print("3")
print("4")
print("5")
print("6")
print("7")
print("8")
print("9")
print("10") | [
"sukyami@gmail.com"
] | sukyami@gmail.com |
8ce285d00303b99b0b8496a11bf7b07d9add61ec | 1cb4e099bf61fb74425d08fa00658f74b43542be | /EX08/EX08.py | 0aa636efdd1e9434ddefaa00cf847e7790dd2096 | [] | no_license | kellerja/ProgAlg-ITI0140 | d512573e0b71b142a534d479e53c222e0cb0ad56 | 5f9d5112d7c87145971ed61548e3abb2237bb57e | refs/heads/master | 2020-05-28T01:26:47.424338 | 2019-05-27T12:48:04 | 2019-05-27T12:48:04 | 188,841,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | """
Module that can test CallCentre.
It uses unittest an EX08_helper modules.
"""
import unittest
import EX08_helper
class Testing_CallCentre(unittest.TestCase):
"""
Class to test callcentre.
Use unittest module.
"""
def setup(self):
"""
CallCenter object creation using EX08_he... | [
"jaanus00@hotmail.com"
] | jaanus00@hotmail.com |
d2f4f00a477ba6241b7a2bae1ea24d4dd33eda1a | 6c357a18f1dd2696ee4382960522d7d125993845 | /naive_bayes.py | 18599d5f816a9de6ffe9b461651c7c527e5837dc | [] | no_license | jordaos/CommitsClassificator | 0804c9040b8010bad4810dd968973e3135b792e8 | f1cdcec1b8d9ed9757c7e9b63745d306e59cd2e4 | refs/heads/master | 2021-01-22T08:34:10.155427 | 2017-05-27T23:01:16 | 2017-05-27T23:01:16 | 92,623,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | #coding: utf-8
from sklearn.datasets import load_files
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.naive_bayes import MultinomialNB
from sklearn.pipeline import Pipeline
import numpy as np
from sklearn import metrics
... | [
"jordao05@hotmail.com"
] | jordao05@hotmail.com |
4c9a2505ce10b5827355816115df2a7df6ca89fb | faa6c13403afc71ebf5260e1fbe8a193da834162 | /google/cloud/monitoring_dashboard_v1/types/layouts.py | 683f6f3539f08df8f5dde57dbbc61779dccd6a02 | [
"Apache-2.0"
] | permissive | datascience2014/python-monitoring-dashboards | 56aedb02481fa467d11d2bf070347ddc38217088 | 54dbb083e0bbc7a22dbdaf0076f2f728229e12cb | refs/heads/master | 2023-02-28T17:36:03.769002 | 2021-01-30T01:10:03 | 2021-01-30T01:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,859 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"noreply@github.com"
] | noreply@github.com |
5b6f7c44c89dacca937bfa38de86f46af2a860a8 | 0251b349f38feb489ff291c032d23e53622d3c88 | /coffee.py | 28b17e78e39e5166b7c0d8717f70f3077d570f90 | [] | no_license | anitasantoso/python_workshop | 208ee5748b977a5b1c936824478fd4bdb2c8ffc0 | aad8128c9dac3de5a1235873936339bf6b991142 | refs/heads/master | 2021-01-10T21:07:29.328842 | 2013-06-15T05:14:23 | 2013-06-15T05:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import csv
f = open("airports.dat")
for row in csv.reader(f):
data = row.split(",")
city = data[2]
airport = data[1]
print(row)
| [
"santoso.anita@gmail.com"
] | santoso.anita@gmail.com |
fa28d630bdb2be7b15926769daaf0cf6361c335e | 8bf8ab29cb25de00c6a799d1f58610528b810592 | /모의 SW 역량테스트/5648. [모의 SW 역량테스트] 원자 소멸 시뮬레이션/참고.py | 29928d51765559d7b11a787d3a4eb2fcd27baddb | [] | no_license | mgh3326/sw_expert_academy_algorithm | fa93fb68862cabeba8f9f5fff00a87f26a014afc | 97cbd2a1845e42f142d189e9121c3cd5822fc8d8 | refs/heads/master | 2020-07-03T21:40:29.948233 | 2019-11-23T07:26:15 | 2019-11-23T07:26:15 | 202,058,567 | 0 | 0 | null | 2019-11-30T06:11:34 | 2019-08-13T03:40:18 | Python | UTF-8 | Python | false | false | 2,743 | py | T = int(input())
for tc in range(1, T + 1):
N = int(input())
atoms = [list(map(int, input().split())) for _ in range(N)]
for atom in atoms:
atom[0] *= 2
atom[1] *= 2
energy = 0
candidates = [[0, 0, 0]]
for i in range(N - 1):
for j in range(i, N):
dx = atoms[i]... | [
"mgh3326@naver.com"
] | mgh3326@naver.com |
b28477b4e29bb41a9e9b42c78ded882797d1b48b | 7ccdcd8e7885603141c55f4c065373417f4aa118 | /list_ele.py | db3665532a1696e4d0b1c27fe0e4ee5bad465db8 | [] | no_license | Icode4passion/practicepythonprogams | f8330c499c660d4e46ab54d7ed44d62625f250db | 8936166d6419df5deef290a5723a30661ea064a2 | refs/heads/master | 2020-03-19T10:02:13.992465 | 2018-06-06T14:26:27 | 2018-06-06T14:26:27 | 136,337,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #Write a Python program to display the first and last colors from the following list.
color_list = ['red','green','white','black']
for color in color_list:
print (color) | [
"yogeerama@gmail.com"
] | yogeerama@gmail.com |
a8af86c7b6ff6194c3a8009a8356a0fa2857d291 | 58ae2c27bd00111cd62477f405f04ee3e4011b05 | /api/venv/bin/flask | c057d196ae32d3872b7a36d8f75be9e2fa5e1630 | [] | no_license | mortongreg/bug_tracker | e063d3da1a5a0df9b93515d816bdc25339903cb1 | 09ba36508ab21f74eb8b9944729b44157eadaa09 | refs/heads/master | 2023-04-02T08:49:40.074299 | 2021-02-28T22:35:03 | 2021-02-28T22:35:03 | 342,983,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/gmorton/sites/bug_tracker/bugtracker/api/venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gmorton@eticainc.com"
] | gmorton@eticainc.com | |
61fc96cbdbdbae2bdd17f620cf967d0f0f88ef4d | b2545b8c1a7ed01216ae090a634ddf19099f175a | /python/coding-challenges/cc-005-create-phonebook/phone_book_class.py | ffe561d02e48a6472d28362db9e9b284221663c4 | [] | no_license | kopuskopecik/my-aws-devops-projects | 50f222986150ccd20d724ccaec9ec637aaf08a3c | 4a25f8f72c262c933ada26c0ac0476f4ef68fbcf | refs/heads/master | 2023-01-10T00:59:39.718578 | 2020-11-03T14:58:48 | 2020-11-03T14:58:48 | 290,531,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | class PhoneBook:
phone_book = {} # class attribute
liste = []
demet = ()
print("Sınıf niteliği")
def __init__(self):
print("init çalıştı")
self.elma = ""
self.liste2 = []
self.demet2 = ()
self.start()
def start(self):
#self.book = {}
... | [
"kopuskopecik@gmail.com"
] | kopuskopecik@gmail.com |
b102270201feb1e54aa870b4bb2119dfe781828c | 36256e966883ccf2b9af7dffc4ad03bcb5fb5ca4 | /venv/Scripts/pip3-script.py | 8bd225133e6919f7ca6b93da4e83a9579f36f16a | [] | no_license | Kolobayeva/DB_courseworkk | 49130f0ae9316e64ab33cb5bae9d6807d442ebc8 | 13fad2d3afd4a624fc268dc3b732be26c3109365 | refs/heads/master | 2022-12-11T12:14:50.919645 | 2019-12-22T17:18:30 | 2019-12-22T17:18:30 | 229,602,026 | 0 | 0 | null | 2022-12-08T07:01:32 | 2019-12-22T17:07:01 | Python | UTF-8 | Python | false | false | 412 | py | #!C:\Users\katri\PycharmProjects\KatiaK\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"katriiin.7@gmail.com"
] | katriiin.7@gmail.com |
e88c457d37dc2fade8276ab631efd6124b5a7b78 | d94e42ac94960e94a8738b97bf44dd5b1b8efcb0 | /day03-requests/reques_use.py | e5906732608617a5e97bfa27a5ad17a5fefc3485 | [] | no_license | nonecode404/learn | 0c10ca0d7e3b2d5443103829c2be67cd122e3ba9 | 44f53c9c3d8dc52ff47b56399f0c414ba210df2a | refs/heads/master | 2023-04-13T12:52:29.670828 | 2021-04-20T10:26:51 | 2021-04-20T10:26:51 | 359,771,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import requests
params = {
"wd":"美女a",
}
url = "https://www.baidu.com/s?"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36",
}
response = requests.get(url, headers=headers,params=params)
data = response.... | [
"xh3033@arcvideo.com"
] | xh3033@arcvideo.com |
ac0e03c9aabb196bcd25e697acd16276ed0dfb48 | 4944541b0cd0fa48a01581ffce5e7ce16f5cf8d7 | /src/Backend/MbkExam/SimpleExam/views.py | 041952f4adbc8875326e27a1df3d2cbda002813f | [] | no_license | aballah-chamakh/the_exam | 49a5b5c9d28c61b2283f2d42d2b2fb771dd48bf4 | dbbbdc7a955ca61572f26430a7788407eaf0c632 | refs/heads/main | 2023-03-28T13:19:18.148630 | 2021-04-03T22:12:51 | 2021-04-03T22:12:51 | 354,404,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.shortcuts import render
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets,status,generics
from .models import SimpleExam
from .serializers import SimpleExamSerializer
class SimpleExamViewSet(viewsets.ModelViewSet):
serializer... | [
"chamakhabdallah8@gmail.com"
] | chamakhabdallah8@gmail.com |
2940b68529710dc93bf0d30abaa82d3d5e446c98 | ee599302c9ff6fe997a33677f902b5fdc055cc61 | /app.py | cbac107bbfef6ec277245eecc12cd33085fc2cf7 | [] | no_license | DoAnhTuan98/doanhtuan-web2-c4e24 | caf4234b1f34f250b6a233c96a55f720d30958b6 | cc5988f779e9a1668a41940aa0321b0a5155320c | refs/heads/master | 2020-04-15T11:15:01.698495 | 2019-01-08T10:59:55 | 2019-01-08T10:59:55 | 164,622,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,072 | py | from flask import Flask, render_template
app = Flask(__name__)
# teamplate rendering
@app.route('/')
def index():
return render_template('index.html')
@app.route("/characters")
def characters():
c_list = [
{
"name": "captan",
"image": "https://cdn.vox-cdn.com/thumbor/pXN... | [
"DoAnhTuan"
] | DoAnhTuan |
d95ae65b44a40731a4a2e3009dc55d90af9ea531 | 58ffe83eb9828668c13242c6f98238f08655f561 | /app/notebooks/problang/custom_mlp.py | 4ac8b927457fd104f247d84542cc19d8682ce335 | [
"Apache-2.0"
] | permissive | DanFu09/esper | f9dcc47cd5677dee8dffb1e066d69332471a0d6c | ccc5547de3637728b8aaab059b6781baebc269ec | refs/heads/master | 2020-04-04T21:31:43.549572 | 2020-01-16T01:14:13 | 2020-01-16T01:14:13 | 156,289,533 | 4 | 0 | Apache-2.0 | 2018-12-14T03:01:02 | 2018-11-05T22:05:07 | Jupyter Notebook | UTF-8 | Python | false | false | 6,720 | py | from inspect import isclass
import torch
import torch.nn as nn
from pyro.distributions.util import broadcast_shape
class Exp(nn.Module):
"""
a custom module for exponentiation of tensors
"""
def __init__(self):
super(Exp, self).__init__()
def forward(self, val):
return torch.exp... | [
"wcrichto@cs.stanford.edu"
] | wcrichto@cs.stanford.edu |
9da5bc48b6b25de374839b5ff3c52287d7561954 | e040251f5581ba0cf17a568fa17a5b13f1c64fca | /setup.py | d7d9915c7b14d0743c8b5733203d5c390efd7df9 | [] | no_license | Sumith1896/pydsa | dc427a3ebfefdcd67895b7bf0662cf9c2740cdf1 | e0440b9b3a27787664fd28416fd0db1022dc7cda | refs/heads/master | 2021-01-18T07:58:37.514960 | 2016-03-09T07:55:39 | 2016-03-09T07:55:39 | 52,964,063 | 0 | 1 | null | 2016-03-02T13:17:50 | 2016-03-02T13:17:50 | null | UTF-8 | Python | false | false | 282 | py | from setuptools import setup
setup(name='pydsa',
version='0.1a1',
description="Python Data Structure and Algorithms Library",
long_description="",
author='PyDSA Development Team',
license='BSD',
packages=['pydsa'],
zip_safe=False,
)
| [
"dtu.amit@gmail.com"
] | dtu.amit@gmail.com |
c436b52eec4081f8bf526d9d4795f98aa8cf4ae2 | 132826d3f9d0a68d70ec9ba411846bbf3695140d | /scripts/sklearn_classifier.py | 53ff3015511ebcee5e6fdc9dbd968284bcb8293c | [
"MIT"
] | permissive | deep-spin/spec | c7f9a4eae08ec7d6a422b7d9f21e52980c836312 | 23db7a559e09ff7f63ede06b04cad226432b90db | refs/heads/master | 2023-03-03T22:53:49.647064 | 2021-02-18T05:01:35 | 2021-02-18T05:01:35 | 312,660,674 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,704 | py | import argparse
import numpy as np
from sklearn.feature_extraction.text import (TfidfVectorizer, CountVectorizer,
HashingVectorizer)
from sklearn.linear_model import LogisticRegression, SGDClassifier
from sklearn.metrics import accuracy_score, matthews_corrcoef, \
preci... | [
"marcosvtreviso@gmail.com"
] | marcosvtreviso@gmail.com |
6a83aa7ed0ecc97a4545f7523f6466eb08d01b75 | 7d8bff2ba9b36bef12a79555b8a4c7e17f6d2189 | /promptsource/seqio_tasks/utils.py | 1b4df95aa161ac06051c2397402342f3922342d2 | [
"Apache-2.0"
] | permissive | bwang482/promptsource | 5ced4e9dffd87ecf2f63ef2b4a209f6b540390c7 | 79470004ec0e4bae9f312a1a11f373562dd5bb7c | refs/heads/main | 2023-09-05T06:24:41.984877 | 2021-11-01T15:09:22 | 2021-11-01T15:09:22 | 412,972,066 | 0 | 0 | Apache-2.0 | 2021-10-03T04:07:30 | 2021-10-03T04:07:30 | null | UTF-8 | Python | false | false | 2,909 | py | import re
import datasets
import tensorflow as tf
import promptsource.utils
def feature_to_spec(feature, length=False):
if isinstance(feature, datasets.ClassLabel):
return tf.TensorSpec(shape=() if not length else (None if length == -1 else length,), dtype=tf.int64)
elif isinstance(feature, datasets... | [
"noreply@github.com"
] | noreply@github.com |
900fd54df91d24ab3780bcd44f4f40e790869f97 | c57439f0c98af370ace65f9d55ef5a457bedc531 | /ydk/models/infra/_meta/_Cisco_IOS_XR_infra_infra_locale_cfg.py | f4b0a7c537e95d67b1f589244f48ddddf454a625 | [
"Apache-2.0"
] | permissive | myahmao/ydk-py | c932fbd8245e554227cce0fd723d9a22887b0c40 | 2f367d93f2088d4abdc2f2bb10ca4864952b458a | refs/heads/master | 2021-01-14T11:32:29.064494 | 2016-03-15T22:44:05 | 2016-03-15T22:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,749 | py |
import re
import collections
from enum import Enum
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum, _dm_validate_value
from ydk.types import Empty, YList, DELETE, Decimal64, FixedBitsDict
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFEREN... | [
"manradha@cisco.com"
] | manradha@cisco.com |
52581ee06a1e6d7eeb441ed375662ccb63d7cd1c | e45f7b307f4a996ecde62a9809b94fdf1a56391c | /app.py | 868d0125eceae44be3f2c06f8c34459fe5bd0156 | [] | no_license | jerkuebler/dash-multiapp | 73d488cb97ad42309c4d694e36b43d2a7a8784f5 | 209172529fd33f5e52884e3a196a91ac0109c6b9 | refs/heads/master | 2020-04-19T20:34:14.297576 | 2019-02-07T16:36:34 | 2019-02-07T16:36:34 | 168,418,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from flask import Flask
import utils
server = Flask(__name__)
apps = ['dataview', 'graphview']
apps_dict = {x: utils.create_dash_app(server, x) for x in apps}
@server.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
server.run()
| [
"jkuebler981@gmail.com"
] | jkuebler981@gmail.com |
fa73f671d8ffc677ddc62bfd1a3e50af83fa0f1e | 70584f2fc225cc44967a15a216eabc869a8fef9c | /B331_Lab6.py | 3d097f64cba62f01ed45b2766572b9e3ef2e4680 | [] | no_license | SolTB/Bio331 | e22b29a2603e1d3a16a20a35cd2850bad3dec1d3 | aba84522d2deaf212c82aea81fbf6ec1324ef43a | refs/heads/master | 2020-07-30T13:53:24.026074 | 2019-12-11T05:27:04 | 2019-12-11T05:27:04 | 210,255,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py | '''
Author: Sol Taylor-Brill
Date: 10/30/19
Project: Lab 6: Network Motif Finding
'''
from graphspace_python.api.client import GraphSpace
from graphspace_python.graphs.classes.gsgraph import GSGraph
graphspace = GraphSpace("soltb@reed.edu", "solTB") #Starting GraphSpace session
import itertools
import random
def mai... | [
"noreply@github.com"
] | noreply@github.com |
9957e7a14d7db921fad9a4cdccf9aeaacb5ce2e9 | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /Matting/tools/predict.py | 83cff09e4a9dc949138a30d8d2bcd28e38cacff4 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 3,468 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"noreply@github.com"
] | noreply@github.com |
f501227c4d36d9d206a9844208b0a7241511e93e | 1cbaab2f8413589268ee7686a569a221a35625bc | /other/duobao_stat_person.py | 22ba9b83136d8335a76ad9da59bf51e6eaad2515 | [] | no_license | zzwwws/python | f84db72da0b90af9db0dddb92e2d5d02193e95a4 | c559ef0beebd852b7d20cf3f979a901a211c9ac7 | refs/heads/master | 2020-12-24T14:09:47.319110 | 2015-11-24T07:16:05 | 2015-11-24T07:16:05 | 27,105,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | #统计一元夺宝土豪们的投注偏好
#-*- coding: utf-8 -*-
import urllib2
import matplotlib.pyplot as pyplot
import matplotlib
import json
#尼玛这个人花了1000w在上面,怀疑是不是npc
CID = '13578716'
#这个人也花了500w
#CID = '19135221'
def get_history_list(url):
response = urllib2.urlopen(url)
js = json.loads(response.read())
dump_js = json.dumps(js,en... | [
"zengzhiwen@yixin.im"
] | zengzhiwen@yixin.im |
31b7f89a03366efd18e57bc5cf79f547072788f6 | a5d54395587f2d8c810d3ae91884dd6493487444 | /linq/_distributed_query/query/blocks/base.py | 2e6c6a98b7f93ecacc7c62efa5496ee1588ff635 | [
"MIT"
] | permissive | jakkes/python-linq | db31007459522e26d648f3548b485affe680a214 | d6ad992e8742009304b6bb76e247c7638d1ee7d3 | refs/heads/master | 2023-05-31T19:23:50.199168 | 2021-08-21T15:44:30 | 2021-08-21T15:44:30 | 136,375,529 | 23 | 0 | MIT | 2023-05-23T01:23:27 | 2018-06-06T19:15:35 | Python | UTF-8 | Python | false | false | 201 | py | from typing import Iterable, Iterator, Any
import abc
class Base(abc.ABC):
@abc.abstractmethod
def iterator(self, data: Iterable[Any]) -> Iterator[Any]:
raise NotImplementedError
| [
"noreply@github.com"
] | noreply@github.com |
98674bbb3a00fd9f154c1c12fd0b9c09240045c5 | 4fed2e41870646fef108a369215111e3de0aecc9 | /catan2/agents/__init__.py | a2e92f0aedc1a689a2a7140ddd4affd86f356c50 | [] | no_license | BradenC/Catan2 | 6107c162e960e07ffa4c3f1130295ff5a5273f97 | edd9aa4c015950eeaf188aeff090f2c609317e92 | refs/heads/main | 2023-02-09T04:25:12.597837 | 2021-01-05T11:11:52 | 2021-01-05T11:11:52 | 326,974,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from .agent import Agent
from .basic import Basic
from .human import Human
from .random import Random
from .simple import Simple
from .zero.zero import Zero
def get_agent_for_player_name(player_name):
if player_name.lower() == 'basic':
return Basic(player_name)
elif player_name.lower() == 'random':
... | [
"bcok@marshallzehr.com"
] | bcok@marshallzehr.com |
4bdf31da2934d30e8b992a0764ee590f6e17c155 | 6b9361b29ae38d776d7b00c0efd7d1411ab11ba4 | /student/permissions.py | 4b27ce8d4edec7586e00a7d21d2003eb6cb16cf8 | [] | no_license | DhruvaDave/django_app | 67596516e605a5f0addd86b450b95204d103f48f | 0889e79b822fdc510ab7de482c355392aad7adbf | refs/heads/master | 2022-12-15T04:57:36.008822 | 2020-09-16T05:24:09 | 2020-09-16T05:24:09 | 293,263,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from rest_framework import permissions
class IsOwnerOrReadOnly(permissions.BasePermission):
"""
Custom permission to only allow owners of an object to edit it.
"""
def has_object_permission(self, request, view, obj):
# Read permissions are allowed to any request,
# so we'll always all... | [
"dhruvadave5297@gmail.com"
] | dhruvadave5297@gmail.com |
5d077689cce68e6c73858e1740436da365b4fade | ec699d58ace81879238756e7c966b4ccdcc40e02 | /simple_network_sniffer.py | aa490b5971ee546451f4051a9368b3468eab5c85 | [] | no_license | dibsy/Network_Sniffer | 040fe58c78ea0a51f1563227a7aa3560ec4cfa70 | 38ab3a8ae0e78390a150cd07f930ae4c606c73ea | refs/heads/master | 2021-01-20T08:48:50.830624 | 2014-03-15T19:33:14 | 2014-03-15T19:33:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | import socket
import struct
import binascii
src_ip=""
dest_ip=""
src_mac=""
dest_mac=""
def macprint(s):
#print s
i=0
mac=""
for x in s:
if i%2==0 and i!=0:
mac=mac+":"
mac=mac+x
else:
... | [
"dibyendu.coder@gmail.com"
] | dibyendu.coder@gmail.com |
27de47e815cc169a42a72c5ba842a799a3715d46 | 2b4cab41fc395738480e2bc8f2fdf0404e6bb60c | /webServer.py | 4d97f486cecda41e4417a96857e4ad521685b68d | [] | no_license | SantiagoSR/DS-HTTP | dc7e7d867342b6b6af317f016ecfa2657ce6206a | d1693f290b35bbd5a0efae8c2ae287b552de46ee | refs/heads/main | 2023-07-16T01:02:57.120826 | 2021-08-28T21:48:55 | 2021-08-28T21:48:55 | 400,555,843 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | #!/usr/bin/env python3
from __future__ import with_statement
import contextlib
try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencode
try:
from urllib.request import urlopen
except ImportError:
from urllib.request import urlopen
... | [
"noreply@github.com"
] | noreply@github.com |
7393811caff09e4853bd6229a295d6e8cf7ce015 | 078b6649532889745f1df6ba699cc9a423e73080 | /train.py | a12ebb6b46169fe4c8ac3268715df84f0a53b209 | [
"Apache-2.0"
] | permissive | Wenyuan-Vincent-Li/HDImGeneration | da92d2c82839ca955d9e30c0b9a7b15119747f32 | e42048f2753a291d6d1492aafea3035c306323bd | refs/heads/master | 2022-12-08T10:37:38.607609 | 2020-09-01T01:45:57 | 2020-09-01T01:45:57 | 224,497,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from options.train_options import TrainOptions
from Training.train import train
opt = TrainOptions().parse()
opt.name = 'prostateHD'
# opt.dataroot = './Datasets/ColonPair_Fine/'
opt.label_nc = 4
Gs = []
NoiseAmp = []
opt.reals = [[64, 64], [128, 128], [256, 256], [512, 512]]
# opt.reals = [[32, 32], [48, 48], [64, 6... | [
"liwenyuan.zju@gmail.com"
] | liwenyuan.zju@gmail.com |
5d99244200e233821370f6c6cbed1f8bdfcd20eb | 91a1a7a813cdb0225b5b94d35b3012ab9e0a2cfc | /Classifier.py | c778427acbaf84067d1b4c74957bc9cefce9d98f | [] | no_license | ceronvgabriel/Music-genre-classifier-by-lyrics | 82623b79cb8af0d7cf8557c5416fe415af2bff63 | a2a4b81a8b43b0be7cf7f07d4cd6c8e59224975b | refs/heads/master | 2023-07-20T19:25:59.345884 | 2018-01-20T10:48:13 | 2018-01-20T10:48:13 | 118,237,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,298 | py |
# coding: utf-8
# In[12]:
#gaboceron10@gmail.com (2017)
import csv
import os
import random
import re
import numpy as np
import pandas as pd
import time
from sklearn import svm
import matplotlib.pyplot as plt
from sklearn.metrics import accuracy_score
from sklearn.metrics import confusion_matrix
#csv fieldnames
fi... | [
"gabriel.ceron@udea.edu.co"
] | gabriel.ceron@udea.edu.co |
7f47dd2ea71b567435a1b6616deae1bfe3b861e8 | 3489dc0c34866c6d450e791d80da077cdd7a84ec | /chartfood/test/renderer_test.py | 278dac19911b6b2d0bf076e9b124a2f7eff05d7a | [
"Apache-2.0"
] | permissive | pib/chartfood | 1fd8216c730b1f3110f8ecc7ef047c57b3ee679f | 96c29400fb5da18f784ebb1aea0c2fb807e117f9 | refs/heads/master | 2021-01-22T05:05:47.230454 | 2013-10-01T18:09:05 | 2013-10-01T18:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,146 | py | from datetime import date
from .dummy_cache import DummyCache
from chartfood.table import Table
from pyramid.renderers import render
import json
import pyramid.testing
import unittest
class GoogleChartTest(unittest.TestCase):
maxDiff = None
def setUp(self):
self.config = pyramid.testing.setUp()
... | [
"pib@paulbonser.com"
] | pib@paulbonser.com |
2de11372164f93ba78719b630d25c0a71e2392ca | 7589588eb5fa2f0c86b30944c8c33b19a4cb60c5 | /euler/17.py | 6cc9181b1a0a1010a1433d97e7b7a8014359a8dc | [] | no_license | karmoka/VariousProjects | 4af2602f1157007201e5f13cd9492f3a6b3157c2 | 3c83a3b1dc6f9c1b871051fe3f214c920461556a | refs/heads/master | 2020-05-16T06:10:47.216369 | 2020-01-08T20:17:42 | 2020-01-08T20:17:42 | 182,836,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | # If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
# If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?
# NOTE: Do not count spaces or hyphens. For example, 342 (th... | [
"raphael_croteau3@hotmail.com"
] | raphael_croteau3@hotmail.com |
4dc572c4f70cd110c4f67f53655c244cae04be97 | 6e891586227c98bde214e816daf8a08aaaec2b98 | /main.py | 8ee7abca410e4ee8a6b84489b755582051ae9160 | [] | no_license | phvargas/CollectActiveTweets | 790ddd1da6805f60364d207db4cfa104ede80ca4 | fd42cb45a1b4aa8622264e47f437c3455ab7adde | refs/heads/master | 2020-03-16T04:02:15.275237 | 2018-05-08T13:28:04 | 2018-05-08T13:28:04 | 132,501,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,566 | py | #!/usr/bin/env python3
from Conversation import Conversation
from time import strftime
import sys
import os
import re
import Utilities.ConvertDataType as conv
from TweetClass import TweetClass
from Utilities.FilePartition import make_partition, get_partition_range
"""
CollectActiveTweets.py: From a captured set of c... | [
"plinio.vargas@verizon.net"
] | plinio.vargas@verizon.net |
e250fcd488a4c2615d7fe6db55c69dfc2945a987 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/switch_over_cluster_request.py | e198efd2d141632f65d73c68f05ebd92d2babbf9 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,122 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SwitchOverClusterRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d2a0d9edb7640d4e010ae4d83bfd07e3a3c6452c | 8e3bb5d2f7ba8ff800e92821ac3618abcad4097a | /store/migrations/0011_auto_20201226_0251.py | 9235b78ba5521f6234a466c21458eccd1e8a4b35 | [] | no_license | DevTechBD/ronald_proj | aaa457f9d892b8e80f54788ecb5a7c82bb4e168c | 24584511416087b03af064c882337d93b13333e0 | refs/heads/master | 2023-02-13T22:25:49.137964 | 2021-01-13T11:56:43 | 2021-01-13T11:56:43 | 327,968,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | # Generated by Django 3.1.4 on 2020-12-25 20:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0010_auto_20201226_0245'),
]
operations = [
migrations.RemoveField(
model_name='subcategory',
name='categor... | [
"devtechbd2021@gmail.com"
] | devtechbd2021@gmail.com |
9bace68bb00dea446e490b5150b8ea921d0e8499 | 94a4388cee6dfeaa1674fba20423e8a3f8f6dd42 | /backend/users/migrations/0003_user_group.py | 33f315c63bb0addf839fdc3d8a692489f8be205a | [] | no_license | crowdbotics-apps/game-mdoe-18873 | 0dc5c1e1827f382d5a84847697d0b1b05191066d | 8bcbe6c9b116fa1294b8104018c9cd36b1536c13 | refs/heads/master | 2022-11-15T17:29:36.126851 | 2020-07-13T22:23:28 | 2020-07-13T22:23:28 | 279,423,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Generated by Django 2.2.14 on 2020-07-13 22:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0002_auto_20200713_2221'),
]
operations = [
migrations.AddField(
model_name='user'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1978ec974f90a87188934dfb3832ae994ec0f67c | 77a486b94c5dcf26f9b08992ce98f92119c93a54 | /algorithms/linear_models/LogisticRegression.py | 9314a4458d9d3d1449746272ea9acef3a92b894b | [] | no_license | randxie/machine-learning-practice | 34edec821a9f1fe10711e6f4d2909abb97095941 | 33121c1cc34b7abf7788fa069ed5b0eda0705919 | refs/heads/master | 2020-03-15T19:13:06.618912 | 2018-07-02T02:23:43 | 2018-07-02T02:23:43 | 132,302,971 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,028 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 27 20:06:31 2016
@author: randxie
"""
import numpy as np
from scipy.misc import logsumexp
class LrSolver():
def __init__(self, data, num_feature, num_class):
# general parameters
self.max_iter = 200
self.lreg_factor = 1
self.N = data.sh... | [
"randxiexyy29@gmail.com"
] | randxiexyy29@gmail.com |
e92843c490ee3b3bef086f18bc2cb42c70601aac | 59d5e8f1016b1a24cd3ad3f13a7a0a705e53bf1e | /mysite/store/migrations/0008_auto_20160523_1604.py | a264dcff174150c6a51e26e5e317635afd62cbcc | [] | no_license | andreyklimkin/Online-Store | ff8cad699cc69c7d8da697aa964fd314cd8baba8 | 292061900aba2faeb53322d8a3b70c998ef425d0 | refs/heads/master | 2021-01-21T04:38:18.248726 | 2016-06-22T12:13:26 | 2016-06-22T12:13:26 | 50,745,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0007_remove_watches_collection'),
]
operations = [
migrations.RemoveField(
model_name='watches',
... | [
"andreyklimkin@yandex.ru"
] | andreyklimkin@yandex.ru |
9db96abccd5b62b41daa94a3a729d2e868c9c8b7 | 3efca607aefbd6cf558517bae689ccdacb7b383e | /contrib/devtools/symbol-check.py | 5fdf31de16afe2e2d14e6880f9d5cb158835dd4b | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | MicroBitcoinOrg/MicroBitcoin | f761b2ff04bdcb650d7c0ddbef431ef95cd69541 | 0119e8eff44ec4d94313eaa30022a97692b71143 | refs/heads/snapshot | 2022-12-27T10:04:21.040945 | 2021-02-09T05:51:45 | 2021-02-09T05:51:45 | 132,959,214 | 21 | 33 | MIT | 2020-06-12T04:38:45 | 2018-05-10T22:07:51 | C++ | UTF-8 | Python | false | false | 6,136 | py | #!/usr/bin/env python3
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
A script to check that the (Linux) executables produced by gitian only contain
allowed gcc, glibc and libstdc+... | [
"iamstenman@protonmail.com"
] | iamstenman@protonmail.com |
4b5b0f5532e57b8b00caa589a05438048e18c14b | 271c2c3e14f6570ddf37c8956b193492378f286f | /graph.py | 0e26c9425d06e3bae5501f559e0d3ede8edaf86c | [] | no_license | pmj812/schoolwork | 7df0a461d8dd80432a5d18f23f0ec7aae1b742ef | 0855fb307c271052a50c4ee557eea3a09ecc9918 | refs/heads/master | 2021-01-10T06:15:52.099091 | 2016-01-10T00:06:38 | 2016-01-10T00:06:38 | 49,341,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,973 | py | '''
Created on Apr 19, 2015
@author: pmj812
'''
import collections
import functools
@functools.total_ordering
class _Vertex(object):
def __init__(self, name):
self.name = name
self.neighbors = collections.OrderedDict()
# the Vertexes that this Vertex is connected t... | [
"paulmjenn85@gmail.com"
] | paulmjenn85@gmail.com |
7fc5758405ca026dea94f7652bbc048e4946f63b | 703ac5da628a9f10cc01749a5762413830d3c396 | /oblig3-B/NorwayTSP_Data.py | 678b628e602fdd8acefa9c4dab27ffa8ec6a3ea1 | [] | no_license | elgbar/INF170 | 07386a3df3919420c1520ec2d1699fb3de86b9a3 | f6e12a72fb5b2d6324a8daa1079ceb2e53db0174 | refs/heads/master | 2023-01-04T00:13:40.460041 | 2020-11-03T09:23:53 | 2020-11-03T09:23:53 | 249,500,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | pos={1:(451,92),2:(81,446),3:(27,140),4:(151,219),5:(335,37),6:(15,138),7:(428,80),8:(718,231),9:(911,843),10:(987,1068),11:(522,229),12:(536,555),13:(458,131),14:(566,291),15:(296,26),16:(29,251),17:(500,112),18:(69,108),19:(588,559),20:(111,459),21:(517,186),22:(1392,1177),23:(1239,1056),24:(2607,1249),25:(626,586),2... | [
"klink100@gmail.com"
] | klink100@gmail.com |
674c2b7749460a7986b185549af3c5378b212166 | 5fa71bef13297ecde248c2e00813ea10a097893c | /app.py | 430980839d2806b62a58676b1a06c5f516ef5878 | [] | no_license | vatheara/frame-changer | 4bef72c89949c86c88d62b3d6cdcbf6fda54d50b | 309500a53e9dbab86c4bd5b43853a2e54c693eeb | refs/heads/master | 2022-11-11T23:18:13.397275 | 2020-07-03T06:51:34 | 2020-07-03T06:51:34 | 276,829,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from flask import Flask , render_template, url_for
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
if __name__ =='__main__':
app.run()
| [
"noobie@localhost.localdomain"
] | noobie@localhost.localdomain |
c09a0cfac0b3372a8ca32d91799975aac6a12330 | 2b0f4f3590f5407da83d179db8103803f7c75e8f | /app/migrations/0001_initial.py | 772108d2acc8d7505d61bc9d919cf0a57b15c355 | [] | no_license | caiomarinhodev/ciacimento | 6c783f169ac912ed599bcfaa6a208d5be5c7942e | cf7a6951196bc36655fe0b303e3131932ec254cf | refs/heads/master | 2023-07-07T00:25:16.101307 | 2023-02-28T00:46:12 | 2023-02-28T00:46:12 | 117,120,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,211 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-01-16 10:38
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):
initial = True
dependencies = [
migrations.... | [
"caiomarinho8@gmail.com"
] | caiomarinho8@gmail.com |
7d81bc0da393e09edcff01ede063e75f6a293dd0 | ca3a11cdf5f3a11b17c8b5034e3454d8efc2c1b5 | /hw2/src/__init__.py | 5817dfe808163053bbda1e3e0e5293e7829359fc | [] | no_license | Valentin-Buchnev/NLP-mipt | 69de138df12816fe9181f7477c5cade3028848dc | 0380151b474322d9090e5b87484a01afe0781b77 | refs/heads/main | 2023-04-08T06:51:54.339330 | 2021-04-19T14:42:25 | 2021-04-19T14:42:25 | 343,492,048 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | import logging
from .utils import get_tqdm
logger = logging.getLogger(__name__)
tqdm = get_tqdm() | [
"buchnev.valentin@gmail.com"
] | buchnev.valentin@gmail.com |
b6f88f2b5d208ea6af89deee1baea2098bb1a36b | d4d5285203ceff3e3525767fee7964fd82181251 | /modules/command.py | 967fd05f0918fbc6d32e187fae587cb07f2310c7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Musou/borkedbot | f85f3bfe6203e5bedd4bdca7eae3e9c1e3da7603 | e3991e943f25a5d43a2baa2a4a819d547e1eef16 | refs/heads/master | 2021-01-17T23:15:38.117262 | 2015-03-01T05:38:47 | 2015-03-01T05:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,414 | py | # -*- coding: utf-8 -*-
import sys
sys.dont_write_bytecode = True
import time, subprocess, random
LOAD_ORDER = 70
# DO_NOT_ALERT = True
class OK(): pass # Everything is ok
class DELAY_LOCKED(): pass # Not enough time has passed to use this command again
class WRONG_TRIGGER(): pass ... | [
"dalmodovar.1337@gmail.com"
] | dalmodovar.1337@gmail.com |
85088eacba5308197f33e27ba24606ab396d75a9 | 5b2c09d334c4cba225cbdeede6c2c75550a63cd3 | /docs/conf.py | 8c6ab14001e3744fbfcdd7998b59d1b29eaeb147 | [
"BSD-3-Clause"
] | permissive | lneisenman/seeg | e033b57ad621374643d57c1f62c3c4ea8d96d643 | 37efd4d85b9f4b3a110f9b09650f50a3a23f63d5 | refs/heads/main | 2023-07-08T05:44:26.510001 | 2023-06-21T21:26:21 | 2023-06-21T21:26:21 | 132,663,665 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,334 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# seeg documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autoge... | [
"leisenman@wustl.edu"
] | leisenman@wustl.edu |
0f38fb997bd7fb1c45fdafa38d2b789add3c557a | abdc831a0f9a7136e2730ab7ea0b2d8cccbfd295 | /src/annette/utils.py | c4ee0e7e26fbb4bed76ed93dc5f33cddf0cce407 | [
"Apache-2.0"
] | permissive | rachmadvwp/annette | 9469e5a4ca9b0b23854662c23a4dc90fca7d7380 | ed91280f09201316842022f2a86bac763b632b29 | refs/heads/master | 2023-04-13T17:38:17.353696 | 2021-04-27T09:42:58 | 2021-04-27T09:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,505 | py | import pickle
import pandas as pd
import numpy as np
import json
import os
from pathlib import Path
from collections.abc import Mapping
from annette import get_database
__author__ = "Matthias Wess"
__copyright__ = "Christian Doppler Laboratory for Embedded Machine Learning"
__license__ = "Apache 2.0"
... | [
"matthias.wess@gmail.com"
] | matthias.wess@gmail.com |
5691ed7a7d579503c57d55a67d52f2010fa0c88b | 2de5bf01f8e851809431ed6303a5b3a718b7fe93 | /conceptnet5/readers/globalmind.py | 05004f4e6e014b3d2a8fddf2fbfffef6ae02427d | [] | no_license | bblack/conceptnet5 | f617977aef864069561cc9caab4267dc18765354 | 5250cc9e8d37c456815f4f9846385c1438f95688 | refs/heads/master | 2021-01-15T12:14:18.166850 | 2014-03-05T15:56:30 | 2014-03-05T15:56:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | from conceptnet5.nodes import make_concept_uri
from conceptnet5.edges import MultiWriter, make_edge
import yaml
import sys
import json
lang_codes = {
'eng': 'en',
'cht': 'zh_TW',
'chs': 'zh_CN',
'jpn': 'ja',
'kor': 'ko',
'spa': 'es',
}
lang_names = {
'eng': 'English',
'en': 'English',... | [
"rob@luminoso.com"
] | rob@luminoso.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.