blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87eff0b3c9ddab212912be87826ddc770f8a2187 | ac176f429c420a8d6290c57df14346d207cff3de | /leetcodepython/app/leetcode/380.py | 9ce7dfb0338e06c907aba080ed7763a4ec93c16d | [] | no_license | xu20160924/leetcode | 72c6fc02428e568148af4503c63c6f2553982a1c | 43e12a3db5b4087913ec338e652ae7fd59859c23 | refs/heads/master | 2023-08-04T14:41:06.964273 | 2022-11-20T13:39:28 | 2022-11-20T13:39:28 | 252,931,114 | 0 | 0 | null | 2023-07-23T10:52:04 | 2020-04-04T06:57:49 | Java | UTF-8 | Python | false | false | 680 | py | from random import choice
class RandomizedSet():
def __init__(self):
self.dict = {}
self.list = []
def insert(self, val: int) -> bool:
if val in self.dict:
return False
self.dict[val] = len(self.list)
self.list.append(val)
return True
def remov... | [
"xu20151211@gmail.com"
] | xu20151211@gmail.com |
ec8be8b241f2596c74299a4b06fd66ad143d458a | d7016f69993570a1c55974582cda899ff70907ec | /sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/aio/operations/_component_linked_storage_accounts_operations.py | 5c5b89b09688f8fc50620bd2e8f592eb267b4831 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 25,551 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
9182eaa7f5f7285efe41b14655d30b60846c8320 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_zephyrs.py | 38f03736b025c8e20af7c2b4b3508ac068fbd3ab | [
"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 | 238 | py |
from xai.brain.wordbase.nouns._zephyr import _ZEPHYR
#calss header
class _ZEPHYRS(_ZEPHYR, ):
def __init__(self,):
_ZEPHYR.__init__(self)
self.name = "ZEPHYRS"
self.specie = 'nouns'
self.basic = "zephyr"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f33788314ab1fcd7ad7f64d8e44b77efbc9e97d2 | 198f73858c2e6064d86a0f05fbd3299e795b880c | /home/migrations/0006_userdetail_image.py | df7273956d579d51d9a921d58eafb733c6b73e6e | [
"Apache-2.0"
] | permissive | sandipsandal/Just-A-Thought | 756e3a6c01158759bd5d01924b4f3449d64b3506 | 97f97404b303deb2ea7bcc86d89b2b21b3715fba | refs/heads/master | 2022-12-23T11:05:32.701479 | 2020-09-26T12:14:03 | 2020-09-26T12:14:03 | 298,791,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.0.9 on 2020-08-18 18:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0005_userdetail_mobile'),
]
operations = [
migrations.AddField(
model_name='userdetail',
name='image',
... | [
"sandipsandal@gmail.com"
] | sandipsandal@gmail.com |
b4af09295fdcf9510b2c4ae49e5f248e19407252 | 987390ca6481ec5aa2b9e0e0e849203b6c22ce62 | /zkeco-core/python-support/base/variable_for_trans.py | a73ef2f2f8cde16dc67c065fb9324ec3030e7872 | [] | no_license | alungboy/johan-doc | 81b2363e7f2ad189d0623007eea66233a2e18f1c | 7ced14577405caf6127df03007619fe9cfda3847 | refs/heads/master | 2020-04-03T18:01:08.531971 | 2013-08-13T04:26:42 | 2013-08-13T04:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,369 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
#变量的翻译放在此数组中好让makemessage_ext能够检测到
#list_variable_for_trans=[
#_("get_emp_name"),
#_("name"),
#_("groups"),
#_("accfirstopen_set"),
#_(u"首卡常开"),
#_("get_name_by_PIN"),
#_(u"姓名"),
#_("accmorecardset_set"),
#_(u"多卡开门"),
#_("int... | [
"xiongjianhong@a5b1b082-b159-ab12-9a9e-d79e7dfc8adf"
] | xiongjianhong@a5b1b082-b159-ab12-9a9e-d79e7dfc8adf |
81b17f81b23475bf220d8fcfc6892e06a49c3461 | 0d87906ca32b68965c3aa5b4cb829383276b13c8 | /veriloggen/dataflow/dataflow.py | e2fd12adb393621889cb4725977bbbee6158d103 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | tanbour/veriloggen | 301beea3d9419c2d63d1d1159a2ec52ed316ef20 | 858fbc872be78964cfc7e5a23e1491b2c3d5cf52 | refs/heads/master | 2020-03-18T20:38:24.653119 | 2018-05-19T04:49:01 | 2018-05-19T04:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,524 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import copy
import collections
import functools
import veriloggen.core.vtypes as vtypes
from veriloggen.core.module import Module
from veriloggen.seq.seq import Seq
from . import visitor
from . import dtypes
from . impor... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
38217eb5a0ddd6cc4e151e059afd154bbdce7ed8 | 2946cc54680c68eb32d4c1c514f5771979a1b25b | /zadachapop.py | f05ca14a666d95f64f6754761e823951d3f0c11b | [
"MIT"
] | permissive | Aijana-github/Aijana_new_github | f00bcb18fb959b017cc6e8c96c4427fdf2e3dc2d | d7eb06b7c5374d2a59484fe9e78f60eb2645ab7e | refs/heads/main | 2023-01-12T06:16:31.175892 | 2020-11-09T03:31:06 | 2020-11-09T03:31:06 | 306,527,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | list1 = [1,2,3,4,5,6]
def change_list(mode,number):
if mode == 'add':
list1.append(number)
elif mode == 'pop' and number in list1:
list1.pop(number)
elif mode == 'remove' and number in list1:
list1.remove(number)
elif mode == 'pop':
if number >= len(list1):
pr... | [
"ayzhana.abdrahmanova@mail.ru"
] | ayzhana.abdrahmanova@mail.ru |
5eb8452bc0e7c1854864fd2798cebc3c12178e0d | 959617c05cd561b14b647bf6a55f5ab2bfda3d9a | /pid/test-pid.py | 019cb0db00470e570f33f8aea031a1647022b252 | [] | no_license | HeBeiLiangJianFei/selenium-geetest-- | c5fd7555b10da98e7e67a41e76ff419cb81a224b | 76b9904d1133c98f5ee5caefca1233b4e55d8753 | refs/heads/master | 2020-04-27T04:09:22.723949 | 2020-03-14T03:40:29 | 2020-03-14T03:40:29 | 174,045,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | import time
class PID:
def __init__(self, P=0.2, I=0.0, D=0.0):
self.Kp = P
self.Ki = I
self.Kd = D
self.sample_time = 0.00
self.current_time = time.time()
self.last_time = self.current_time
self.clear()
def clear(self):
self.SetPoint = 0.0
... | [
"m13833170342@163.com"
] | m13833170342@163.com |
40468fcbfed1e9ee8f9ffa01d3ec8979ac0b5493 | 575ab9f0027d82a26041f37a443cda16cf010379 | /DeepLearning/BILSTM-CRF/Model.py | c784d28dd143dd8d704b221371c5da68a36290c4 | [] | no_license | huning2009/MachineLearning | ca665d63c6924d6229bcdea09d0e9fe715d2d1c8 | 016b98eae7e31aab4e2ca5a14e86150f31e97bba | refs/heads/master | 2022-04-08T06:01:05.370260 | 2020-03-12T04:24:16 | 2020-03-12T04:24:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,612 | py | #-*- coding:utf-8 _*-
"""
@version:
@author: CharlesXu
@license: Q_S_Y_Q
@file: Model.py
@time: 2018/4/3 17:50
@desc: BiLSTM + CRF 模型层
"""
import numpy as np
import os, time, sys
import tensorflow as tf
from tensorflow.contrib.rnn import LSTMCell
from tensorflow.contrib.crf import crf_log_likelihood
from tensorflo... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
b10c2f615a276a88bad43d9a2a4de0fd2cff1552 | 2386f273ee2be3a1b0fe7957f372dfc5eb98f53c | /w13/class_to_serialize.py | e86048952cb5ee1e2b6425ef37977bb5f0274ac2 | [] | no_license | MekanYaldyrov/python_course | 7f84fd92d51903bd6bd4725b764247ad0f2be631 | 6150da69316a4229eae6c112ea1cbc3f592b275b | refs/heads/master | 2023-02-10T12:19:49.690417 | 2021-01-09T12:32:09 | 2021-01-09T12:32:09 | 324,836,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | class MyClass:
def __init__(self, name, surname, is_hired):
self.name = name
self.surname = surname
self.is_hired = is_hired
def obj_to_json(my_class_instance):
return json.dumps(my_class_instance.__dict__)
def json_to_obj(my_class_instance):
obj_dict = json.loads(my_class_insta... | [
"Mekan.yaldyrov@phystech.edu"
] | Mekan.yaldyrov@phystech.edu |
005fddaf792fc04b309616c6034b81aacf2e8156 | 1bf997c06373f7a25a961fb0eccd27347f17da04 | /Test/Copy_playlist2folder.py | 8e8b3a1ced5d987dd41fd30a846b018dadb0774f | [] | no_license | sbuvanesh/P_MusicManagement | 3f7a4d175fd9646a91da701f28d58312fe2c7a32 | 919f88f8845609a798bf2bea1e76d1951b26a97a | refs/heads/master | 2021-01-10T04:02:58.371378 | 2015-12-21T20:05:22 | 2015-12-21T20:05:22 | 48,390,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import shutil, os, sys
if __name__ == '__main__':
if len(sys.argv) == 3:
plylist_path = sys.argv[1]
dst_path = sys.argv[2]
os.chdir(dst_path)
plylist_dst_dir = plylist_path.split('/')[-1].replace('.m3u','')
if not os.path.exists(plylist_dst_dir):
os.mkdir(plylist... | [
"sbuvanesh@gmail.com"
] | sbuvanesh@gmail.com |
b4ccb518eb8bf230a4b567858d689fcbd4e4e99e | 3491f64abc9260775cb6f7118135af823a98d0cd | /server/apps/user/models.py | e3ebfcd7ab6690cf7b21775091dc2344365d3f25 | [] | no_license | Moonsteel22/shop_backend | f658eeba7a77cf677c1dec0b0974cac892e28de3 | 05cfec89bbe8e4c424f85f4b0545d5557fa41f5a | refs/heads/master | 2023-07-21T23:05:03.549149 | 2021-08-27T11:20:21 | 2021-08-27T11:20:21 | 397,538,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.db import models
from django.contrib.auth.models import User as IUser
class User(IUser):
phone = models.CharField(max_length=11, blank=True)
age = models.PositiveIntegerField(default=0)
img_url = models.CharField(max_length=100, blank=True)
role = models.CharField(max_length=2, default='U',... | [
"aibulat.ryic@gmail.com"
] | aibulat.ryic@gmail.com |
6ddc57efa21919842854084e39f17c690a578d3b | 1822440a663916fc4b38ba09edb91f7b0d313c6f | /tests/test_css.py | f66ca0bfaf0a349695078930bf1125cb6ca1d9d2 | [
"BSD-2-Clause"
] | permissive | herbstluftwm/herbstluftwm | 09fb4318ed1a00bf96335a93cb7d3ebba58b3f2d | d6be49251ccaf0fed6edc30ee80017d40b5eeccf | refs/heads/master | 2023-08-11T00:40:40.568941 | 2023-06-06T09:51:17 | 2023-06-06T09:51:17 | 24,884,178 | 1,167 | 131 | NOASSERTION | 2023-08-30T13:00:19 | 2014-10-07T09:27:20 | C++ | UTF-8 | Python | false | false | 14,792 | py | import textwrap
import re
def test_basic_css_normalize(hlwm):
input2normalize = {
"// comment\n foo .p, bar.c,* +c { border-width: 4px 2px; }": """\
foo .p ,
bar.c ,
* + c {
border-width: 4px 2px;
}
""",
"x { /*com\nment*/ border-width: 1px 1px 1... | [
"noreply@github.com"
] | herbstluftwm.noreply@github.com |
cd8e107457bcea7b89eaafa34671542afd9c7553 | 926b3c52070f6e309567c8598248fd5c57095be9 | /src/mmgeneration/tests/test_models/test_pix2pix.py | f2cb3ee96a56efa0c95c1e827fc3730127774bb0 | [
"Apache-2.0"
] | permissive | fengbingchun/PyTorch_Test | 410f7cd2303707b0141d433fb9d144a961e1f4c8 | df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348 | refs/heads/master | 2023-05-23T16:42:29.711338 | 2023-03-25T11:31:43 | 2023-03-25T11:31:43 | 167,339,907 | 15 | 4 | null | 2023-03-25T11:31:45 | 2019-01-24T09:24:59 | C++ | UTF-8 | Python | false | false | 10,226 | py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import torch
from mmcv.runner import obj_from_dict
from mmgen.models import GANLoss, L1Loss, build_model
from mmgen.models.architectures.pix2pix import (PatchDiscriminator,
UnetGenerator)
def test_pix2pix():
... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
83d393d04b40ab618e4180b6f90abaaa3f0c30ea | feb46219641392c35670881bb5a26f2bffc2e837 | /prac8.py | 0d1a87ad9b17743663ada26e72ebd2861334c872 | [] | no_license | 17mca1050/Advanced-Embedded-Programming-Lab-CAT-857- | d2e1d90de3438b3fbb6d8eafe4f23f42b9455610 | c485d7ac95abf35c7f9ff2d5277bd4a62c4b4bf5 | refs/heads/master | 2021-05-18T20:01:46.762358 | 2020-03-30T20:11:09 | 2020-03-30T20:11:09 | 251,393,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import urllib
import cv2,time
import numpy as np
first_frame = None
url= ’http://192.168.2.52:8080/shot.jpg’
imgResp = urllib.urlopen(url)
imgNp = np.array(bytearray(imgResp.read()),dtype=np.uint8)
img = cv2.imdecode(imgNp,-1)
cv2.namedWindow(‘image’,cv2.WINDOW_NORMAL)
cv2.resizeWindow(‘image’,600,600)
i=... | [
"noreply@github.com"
] | 17mca1050.noreply@github.com |
1196f945f853b96059f7283b9cbc5f49a719f37c | fdd8a9ffefea5f6a1e5e4548803ab3fbf83318a4 | /OCRopyServices/RecognitionService/RecognitionService/urls.py | d71c94fb26bc33c9def3eefb94ef8529c22db92e | [
"Apache-2.0"
] | permissive | acislab/HuMaIN_Microservices | cecc63d517ee107da7b27cb4596cb4b2d8d655c8 | 1bd4ac8885799f54959daa6304a0148c5f1d4a9f | refs/heads/master | 2021-07-10T07:20:40.276888 | 2020-06-07T11:15:52 | 2020-06-07T11:15:52 | 97,147,994 | 1 | 2 | null | 2017-07-20T00:52:04 | 2017-07-13T17:17:48 | Python | UTF-8 | Python | false | false | 1,045 | py | """RecognitionService URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home... | [
"jingchaoluan@gmail.com"
] | jingchaoluan@gmail.com |
dde0cf9be9d0e57920c808810c2a7c4010f1fea1 | d2a9e616dc94e3d9959fd7fa9e0abbbcbc23221d | /preprocessing/papework2.py | 469e5a912a5b19079b41f59bea08a504701b2967 | [] | no_license | pelekhs/Visitor_distribution_prediction | 17189e401eb83e7260047ef2a7b1527929d2ad0e | ec06bfcd975fa4c92cd7c496ca63280f0a6be098 | refs/heads/master | 2020-04-07T17:32:26.930556 | 2018-12-09T20:36:49 | 2018-12-09T20:36:49 | 158,573,449 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,628 | py |
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 27 22:40:23 2018
@author: spele
"""
import numpy as np
import pandas as pd
#==============================================================================
# ########### choose parameters that affect the primary dataset #######
#==================================... | [
"pelekhs@gmail.com"
] | pelekhs@gmail.com |
5bed0bed476abe47cfc78c6540b1e1b8e780f8b9 | 968b6ec227e6f46db3b571db64603c08eb9b4050 | /Attention-Classification/NRAS-germline-lr5em2_lm1em4_batch100_q1_e50.py | 15916f3307ab4026d7a42d990e8736ae136e6469 | [
"Apache-2.0"
] | permissive | doerlbh/SequenceAttentionClassifier | 0d053073652dc67ff3d7d2012fb4487598521368 | ffdc620f796a5808cf9dbf7920364391de40b94e | refs/heads/master | 2020-03-17T21:55:53.491907 | 2018-07-10T10:08:28 | 2018-07-10T10:08:28 | 133,981,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,788 | py |
# coding: utf-8
# ### Notebook to configure model
# In[1]:
import time
import math
import copy
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_context(context="talk")
import torch
import torch.nn as nn
import tensorflow as tf
import torch.nn... | [
"doerlbh@gmail.com"
] | doerlbh@gmail.com |
aac72eb922f89bbf7d21006066e3bab236cf6a54 | 2f458dc9cce0310e2ca1734d30e778e0d8613be7 | /exercises/tests/test_calculator.py | 36404b6270cca786080646248821e3b3a11290c4 | [
"MIT"
] | permissive | yehonadav/python_course | d632e206bfa5e36c34d434c2f423482fda6df59b | ff1754e84d0b4ca20078ceae2468cc59f99588cb | refs/heads/master | 2023-02-12T11:59:51.003790 | 2022-05-16T12:43:42 | 2022-05-16T12:43:42 | 151,849,907 | 6 | 12 | MIT | 2023-02-10T23:31:59 | 2018-10-06T14:50:31 | Python | UTF-8 | Python | false | false | 850 | py | import random
from exercises.level_1.oop.calculator import Calculator
def test_calculator():
# create test data
calculators = []
for i in range(20):
calculators.append(
Calculator(
random.randint(-1000, 1000),
random.randint(-1000, 1000)
)
... | [
"qaviton@gmail.com"
] | qaviton@gmail.com |
cbe119761c108234698ea1c9e8bebb873ede3f1d | 5cebb43511d7fec27b155dd07426cb07d5a50f0f | /setup.py | 7d85b5b01016a41921f2834b4e6211eccd9fb2ce | [
"MIT"
] | permissive | dokalanyi/envelopes | ea5b05d3fdd0da78d555786f9a219d5be7a40af6 | d28e8486ce632cde1300aaaadd44f52e2d2e8d7a | refs/heads/master | 2020-12-24T13:36:20.027283 | 2013-08-07T05:42:11 | 2013-08-07T05:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Tomasz Wójcik <tomek@bthlabs.pl>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without li... | [
"labs@tomekwojcik.pl"
] | labs@tomekwojcik.pl |
4999ee3668a549429c68491850e36b3ff94cda99 | caf3596fb540144c31b407b01ddf8b5da6484025 | /myenv/bin/easy_install-3.7 | 6cf43ffe26200ebfad0b2e9c6bd15b9957b095e0 | [] | no_license | VitaDorosheva/my-first-blog | b2f2050542a705fa925e9da950c7d5ad145c579e | 8ae40572795dae434ddc5bbd831c81eec34d4fc7 | refs/heads/master | 2020-04-28T01:26:39.024715 | 2019-03-17T18:17:40 | 2019-03-17T18:17:40 | 174,857,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | 7 | #!/Users/golosgermesa/Documents/djangogirls/myenv/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())
| [
"vitadorosheva@gmail.com"
] | vitadorosheva@gmail.com |
45d9684da8ad09960bcf264b7513b9bdaaac7ac9 | adb045761913ebe494faf5538bae42da3d6c07d7 | /coding_test/pass_42583_다리를지나는트럭/solution_LTH.py | de71e1753f728b48b5293fbbfb1c17462152b084 | [] | no_license | inergoul/boostcamp_peer_session | c83b49558444b53d6d6cba12ff32d9e44aaa4050 | 5431b37ef46ad11e0dd6adc4fb7010c44bf0c27e | refs/heads/main | 2023-07-27T21:36:24.871227 | 2023-07-19T06:38:24 | 2023-07-19T06:38:24 | 331,229,124 | 1 | 3 | null | 2021-03-15T15:12:04 | 2021-01-20T07:38:49 | Python | UTF-8 | Python | false | false | 967 | py | from queue import deque
def solution(bridge_length, weight, truck_weights):
ans = 1
truck_weights = deque(truck_weights)
bridge = deque([[truck_weights.popleft(), bridge_length]])
bridge_weight = bridge[-1][0]
while truck_weights:
truck = 0
if bridge and truck_weights[0] + bridge_wei... | [
"blush0722@gmail.com"
] | blush0722@gmail.com |
c43ec3680a769c7273d6d89abff3ba63d47e3568 | b3ec20cfa849916facbdfdb3ee4a484d2e66965c | /scrummers/basicApp/migrations/0001_initial.py | ade81ae8b52a632ee22619c1be87d6d484517dc9 | [] | no_license | Wtoloza/task_manager_Django | 8c37f3908fc4a81789f2eb4082afc1b871cbfaeb | edb18559cb504c48a929777e6749cdedeb17f3df | refs/heads/master | 2023-07-08T22:08:17.335621 | 2021-08-13T14:22:14 | 2021-08-13T14:22:14 | 395,679,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # Generated by Django 3.2.6 on 2021-08-12 02:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
... | [
"wtorrestoloza@hotmail.com"
] | wtorrestoloza@hotmail.com |
103f17c3a8bfd4d1a3467b125e2d66d05d3630f9 | e9b89062fa0f96f8bf0182cdb1a3096d53951cd6 | /code/Problem4-test.py | a59e276c15abc2d41780f71ec443f0b957d46a2d | [] | no_license | Yaoyaoi/DigitClassification | 4784d545f654e61f2eac0e2b0454bc7c712ba35d | 492df6d3f24f29d04dbcc97322c2a164f22c7279 | refs/heads/master | 2020-12-01T07:38:11.384077 | 2020-03-16T16:22:32 | 2020-03-16T16:22:32 | 230,583,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import numpy as np
import matplotlib.pyplot as plt
import DataPreprocess as dp
from keras.models import Sequential, load_model
from keras.layers import Dense, Conv2D, MaxPooling2D, Dropout, Flatten
from keras.optimizers import Adadelta
from sklearn.model_selection import StratifiedKFold
from keras.utils import to_categ... | [
"haruka0314@outlook.com"
] | haruka0314@outlook.com |
0a346d61b350f9ef52edcccccd4c1ef81f8ef2ba | 61a6d4800be8af49b1fccbbcaddd3def6c4e2364 | /venv/Scripts/easy_install-script.py | b99679e9a48c00c6597a3a2dcf635dd78a49e9d6 | [] | no_license | BIGFISHK/blog | ca99e61de0b539d186e3ee6570af8adcd610d99a | 36e7498f3e1b3eb9147badaf66766e5066c7f2b2 | refs/heads/master | 2020-07-12T14:25:06.671170 | 2019-08-30T09:39:09 | 2019-08-30T09:39:09 | 204,830,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!D:\blog\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
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])
s... | [
"417965527@qq.com"
] | 417965527@qq.com |
69f4b590af41bf3821c185b0605fad6d82f36b90 | 55c157879bcdbd5cabaabc6f336f0e742f39a914 | /caesar.py | 00df9144609d2f8fbd9f451e238c955ae8c6431b | [] | no_license | akr635/web-caesar | 2eaf41b8193e1ecffab6ee5136a371361535bb4f | a205116a61a2bd10fdd7efad0a65f76baf8efc2a | refs/heads/master | 2021-01-11T16:27:19.898637 | 2017-01-26T04:45:34 | 2017-01-26T04:45:34 | 80,086,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | def alphabet_position(letter):
alphabet_lower = 'abcdefghijklmnopqrstuvwxyz'
alphabet_upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
if letter in alphabet_lower:
alphabet_position = alphabet_lower.index(letter)
elif letter in alphabet_upper:
alphabet_position = alphabet_upper.index(letter)
ret... | [
"akr635@gmail.com"
] | akr635@gmail.com |
7bf743e5d0a9e7f925762099222812d8ced5e43d | 6db2ca19052182259ae8d81b6f0f719843f86c40 | /dqn_v03_simple.py | d8e0b5eaf5cf41e426eacf91a331fbdbc0eee146 | [] | no_license | walkingholic/EVNS_RL | 54a8c0a4ff433c265cce376f073f640cb446aa97 | 1583bcd47d8e75ecc3ad16f2e17cac6fcc487da6 | refs/heads/master | 2022-12-07T05:43:10.479190 | 2020-09-06T08:12:56 | 2020-09-06T08:12:56 | 274,387,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,997 | py | import sys
import gym
import pylab
import random
import numpy as np
from collections import deque
from keras.layers import Dense
from keras.optimizers import Adam
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten, Conv2D, MaxPooling2D
from keras import optimizers
import matplotlib.... | [
"40564892+walkingholic@users.noreply.github.com"
] | 40564892+walkingholic@users.noreply.github.com |
71494e7f27e6411ad51089b1e1615b9a55f49730 | 7b2fdceaafa6dd13f3f02a24b3eeda5f7574ac16 | /untitled0.py | 820d9843e7d010c29d56243cfad79dbad6d3e75b | [] | no_license | zkmastereng/fandangoscrape | 372fd3328c71a594f2b8fb6f4c09de53a914ddef | 4bdd9f50830e1de9f99da84fc539e82da80c9547 | refs/heads/main | 2023-05-02T09:51:18.635033 | 2021-05-26T15:31:14 | 2021-05-26T15:31:14 | 371,083,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 5 23:20:03 2021
@author: ozkan
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
fandango = pd.read_csv("fandango_scrape.csv")
x = fandango['VOTES']
y = fandango['RATING']
#plt.scatter(y,x)
#plt.yl... | [
"noreply@github.com"
] | zkmastereng.noreply@github.com |
1db38bdb0515f41cd87409073f4c12651308a9fd | 776f103a404c904af0a3b53285404815acd20497 | /script/ab.py | 4f895619c92f59fb62ab77de48645bc1a14c8e20 | [] | no_license | johndpope/spy611scripts | cb8b94ba6b0ddbcd73f4e51261007814618c9d45 | 3cfb0a61f17713b2540ec3f7c6762d18a943bc7a | refs/heads/master | 2020-12-24T08:11:34.780700 | 2014-10-10T16:10:07 | 2014-10-10T16:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | #!/usr/bin/env python
# ~/spy611/script/ab.py
# This script is called by:
# ~/spy611/script/pred_gbm.bash
# I use this script to create variables from CSV files.
# Then I feed the variables to:
# sklearn.ensemble.AdaBoostClassifier
import sklearn.ensemble
import numpy
x_is = numpy.loadtxt('/tmp/x_is.csv', delimit... | [
"dan.bikle@gmail.com"
] | dan.bikle@gmail.com |
318d00346ef383eef61967f31cc6f769f3b9f81d | 8adead984d1e2fd4f36ae4088a0363597fbca8a3 | /Strings/ReverseStringII.py | 4a3617e788cc4374cde3f6720fd50e5c511985f6 | [] | no_license | ravisjoshi/python_snippets | 2590650c673763d46c16c9f9b8908997530070d6 | f37ed822b5863a5a11b09550dd32a73d68e7070b | refs/heads/master | 2022-11-05T03:48:10.842858 | 2020-06-14T09:19:46 | 2020-06-14T09:19:46 | 256,961,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | """
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all of them. If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and left ... | [
"ravishankar.joshi@centurylink.com"
] | ravishankar.joshi@centurylink.com |
d77b93a55d82d3c5f1748d40a09163e24c848444 | 6ef78d888bf0940645e47237cd9e5214d254aa80 | /socket_learning/socketserver_server.py | 63f3111452092805403896aeb89127350a3f3444 | [] | no_license | EnochMeng/exercise_library | ae477d246eee2c252dcd516c006fc68b588c750b | e041619787c9045947366166deb7c4d001b0020c | refs/heads/master | 2021-09-07T17:04:39.630195 | 2018-02-26T14:59:22 | 2018-02-26T14:59:22 | 115,167,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # 实现并发,也就是多个client端可以和我聊天
import socketserver
class MyServer(socketserver.BaseRequestHandler):
def handle(self):
print('server端启动')
while True:
conn = self.request
print(self.client_address)
while True:
client_data = conn.recv(1024)
... | [
"lingchuanmeng@foxmail"
] | lingchuanmeng@foxmail |
b71e35d7636b285e2fa0f57e27afaa6f59a0d693 | 9fb7a7fc8509b414f9e6b1dd0e1549911042134f | /tests/apps/standard/__init__.py | 02e3e6e6649451a91bdefbcce4e3bf04407aff3f | [
"MIT"
] | permissive | jperla/weby | 5134657463876d009de1310efdce7d9c6b40509f | eb019cfdc00f14f22c0b65b757045c621f1cac28 | refs/heads/master | 2020-05-17T10:00:59.078844 | 2010-11-15T16:17:25 | 2010-11-15T16:17:25 | 388,681 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | #!/usr/bin/env python
import time
import weby
app = weby.defaults.App()
# Controllers
@app.subapp('/')
@weby.urlable_page()
def index(req, page):
page(u'Hello, world!')
static_path = u'tests/apps/standard/static/'
static = app.subapp('static')(weby.apps.standard.static(static_path))
# Middleware
from weby... | [
"donotrealemailme @ OR @@@ jperla.com"
] | donotrealemailme @ OR @@@ jperla.com |
7ca4ccedd72570a8260c517fcd924e85739c71fc | c3d2a483b6b1e05cf66b916055d7438df4d5dccf | /Book_case_study/lanuage.py | ecea9154ead51419b228b12c7c0fd406098fc14e | [] | no_license | vuminhdiep/EdX-Python-for-Research | 5b627d83b507771c5460b56f98c7ae3a0c12d897 | ad56bf2e2c9f757e0a9f2e90f9ab4ad4e4e910d9 | refs/heads/master | 2023-01-05T06:34:46.584271 | 2020-10-21T08:40:27 | 2020-10-21T08:40:27 | 292,648,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | text = "This is my test text. We will use this text to test the function."
def count_word(text):
text = text.lower()
skips = [",", ".", ":", ";", "'", '"']
for ch in skips:
text = text.replace(ch, "")
word_counts = {}
for word in text.split(" "):
if word in word_counts:
... | [
"51457124+vuminhdiep@users.noreply.github.com"
] | 51457124+vuminhdiep@users.noreply.github.com |
336c2ef3c5d4ccb00dd38840fad47831e67bb075 | b1f1a3bbfefb29a6b5f730814aafb253400019d7 | /chi_analysis/MG_Pythia8_cfg.py | 15b1820cf9548e011a4ecd2758bbcd1b7963f712 | [] | no_license | ahinzmann/cmsusercode | 9ef4a98110ddbebd09f2f98f1db509f555863364 | 8085bc036696981d28287e9e6524b963c1fee7b9 | refs/heads/master | 2023-07-07T06:11:34.001241 | 2023-06-27T07:12:56 | 2023-06-27T07:12:56 | 10,263,991 | 0 | 1 | null | 2018-03-28T07:47:13 | 2013-05-24T10:09:48 | Python | UTF-8 | Python | false | false | 7,815 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/B2G-RunIIFall17wmLHEGS-00474-fragment.py --fileout file:B2G-RunIIFall17wmLHEGS-00474.root --mc --eventco... | [
"hinzmann@cern.ch"
] | hinzmann@cern.ch |
bafa2524937ca9751f5a72349f2c3e4e32c92369 | c0c4a82243978cbf52fc6a4c01edc060f4611153 | /SampleProjects/POMProjectDemo/Locators/locators.py | 744230beacf69c6d090677fca97925f78e6f9aba | [] | no_license | Lalesh-code/Lalesh_Python | 8536c9f8ac35f10d7d2f87d98b925ff651c22abb | aad5ab0bec5144708234c3f73460777bd1274a9a | refs/heads/master | 2022-12-09T14:04:54.605522 | 2020-08-15T14:07:59 | 2020-08-15T14:07:59 | 287,758,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | class Locators():
# Login page objects
username_textbox_id = "txtUsername"
password_textbox_id = "txtPassword"
login_button_id = "btnLogin"
# Home page objects
welcome_link_id = "welcome"
logout_link_linkText = "Logout"
| [
"lalesh.garud@gmail.com"
] | lalesh.garud@gmail.com |
49b3855070fbfa231c6b4ef2412572433fe8d649 | 735a315ea82893f2acd5ac141f1a9b8be89f5cb9 | /pylib/v6.1.84/mdsplus_wsgi.py | f50ed1d37ecf60acd8495f2d17c36a4e1ff2fe9c | [] | no_license | drsmith48/pppl-mdsplus-python | 5ce6f7ccef4a23ea4b8296aa06f51f3a646dd36f | 0fb5100e6718c8c10f04c3aac120558f521f9a59 | refs/heads/master | 2021-07-08T02:29:59.069616 | 2017-10-04T20:17:32 | 2017-10-04T20:17:32 | 105,808,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,942 | py | """Use as a mod_wsgi handler in apache.
This module provide access to MDSplus events and data and is designed for use with AJAX web based
applications using the XMLHttpRequest object.
A sample apache configuration to enable the use of this module would look something like:
WSGIScriptAlias /mdsplusWsgi /usr/local/cgi... | [
"drsmith8@wisc.edu"
] | drsmith8@wisc.edu |
373f7bc18a434af3069c03740c24b3c36f2ce09e | 25051ecfc40a3431ff76444a45d8ca6d52258bae | /TutoScrapy/scrap/scrap.py | 531832c6b40ffade44effdacb210d8185994fed7 | [] | no_license | Gbane26/TutoScrapping | 9b5ecf9ee2c94596ada770fadfba890dc4dc5a09 | 3233c0831187573967aa4499307e6181cd9b8f98 | refs/heads/master | 2020-09-06T02:55:58.339955 | 2019-11-07T17:51:31 | 2019-11-07T17:51:31 | 220,296,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | import requests
from bs4 import BeautifulSoup
from requests import get
url = 'http://www.abidjanguide.com/'
response = get(url)
# print(response.status_code)
if response.status_code == 200:
# --- Récuperation HTML --- #
htmlsoup = BeautifulSoup(response.text, 'html.parser')
# --- Récuperat... | [
"medhijrgbanes@gmail.com"
] | medhijrgbanes@gmail.com |
1e9dd632c45917dbc866f1bc0751c7c6277a5886 | b13d315ed99664f187639dda76dbc64184461ce9 | /cookbook/数据结构与算法.py | 8bf43f49f00f646f2b9c6eaf9b2ee972420c04d6 | [] | no_license | a233894432/learn_python | ed92251b4baa23425121b1882634f088c94fcec8 | 92b1ae3e81d935741e54768f0e3b370b3a04a23d | refs/heads/master | 2021-01-18T21:21:38.565846 | 2016-06-10T17:51:34 | 2016-06-10T17:51:34 | 55,217,553 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | #!/usr/bin/env python
# coding=utf-8
records = [
('foo', 1, 2),
('bar', 'hello'),
('foo', 3, 4),
]
def do_foo(x, y):
print('foo', x, y)
def do_bar(s):
print('bar', s)
for tag, *args in records:
if tag == 'foo':
do_foo(*args)
elif tag == 'bar':
do_bar(*args)
#字符串的分隔
lin... | [
"a233894432@gmail.com"
] | a233894432@gmail.com |
962ce135e71ace306eedd5a4b9db4ffdbce4b519 | 9c17c2809e06cf934cb9fb378a4f505c63a3e599 | /distribution/transform.py | e3d3465262a9f36a247cf8dd38185fe72b34bb40 | [] | no_license | AmjadiM/metadata_manager | 6fd91161e364072880fdf9119fc4dd001dc5e472 | 3eccf3c47c7a0bea08f2cb2d3dfb000de18c4721 | refs/heads/master | 2021-03-18T07:10:40.866608 | 2020-03-13T12:45:41 | 2020-03-13T12:45:41 | 246,821,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | import pandas as pd
import os
"""
Can create several files based off the master metadata for distribution
Pi Data Descriptors -- Pivotted version of master metadata for SQL Server
Subscriptions -- All tags with metric and server for PI data collector subscription file
Statuses -- All the tags and start date for PI dat... | [
"mikeamjadi1@gmail.com"
] | mikeamjadi1@gmail.com |
92d2472e3c46d30136c9a4f3f7e444fa32d539e7 | edf2ea979cc2a2ad9ebea18b6bb57d743b5d8a44 | /app/wordlists/sv.py | 89caadabea355713f9aa7add729cb52faca9ff9f | [
"MIT"
] | permissive | cfarvidson/gender-decoder | ce04398a217e1c5f089a11c8fb6d4f66111730a5 | a8f5477c55a802fa20a549401b1bb234f0f4f22f | refs/heads/master | 2020-05-03T03:55:12.007859 | 2019-04-10T10:39:16 | 2019-04-10T10:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | source = ""
language_name = "Swedish"
language_code = "sv"
# These words are written as the stem to make it easier to match all variants.
# In other words, the suffix is intentionally left out.
# The following is from
# https://github.com/Muamaidbengt/gender-decoder/blob/edd2eae6402df58c7981b3af6c04fbfd38aebe86/app/wo... | [
"carl-fredrik@arvidson.io"
] | carl-fredrik@arvidson.io |
0d3bdfd5cc84358b4ce03552466c4e30a6c2e0f5 | efd28e8dd82afe274ed5acb71cb6902077f03f8c | /hst.py | 956430e1094e911d55e675a1eb6c1d628cf41c65 | [] | no_license | Borlaff/astrobox | 18e123b9a57fc4cff51df9bb3df35568d8057826 | de134f15086a5131391ca7fbe34680c22fb11153 | refs/heads/master | 2022-08-24T07:11:19.676557 | 2022-07-21T23:34:43 | 2022-07-21T23:34:43 | 248,322,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,408 | py | import sys
import os
import glob
sys.path.append("/home/borlaff/GRID/")
import utils
from tqdm import tqdm
import tars
from astropy.io import fits
from astropy.wcs import WCS
import drizzlepac
import bottleneck as bn
#import ellipse
import numpy as np
import ds9tomask as dm
from bootmedian import bootmedian as bm
from ... | [
"asborlaff@gmail.com"
] | asborlaff@gmail.com |
73057923b1a85ddf0796baa5ca565b85f2369ebe | c271b95f99fd1632502803346b066ad762ef7c79 | /api/views.py | 8797ff396c6c17ed4365d9184b18ac6124706a12 | [] | no_license | mr8bit/untitled | 48d35cc18e226a5e06fec65566c7a12f4a8b9c71 | 9a51e33a7216e327b75c8d8cb85066e43c9a55ea | refs/heads/master | 2020-06-15T02:42:48.471326 | 2016-12-13T00:05:06 | 2016-12-13T00:05:06 | 75,336,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,067 | py | from django.shortcuts import HttpResponse
import urllib.request as ur
import xmltodict
import json
def homepage(request):
file = ur.urlopen('http://www.skiplan.com/php/getXmlInter.php?country=russia®ion=alpes&resort=ROSA%20KHUTOR')
data = file.read()
file.close()
data = xmltodict.parse(data)
li... | [
"info@mrbyte.ru"
] | info@mrbyte.ru |
49d3d3532f3536cfb86059dd33e6dbd876b50189 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/revoke_request_body_users.py | 8d1885f130e0e18a1abc502f27eae2fc38912a04 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RevokeRequestBodyUsers:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b0c92f6fc55e605dea9564d9b8101e44e6a55755 | fbb0d695adadd9b5a8dfe08d613be9b2d52f9bb8 | /third/views.py | 8035d11b071c9c86f972ad7a30050cd2353bcd7f | [] | no_license | junteken/DjangoExam | 23df19d65bcca3a378bbd8653b27ab18783d91c6 | b8df34d4b72b20c022763ff6273de4011f700935 | refs/heads/master | 2023-05-01T04:25:22.434470 | 2019-06-17T11:30:54 | 2019-06-17T11:30:54 | 192,332,603 | 0 | 0 | null | 2023-04-21T20:32:44 | 2019-06-17T11:21:11 | Python | UTF-8 | Python | false | false | 3,341 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponseRedirect
from third.models import Restaurant, Review
from django.core.paginator import Paginator
from third.forms import RestaurantForm, ReviewForm, UpdateRestaurantForm
from django.db.models import Count, Avg
# Create... | [
"junteken@gmail.com"
] | junteken@gmail.com |
30029fc338d9dc0eb9631f1210a22673d58db581 | 6351afb0fbfea3a1fde468e17e2fee7d3e2e6631 | /msurrogate/meta_daemon.py | a1a4c17e7647126745fb1318a45a956232d7d9ae | [
"Apache-2.0"
] | permissive | mccullerlp/msurrogate | b74889ffacd3a28ce5cf15b9662a528bf3eedd3c | 26e0269ed2a2c370f45810522ac9cb47da033519 | refs/heads/master | 2021-05-11T14:22:27.838732 | 2018-02-15T17:10:08 | 2018-02-15T17:10:08 | 117,701,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,868 | py | """
"""
from __future__ import division, print_function, unicode_literals
import Pyro4
import threading
import contextlib
from . import meta_proxy
class MetaDaemon(object):
def __init__(
self,
daemon = None,
workers_N = 1,
):
if daemon is None:
daemon = Pyro4.Daem... | [
"Lee.McCuller@gmail.com"
] | Lee.McCuller@gmail.com |
6c9c677ebbd1cb3ccbee6d6edb1da9963f31841d | c59e65267ca6b2cea83cc00a136cd4e1a18da0a1 | /Blender/Blender GIS/Blender Code Snippets.py | aca69b39da706d188ba8c8bba1e2a892ef3b6ede | [
"MIT"
] | permissive | victorcalixto/FOSS-BIM-Experiments | c46bb4cd6a0f1e2d240f98f86296735bcd6748cb | 9a4a126b7ba4bff43dec21fa1560b4d22ae34558 | refs/heads/main | 2023-08-14T20:20:01.833767 | 2021-10-01T09:02:13 | 2021-10-01T09:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | bpy.data.scenes["Scene"]
bpy.context.object["MyOwnProperty"] = 42
if "SomeProp" in bpy.context.object:
print("Property found")
# Use the get function like a Python dictionary
# which can have a fallback value.
value = bpy.data.scenes["Scene"].get("test_prop", "fallback value")
# dictionaries can be assigned as ... | [
"30430941+DutchSailor@users.noreply.github.com"
] | 30430941+DutchSailor@users.noreply.github.com |
3a09b09497bf9bff50a058a3f5afde88be96033f | ea588ceaeec885fb31606a6fe909191624f0b00f | /job/urls.py | 28cbc303a2e0fc22df29a493f7b9c13b8d3094c9 | [] | no_license | Ahmedsalah000/jobboard | f2073843653f654a2aa0da67fb204977bf1a0f37 | 14a85565f2338a5b3ea6d11bf3f8198113ad3643 | refs/heads/main | 2023-06-21T02:33:43.336066 | 2021-07-19T01:42:35 | 2021-07-19T01:42:35 | 387,303,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.urls import include, path
from . import views
urlpatterns = [
path('',views.job_list , name='job_list'),
path('<int:id>',views.job_detail , name='job_detail'),
] | [
"abushendy345@gmail.com"
] | abushendy345@gmail.com |
68d36d5c10149f55b9bccfef5ef95ed46f71d621 | 9cb902a7653645d77679a737a5061e340c579bc5 | /hw/hw04/test_break_me.py | 029841d05c6f6361d6c7862bd3ca07fbe469227f | [] | no_license | isaacchen/sea-c42-python | 7ff03bc621a5ba5bcb23a25d6352b26f097960bb | b7104df3805cb7d1abe95394534c949e986fb025 | refs/heads/master | 2021-01-15T10:25:27.635435 | 2015-09-26T05:50:31 | 2015-09-26T05:50:31 | 37,506,343 | 0 | 0 | null | 2015-09-26T05:44:04 | 2015-06-16T03:42:49 | Python | UTF-8 | Python | false | false | 567 | py | #!/usr/bin/env python
"""
code that tests the break_me.py functions
"""
# import pytest # used for the exception testing
import break_me
def test_name_error():
try:
break_me.exhibit_name_error()
assert(False)
except NameError:
assert(True)
def test_attribute_error():
try:
... | [
"paul@codefellows.com"
] | paul@codefellows.com |
c32db1ff05ef63b6466aaa6ae10cbbf03bdd8bf9 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano2507.py | 85792e6675dc10640391dadac3be6185e9eba923 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
c69c539cfceaec8d7c04a4d416c97db74126a136 | 9360288aff5e271c9dd2a560839bfee8148eef90 | /python-code/problem-1.py | a6cbb74ecb57ad20f759beb18b36712e6bdcb26e | [] | no_license | LOOIENTING07/computing-folder | b147c094cc529e464c08adcd28bd9dcdb9d13c42 | 959b1fbd8260b44a5aa2966c805c3bd27b6e19eb | refs/heads/master | 2022-12-16T11:53:47.114203 | 2020-09-21T11:12:29 | 2020-09-21T11:12:29 | 289,183,562 | 0 | 1 | null | 2020-09-21T11:12:30 | 2020-08-21T05:15:56 | Python | UTF-8 | Python | false | false | 364 | py | #this microbit code should display a happy face if you press button a but a sad face if you press b
#BUt there is an error! Can you solve it?
from microbit import*
while True:
if button_a.is_pressed():
display.show(Image.HAPPY)
sleep (3000)
display.clear()
if button-b.is_pressed():
display.show(Imag... | [
"noreply@github.com"
] | LOOIENTING07.noreply@github.com |
7b75b5605b47cd15dd639548cf76b7b54efd9277 | d850b6400ea29e2419a5e15b0fafd3a505bc9486 | /app/core/migrations/0003_ingredient.py | 24d1062b985f73c1e84c2534547aeb8758011844 | [
"MIT"
] | permissive | Aditya0721/recipe-app-api | ec62c07f0d662cde63243cbc23b091480cd3b131 | 0d5cd850779019f16d9ad8dffa357ae1427160d0 | refs/heads/master | 2021-05-21T17:28:54.834496 | 2020-06-08T17:53:47 | 2020-06-08T17:53:47 | 252,735,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.0.5 on 2020-04-24 08:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_tag'),
]
operations = [
migrations.CreateModel(
n... | [
"adityaprasad246278@gmail.com"
] | adityaprasad246278@gmail.com |
0291c71dfc2c07b3ec3777a4e5668bd1d7c5bde8 | cd6163a79f85e59f68fc8f26030273c0d4df67df | /tests/test_connection.py | c5d6440d6530f35f17c360216155345dbcedac19 | [] | no_license | aktechthoughts/ci_test | cd9602bf1ba567fd851eea48028678a1d840ba79 | 7082768904a3cbc9576697cbb8cc947d726a81e3 | refs/heads/master | 2022-06-29T16:08:40.765144 | 2020-05-15T12:25:24 | 2020-05-15T12:25:24 | 258,782,583 | 0 | 0 | null | 2020-05-14T18:14:55 | 2020-04-25T13:28:56 | Python | UTF-8 | Python | false | false | 698 | py | # -*- coding: utf-8 -*-
"""Test connecting to database"""
import pytest
@pytest.mark.skip(reason="Disabling Docker as no real tests yet")
def test__create_table__dummy__no_error(exaplus):
assert exaplus("tests/sql_samples/sandbox_ddl.sql") == 0
@pytest.mark.skip(reason="Disabling Docker as no real... | [
"abhsihek_ku@yahoo.com"
] | abhsihek_ku@yahoo.com |
f8f0c90c737f09566f8ed311dba55538a78a9e90 | ad4edce627609127687c12fa12a0fa4a6a416abf | /Inreeding code/Run/MainData Code/MSHomo 5 Loci.py | 5fb25f6fdf5aac8114f81e0f5d0c83b0f8613d20 | [] | no_license | GabeDO/Detecting-non-random-mating-or-selection-in-natural-populations-using-multi-locus-gene-families | ca9332d10f7496e470ed53da246eec57c1678610 | 6525cfd6b187c25775a87a7cc8c4b9ed09a2a945 | refs/heads/main | 2023-04-10T04:25:04.844806 | 2021-04-22T05:05:51 | 2021-04-22T05:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,612 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 20 11:19:26 2019
@author: z5035086
"""
from FisSimFunctions import *
from simuPOP import *
import simuPOP as sim
from simuPOP.utils import export
import subprocess
import csv
import numpy as np
import lib
import matplotlib.pyplot as plt
import pandas
fr... | [
"noreply@github.com"
] | GabeDO.noreply@github.com |
15b1d79b4a5413c75a757829dfff8bdaa3899f82 | 3602b9578aff41164321195552d1558e17b372f7 | /Tema3/Tema3Py/Tem3.py | 2fd233799805ad8c4cccf706f1c059aa0548394a | [] | no_license | alexluca97/NumericalCalculation | fa860da351bc8c7f7b0c81eb299c2c8f7d13cd7d | 0000dd48c73db8b66e1808210e8cc5e34f5885c2 | refs/heads/master | 2020-05-29T17:49:18.650024 | 2019-05-29T16:27:38 | 2019-05-29T16:27:38 | 189,284,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,942 | py | #! /usr/bin/env python
import logging
EPS = 10 ** -10
LOG_LEVEL = logging.DEBUG
SIMPLE = False
S = ""
if SIMPLE:
S = "s"
FILE_A = "{}a.txt".format(S)
FILE_B = "{}b.txt".format(S)
FILE_APB = "{}aplusb.txt".format(S)
FILE_AOB = "{}aorib.txt".format(S)
def is_zero(nr):
if abs(nr) < EPS:
return True
... | [
"alexluca97@yahoo.com"
] | alexluca97@yahoo.com |
552e6864ed906978a3323265f588d54aaf4335a7 | 7958988b3f968a185bd35a068a45b0dfbe4a6784 | /lessons/ranges.py | 3356e75019a1f5c998279dd58d8f2e9c973529a8 | [] | no_license | dami-akinbi/python3-netninja | 1a4385fb64d11b98c41fdaaa1ecbe1b460e44e1a | 3cd50f1ee2a6a9e596304ed1cbb86a2d160f0be2 | refs/heads/master | 2023-05-29T01:37:50.438058 | 2021-06-11T16:19:33 | 2021-06-11T16:19:33 | 371,915,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # for n in range(5):
# print(n)
# for t in range(3, 10):
# print(t)
# for m in range(0, 20, 2):
# if m == 0:
# m += 1
# continue
# print(m)
# if m == 16:
# break
# burgers = ['beef', 'chicken', 'veg', 'supreme', 'double']
# for n in range(len(burgers)):
# print(f"{n} -... | [
"akinbidamilola074@gmail.com"
] | akinbidamilola074@gmail.com |
a47c90bf0042b881314f2aa28967269df9b8346e | 9623652ee727ef9f9d8ebef86d40c8239d0c7fbe | /tf_neural_pixel.py | 3efb81be57d8527700297868adfcb6ec43b6c3db | [] | no_license | R-Freitas/Master-Thesis | a48798b16fdc88311def443430fb2269124d48da | 7744b22a1469c6984b82c9e90429c958621a1d2b | refs/heads/master | 2020-03-24T00:25:02.527458 | 2019-01-06T18:10:29 | 2019-01-06T18:10:29 | 141,737,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,902 | py |
# TensorFlow and tf.keras
import tensorflow as tf
from tensorflow import keras
from keras.utils import to_categorical
from keras.utils import np_utils
#Optimizar libraries
from hyperopt import Trials, STATUS_OK, tpe
from hyperas import optim
from hyperas.distributions import choice, uniform
# Helper libraries
import... | [
"rafaeljcfreitas@gmail.com"
] | rafaeljcfreitas@gmail.com |
c5f68b68f733b910d6129fe7a7f9324e3c9c89e4 | 3d40c0e62a0e7ada9e3e396f7aa581f39184165a | /go/main_board.py | eed5f5a9cfe0010aa238ddb2e19f6983f220d3b8 | [] | no_license | kyorohiro/my_dlgo_memo | 87590162631ff46c6a95eec728746a4a946de0bf | 2ae3bc3f0e653a04d12f89bdb0404f65a5c12b6c | refs/heads/master | 2020-05-30T15:58:04.931505 | 2019-06-24T16:50:00 | 2019-06-24T16:50:00 | 189,834,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import sys
from go import Board,BoardState
def main():
index:int = 0
board:Board = Board(9,9)
while True:
sys.stdout.flush()
sys.stdout.write(str(board))
sys.stdout.write("Input A1 - I9 or ! \r\n")
input:str = sys.stdin.readline()
if(0 <= input.find("!")):
... | [
"kyorohiro@gmail.com"
] | kyorohiro@gmail.com |
626563e7f5d26e2470a314f5d15ba914c78964fe | 0b501e422ffbe2a525ae275ecf0387134f9bbc83 | /ScopeResolution/newscanner/cases/oldAllDiv.py | 5143eb6df97cc94982f52986f1049c9929d813e5 | [] | no_license | saroj31/Python-Interpreter-CPSC8270 | 2c5136991d86f376c7d00caca8de64c202b3d0ff | a4e00e28edb77abc4ad27b38561480c85a915019 | refs/heads/master | 2021-01-20T04:12:00.077907 | 2017-04-28T02:25:09 | 2017-04-28T02:25:09 | 89,657,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | print 4/5
print 5/3
print 5/1
print 4/2/1
print 8270000/10/(5*2)/((5*2**2)/2)
print 5//2
print 5//-2
print -5//2
print 5/0
| [
"Saroj Dash"
] | Saroj Dash |
64dc80169d6224e49fc44b7b7d3d15d14a21807a | faabe34af6297530617395bcc6811350765da847 | /platforms/hacking-coding-interview/PermutationWithDups.py | 1ea371457e280492c1595742d4664f228873d15c | [] | no_license | pqnguyen/CompetitiveProgramming | 44a542aea299bd553dd022a9e737e087285b8b6d | 27330e7ff79c4ac883d7e1fcdf2f0d30939c3f78 | refs/heads/master | 2021-07-21T12:15:47.366599 | 2021-06-27T14:58:48 | 2021-06-27T14:58:48 | 132,837,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # Cracking the coding interview - 8.8
# Permutations with Duplicates: Write a method to compute all permutations of a string
# whose characters are not necessarily unique. The list of permutations should not have duplicates.
from collections import defaultdict
class Solution:
def permutation(self, a):
fre... | [
"pqnguyen1996@gmail.com"
] | pqnguyen1996@gmail.com |
62be7ad5f06bad7d48b0c923c2b1e2a141b124ee | 3753f0f09329263ea785c5394b37b98fba0d233f | /aviate/aviate/migrations/0004_auto_20211030_1248.py | 44697f7e5b53aea12a3e22f633f14f1ea12d2c0b | [] | no_license | vinayvivek90/portal | 2d50c4ce8ce0091fc65198398e5aa8a8acc07f1e | 72d9821a8eee1b12fd0a4d35bcba7b17ebf5a522 | refs/heads/master | 2023-09-02T11:09:04.550913 | 2021-10-31T13:06:12 | 2021-10-31T13:06:12 | 423,147,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # Generated by Django 3.2.8 on 2021-10-30 12:48
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aviate', '0003_resume_uploaded'),
]
operations = [
migrations.AlterField(
model_name='resume',
name=... | [
"vinayvivek90@gmail.com"
] | vinayvivek90@gmail.com |
122f76fb0e7c8802bf3c1cfb70e7d2a2535d4cf4 | 1919fc2555dbcb6b865fdef0cc44c56c6c47e2f0 | /chapter_14/demo_14_8.py | 19772561a53ce16fcb9aabe0271f8e2aca646494 | [] | no_license | ender8848/the_fluent_python | 10f8dd98fcf206b04ea6d34f47ad5e35f896a3ac | 058d59f6a11da34e23deb228e24a160d907f7643 | refs/heads/master | 2022-12-19T07:51:51.908127 | 2019-01-17T09:53:33 | 2019-01-17T09:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | '''
示例 14-8 演示了一个简单的生成器表达式,并且与列表推导做了对比。
示例 14-8 先在列表推导中使用 gen_AB 生成器函数,然后在生成器表达式中使用
'''
def gen_AB():
print('start')
yield 'A'
print('continue')
yield 'B'
print('end.')
# 列表推导迫切地迭代 gen_AB() 函数生成的生成器对象产出的元素:'A' 和 'B'。注意,下面的输出是 start、continue 和 end.
res1 = [x*3 for x in gen_AB()]
'''
start
continue
end.
'''
#... | [
"js_huang@foxmail.com"
] | js_huang@foxmail.com |
48ac43a0fb9fe230d18ef52b9367dafd12e8337d | 656a7b63fe6dd6fafb619c63a6a0d9e33f308f90 | /stress/ana/multicore-results | 010a60faaf191ff04ee34c3b18a0499e067cbb15 | [] | no_license | JeffersonLab/clara-tests | 0f6a553b113f4258cc47e65ef2840a886c2270d7 | dfce424a6443d7622b40b6facc0a60e408090ed2 | refs/heads/master | 2021-05-01T05:01:42.533511 | 2021-04-20T18:44:31 | 2021-04-20T18:44:31 | 52,465,301 | 0 | 0 | null | 2021-04-20T18:44:32 | 2016-02-24T18:37:20 | Python | UTF-8 | Python | false | false | 4,963 | #!/usr/bin/env python3
import argparse
import re
import os
import yaml
from string import Template
from collections import OrderedDict
import nbformat as nbf
import pandas as pd
LOG_REGEX = re.compile(r'^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d{3})?:\s+')
START_REGEX = re.compile(
r'Using (?P<cores>\d+) cor... | [
"smancill@jlab.org"
] | smancill@jlab.org | |
a13e8c056a95d21c6806c33e2d16bddf24c74469 | 5dec1edff745c6f4dab7cede9919490267407537 | /ScanProjectStructure.py | a3e18c3cfa075cf74b9e85c80c2661263ee98409 | [] | no_license | lian2377/ProjectScanner | bbc051459cfb2358454e1464f6d14a18cb9b4b64 | d56ae56cb6820cd3bc199e1f1da2e6c6217caade | refs/heads/master | 2020-05-20T22:54:40.725380 | 2019-07-19T03:31:39 | 2019-07-19T03:31:39 | 84,539,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,932 | py | import os, json
def scan(projectPath, fileOutput = False, suffixList = None):
rootDir = str(projectPath).replace("\\", os.sep)
rootDir = rootDir.replace("/", os.sep)
projectName = rootDir.rstrip(os.sep).split(os.sep)[-1]
getSuffix = lambda s:s.split('.')[-1]
fileList = []
for (dirpath, dirnames... | [
"lian@connectivityAir.local"
] | lian@connectivityAir.local |
24fd069808459e33826bb6f7ceb0790ce3642a9f | 5c36683928e9fda553a5ec350cc44a29784fd805 | /handlers/userpage.py | fc4d59c31755481dc51d710ede1854669602240d | [] | no_license | ashishchopra605/MultiUserBlog | b97b557e4e35684801c64503abcedd1a9e94ca04 | 0a4bb967af54fd6d093bb11caa5b2a5334dae919 | refs/heads/master | 2021-01-20T09:24:20.295093 | 2017-05-04T10:47:32 | 2017-05-04T10:47:32 | 90,248,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from google.appengine.ext import db
from handlers.bloghandle import BlogHandler
from models.post import Post
from main import *
class UserPage(BlogHandler):
"""Handler for UserPage"""
def get(self):
if user_logged_in(self):
username = self.user.name
posts = Post.all().filter('u... | [
"ashishchopra605@gmail.com"
] | ashishchopra605@gmail.com |
bbc94c9279545956f2054f3a5de28bc4378b39dc | a7b66311c2ce113789933ec3162f1128b2862f13 | /app/waterQual/SeasonLinear/tsScatter.py | 683ed3fddec8cef8a717c5b39597641c3449338d | [
"MIT"
] | permissive | ChanJeunlam/geolearn | 214b2c42359ea1164b39117fad2d7470adeb6d35 | 791caa54eb70920823ea7d46714dc8a3e7fa7445 | refs/heads/master | 2023-07-16T04:13:15.526364 | 2021-08-16T05:24:18 | 2021-08-16T05:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,827 | py |
import importlib
import numpy as np
import os
import pandas as pd
import json
from hydroDL.master import basins
from hydroDL import kPath, utils
from hydroDL.app import waterQuality
from hydroDL.data import usgs, gageII
import matplotlib.pyplot as plt
from hydroDL.post import axplot, figplot
dirSel = os.path.join(kP... | [
"geofkwai@gmail.com"
] | geofkwai@gmail.com |
6a588576b11b5c51eb1bb8da29744a365b2a9826 | 4a2f6044ffaf19db55680db5fbfb2c9539f3d4f2 | /testcase.py | 21189fa2b9fbf42c86ebd245977930f8ed4a93ef | [] | no_license | ekkazit/mpos-backend | 1c3571b26a8952ea9df69b9261175f3f36c2a9be | 3ee5936a893e83d1c4e1a9a61571b250f60160a5 | refs/heads/master | 2021-01-21T11:39:58.936682 | 2016-05-21T16:08:23 | 2016-05-21T16:08:23 | 51,684,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | import unittest
from app.tests.echo_test import EchoTest
if __name__ == '__main__':
unittest.main()
| [
"ekkazitstudio@gmail.com"
] | ekkazitstudio@gmail.com |
33cdaf6983bad3e7639a4d4a3487dae598804c4a | 846556273884898ec3ccd2c13b39ddd9a75fef7f | /chapter 5/water_viscosity.py | f200ca85aebe47af48ec0e8dce3acdc47d1d3d6b | [] | no_license | gitviviane/python-scipro-solutions | 647b2ac1391cc1a97e90ce2fec1e18925308288f | 7874cd292d6b58315bd170889dc22aeac14396f8 | refs/heads/master | 2021-12-11T02:25:49.109640 | 2016-10-18T16:11:13 | 2016-10-18T16:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | """
Exercise 5.28: Plot the viscosity of water
Author: Weiyun Lu
"""
from scitools.std import plot, linspace
A = 2.414e-5
B = 247.8
C = 140.0
mu = lambda T : A * 10**(B / (T-C)) #viscosity in terms of Kelvin
mu_celcius = lambda T : mu (T+273) #calculate mu in terms of celcius
x = linspace(0,100,100)
y = mu_celcius(x... | [
"wlu058@uottawa.ca"
] | wlu058@uottawa.ca |
75046425c036c9ca0e33b1a02a47d9d0cdfc6e81 | 2b350eaebe8b0951f07266513c1b1ccfbda1f210 | /manage.py | 2e0df0b2140aa89f111445c2baf465fce8dfe010 | [] | no_license | Toribar/99Design-empty-slots | 55f20184b9a1525e422886669d7cd037ee876852 | e82ad1e909136bb0481959f21b955ed9b6d76d00 | refs/heads/master | 2021-01-10T15:20:55.822845 | 2016-02-21T18:01:44 | 2016-02-21T18:01:44 | 50,187,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "slot_99design.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"bata.henry@gmail.com"
] | bata.henry@gmail.com |
25f68bca0b499c7902005badf6565960943f22dd | 45a1380cbfe5dee5efd014cd2ac756ab92b8fec2 | /2020/2020-01-11-01/process.py | 606535ca8e67951280fed2598471bed233ea0644 | [] | no_license | airball-aero/airball-data | 86ae1f20aa1c4d1d7212e3e7895e73831e5f78f4 | 506f230c853dc4fac37bc99218de70e3f1da995f | refs/heads/master | 2022-05-05T18:09:30.797720 | 2022-03-18T04:08:31 | 2022-03-18T04:08:31 | 183,973,504 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | #!/usr/bin/python
import matplotlib.pyplot as plt
probe_static = [
[ 79, 79, 91, 93, 93, 92, 91, 92, 90, 88, 86, 87, 87, 88, 87, 96, 94, 95, 94, 92, 94, 94, 93, 95, 95, 60, 87, 60, 62, 68, 71, 54 ],
[ 70, 69, 80, 80, 81, 79, 78, 82, 77, 76, 75, 75, 76, 76, 75, 83, 82, 82, 82, 81, 81, 82, 81, 82, 82, 70, 75, 5... | [
"ihab.awad@gmail.com"
] | ihab.awad@gmail.com |
0720ffb79ae2eb51c690163c33dc21d6bbfc43f3 | 4110496fb8b6cf7fbdabf9682f07255b6dab53f3 | /Graph/2097. [Like] Valid Arrangement of Pairs.py | 02c59bc7c88164c40ac98bb703409f518c62d36e | [] | no_license | louisfghbvc/Leetcode | 4cbfd0c8ad5513f60242759d04a067f198351805 | 1772036510638ae85b2d5a1a9e0a8c25725f03bd | refs/heads/master | 2023-08-22T19:20:30.466651 | 2023-08-13T14:34:58 | 2023-08-13T14:34:58 | 227,853,839 | 4 | 0 | null | 2020-11-20T14:02:18 | 2019-12-13T14:09:25 | C++ | UTF-8 | Python | false | false | 959 | py | # euler path, remember postorder
# O(N)
class Solution:
def validArrangement(self, pairs: List[List[int]]) -> List[List[int]]:
# convert to the graph problem
# euler path
in_degree, out_degree = defaultdict(int), defaultdict(int)
graph = defaultdict(list)
s... | [
"noreply@github.com"
] | louisfghbvc.noreply@github.com |
b4f74d52a64594575516c6396835481f28c21646 | 052aa4c87718988c2dd0c41163ba936a980a53ea | /Python Web Service/NodoSelect.py | 202dd0c24da4a60423c4ddf035d40a32bb43e4f9 | [] | no_license | brayanaroche/Proyecto1S22017_201503918 | 614b7e163bedacfaf60a39257cba027b450c89e4 | 7c7c141df0e4b321611718507964df5c1bcff7f5 | refs/heads/master | 2021-07-06T16:03:06.513623 | 2017-10-01T18:05:23 | 2017-10-01T18:05:23 | 105,462,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | class NodoSelect(object):
def __init__(self,dato):
self.dato=dato
self.enlace=None
def getDato(self):
return self.dato
def getEnlace(self):
return self.enlace
def setEnlace(self,nodo):
self.enlace=nodo
def setDato(self,objeto):
self.dato=objeto
| [
"30421259+brayanaroche@users.noreply.github.com"
] | 30421259+brayanaroche@users.noreply.github.com |
9536416822bc6da015eefdc65b629452f3eeea88 | 8b1e49ce342e2cfe76cd7f3a23e5aeb2796603b1 | /tagify_project/music/migrations/0004_auto_20210314_1418.py | d889e1f2d3f7cc24a312416f7717059b646cec7a | [
"MIT"
] | permissive | Krayonn/tagify | bd06f50d681a31ce666d90d6f8bf748da0dbd483 | 5ee7efce3cacfa23a344e4c02070a365f50136a8 | refs/heads/main | 2023-03-30T05:19:23.350344 | 2021-04-03T17:00:18 | 2021-04-03T17:00:18 | 338,643,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Generated by Django 3.1.6 on 2021-03-14 14:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0003_auto_20210314_1412'),
]
operations = [
migrations.AlterField(
model_name='track',
name='id',
... | [
"kris-beckers@hotmail.com"
] | kris-beckers@hotmail.com |
0c84952b18e2e7d938b7e66b0179fd476e36746d | f7d6c5413e3330801efae4fe9d505f41d3ed705b | /prom_inter.py | b9814afe3296bb8687f56df5b9db2d7d72bffd89 | [] | no_license | gzp9595/jiuge | 6c2e480eb530491370b4045a6603e2c28df80e19 | a69bad45adad328348fbf101278d04b0d4e69768 | refs/heads/master | 2021-06-26T06:33:16.775337 | 2019-05-15T07:35:40 | 2019-05-15T07:35:40 | 140,416,018 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | # coding: utf-8
import time
import redis
import random
import redis
from setting import HOST_PROXY, PORT_PROXY
from untils import generate_logger
class RedisClient():
"""
By now, only (a) random IP proxy(s) from the proxy-pool is/are provided.
"""
def __init__(self, DB_NAME_PROXY, host=HOST_PROXY, p... | [
"gzp9595@gmail.com"
] | gzp9595@gmail.com |
2e7eaca7efd7f749a67af43742d14ffb7b36e35b | e02e993a394b58b011e8bc7b2924461c36aa4424 | /urls.py | cd10561278ec3e91b4efe97a8cf57b70322fd9de | [] | no_license | marcboivin/biereapp | f1946fd7fdd99b41d3db182604e3df53244604cc | 6950b5c16012541714cbfef9a21854ca665436c9 | refs/heads/master | 2021-01-22T03:39:21.122488 | 2011-04-11T01:42:32 | 2011-04-11T01:42:32 | 1,285,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.views import login, logout
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from biereapp import settings
from biereapp.views import Dashboard, CreerFacture, AddUserTransation, NewProduit, NewClient... | [
"boivin@ma14.com"
] | boivin@ma14.com |
4052b944a61800bfb2afc1bf57c093dcebfaf293 | 898cd981dbf81fc4b2f98c5508a25672f2bdea88 | /examples/redis_client2.py | 6a85602fb107530bc3330828c440165311af03a8 | [
"BSD-3-Clause"
] | permissive | GottWall/GottWall | 1bd219d6e010c304c018038f95e9d6108ef26099 | 3b940fa27245a4160d5fe1af3ea15b8c8ac70a4b | refs/heads/master | 2020-04-06T03:42:14.965092 | 2015-10-10T07:27:43 | 2015-10-10T07:27:43 | 7,048,966 | 9 | 3 | null | 2014-02-09T19:41:41 | 2012-12-07T06:46:08 | JavaScript | UTF-8 | Python | false | false | 2,901 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import datetime
import redis
from random import randint, choice
from stati_redis import RedisClient, Client
stats_client = RedisClient(private_key="my_private_key",
public_key="my_public_key",
project="Samp... | [
"Alexandr.S.rus@gmail.com"
] | Alexandr.S.rus@gmail.com |
b56ef68c6e84a51c466f5bc99c378a07abe33752 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2388/60833/269257.py | 47ff280dcb3d860e67df2482635288684a05b087 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | lines=[]
while True:
try:
lines.append(input())
except:
break
n=int(lines.pop(0))
for i in range(0,n):
count=int(lines.pop(0))
list_number = list(lines.pop(0).split(" "))
list_number = list(map(int, list_number))
list_number1 = list(lines.pop(0).split(" "))
list_number1 = lis... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
49fe93f3ed4e6615f5e012037f5c1604ab8e0e4e | 7666f107a24c7749afc26e91bd3abb5bff158fc2 | /upper/env/bin/pip3.6 | 7a906fe9e7cc903e37b55e10a809b480ca110ba0 | [] | no_license | zigbeemuema/zb.001 | 15cd351a5f1e57e258c0b47b6a07caaed0591c5f | a9fa531be4424acd0f951b3d7e6786c755b6c3cd | refs/heads/master | 2020-04-26T08:33:58.715136 | 2019-03-02T06:52:40 | 2019-03-02T08:39:56 | 173,426,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | 6 | #!/home/onesmas/Desktop/exam/upper/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"muemaonesmas@gmail.com"
] | muemaonesmas@gmail.com |
d457426f49ba33515642d88d8e0bba702f8f2b64 | 4ca52144cf9b2741c33f9df71514cefcd78ad3c3 | /surro/world.py | 088b82503ecfcff0b94c6ed58a18b2646e813e2b | [
"MIT"
] | permissive | MatthewScholefield/surro | 89f8dc8a8a10d80af7bc39483e3eeef1e4fa2de1 | db666a8c5c2fd456b1816562014572ceaabd2b5f | refs/heads/master | 2021-09-05T01:03:36.250898 | 2018-01-23T03:41:16 | 2018-01-23T07:36:30 | 118,553,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | from random import randint
import pygame
from openal.audio import SoundSource
from openal.loaders import load_wav_file
from pygame.font import Font
from pygame.surface import Surface
from surro.enemy import Enemy
from surro.orb import Orb
from surro.player import Player
from surro.util import get_sfx, new_pt, vec_dis... | [
"matthew3311999@gmail.com"
] | matthew3311999@gmail.com |
8960ea2154f0cd4e5df7a80f8c99e7e466124119 | c903ffcca23646072fca2e459bbe2f30951e2431 | /genColors.py | 1606f20c40989f56509398b3eab576bef8f09f3a | [] | no_license | mvwicky/2048 | 1c1154b23c94003ba24bf82ef9c45cd6ac536ff1 | f30e64028da4210a0805bb4d64692e871642207a | refs/heads/master | 2016-09-06T09:40:45.051507 | 2014-05-20T20:27:59 | 2014-05-20T20:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import sfml as sf
import random
import math
def main():
colors=[]
for i in range(16):
colors.append(sf.Color(random.randint(0,255),random.randint(0,255),random.randint(0,255),255))
values=[]
for i in range(1,13):
values.append(2**i)
colorValues=dict(zip(values,colors))
print colorValues
return 0
if __nam... | [
"mvanwickle@gmail.com"
] | mvanwickle@gmail.com |
53f8e686a7d03be0476327f6ce9ddd4c7dd04ae7 | 9c608f2bde82747a1cd4b46275024f69540025fc | /app/db/database.py | 1ad74ae51d946b52f7e492a29179e4020d88a78e | [] | no_license | omarcsejust/learn-fastapi | 7476f770276f81d5eb8fbcd4db47fdb8b8156010 | ad03b0dc7b188c94efa88d14d0b083c249c52641 | refs/heads/master | 2023-06-06T11:25:40.752058 | 2021-06-29T05:37:56 | 2021-06-29T05:37:56 | 309,629,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db"
# SQLALCHEMY_DATABASE_URL = "postgresql://user:password@postgresserver/db"
engine = create_engine(
SQLALCHEMY_DATABASE_URL, connec... | [
"omarhasan951@gmail.com"
] | omarhasan951@gmail.com |
479f9c663e83bb8b0000402893f68df99ef957b4 | 7c99f5334dbaa45e86b2a814a4d640c40b1dc7dd | /COW/resources/python/apiCallFactory.py | 8ce7c0348cfba82f88bf029ca4ac3672e2f2bd83 | [] | no_license | aurelien-defossez/cod-open-world | 9e7e88fbc0358ad8bf552de6205f704b3d6745ad | 0b6ba9d1f7c4c760767d450d1169402189a6e003 | refs/heads/master | 2021-01-19T05:26:15.636726 | 2012-05-02T16:55:23 | 2012-05-02T16:55:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | from java.lang import Boolean
from java.lang import Integer
from java.lang import Double
from java.lang import String
from jarray import zeros
from jarray import array
from com import Variant
class ApiCallFactory(object):
connector = None
parameters = None
ctParameters = 0
def __init__(self, connect... | [
"didjor@gmail.com"
] | didjor@gmail.com |
8c428814e9695b5f59575fcbb73aaef938a02ad8 | 23e709e600655e1497da21d5bf2fbe1ec6534798 | /csequences.py | 75f7f74ba62e6e6114ddc8bc20e5e6fc66e007bf | [] | no_license | SDAMcIntyre/Aurora-sequence-randomiser | 509e94d9c181eba9a00ab274fd0b15a09b34ecc4 | f4770f5ea854727d1d30dc36695e032f816e6514 | refs/heads/master | 2022-12-27T09:30:43.997123 | 2019-09-20T15:23:23 | 2019-09-20T15:23:23 | 301,985,690 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import os, shutil
src = './SequenceFiles/'
src_files = os.listdir(src)
textToReplace = '.dpf\tTimed\t5.000\t' #5 seconds
newText = '.dpf\tTimed\t10.000\t' #10 seconds
for file_name in src_files:
full_file_name = os.path.join(src, file_name)
new_file_name = os.path.join(src, 'C_'+file_name)
if os.path.isfi... | [
"sarah.mcintyre@liu.se"
] | sarah.mcintyre@liu.se |
2f0a67035a1c1f075e3f42c7dc5b9a089449fda1 | ac7c02f29a837fdd67d2bdc77bba182080e98ed8 | /codekata/countline.py | 8de1a79a4ee40942ba94f47f40d9047ca87bfd01 | [] | no_license | YaminiNarayanan-359/guvi | 7630c309a86365e4367fda1ddab4e966e7d1ac5b | a52b6353100b4e9b83a003e6a327fbfb174daac4 | refs/heads/master | 2020-06-03T00:08:00.389609 | 2019-07-16T06:59:53 | 2019-07-16T06:59:53 | 191,355,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | st=input().split()
c=1
for i in st:
if(i=='.'):
c+=1
print(c+1)
| [
"noreply@github.com"
] | YaminiNarayanan-359.noreply@github.com |
86923e5515d4034637037ce44e2bb1e57b57d428 | c212e6cb93fb2a97be21602bb55865d8da4c743c | /test.py | c8ab17d3d5deac0af34a8384cb47d7e290c178bc | [
"MIT"
] | permissive | cycoe/PhotoCropper | 90194c7589c81c642f1e1e81f3830614bc455045 | 803197461890a419655411c7bba68a50c811236a | refs/heads/master | 2020-06-20T13:43:56.410453 | 2019-07-16T07:15:10 | 2019-07-16T07:15:10 | 197,140,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QLabel
from PyQt5.QtGui import QPainter, QPen, QColor, QPixmap
from PyQt5.QtCore import QRectF
from modules.PhotoCropWidget import PhotoCropWidget
def main():
application = QApplication(sys.argv)
window = QMainWindow()
cropWidget = PhotoCr... | [
"cycoe@cycoe.cc"
] | cycoe@cycoe.cc |
a1e0784fc7f9fc956515af6e1e29a56ca0cc9802 | 828010b5d41e11bf973570ba6e70ed5d50ff11d1 | /ros/src/tl_detector/light_classification/tl_classifier.py | 4c4696bb586d716340e334d5d1f0825ae879f29a | [
"MIT"
] | permissive | cipher982/CarND-Capstone | 12840bd18da46bf076fa70e051a71c55573a0ee2 | 57c607be6f38377d4e2de280c55b41cc7bceb475 | refs/heads/master | 2022-12-04T20:38:13.467072 | 2021-03-29T21:00:37 | 2021-03-29T21:00:37 | 126,865,571 | 0 | 0 | MIT | 2022-11-22T07:37:45 | 2018-03-26T17:34:33 | CMake | UTF-8 | Python | false | false | 1,724 | py | from styx_msgs.msg import TrafficLight
import tensorflow as tf
import os
import numpy as np
import rospy
import time
from functools import partial
import cv2
from random import randint
from keras.models import load_model
DIR_PATH = os.path.dirname(os.path.realpath(__file__))
class TLClassifier(object):
def __ini... | [
"David010@gmail.com"
] | David010@gmail.com |
417d6ce3366d6e4a391222a6e79120a32879863e | 99d8895888ab093b06a3ba03594f2a74cb97758f | /Scripts/Python_HSE/WEEK5/homework/solution29.py | a9baf1df6c718721b2a1a9084fa949635e42fb16 | [] | no_license | AlekseyAbakumov/PythonLearn | 4c35efeb0996f4a3221f228b57e30d595bb62637 | fdd2cc9bdaa0fac3d582ddd5f2fbf9018218bda5 | refs/heads/master | 2023-03-23T20:12:42.603817 | 2021-03-16T18:22:48 | 2021-03-16T18:22:48 | 265,309,409 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | inputList = list(map(int, input().split()))
x = int(input())
position = 1
for i in inputList:
if i >= x:
position += 1
print(position)
| [
"a-starostin@mail.ru"
] | a-starostin@mail.ru |
7856cc265933b86e74d14b023214f67266ca0dd8 | 1539f86f91ce0ee6150fba7363976d32cd37ece2 | /codes_auto/1515.find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k.py | eb705e5d422dd5c4f6100ee291d790b102a1d947 | [] | no_license | zhpbo/LeetCode_By_Python | fdee0a8b7ea7ed1f61a99f0041e1c748e50f138c | 0017b9db891d36789116f7299d32510a373e68da | refs/heads/master | 2023-07-09T15:38:45.003002 | 2020-08-18T07:04:51 | 2020-08-18T07:04:51 | 281,598,190 | 0 | 0 | null | 2021-08-18T04:58:39 | 2020-07-22T06:47:05 | null | UTF-8 | Python | false | false | 496 | py | #
# @lc app=leetcode.cn id=1515 lang=python3
#
# [1515] find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k
#
class Solution:
def findMinFibonacciNumbers(self, k: int) -> int:
fib = [1, 1]
while fib[-1] <= k:
fib.append(fib[-1] + fib[-2])
ans = 0
while k > 0 and f... | [
"liuyang0001@outlook.com"
] | liuyang0001@outlook.com |
85312b3bf85afc36470393b4f7cb7f0d7506f189 | e29faa10be00e8c839bf909922ace176b05826bb | /misc/05_implementing_different_layers.py | 0307366f059cefe23d3e1f8960ef4b0fd039b903 | [] | no_license | weiyinfu/learnTensorflow | 666e46259da435c19c06f3abbaa8a00ae37431ce | 98cb7a978dd682ec8f651f9da57e2f23d47c21a4 | refs/heads/master | 2022-01-01T08:10:40.215554 | 2021-12-26T06:24:40 | 2021-12-26T06:24:40 | 145,659,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,821 | py | # Implementing Different Layers
#---------------------------------------
#
# We will illustrate how to use different types
# of layers in TensorFlow
#
# The layers of interest are:
# (1) Convolutional Layer
# (2) Activation Layer
# (3) Max-Pool Layer
# (4) Fully Connected Layer
#
# We will generate two ... | [
"weiyinfu.weiyinfu@bytedance.com"
] | weiyinfu.weiyinfu@bytedance.com |
3ff8152a850d6ffbc613fa30ea6cf48730ec12db | cc528121b8e56e6cac317f6b918ec52691f03d67 | /app.py | f8761da1a61678f27b3cc47001ce33ccdde05c53 | [] | no_license | AhmosGUC/fyyur | 313b3533964efa2efcb3d12ed6f2a516add3348a | d33ecf47cd020e9d0c4e2edb139b3d5795fda465 | refs/heads/master | 2023-02-15T22:40:35.700046 | 2021-01-14T12:24:11 | 2021-01-14T12:24:11 | 326,627,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,646 | py | #----------------------------------------------------------------------------#
# Imports
#----------------------------------------------------------------------------#
import sys
import json
import dateutil.parser
import babel
from flask import Flask, render_template, request, Response, flash, redirect, url_for
from fl... | [
"hesham.ahmos.y@gmail.com"
] | hesham.ahmos.y@gmail.com |
4cc8dcf83aa34c2bb350263fc43c9198dcd14932 | b4df53f3156423fb5f5f371d674f2d03c8d39cd8 | /HW03/distortion-removal.py | 4c8536053eb388845df75772520ce24f0da38ab9 | [] | no_license | lifangda01/ECE661-ComputerVision | c3d7dd2845c00e47ca4237941fbda02733903136 | ce7a2bd677c8b79646adcdfc3d5292c78d8a9393 | refs/heads/master | 2020-09-24T03:36:03.027085 | 2017-01-23T22:04:28 | 2017-01-23T22:04:28 | 67,304,969 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,788 | py | #!/usr/bin/python
import numpy as np
import cv2
import matplotlib.pyplot as plt
from matplotlib.image import AxesImage
RESIZE_RATIO = 1.0
BACKGROUND_COLOR = (0, 0, 0)
# line(1,2) is parallel to line(3,4)
IMAGE_HC_A = [(190,120), (69,540), (236,108), (120,546)]
IMAGE_HC_A_1 = [(287,229), (280,250), (332,220), (326,255)... | [
"lifangda02@gmail.com"
] | lifangda02@gmail.com |
9187ea2881390a09c88fcc726707525e4c45254f | 9f7848ee3bd64e5b831e893d52f69912e540d6e4 | /Snippet Search/bargrapg.py | 001f7a0a87dcdd5d639d623406cacc52c8337559 | [
"MIT"
] | permissive | Ufatima/Twitter-Event-detection | e7f9f93d566b7fc2b161cf1ffd39f293fc0eb104 | 86c3ec5f6db9cedaaf1945938deca465ab818c57 | refs/heads/master | 2021-03-24T09:47:01.532986 | 2019-12-26T22:01:59 | 2019-12-26T22:01:59 | 119,052,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import matplotlib.pyplot as plt
normalization_score_list = [0.66,0.33,0.66,0.66,0.33]
no_snippets_list = [10,6,6,5,3]
wup_similarity = [0.8571428571428571, 0.5238095238095238, 0.8571428571428571,0.8571428571428571,0.7321428571428571]
plt.scatter(no_snippets_list,normalization_score_list)
plt.title('Relationship Between... | [
"hoory1020@gmail.com"
] | hoory1020@gmail.com |
9dee51aa3f19139230bc9821668cd83ef899a51c | cc4d19b685d77f9cdfb2a34492dd5ef84f0ab49e | /videosharing/wsgi.py | 9bd71e9654384f98e7d09a7b5182f907b94a8634 | [] | no_license | Zoli1212/videosharing | 1eb424525b97286650e771f1b5e13b515d716fb2 | 7e1b2504f0faeab953ac4a48379af464dba35f57 | refs/heads/master | 2023-01-03T01:17:47.226223 | 2020-10-30T17:10:40 | 2020-10-30T17:10:40 | 308,698,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for videosharing project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"43321960+Zoli1212@users.noreply.github.com"
] | 43321960+Zoli1212@users.noreply.github.com |
7498fe6a8b6b6c43e6405131fea035d35a6742fa | f90a65159a2dcd6bb39479a9f38f45690f801f82 | /TheoInf/Exercises/Sheet06/Task1/main.py | 5f939cfafc992c1a00f3eba237fef9daabacc226 | [] | no_license | BUCKFAE/Semester06 | a0471fd4edec2f8e21ff3fcbb5572a53c6b7915f | ef9098d2f534d14815cadd854971d91b3a196833 | refs/heads/master | 2023-06-24T05:06:49.400571 | 2021-07-20T08:47:16 | 2021-07-20T08:47:16 | 359,149,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | def is_prime(x):
return False if x < 2 else all([x % i != 0 for i in range(2, x - 1)])
def check(n):
for p in range(2, n):
# Skipping if p is not a prime
if not is_prime(p):
continue
for q in range(2, n):
# Skipping if q is not a prime
... | [
"informatik.scubert@gmail.com"
] | informatik.scubert@gmail.com |
70133f9d2aa4f9ddaf403ec7b297c7a03651b038 | af02f85c4c18c864d8b5f7bcfce61da871d134bd | /python/dataRetriever/ckan1.py | 6401f6615d8d44102173702a18906184a94cdfb5 | [] | no_license | akpatankar/info1 | 24341b968435b3e4f601a4c2d67b994499d16ee7 | 65d1072c115a27b7e226d7ab3a0128a38d6400e8 | refs/heads/master | 2021-03-24T10:20:57.268410 | 2014-09-10T04:50:00 | 2014-09-10T04:50:00 | 22,318,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | #!/usr/bin/env python
import urllib2
import urllib
import json
import pprint
import re
import StringIO
# Use the json module to dump a dictionary to a string for posting.
data_string = urllib.quote(json.dumps({'id': 'data-explorer'}))
# Make the HTTP request.
response = urllib2.urlopen('http://catalog.data.gov/api/3/... | [
"a_k_patankar@yahoo.com"
] | a_k_patankar@yahoo.com |
ad15cca3830c540ce40efe51b48e661a584727a3 | d183806b214af3bf83cd97dd6b5a1768197fdc29 | /Conversely_Frontend/Server.py | fcedf32ccc7a0beb259db23a9d54bcafe7e833ee | [
"MIT"
] | permissive | sam-aldis/Conversely | ea09f1a8bb2d7f5c58dc706e1544a52a864fdc62 | 1fc30d6b768cc03f727229a52e0879fac3af1e3a | refs/heads/master | 2021-01-21T20:39:28.631318 | 2020-03-09T04:17:49 | 2020-03-09T04:17:49 | 92,267,805 | 0 | 1 | null | 2017-05-24T23:47:33 | 2017-05-24T08:17:55 | Python | UTF-8 | Python | false | false | 4,257 | py | #!/usr/bin/python
import tornado.web
import tornado.ioloop
import os
import ukjp.config
import ukjp.fbactions
import ukjp.database
import thread
import json
import hashlib
class UkJPRequestHandler(tornado.web.RequestHandler):
def set_default_headers(self):
self.add_header("Server","UKJP-Server")
class Api... | [
"samaldis@gmail.com"
] | samaldis@gmail.com |
e865f68f746423d35e830ef8d6adef3f3cf61878 | 256dbe8e710f7750dc3185f1b4f67a2d36a020fa | /bsp/stm32f411-nucleo/drivers/SConscript | 31cff2824baa868bb5d2c1cbb480a34ab660c539 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | sundm75/rt-thread | 8a0a7cd3d107c090d226cfefb0c62aba273cec15 | 82b62e3b08e28968125e6825ea29256215069a5c | refs/heads/master | 2021-05-12T08:41:45.631706 | 2019-01-04T02:44:09 | 2019-01-04T02:44:09 | 117,292,652 | 1 | 1 | Apache-2.0 | 2019-01-04T02:44:10 | 2018-01-12T22:10:04 | C | UTF-8 | Python | false | false | 259 | Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'drivers')
# add the general drivers.
src = Glob('*.c')
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
| [
"pengfei.fu@gmail.com"
] | pengfei.fu@gmail.com | |
7219e6780a35336396bd45cdb0c93cc918ba27e5 | ea371e791764593d9dfffd0eafcbce0cb3b76135 | /scripts/build-rosinstall.py | 68ed3d4b578a796b2a3a0019db51c086514a14ab | [] | no_license | ipa-hsd/robust | a1862df5fba84346e895c8cc00ef01ace124752c | c6ed28a29b4da4957b8aa9b21e458511717511ed | refs/heads/master | 2021-11-04T02:58:19.595036 | 2019-02-27T08:34:56 | 2019-02-27T08:34:56 | 130,993,317 | 0 | 0 | null | 2018-04-25T11:02:16 | 2018-04-25T11:02:16 | null | UTF-8 | Python | false | false | 4,550 | py | import sys
import os
import argparse
import logging
import subprocess
import shutil
import docker
import yaml
import requests
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
DIR_HERE = os.path.dirname(__file__)
DOCKER_IMAGE_TIME_MACHINE = 'robust-rosin/rosinstall_generator_time_machine:03'
BIN_TI... | [
"noreply@github.com"
] | ipa-hsd.noreply@github.com |
6a7f856c53af86a496f98a4a42d08881a273fcd3 | 41777201b100f24cea0427c8ed9cd5fb2e976b49 | /Section 1/tornado-test.py | e0e31988a76214fe9ba548ce40b0310e57bc1060 | [
"MIT"
] | permissive | PacktPublishing/Reactive-Programming-in-Python | a611adfd231c4448f3c4c4873949a67c28753700 | bfdee56ae38b092f010ac42af31796bc0416747d | refs/heads/master | 2022-11-05T05:40:35.623146 | 2022-10-28T13:50:39 | 2022-10-28T13:50:39 | 128,192,589 | 40 | 11 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write('Hello, world\n Awesome')
def make_app():
return tornado.web.Application([
(r'/', MainHandler)
])
if __name__ == '__main__':
app = make_app()
app.listen(8888)
torn... | [
"susant@packtpub.com"
] | susant@packtpub.com |
78f3d3a4eca1d9fa8d0ef24b5ae0b2d9ac9d4177 | d0bf0f5d3d1d44c8a26a25fdac14af35084d3307 | /rl_rpsr/policy.py | a8fca1364eccd1a9219760ddab284fdd352985dc | [
"MIT"
] | permissive | abaisero/rl-rpsr | 73f842f01b4246d11b2e961b31f99709762a87ed | ac3d1162f6629133b7f3f88a0d49e4f9fd6f2e69 | refs/heads/main | 2023-05-13T01:00:24.674446 | 2021-06-07T19:18:16 | 2021-06-07T19:18:16 | 373,312,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from __future__ import annotations
import abc
class Policy(metaclass=abc.ABCMeta):
@abc.abstractmethod
def reset(self) -> int:
raise NotImplementedError
@abc.abstractmethod
def step(self, action: int, observation: int) -> int:
raise NotImplementedError
class RandomPolicy(Policy):
... | [
"andrea.baisero@gmail.com"
] | andrea.baisero@gmail.com |
501e858309d7ff8772dc34f3500c3dc28a84a09a | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/parser/template/graph_tests/test_log.py | 986504fd189497acc1a83296c9272ee75bacd2ad | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.