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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19f79b9b91ce7137e633b48e72d90d58347c037b | fa6f5f76ba65ce885a5b7bf41e81295a117e8822 | /login/views.py | 279f6a6c31d0f2deb44ec69f6bf54758835d0cde | [] | no_license | royce1121/login-page | 0f2bd462dc859a803589e29b05f2434cd684f9ff | 6d5a440adbdb62bc4e9bbacfd7ab1ad8f0c686cd | refs/heads/master | 2023-03-02T22:26:41.093143 | 2021-02-16T04:58:28 | 2021-02-16T04:58:28 | 339,283,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,655 | py | from .forms import BaseAccountForm
from .forms import FirstStepForm
from .forms import SecondStepForm
from .forms import ThirdStepForm
from .forms import UserForm
from .models import BaseAccountModel
from braces.views import AjaxResponseMixin
from braces.views import JsonRequestResponseMixin
from django.contrib import ... | [
"royce@test.com"
] | royce@test.com |
053e43676a2bf4488dd298cc5c303b57165e7714 | 251f998a2feae210d573ebd489c066f81be3d1e1 | /test/functional/rpc_invalidateblock.py | b4ce401a99f58832818d0e83cdc1a9aca06297e2 | [
"MIT"
] | permissive | Yash02012/bitkincoin | 93a7f4aa8781da0b3fa811416733af6aaa99550d | dcfd8575e03ffe654e16cabb5ff6daabae7e24ab | refs/heads/master | 2022-01-06T09:51:36.114441 | 2019-05-09T10:19:23 | 2019-05-09T10:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitkincoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the invalidateblock RPC."""
import time
from test_framework.test_framework import BitkincoinT... | [
"josephdisuja08@gmail.com"
] | josephdisuja08@gmail.com |
68aabc2c27d0560ddba1c52b5fc0655252d361dc | 7021151239ac415b16799fc81b7ff6d905a108eb | /arrus.py | 5d564e0ebfa9a9812a408e057b194b380931c3b5 | [] | no_license | mahmoudzeyada/problemsolving-leanring | e6e9798b3010df3b45384fa4eddc2e36ecd4db4c | 4e66f301494855183c793fff9903dd93a1e3c329 | refs/heads/master | 2020-04-22T20:58:54.201887 | 2019-05-07T16:03:31 | 2019-05-07T16:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the hourglassSum function below.
def hourglassSum(arr):
subset = []
temp = []
for i in range(4):
for j in range(4):
temp = arr[i][j:j+3]
temp.append(arr[i+1][j+8], arr[i+2][j:j+3])
... | [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
0ddabb1bbb824ae1a30fc43b16800b8d22816ba1 | dafba3fc1e816dbe18c8ec402f5d8108da75ddd7 | /eas/api/tests/int/test_secret_santa.py | d2095983f4c509cdbfdfbb479c543ee6e06d89b9 | [] | no_license | etcaterva/eas-backend | 5a76c6545504078968928f3c5715e1da162d96a8 | cc47396c5b8b0a8bfea17ccb7f605ed43a79b76d | refs/heads/master | 2023-05-04T03:41:24.973929 | 2023-02-03T21:55:40 | 2023-02-04T07:55:49 | 139,360,853 | 0 | 1 | null | 2023-04-21T22:37:27 | 2018-07-01T20:43:49 | Python | UTF-8 | Python | false | false | 9,568 | py | import datetime as dt
from unittest import mock
import freezegun
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APILiveServerTestCase
from eas.api import models
NOW = dt.datetime.now()
class SecretSantaTest(APILiveServerTestCase):
def setUp(self):
self... | [
"mariocj89@gmail.com"
] | mariocj89@gmail.com |
6ba85a9a9247a3d8c945dc9f5b324c4bc61f4c92 | 82bccfd9c7db0fed0954ef31aadb7444f155d45c | /draw.py | 57decbfb08bd075ac867590271d2975aeaba9497 | [] | no_license | Mabedin00/3d | cb0ca938ed70f28e7cd81441de32184e8908538b | 50c09ffc194769bc8f3406e7833915182a5aee9c | refs/heads/master | 2021-03-27T06:01:42.376243 | 2020-03-16T19:57:50 | 2020-03-16T19:57:50 | 247,794,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,593 | py | from display import *
from matrix import *
# ====================
# add the points for a rectagular prism whose
# upper-left corner is (x, y, z) with width,
# height and depth dimensions.
# ====================
def add_box( points, x, y, z, width, height, depth ):
add_edge(points, x, y, z, x + width, y, ... | [
"mabedin00@stuy.edu"
] | mabedin00@stuy.edu |
0db846a6e5146c39dbdb5d2ce4971b61cc766b67 | 78392e1fbb5e5cb73148c9972c9c1df418fbccc0 | /hello.py | d101a41630eeb92d77c7ce6c5f0f493320af10c9 | [] | no_license | gaomiup20/mine | 9ebfc1db6e1642e3ca3b6b22320314d0509f8169 | 948b5d9932209be16e9ee85553b0de4f55de1a97 | refs/heads/master | 2021-01-21T10:52:56.929494 | 2017-02-28T02:42:57 | 2017-02-28T02:42:57 | 83,496,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | #!/usr/bin /env python
#
print "hello world"
| [
"tom@up.com"
] | tom@up.com |
722c89f7c8bd05cab2f40bb54b795413c498ec55 | 223632474c834264c9f7e4c4c525cf19ca923f7e | /Practices/Practice01/mysite/mysite/urls.py | de5f63a6e035fc2a500f82ec3bef07be0eed2cd8 | [] | no_license | englam/Django | 2a2a6fd374169a5f5bb779138e4f5c13d3a987b3 | db267371bac955254fe76e86447396107d69dfe3 | refs/heads/master | 2021-01-19T15:35:01.512703 | 2017-05-28T08:42:44 | 2017-05-28T08:42:44 | 88,223,570 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from views import here, add, math, math2, math3, math4, math5
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'mysite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admi... | [
"englam3345678@gmail.com"
] | englam3345678@gmail.com |
d95a888b85475398916a2bb4c33af9ac9d29e373 | 491d92e941aea7b07390a9310a595d685d83632b | /setup.py | 7ab03c954dd08a8eaadc948f409a16aba1a86ccf | [] | no_license | williamschmitt21/ncan_bibrun | 94dc7cbb7ace4d2ffb28e3b3f58de891a91559bc | 5c15877c5d5e5324528d1561972b4106ab337e78 | refs/heads/master | 2021-09-16T01:52:34.079686 | 2018-06-14T20:48:13 | 2018-06-14T20:48:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # Setup File for Python Module ncan-bib-assess
# Created by Billy Schmitt
from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='ncan_bibrun',
version='0.2',
description='NCAN Bibliometric Assessment',
url='http://github.com/Schmill731/NCAN-... | [
"williamschmitt@college.harvard.edu"
] | williamschmitt@college.harvard.edu |
0d5ca9d725f861d5c49cc304d16055ca776924a7 | 02c5c3329fd00a4261c69dd65bd6b19a8caeaa3e | /lc/hymns/views.py | 36a302e1ba444964605eb6314334a80e4030c102 | [] | no_license | pantlmn/liturcorpora | c8246f8295fc1cb63c34b68d87335937f8f4949d | 4ac52d588e8d21b8e24402663c7b9eec9fe33ac4 | refs/heads/github | 2022-05-09T17:19:49.654601 | 2021-04-10T00:29:55 | 2021-04-10T00:29:55 | 188,422,528 | 2 | 1 | null | 2022-04-22T21:20:07 | 2019-05-24T13:00:49 | Python | UTF-8 | Python | false | false | 1,324 | py | from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from django.core.paginator import Paginator
from django.db.models import Q
import re
from .models import TextBlock, Pa... | [
"pantlmn@gmail.com"
] | pantlmn@gmail.com |
c3332593ef978c5b3b55b4b58e3d4b49a1116ba5 | 392fe549572572b77f9fc1b852a34ebae519087b | /project/settings.py | 55254c5029fae879f43669a2b1cae589d513f37b | [] | no_license | mamee93/like_disqus | cd2cd90c1cf456015d6ee9d51a56a84fc42494f2 | 9516d714804b067bbaa20e35d8bbf8779bebaa67 | refs/heads/main | 2022-12-26T12:14:24.904770 | 2020-10-11T19:49:36 | 2020-10-11T19:49:36 | 303,204,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.1.2.
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/
"""
import os
fro... | [
"mameeal@gmail.com"
] | mameeal@gmail.com |
31ed002b7e046f083d95c8d5950e4686b457017a | 67c26df6c59f2564082e9cf7caf04ab25c929cb5 | /ika_classifier/app/api/tests/Main.py | 76bfff3535ff87cadb7fb025d08aea0809fdfe3f | [
"Apache-2.0"
] | permissive | Harisonm/Ika | 46e5f51212999a16cadb619c3aafb8c11e39964a | 243ceab532007ee4fb05b205e1125fab5d3d325b | refs/heads/master | 2023-05-29T16:55:41.854929 | 2021-01-13T14:48:49 | 2021-01-13T14:48:49 | 198,652,172 | 6 | 0 | Apache-2.0 | 2021-06-10T15:54:31 | 2019-07-24T14:30:21 | CSS | UTF-8 | Python | false | false | 2,076 | py | from api.classifier_mail.model.KMeansModel import *
from api.classifier_mail.model.Metrics import *
from ikamail.GmailHelper import GmailHelper
import pandas as pd
import nltk
import sys
import os
PATH = os.environ.get("PATH_SAVE_TRANSFORM", default=False)
nltk.download("punkt")
nltk.download("stopwords")
def build... | [
"mranaivoharison@gmail.com"
] | mranaivoharison@gmail.com |
4dc41f57067c9b4327b7884014ede075cf83c66b | 509bc8038c4ce8f04130b583d4c70bd851f9b83d | /python/weather/weather.py | e86676654ea84e974a4efdbaaa0291eadc55dae8 | [] | no_license | AlbertoCastelo/weather-kata | 4162fd87ea0f12ab65909f0ef7e3e4201cb2c38f | faa78305050152104d81b3554c0c59e5a2b9d0de | refs/heads/master | 2020-03-22T11:17:09.946722 | 2018-07-06T07:12:29 | 2018-07-06T07:12:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | import urllib.request
import json
import datetime
class Weather:
def predict(self, city, aDateTime = None, wind = False):
# When date is not provided we look for the current prediction
if aDateTime is None:
aDateTime = datetime.datetime.now()
# If there are predictions
... | [
"luisrovirosa@gmail.com"
] | luisrovirosa@gmail.com |
f7e6e122d6cea6eb411ade6ecff40bd031ddd6bd | 5e4d4a4f2c27c5ed4b86e67464d5890873857798 | /setup/02-robot_syntax_rule.py | 9fbe741963dc1c4ad38dd87cc2a6b0682ed2c4b4 | [
"MIT"
] | permissive | venetastefanova/rf-katas | a4941cb278c173bb09e567e962a801c9e02290bd | ce693e31303c19d73ed6e3e779a46f7d364a2069 | refs/heads/master | 2022-12-24T11:27:53.519564 | 2020-10-07T08:51:54 | 2020-10-07T08:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | from rflint.common import SuiteRule, TestRule, ERROR
MUST_KEYWORDS = [
"Open Browser",
"Input Text",
"Page Should Contain"
]
class TestCaseImplementation02(TestRule):
severity = ERROR
def apply(self, test):
report = False
test_steps = []
for step in test.st... | [
"joonas.jauhiainen@eficode.com"
] | joonas.jauhiainen@eficode.com |
5ec57948a7c2ac91e0df862f3e5ca07b9d830b37 | e7340c09cfea3270b067f667c58757f5aa6db449 | /users/models.py | 546dd7c513c706b437b64ba6098034257824ef12 | [] | no_license | emma-code187/blogprojects | 737a338e08fa1ea2642139076fa625bba8d82c8e | 36cb6880608dbadd946e335a86751371b08cb931 | refs/heads/main | 2023-03-20T01:55:58.978864 | 2021-03-21T13:55:25 | 2021-03-21T13:55:25 | 305,835,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
from django.db.models.signals import post_save
from django.dispatch import receiver
#from django.utils.translation import ugettext_lazy as _
class Profile(models.Model):
user = models.OneToOneField(User, on_delete... | [
"noreply@github.com"
] | emma-code187.noreply@github.com |
993c350eb67aa4ef8bfc9ea7648e760612129dac | 2d31c6cc2c0f6280e91ca22ef1f4c6da9a0bb165 | /src/Filter.py | c70e9e9222777a6b7d396a02e61b9b17dbf19eab | [] | no_license | 787890/Music-alib | 717e025d02f663d28bed7d86470ef0f0b81050fa | 260cc6305835beec42c8ac64cd6ca8a96b0b3ce3 | refs/heads/master | 2020-04-12T14:44:56.193918 | 2018-12-24T09:08:38 | 2018-12-24T09:08:38 | 162,560,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
class SongFilter:
DEFAULT_MIN_BITRATE = 320
DEFAULT_MIN_SIMILARITY = 0.5
def __init__(self, min_bitrate=DEFAULT_MIN_BITRATE, min_similarity=DEFAULT_MIN_SIMILARITY):
self.min_bitrate = min_bitrate
self.min_similarity = min_similarity
| [
"787890@gmail.com"
] | 787890@gmail.com |
51b7086bc2acd7748614797c73980218e910f92a | 766a6fdd83608d8faf283b302fa7f6e24b7c4f85 | /WHIProject/urls.py | 1c6162554a8cc241acb7f37900ea57d09f49ec9f | [] | no_license | harshakhmk/WorldHappinessIndexAPI | d4d1877d6fdb18e058fa6065f4de668178c51057 | 724532cd1360024a87df3040a013c9028f6764fb | refs/heads/master | 2023-04-06T14:28:28.200813 | 2021-04-12T11:06:08 | 2021-04-12T11:06:08 | 355,083,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | """WHIProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"kharshakashyap@gmail.com"
] | kharshakashyap@gmail.com |
3685cda859c392bd6c76ef33e00dde9c7acda5af | d0360de3fac36e17d4e423844a78c3fe654677ff | /CF/Q.py | f0314366c6c2856b352eb959f0e668f4b49dc78b | [] | no_license | niki999922/Machine-Learning | 958109a6a2bb82f9ad2d531bc952509634f568a0 | 9f5f13774a12a4e32697e10de6372d1251776007 | refs/heads/master | 2023-02-10T01:32:18.307707 | 2021-01-11T20:34:34 | 2021-01-11T20:34:34 | 298,417,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import math
if __name__ == '__main__':
k1, k2 = map(int, input().split(" "))
n = int(input())
xs, ys = [], []
ans = 0
p = [0 for _ in range(k1)]
m = {}
for _ in range(n):
x, y = map(int, input().split(" "))
p[x - 1] += 1 / n
if not m.__contains__(f'{x - 1} {y - 1}'):... | [
"nikita.kochetkov@jetbrains.com"
] | nikita.kochetkov@jetbrains.com |
c2d6d0cecb6ab276a78410a0afe6e8ca0c4e41b4 | 505a155fe624fd9d028cbd960ed4c819dbfac2ed | /backendbase.py | 569028aae98304a9ad1dde2beedf5e20acd58710 | [] | no_license | WalkingMachine/vizbox | 054332c1e30297faac3084af312edbb42d1cca54 | 1d290581f16d5b775e55f5bcc4f3d03993bc6331 | refs/heads/master | 2021-04-03T06:48:33.881853 | 2018-05-22T20:25:32 | 2018-05-22T20:25:32 | 124,595,894 | 0 | 0 | null | 2018-05-22T19:37:02 | 2018-03-09T21:35:59 | Python | UTF-8 | Python | false | false | 1,990 | py | def call_callbacks_in(cb_list, converter):
def callback(message):
converted = converter(message)
for cb in cb_list:
cb(converted)
return callback
class BackendBase(object):
@staticmethod
def get_instance():
raise NotImplementedError()
def __init__(self):
... | [
"loy.vanbeek@gmail.com"
] | loy.vanbeek@gmail.com |
9b5752bb27cebacb768b2952a976016fc3e1f6ed | 6649efd4a95645938221eca58404db5663cd2491 | /official/vision/losses/retinanet_losses.py | 91aaecf082d4d5d390a2445c5e3290767401c578 | [
"Apache-2.0"
] | permissive | Dithn/models | 8447866855959946358f2e5160b7d31aaafcfc98 | 36a140b8765eaa07525ac42a00cbd01a8b03b98e | refs/heads/master | 2023-09-01T07:41:28.596877 | 2022-03-16T18:12:00 | 2022-03-16T18:13:23 | 228,201,096 | 1 | 0 | Apache-2.0 | 2021-09-23T21:19:16 | 2019-12-15T14:52:24 | Python | UTF-8 | Python | false | false | 8,097 | py | # Copyright 2022 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
023837f61204966e0a2fbe0fd3a4300a089a5156 | bf461a8a1b29b305073f7123205a0071f439fe37 | /Day 9/travel_log.py | 5e1c98b53d984fe2036c59abde4a214af6250898 | [] | no_license | d0ntblink/100-Days-of-Code | ab45b878d2a3de57a5f7dacd706b16425e9497aa | f8c00469284934e65672f6f2925784225b0e8e99 | refs/heads/master | 2023-07-04T12:21:10.169523 | 2021-02-23T06:49:34 | 2021-02-23T06:49:34 | 341,440,513 | 0 | 0 | null | 2021-07-27T22:24:37 | 2021-02-23T05:34:16 | Python | UTF-8 | Python | false | false | 849 | py | travel_log = [
{
"country": "France",
"visits": 12,
"cities": ["Paris", "Lille", "Dijon"]
},
{
"country": "Germany",
"visits": 5,
"cities": ["Berlin", "Hamburg", "Stuttgart"]
},
]
#🚨 Do NOT change the code above
'''
add_new_country("Russia", 2, ["Moscow", "Saint Petersburg"])
add_new_country("Russia", 2, [... | [
"33300872+d0ntblink@users.noreply.github.com"
] | 33300872+d0ntblink@users.noreply.github.com |
71974246c15cd9d899006c0243f48b88b426b3cf | cad2b9873e641862c0896c68cfc12620a34cce03 | /src/controller.py | 398e578f49070f28f614651dbc0dac291c21e7c7 | [] | no_license | xiaoniaoyou/Galieo | de5113f5dcf20518d966c3a474066bda3cf408a7 | 5c9cac0914b871245dc75d63714fd6eaf2a20ad5 | refs/heads/master | 2020-03-12T12:29:37.243459 | 2018-04-23T02:38:23 | 2018-04-23T02:38:23 | 130,619,592 | 0 | 0 | null | 2018-04-23T02:38:24 | 2018-04-23T00:27:08 | null | UTF-8 | Python | false | false | 3,221 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
此界面用于上传指定目录的文件夹,打包该文件夹并压缩,然后上传到远程服务器上指定目录(默认桌面下)
版本3.0.0,此版本用于上传打包压缩后的文件
版本2.0.0,此版本用于上传文件夹
'''
__version__ = '3.0.2'
__author__ = 'Eric'
import MainFrame as mainFrame
import wx
from wx.lib.pubsub import pub
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
i... | [
"wu_yj@piec.com.cn"
] | wu_yj@piec.com.cn |
b834c33ade319d41d9a8a61c437fabc082d3bf4f | 2527a4d313cf10e38a1efdd90ec8031aa6538be7 | /examples/juniper_bring_up_interface/post_check_delete_disable_statement.py | 9150fae9c45e7965bdc34edee455d4ec17c0d67b | [] | no_license | syynack/moss | db4d9b2203494374b62891ab8cb32a033baa760b | 5cc3cb1c99af3edf78a002d37ae02bdab7062da0 | refs/heads/master | 2021-03-27T20:08:00.479428 | 2018-05-08T17:42:56 | 2018-05-08T17:42:56 | 73,017,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | #! /usr/bin/env python
# Created by mcli.
# This file should be used as a template for any user created modules.
from moss import ModuleResult, execute_device_operation, register
# ModuleResult can be used to influence the outcome of a task.
# ModuleResult.end Module will be marked as successful bu... | [
"mlhome96@gmail.com"
] | mlhome96@gmail.com |
9692ae2f3ad46ef6e51bf5de0d8e41074f3d0c79 | 5141a0ec55675aebf6b2a3f2454022e3fd8ad639 | /bin/ExpRunner | e4640a0b471ef966b328437e4779c8d8f89c1edf | [
"Apache-2.0"
] | permissive | bbastardes/TractSeg | 303871586c682983b451885e069a75822a6c09db | 70714fca0e0dc241946ffc704f05b65095c7effb | refs/heads/master | 2020-05-27T03:02:27.806224 | 2019-05-16T14:50:12 | 2019-05-16T14:50:12 | 188,459,492 | 0 | 0 | null | 2019-05-24T17:04:07 | 2019-05-24T17:04:06 | null | UTF-8 | Python | false | false | 14,469 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017 Division of Medical Image Computing, German Cancer Research Center (DKFZ)
#
# 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
#
# ... | [
"j.wasserthal@dkfz.de"
] | j.wasserthal@dkfz.de | |
8b6ffcd96094ac867fd890ed8f60f53285d739e4 | 90bce847e6b10f5a71c88231059b3ab8d35d9f0a | /4.Talleres/Taller2/EjemploEntradaP3.py | adcdf9c734954e3616388812406163ec273048da | [] | no_license | smonsalve/ST0240-20162 | 66f929e7e541845df658206d25640367eb03f379 | 74ee1f2c9d2106fb7ec7a736b6f33d70325219b4 | refs/heads/master | 2020-04-13T04:02:19.854744 | 2016-10-07T19:27:42 | 2016-10-07T19:27:42 | 61,818,937 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | t = int(raw_input())
def zanb(lista):
impo = 0
### aca es donde ustedes escriben su algoritmo que calcula las tortugas importadas
return impo
for i in range(t):
# a = [int(x) for x in raw_input().split()] #Esta linea hace lo mismo que las siguientes lineas
a = raw_input()
b = a.split... | [
"smonsalve@gmail.com"
] | smonsalve@gmail.com |
87c550f3b569961d6e961f57d086f3d2d140b32b | 1f38af9bae11acbe20dd8f5057b374b9760e6659 | /pyscf/grad/ucisd.py | 74df32da3f812e9fb33e3a66d1db2e66c274c27d | [
"Apache-2.0"
] | permissive | highlight0112/pyscf | d36104ef727f593d46fbfd3e5d865c6cd0316d84 | 4afbd42bad3e72db5bb94d8cacf1d5de76537bdd | refs/heads/master | 2020-03-25T01:16:59.927859 | 2019-03-06T01:11:59 | 2019-03-06T01:11:59 | 143,229,588 | 0 | 0 | Apache-2.0 | 2019-03-06T01:12:00 | 2018-08-02T02:05:59 | Python | UTF-8 | Python | false | false | 4,303 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
039bf8cf22fcf317f864eef838cb0f33bc452080 | 155fa6aaa4ef31cc0dbb54b7cf528f36743b1663 | /Exam/project/baked_food/bread.py | c8aab8182c29a939a53facfa397544e410d27da2 | [] | no_license | GBoshnakov/SoftUni-OOP | efe77b5e1fd7d3def19338cc7819f187233ecab0 | 0145abb760b7633ca326d06a08564fad3151e1c5 | refs/heads/main | 2023-07-13T18:54:39.761133 | 2021-08-27T08:31:07 | 2021-08-27T08:31:07 | 381,711,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from project.baked_food.baked_food import BakedFood
class Bread(BakedFood):
def __init__(self, name, price):
super().__init__(name, 200, price)
| [
"boshnakov.g@gmail.com"
] | boshnakov.g@gmail.com |
60d6d4f3fdc42b1fe667839a45df723147035b3a | a058b1a86822a3ebd324908b4cf07529b9bb615b | /make_data/gen_data.py | 8ce63d53a120ace052e493870069b801cb0744e0 | [] | no_license | powern90/Category-Model | 8f085640782313de2ec85b75b248374b113944c9 | 664474eccf08d319a58659ab21d8380aeab0b7de | refs/heads/main | 2023-05-08T20:55:55.435135 | 2021-06-07T10:29:11 | 2021-06-07T10:29:11 | 374,625,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | from konlpy.tag import Mecab
import pandas as pd
import pymysql
import re
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
metadata = pd.read_csv("metadata_1.tsv", delimiter='\t')
vector = pd.read_csv("vectors_1.tsv", delimiter='\t')
with open('stop_words.csv', 'r', encoding='utf-8') as f:
... | [
"rlghd1996@gmail.com"
] | rlghd1996@gmail.com |
b40d7372d41bbefde5b77bb5572d16513ce31e82 | eed1701c99b2fdf778f24898c793c77f3dfcd9eb | /a32_nbc/mnb_spam.py | f96064fdabf37cb723d42c1770a925dcc3cf033f | [] | no_license | hnmspirit/mlcb | b47eef614229752d0cef1e24336b3c5c39c1e624 | 1a27462053b003c5631526040734e845744a3f76 | refs/heads/master | 2020-06-27T21:56:34.282786 | 2020-03-01T05:04:48 | 2020-03-01T05:04:48 | 200,060,596 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import os
from os.path import join
import numpy as np
from scipy.sparse import coo_matrix as cmat
from sklearn.naive_bayes import MultinomialNB as MNB, BernoulliNB as BNB
from sklearn.metrics import accuracy_score
path = 'ex6_prep/'
X_trn_fn = join(path, 'train-features.txt')
y_trn_fn = join(path, 'train-labels.txt')
... | [
"52270404+hnmspirit@users.noreply.github.com"
] | 52270404+hnmspirit@users.noreply.github.com |
8ead285ef7462584e08b05468fc7e005a53f560f | 25ebf19f163e707f9adbac81503a65912248c614 | /CompareView.pyw | fad96963b88809b8426bcbade5b5add21f5bfc0d | [] | no_license | clalanliu/CompareView | 373bd2d40f7b7fa15225ab55b263d0d8efebba6b | a1f2e4b415d92260323d2c26e599b3a2182775a1 | refs/heads/master | 2020-03-18T06:14:51.055388 | 2019-10-07T06:38:14 | 2019-10-07T06:38:14 | 134,383,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,562 | pyw | import tkinter as tk
from tkinter import ttk
from tkinter.filedialog import askopenfilename
import glob
import Util, GlobalVar,ImgSeries,ThumbNailSeries
# root and frame container
GlobalVar.width = 540
GlobalVar.height =360
root = tk.Tk()
root.title('CompareView')
root.geometry("540x360")
GlobalVar.DefClr = root.cget(... | [
"b05901017@ntu.edu.tw"
] | b05901017@ntu.edu.tw |
b3242bf14d3c53d2d0cb82d43a20ee2c7a29b957 | 1f0557882b8e545625ad3f6f33bfe62647a010b1 | /main.py | 0d5de2199e65b133821b8f6aabdaefe1ab2d90d4 | [] | no_license | imdeepansht/DRS-Review-System | a026368960e5e6ea2e49b7b2d63cd64159996249 | 091675f21043b731e5e6eb1d509f10aff3c70097 | refs/heads/main | 2023-06-04T18:30:46.496304 | 2021-06-22T07:53:10 | 2021-06-22T07:53:10 | 379,182,675 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | import tkinter
import cv2 # pip install opencv-python
import PIL.Image, PIL.ImageTk # pip install pillow
from functools import partial
import threading
import time
import imutils # pip install imutils
stream = cv2.VideoCapture("VIDEO.mp4")
flag = True
def play(speed):
global flag
print("You clicked on pl... | [
"noreply@github.com"
] | imdeepansht.noreply@github.com |
2ed84ab34e0aedb307ed52ec2436fdd561b03530 | 949c118b663b626ce8e9966b45226bb506da9939 | /facebooklikes/__init__.py | f80d7b526864ccbe41d34c1ae91d7e776b6832ca | [
"MIT"
] | permissive | sloev/facebooklikes | 6d4b3ecfcea854a72e6fee6829986d639e031359 | 1e9a29db63d5310ed27fdd9527878a53934dec68 | refs/heads/master | 2021-07-07T01:38:52.302443 | 2020-09-02T21:43:57 | 2020-09-02T21:43:57 | 170,492,814 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py |
__author__='johannes.valbjorn+facebooklikes@gmail.com'
__version__='0.1.1'
import urllib.parse
import urllib.request
__unit_lookup = {
'k':1000,
'm':1000000
}
def get_facebook_likes_for_page(page='OfficialEyeHateGod'):
url = "https://www.facebook.com/plugins/like.php?locale=en_US&{}%2F&width=450&layou... | [
"666@nabovarme.dk"
] | 666@nabovarme.dk |
f240b0a0fff15b9d505a726b8e0ac80da6530f31 | 70739cea3abb3dc45beb71d2df776830dce5e01d | /Tagger/taggersql.py | 6d4ecd7375642ad09bb38c0213d088a61a698a0b | [
"MIT"
] | permissive | Jonas-Wennerstrom/Tagger | f5b6e6ab6cd0c653631dd74f8ed6c9ad9af62b6f | 4720304a07e58c7c4d390ff0c0703d936d195187 | refs/heads/main | 2023-01-31T19:37:01.111265 | 2020-12-18T08:07:16 | 2020-12-18T08:07:16 | 317,174,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,374 | py | from sqlalchemy import insert, select, asc, func, exists
from taggermodels import *
##Selection
#Selects a subset of File
def select_file(session, taglist):
"""Returns a list of all File entries with entries in Match matching
all tags in taglist.
Parameters:
session: An SQLAlchemy ... | [
"noreply@github.com"
] | Jonas-Wennerstrom.noreply@github.com |
b1160545d138dab92ee143df02286fc7352ef441 | 17a2401c7d61f0c57f94926ba74e58152fc6bf6e | /lstmcpipe/config/dl1ab_tuning.py | 75efcce9e516b678a8c84510149ef5965dadeb49 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | cta-observatory/lstmcpipe | f2af8e06e8f1c0b0b1c1c70c83d4fc938ed0e7ce | c15c16fa60c437b8b018d2353cc8ea614d1c3677 | refs/heads/master | 2023-08-31T13:08:14.954315 | 2023-08-30T08:12:30 | 2023-08-30T08:12:30 | 207,280,754 | 4 | 12 | MIT | 2023-09-02T12:05:50 | 2019-09-09T10:09:24 | Python | UTF-8 | Python | false | false | 2,120 | py | import json
import subprocess
import logging
log = logging.getLogger(__name__)
def create_dl1ab_tuned_config(base_config_path, config_output_path, observed_data_path, mc_path):
"""
Create a new lstchain config with noise parameters added.
If there are noise parameters in the input config,
this will ... | [
"noreply@github.com"
] | cta-observatory.noreply@github.com |
d0add2b46580ce0c3ba728f98b030a8d847cc95a | 307634b38988a23ecc560e5820ccd0ce02bc326f | /hog/tests/05.py | aca49047a1922d7256340ce3735456e4c7045f67 | [] | no_license | wbailey1/CS61A | 4c6c4b6a71d3f1f3b087646831d9d44f40046acc | 130c0ff12ad62dbc1a36a9e947092b4f9139122e | refs/heads/master | 2020-03-11T06:14:51.787442 | 2018-04-17T01:06:17 | 2018-04-17T01:06:17 | 129,825,422 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,074 | py | test = {
'name': 'Question 5',
'points': 3,
'suites': [
{
'cases': [
{
'answer': 'While score0 and score1 are both less than goal',
'choices': [
'While score0 and score1 are both less than goal',
'While at least one of score0 or score1 is less than goa... | [
"williambailey97@berkeley.edu"
] | williambailey97@berkeley.edu |
a20f3c7273117c730c78f820a3df633014a81ed4 | a4de57b6d17fb35cde263c025ddb5ef93a5c3475 | /src/robot_emulator/scripts/gate.py | 1896c4c3736caf3ae65338a36fcc84ac442cfd35 | [] | no_license | ericdanz/simpleRosG | 99264dd4a7c2c49128cb2dc2200961799baeabd1 | d06f81ff36fd798c859535eb2640e4ed89aabb06 | refs/heads/master | 2020-06-03T08:55:22.013337 | 2014-07-09T03:42:49 | 2014-07-09T03:42:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | #!/usr/bin/env python
from robot_emulator.msg import *
from modulemodel import *
import moduleconnection as mc
from geometry_msgs.msg import Twist
import rospy
import time, serial, sys
import maketranslations as mt
class Gate:
def __init__(self, gnumber=0):
rospy.Subscriber('reqs', Request, self.parseReq)
self.... | [
"ericdanziger@gmail.com"
] | ericdanziger@gmail.com |
55108395c637ef48281003c0edffe500a4968d13 | 5d45364c56d80ceb63d4cea3bf37d2b7bc20710b | /Q4.py | b649ae2824326cae3430b0845188264e3a6e7197 | [] | no_license | Anamikaswt/file | d3dcfee9817b6934c19f432287087e89c15750aa | 7f870602e58acce71b013ba8ac60393516d45c05 | refs/heads/master | 2023-03-28T00:51:31.679507 | 2021-04-02T16:04:46 | 2021-04-02T16:04:46 | 354,066,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | file1=open("question3.txt","r")
for i in file1:
if "delhi" in i:
a=open("delhi.txt","a")
a.write(i)
elif "shimla" in i:
e=open("simla.txt","a")
e.write(i)
else:
p=open("other city.txt","a")
p.write(i)
| [
"you@example.com"
] | you@example.com |
5cb325c3f33fcb2a31c628b28503a26b01429328 | 5d81c0293fc118fb15a5ba8dfd5a61689967c86b | /script.py | 647580da0c26a2a879e0dc212968750abb396a74 | [] | no_license | NatashaSay/car_price | 5b0c5268decc376d499a1f531e2c06dec087b05a | 4a9f7862e3d6bf3671f849bf56dd05b5fe98a9b1 | refs/heads/main | 2023-02-16T20:02:15.471534 | 2021-01-15T17:44:51 | 2021-01-15T17:44:51 | 329,974,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,038 | py | import os
from datetime import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
import xgboost
from sklearn.model_selection import KFold, cross_val_score
from sklearn.metrics import make_... | [
"nataliia.saichyshyna@nure.ua"
] | nataliia.saichyshyna@nure.ua |
8fbc882f62ae45fbd343faf3abb3bef1abf2a11d | 8814c911f8ad490b712b3235d787abc8e930a2fc | /manage.py | fa6c0b453395ef88114c8c7d09a6a5812e90f514 | [] | no_license | ronak007mistry/Django-Money-Management | 6094890564796912e5229d0a16009b02ff5077dc | 6e11a7b819f0443a60e5b0f5bf451059b04aadb7 | refs/heads/main | 2023-01-25T03:29:11.944350 | 2020-12-13T19:44:43 | 2020-12-13T19:44:43 | 320,367,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | 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', 'expenseapp.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"59952103+ronak007mistry@users.noreply.github.com"
] | 59952103+ronak007mistry@users.noreply.github.com |
a7619f22d79e104f13f14f5ad73685679f20016d | 00c9f4c7e371fc8e48295a85aca5d347ae943fe2 | /AviationSite/home/urls.py | 3774752af6c9789a570b2cc1456e2316eb20ab02 | [] | no_license | Marlster/AviationWebsite | 19d06baf01efc305f580013524c5a060b6940171 | 2392405439fb406c70b386d3a72bba17be4aafd2 | refs/heads/master | 2021-06-19T15:27:50.149194 | 2019-11-06T23:08:47 | 2019-11-06T23:08:47 | 154,491,695 | 1 | 0 | null | 2021-06-10T21:11:54 | 2018-10-24T11:46:46 | Python | UTF-8 | Python | false | false | 288 | py | from django.conf.urls import url
from django.urls import path
from django.views.generic import RedirectView
from . import views
urlpatterns = [
# a blank url displays the home page
url(r'^success$', views.success),
url(r'^trials$', views.trials),
url(r'^$', views.home)
] | [
"marley7898@gmail.com"
] | marley7898@gmail.com |
39aa9b9ea6a9922048aef593dc626aed1f30a5eb | 95db0a2b870a4eeb2ff906213e6038337c877e1e | /Module_system 1.134/header_mission_templates.py | 05843a7abcae6afba6e16f183454ef7f4e7c4bc1 | [] | no_license | mbw-economy/Economy-Mod-for-Mount-and-Blade--Warband | 1a2e3e79d1e9a153b078011e2c8c9d4b4b5814f5 | 0c8109dc44226d451005aadce12ef8584f122979 | refs/heads/master | 2021-01-13T16:14:33.383950 | 2011-05-17T02:06:00 | 2011-05-17T02:06:00 | 1,758,841 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | ###################################################
# header_mission_templates.py
# This file contains declarations for mission templates
# DO NOT EDIT THIS FILE!
###################################################
from header_common import *
from header_operations import *
from header_triggers import *
from header_tr... | [
"Nicholas@.(none)"
] | Nicholas@.(none) |
257c12eb61d44015157ebd96fee8c5366c00f03d | 6e6a082325a9b38ce9b5258e6171a776636fdd68 | /turtle-snake/snake.py | 846ca34299b846e2bf22eef0a342ee8ee61b6b02 | [] | no_license | bunja/python-100days | 5d8d0e7739e642ab16289c6a1b371776a761370a | 494e945a9e5d4cecff6583f5851ee18564a1f2e9 | refs/heads/main | 2023-08-30T17:12:41.244183 | 2021-11-04T13:45:28 | 2021-11-04T13:45:28 | 369,013,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | from turtle import Turtle
STARTING_POSITION = [(0, 0), (-20, 0), (-40, 0)]
MOVE_DIST = 20
UP = 90
DOWN = 270
RIGHT = 0
LEFT = 180
class Snake:
def __init__(self):
self.segments = []
self.create_snake()
self.head = self.segments[0]
def create_snake(self):
for pos in STARTING_P... | [
"kos.lv@yandex.com"
] | kos.lv@yandex.com |
1157bbc242bff1549e9e91e11094f5ef9e248a3a | fccb4ee993e9164fc3ca111505141f00c79a5534 | /source code/session 2 - Text preprocessing/2-2-4-inception.py | 1439f3e04cd20b2f42d95fc72544fd01a649e825 | [] | no_license | buomsoo-kim/Sentiment-Analysis-with-Python | de8c99ceb9001c9ddb2483c08e4c150b605dfbc9 | 3281f8a4556cffc862a18a00dad56e92129e5bec | refs/heads/master | 2021-07-03T13:15:02.239720 | 2017-09-25T02:09:26 | 2017-09-25T02:09:26 | 103,010,880 | 21 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | # 텍스트 분석을 위해 nltk 모듈을 불러온다
import nltk
# nltk 모듈에서 Stopwords를 직접 불러온다
from nltk.corpus import stopwords
# nltk의 WordNetLemmatizer를 불러와 lemmatizer 변수에 저장한다
lemmatizer = nltk.wordnet.WordNetLemmatizer()
# 영어의 stopwords를 불러와 변수에 저장한다
stopWords = stopwords.words('english')
# open 함수를 통해 'result-1-3-5-inception.... | [
"noreply@github.com"
] | buomsoo-kim.noreply@github.com |
500ff4e5900396a5fbb390f58f1a83465f1e71c7 | b6ede31e37d504b5c60d5b5e95d502808d868659 | /src/svs/user_interaction.py | 64e8b8768ecbb1bcf8d5e1d2fb865f564b6614f5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | licehammer/svs | 6c45530d947299f883e42bc9af3eaf6814979a03 | b4e6af8e97761d13256e8ecd67ee5ba6f1dbd063 | refs/heads/master | 2021-01-18T18:49:51.454366 | 2016-06-14T14:38:23 | 2016-06-14T14:38:41 | 61,113,469 | 0 | 0 | null | 2016-06-14T10:22:48 | 2016-06-14T10:22:48 | null | UTF-8 | Python | false | false | 2,137 | py | import cherrypy
from mako.lookup import TemplateLookup
import pkg_resources
from svs.i18n_tool import ugettext_lazy as N_
__author__ = 'regu0004'
LOOKUP = TemplateLookup(directories=[pkg_resources.resource_filename("svs", "templates")], module_directory='modules/',
input_encoding='utf-8', ou... | [
"rebecka.gulliksson@umu.se"
] | rebecka.gulliksson@umu.se |
f3215469c3db9f1e25a2cce29c6512d71545aeed | 783a300adcca3f7bbba47a786b0a557c6ada705e | /MPUtils/umxnet/transform.py | a7a5aa6120b79e105dbb9d97832ba3568ea5c892 | [] | no_license | yinglang/MPUtils | 81e1dc1012d4845a6bdabde662bd5282e7adab41 | 79329292c9454ea29d8e1a4658846124076b1003 | refs/heads/master | 2021-07-12T09:58:40.338541 | 2019-02-26T13:37:14 | 2019-02-26T13:37:14 | 150,934,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,233 | py | from mxnet import nd
from random import uniform, randint
import math
class RandomPadCrop:
def __init__(self, pad):
"""
pad: tuple of (lh, rh, lw, rw) of pading length
"""
self.pad = pad
self.random_range = nd.array([pad[0]+pad[1], pad[2]+pad[3]])
def __call__(self, dat... | [
"y19941010@126.com"
] | y19941010@126.com |
0f7eb8486eb91647c6acab95fb94e10d4ecc1a1e | 6d162c19c9f1dc1d03f330cad63d0dcde1df082d | /util/test/tests/Vulkan/VK_Dedicated_Allocation.py | c06da545539026efa6c1692bd928e9ca41a25124 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"CC-BY-3.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | baldurk/renderdoc | 24efbb84446a9d443bb9350013f3bfab9e9c5923 | a214ffcaf38bf5319b2b23d3d014cf3772cda3c6 | refs/heads/v1.x | 2023-08-16T21:20:43.886587 | 2023-07-28T22:34:10 | 2023-08-15T09:09:40 | 17,253,131 | 7,729 | 1,358 | MIT | 2023-09-13T09:36:53 | 2014-02-27T15:16:30 | C++ | UTF-8 | Python | false | false | 2,336 | py | import renderdoc as rd
import rdtest
class VK_Dedicated_Allocation(rdtest.TestCase):
demos_test_name = 'VK_Dedicated_Allocation'
def check_capture(self):
action = self.find_action("Draw")
self.controller.SetFrameEvent(action.eventId, True)
postvs_data = self.get_postvs(action, rd.Me... | [
"baldurk@baldurk.org"
] | baldurk@baldurk.org |
c49799e3184491bde60d8e62de727e4ff19198a4 | 84b8597b5fa1fba9d7859e048d245c327a8d2428 | /tests/integration/cmor/_fixes/cmip5/test_cesm1_waccm.py | 20023eebfaf03f12b0f9c75fc3977606c52cb216 | [
"Apache-2.0"
] | permissive | ESMValGroup/ESMValCore | e648db4702e67f24b38db079c2839a6e75b64b7b | d5187438fea2928644cb53ecb26c6adb1e4cc947 | refs/heads/main | 2023-08-16T01:35:08.783000 | 2023-08-11T11:17:20 | 2023-08-11T11:17:20 | 190,192,145 | 41 | 36 | Apache-2.0 | 2023-09-14T15:34:58 | 2019-06-04T11:58:08 | Python | UTF-8 | Python | false | false | 415 | py | """Tests for CESM1-WACCM fixes."""
from esmvalcore.cmor._fixes.cmip5.cesm1_cam5 import Cl as BaseCl
from esmvalcore.cmor._fixes.cmip5.cesm1_waccm import Cl
from esmvalcore.cmor.fix import Fix
def test_get_cl_fix():
"""Test getting of fix."""
fix = Fix.get_fixes('CMIP5', 'CESM1-WACCM', 'Amon', 'cl')
assert... | [
"noreply@github.com"
] | ESMValGroup.noreply@github.com |
e4d9df2c11e97a002bf4f75df361c351e7d66f56 | 1d1d46c4aeab8296c803456ad79f2bfadab5ed9c | /login-Pyramid/venv/login-app/login_app/views.py | 25fa63bd2e843d9539678d7cb643c5bc38cc270c | [] | no_license | Chanpreet08/Login-Web-App | 8be1f2ec3a1d854688d901909198bae8661e6a99 | 40efdc582139abeb4bb927c7402c7974bfb0dd84 | refs/heads/master | 2021-09-06T04:30:21.164878 | 2018-02-02T10:41:57 | 2018-02-02T10:41:57 | 119,503,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | from pyramid.view import view_config
from pymongo import MongoClient
import bcrypt
from pyramid.response import Response
@view_config(route_name='home', renderer='templates/mytemplate.jinja2')
def my_view(request):
return {'project': 'cc'}
@view_config(route_name='login', renderer='json')
def login(request):
... | [
"chanpreet.chhabra@gmail.com"
] | chanpreet.chhabra@gmail.com |
4219e549ae8bbff7a57fd5fb2530e7fb85acd307 | d1f19fe346b9d56416ea35b9e0a130b352b1f647 | /youtube_clone/settings.py | beb5f0a39ce3b73ea54755fe67789054a5d1fcf5 | [] | no_license | mark-okoth/django-youtube-clone | 2fd714a36ae4065b16462c5912c05c62c7e74ff3 | 67590999bf1904672c60cacb064be3f8391af23d | refs/heads/master | 2021-03-05T11:22:04.665873 | 2020-03-08T12:43:36 | 2020-03-08T12:43:36 | 246,118,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | """
Django settings for youtube_clone project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"markokoth96@gmail.com"
] | markokoth96@gmail.com |
c5b74f1c6488586c41050831e9e7b65ac3d54aa5 | caef0308b388eee0159e4a7184c22293e69690e8 | /leetcode/674.py | 0a4505e2eacbcb026f0fefbcfdc85627d7ee8dc1 | [] | no_license | AlwaysOnline233/cookbook | 440ca4325842482157484ca2df9d0f1932b0b29e | edebb0f98d88566977cc2514631818d8371b78dd | refs/heads/master | 2022-12-14T20:03:26.527927 | 2020-09-06T16:57:36 | 2020-09-06T16:57:36 | 262,815,273 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # 最长连续递增序列
'''
给定一个未经排序的整数数组,找到最长且连续的的递增序列,并返回该序列的长度。
示例: 输入: [1,3,5,4,7] 输出: 3 解释: 最长连续递增序列是 [1,3,5], 长度为3。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence
'''
'''
滑动窗口
每个(连续)增加的子序列是不相交的,并且每当 nums[i-1]>=nums[i] 时,每个此类子序列的边界都会出现。
当它这样做时,它标志着在 nums[i] 处开始一个新的递增子序... | [
"941906145@qq.com"
] | 941906145@qq.com |
05b4537bebdc1725ca8159bc11f0a78840762ede | fb9f061724925a2ac06948ae97ccfa02c5ffd366 | /app/utils.py | 443b843daa224f244857ee13285274cee1c40522 | [] | no_license | manish2382/plivo | 39e018360555519f86b8b561330dd97f4a3c933d | d25337242ea218c865f51e709f85487407c23652 | refs/heads/master | 2021-05-03T11:43:26.455487 | 2016-09-27T17:59:35 | 2016-09-27T17:59:35 | 69,380,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | import redis
from werkzeug import exceptions
from models import Account, phone_number
from config import REDIS_HOST, REDIS_PORT
def get_redis_connection():
"""
Returns redis connection
:return:
"""
return redis.StrictRedis(host=REDIS_HOST, port=REDIS_PORT, db=0)
def register_stop_request(text,... | [
"noreply@github.com"
] | manish2382.noreply@github.com |
c15882d22ea136a5878946d7fd4ffc4a7dfa12a7 | 575d197af5bbc31b89df37f8733e81707294948c | /Python2/examples/xml/xmldict1.py | 126dbacf68b93b0a6e46b8d92085e7b1cb58c771 | [] | no_license | tisnik/python-programming-courses | 5c7f1ca9cae07a5f99dd8ade2311edb30dc3e088 | 4e61221b2a33c19fccb500eb5c8cdb49f5b603c6 | refs/heads/master | 2022-05-13T07:51:41.138030 | 2022-05-05T15:37:39 | 2022-05-05T15:37:39 | 135,132,128 | 3 | 2 | null | 2021-04-06T12:19:16 | 2018-05-28T08:27:19 | Python | UTF-8 | Python | false | false | 104 | py | import xmltodict
with open("test5.xml", "r") as fin:
s = xmltodict.parse(fin.read())
print(s)
| [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
f23056156e6da4aa3af19de37c89a96b86360bca | 7fddea39cee2dc9a90b6c9cb44bff8bff6bdc8e1 | /app.py | d0f5c5498320f72be988e387a28ecb3832a9ab27 | [] | no_license | Uche-UJO/sqlalchemy-challenge | b781cafff2c0bcaadb9a1161a536c191eef53fbd | 9ee1bea0db07134c63d5c14be425c4807c4672dc | refs/heads/master | 2022-04-15T01:21:18.071906 | 2020-04-13T02:36:13 | 2020-04-13T02:36:13 | 255,174,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | # Import all dependables
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func, inspect
from flask import Flask, jsonify
import datetime as dt
# Setting up database
engine = create_engine("sqlite:///Resour... | [
"uutchei@gmail.com"
] | uutchei@gmail.com |
518fd1a0a4bf71eacac0439de1c651cd98d36c8f | e626396f4a254e960fe83a46ce026f34f4c69066 | /controlled/urls.py | 1f6bee6ca00b0b78e6cdfda9716d96ea72e79317 | [] | no_license | aalshrif90/djsurvey | b22506af2678d38ce205bf324a8a2bafc0875cd1 | f5b5fb48eae37aef43287440351c242394d0c604 | refs/heads/master | 2022-12-14T06:01:36.619699 | 2019-05-27T17:03:28 | 2019-05-27T17:03:28 | 156,228,731 | 1 | 0 | null | 2022-11-22T03:47:03 | 2018-11-05T14:13:56 | CSS | UTF-8 | Python | false | false | 411 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^pcode/$', views.pcode, name='pcode'),
url(r'^background/$', views.background, name='background'),
url(r'^question/$', views.question, name='question'),
url(r'^showProgramCode/$', view... | [
"gxr199@gmail.com"
] | gxr199@gmail.com |
e5f8064fbb82af59a4dd0144265b7a3fd9870f01 | c9ad9ddd29f4e7a1dab339b23e014776dc4ade95 | /src/users/templatetags/my_tags.py | b8ef0c032abdddda3f9b75228b351e4e9be2d8bd | [] | no_license | club11/Filippow_Wlad | ddc06e5f59c4e8cb29db81a93b5e43568826c03f | 36b069635139fc6b344a3ab3939a5f8eaf1a7961 | refs/heads/master | 2023-06-19T04:02:17.047305 | 2021-07-14T11:34:46 | 2021-07-14T11:34:46 | 367,748,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django import template
import requests
register = template.Library()
USD_ENDPOINT = 'https://www.nbrb.by/api/exrates/rates/431'
@register.simple_tag
def currency_rate():
res = requests.get(USD_ENDPOINT)
return res.json().get('Cur_OfficialRate') | [
"club11@bk.ru"
] | club11@bk.ru |
8fc1f9cede3267fb6223d0ce95a5db892a7799d1 | 84a3036916808c25ebdb8e3b1e72be178f6f196a | /lib/train/__init__.py | d817445dc52d31ca74dc3895cbed3bd0d887e06e | [] | no_license | kadir-gunel/the-story-of-heads | 6675829521eb3f1013a58e8ba5a22de8e507dd99 | efaa0dd520400baa760654b5b85396c203d3cbb7 | refs/heads/master | 2023-07-02T21:33:52.963465 | 2021-08-02T09:06:09 | 2021-08-02T09:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,396 | py | # Training routine
from collections import defaultdict
import tensorflow as tf
import sys
import inspect
import lib
from lib.train.saveload import initialize_uninitialized_variables
from . import algorithms, saveload, tickers
from .problem import Problem, SimpleProblem
from .tickers import Ticker, DistributedTicker, ... | [
"voita-e-a@yandex.ru"
] | voita-e-a@yandex.ru |
0c24ca66b1dbbb2192380a4100670313cb1f5bde | 6572cd664a7bcc3820d83192922a0c789d56106a | /notebooks_for_development/logg3pt0only_find_layden_coeffs_for_synthetic_spectra_no_errors.py | f1f6fa4b9282c060cd7714ac50a4d4cdca0ca52a | [
"MIT"
] | permissive | mwanakijiji/rrlyrae_metallicity | 3ac98d64595d73d1540cb428c7f08140d14617f3 | e716a58443c015a1a209d78afb7728bdcdf1bd39 | refs/heads/master | 2023-01-07T04:17:08.671642 | 2022-01-09T23:10:04 | 2022-01-09T23:10:04 | 74,923,374 | 0 | 0 | MIT | 2022-12-27T15:35:49 | 2016-11-28T00:33:50 | Jupyter Notebook | UTF-8 | Python | false | false | 14,910 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# This tries a couple function-fitting routines to find the best-fit
# Layden coefficients if the input data is synthetic data with no errors
# Created 2020 Jan. 25 by E.S.
# #### In the following, we plot fits in KH space and write out data including the BIC to sele... | [
"spalding@email.arizona.edu"
] | spalding@email.arizona.edu |
49a3c945fc0bb39a04e1e7830e495de0bffae069 | 2471db05fe8dc2b6186c7485f58217c7663f723e | /storage_table_demo_v3.py | 06b586876d49d40492e88f1e8ec41e013073f24e | [] | no_license | psoe195/azurehw | b1d898ee7f634aea3366e731dbfa27056efe43c8 | b3aa106272ebb5a32e28a4f51c501a4f0489070e | refs/heads/master | 2021-08-15T19:10:26.133187 | 2017-11-18T05:17:13 | 2017-11-18T05:17:13 | 111,159,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,209 | py | import string,random,time,azurerm,json
from azure.storage.table import TableService, Entity
# here are psoe comments
# Define variables to handle Azure authentication
auth_token = azurerm.get_access_token_from_cli()
subscription_id = azurerm.get_subscription_from_cli()
print "subscription_id = " + subscription_id
pr... | [
"petersoe@gmail.com"
] | petersoe@gmail.com |
77f354f61023fa4a42e61899214b2e46445fd876 | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/api/yang/modules/tech/common/qwilt_tech_platform_temperature/tech/platform/temperature/status/status_maapi_gen.py | 03bc31a5274180986553996d0f3063aedcce7b29 | [] | no_license | afeset/miner2-tools | 75cc8cdee06222e0d81e39a34f621399e1ceadee | 81bcc74fe7c0ca036ec483f634d7be0bab19a6d0 | refs/heads/master | 2016-09-05T12:50:58.228698 | 2013-08-27T21:09:56 | 2013-08-27T21:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,266 | py |
# Copyright Qwilt, 2012
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: naamas
from a.infra.misc.enum_with_value import EnumWithValue
from a.infra.basic.return_codes import ReturnCodes
from a.infra.misc.init_guard import InitGua... | [
"afeset@gmail.com"
] | afeset@gmail.com |
4958347475528010f6f727089254a0e308ba70ba | d447d0b9287caeaf10714bb3c749acf9f8667538 | /python/withstatement.py | f1f0d452c86437c2385c06ccec3feb5b7b1f2dd9 | [] | no_license | zchen24/tutorial | cbcfc4d461869300ff7fc5c9d66337b7faf336f9 | e323c7b1536915683ef7ad312af99012fec2e66c | refs/heads/master | 2023-08-18T12:14:10.223230 | 2023-08-13T11:55:38 | 2023-08-13T11:55:38 | 122,897,217 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | #!/usr/bin/env python
"""
Example shows how with statement works
The example shows three approaches
1. manual approach: try / finally block
2. classic class approach
3. contextlib.contextmanager approach
Paradigm:
setup code
try:
user code
finally:
tear down (clean up)
"""
from contextlib import contextman... | [
"zihan.chen.jhu@gmail.com"
] | zihan.chen.jhu@gmail.com |
2e99493bbffcbb5c8d7859d60518ed5de170707d | fed93c5054545d927f3695b51f3a8c9dafb90086 | /Python/tagiofuns/gcite.py | 86b01680c7c695dd462823bfbbe8101ad5d0acf2 | [] | no_license | spluque/TagTools | 34629e360afd3170aa167437cccfd72001b2c69c | 5f150109114cbbdf551cbf8a02e335006613d332 | refs/heads/master | 2021-12-07T10:54:11.656760 | 2021-10-14T20:36:29 | 2021-10-14T20:36:29 | 233,162,704 | 0 | 0 | null | 2020-01-11T02:11:30 | 2020-01-11T02:11:29 | null | UTF-8 | Python | false | false | 2,882 | py | def gcite(doi=None, opage=False):
"""
Get citation (gcite) information from the web using an 'objects' doi number (digital object identifier).
cite, bibf = gcite(doi)
or
cite, bibf = gcite(doi, opage)
Inputs:
doi number as a string. The doi number can be entered as ... | [
"dmwisniewska@gmail.com"
] | dmwisniewska@gmail.com |
35c0fadc45d6dc61d71f740259dd9338eb4c2c47 | 9399e4a5b1870b931625a2d5a1424e2a130e960e | /PyBer_Challenge.py | 66a8a8e175b425be30b131b6a6616e087e78ea44 | [] | no_license | ebskii52/PyberAnalysis | e4dba557414e846f683d2a2f3ae09e594bac44f6 | 3a7cc8d0bb53f4353eacd0eea434b6e01eb5e467 | refs/heads/master | 2020-11-26T06:52:42.835049 | 2019-12-24T09:23:56 | 2019-12-24T09:23:56 | 228,995,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,504 | py | #%%
# Add Matplotlib inline magic command
%matplotlib inline
# Dependencies and Setup
import matplotlib.pyplot as plt
import pandas as pd
import os
# %%
# Files to load
city_data_to_load = os.path.abspath("Resources/city_data.csv")
ride_data_to_load = os.path.abspath("Resources/ride_data.csv")
# %%## Module 5 Chall... | [
"ebskii52@users.noreply.github.com"
] | ebskii52@users.noreply.github.com |
683ed72a45c224d95f506a1e8c1a5060eab42a12 | 2a9b4b0f9cfe7d32434128776037ea6b5ff9800b | /day14.py | 6f91c0a4042e6d3f4df7d0a2360f664efaf895d2 | [] | no_license | hacktoon/adventofcode | 5d71fa6957397cf627adca048602fdda874c4ed0 | 810686eeb3b8c627fa75fb5010b63e1beaf909ba | refs/heads/master | 2021-01-10T11:05:11.535312 | 2015-12-19T19:08:47 | 2015-12-19T19:08:47 | 47,684,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | # Advent of code
# Day 14: Reindeer Olympics
'''
This year is the Reindeer Olympics! Reindeer can fly at high speeds, but must rest occasionally to recover their energy. Santa would like to know which of his reindeer is fastest, and so he has them race.
Reindeer can only either be flying (always at their top speed)... | [
"karlisson.bezerra@titansgroup.com.br"
] | karlisson.bezerra@titansgroup.com.br |
1978ad9916a047e0be6f26fe06c4759fb69c63ff | e30b8b65a12253b323d847636a751f6ff75d757c | /Clientes.py | 0acb82c90edc888c9ea15c47c9b50a0a0d0ae232 | [] | no_license | C4RL0M/Sistema-de-Gestao | 009d73dc3f75b4b0033ed76a53366e35b6041fa4 | fab8b70d55fc0724f9ad0497323b2dcbfd07a8f3 | refs/heads/main | 2023-04-05T13:41:28.045247 | 2021-04-15T03:10:49 | 2021-04-15T03:10:49 | 345,491,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | geral = []
pessoa = {}
print("1-Cadastrar pessoa")
print("2-Lista Cadastros")
print("3-Procurar Pessoa Especifica")
print("4-Encerrar")
op = input("Digite a opção desejada: ")
while op !="4":
if op == '1':
pessoa ['nome'] = input("informe o nome do cliente: ")
pessoa ['idade'] = input... | [
"noreply@github.com"
] | C4RL0M.noreply@github.com |
99ee2513f8b245f847babb718f5a265872e2e7bb | c76c37611bf5b437f821efbfeb33fdc2e2bdd0ec | /scripts/solve_problems.py | 160771036f8edb28e9d87a8f55f8764ae24ca362 | [
"MIT"
] | permissive | LucasLeandro1204/PCCoder | 618f84a27b2841cfb7b365c3480802ef38d81ca1 | 82bfc5a2c58e4d2f276a3ce2be3718ec19083142 | refs/heads/master | 2023-04-07T04:54:44.501309 | 2021-04-17T10:34:03 | 2021-04-17T10:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,735 | py | import argparse
import json
import multiprocessing
import torch
import params
from model.model import PCCoder
from env.env import ProgramEnv
from env.search import cab, dfs
from dsl.example import Example
from dsl.program import Program
from dsl.value import Value
def load_problems(path):
problems = []
with ... | [
"amit.zhr@gmail.com"
] | amit.zhr@gmail.com |
c42682f31c8b5151cf482f4dea52a56ae050c364 | e16a51b35795956afa2d2b2c370ad6afb0d6ed7b | /pi_for_physicists.py | 4310fd2caa685a6c6a94ed7964761389691889eb | [] | no_license | lgsteele/simple-python-programs | 8bb88e088859bea658d9c7ab157f789641bc3270 | e09c9503dc9a8f3d20a4b066b4a05ccc02fe6c2c | refs/heads/master | 2021-05-31T16:57:44.111071 | 2016-05-05T18:58:32 | 2016-05-05T18:58:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #This is a program that determines if you know the value of pi. It assumes you are a physicist.
# To run in Notepad ++ type F5, then enter the following command C:\Python27\Lib\idlelib\idle.py "$(FULL_CURRENT_PATH)"
def pi():
a = raw_input("You are a physicist, eh? What is the value of pi?\n")
a = float(a)
if a <... | [
"louis.g.steele@gmail.com"
] | louis.g.steele@gmail.com |
a02a0761414356e6711d7127dc1787b474585e81 | 363d4005947f7a69021488d75db1ae5c5897775f | /rabish/blazeLearn.py | 308e90bf5e3dccdd8bc2aa0fa2c804d770c16e14 | [] | no_license | anxu5829/MatrixCalculate | c09d87397edc6f26ee152783c186e13741161b5c | 9e1d9f770082e5ac46dbda9a6f67ebde8b6235c8 | refs/heads/master | 2021-08-30T06:14:21.795069 | 2017-12-08T11:42:52 | 2017-12-08T11:42:52 | 111,750,588 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | # use dask to cal and save data
import numpy as np
import dask.array as da
import os
os.chdir("D:")
#os.chdir("C:\\Users\\22560\\Desktop\\recommand Sys\\recommand Sys")
# generate test data
z=np.arange(2e5)
z = z.reshape((int(1e5),2))
# this will rise an memory error
#z = z.dot(z.transpose())
#we can do it ... | [
"anxu5829@gmail.com"
] | anxu5829@gmail.com |
9645a78ec99d0413d31cd60d9b4e834ae1042679 | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming Fundamentals Python/17 Lists Advanced Exercise/car race.py | e7f35427a8792f06507edeed4c607ebd6c79fba9 | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | time_needed = list(map(int, input().split()))
finish = len(time_needed) // 2
left_range = time_needed[:finish]
right_range = time_needed[-1:finish:-1]
left_time = 0
right_time = 0
for time in left_range:
if time == 0:
left_time *= 0.8
left_time += time
for time in right_range:
if time == 0:
... | [
"radka_valkova@abv.bg"
] | radka_valkova@abv.bg |
a25a32d1e10c15d1c779c657ef58a0ceaf8c6b49 | 2e9a384cf365599d12341ff3ede54b74b2a23499 | /Scripts/pip3-script.py | ec926ca2dda340e4b51d1f40c75114c139249587 | [] | no_license | ztex10009090/WhatToEat_roadQuerys | b0fad05d651a53c995f2d4935aff2defac92aec7 | fc57399d68bb818fe2bbc27aec94afe703705041 | refs/heads/master | 2020-05-23T05:42:14.629285 | 2019-05-14T15:57:18 | 2019-05-14T15:57:18 | 186,652,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #!D:\temp\WhatToEat_roadQuerys\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
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])
sys.exi... | [
"ztex10009090@gmailcom"
] | ztex10009090@gmailcom |
3b0148c66e9f4aa739d321648279cbc3af9a43f5 | 68990a9361d2a3e3a7526807b29cef405a9e337b | /main/admin.py | ce42a97d43b0a4899fea544272c4be5fa20211d1 | [] | no_license | adalaw/TEA-Time | 18fcbb10c361d565191633d5d7e84f0e7c71485f | 554cd64cd9a4f9231c776ed1698d85fc1b99d56f | refs/heads/main | 2023-03-18T02:56:12.868458 | 2021-03-11T04:11:44 | 2021-03-11T04:11:44 | 346,571,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | from django.contrib import admin
from .models import *
class ProductAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'code', 'price', 'category', 'hot', 'cold', 'date_created', 'active')
class CategoryAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'image', 'active')
class CustomerAdmin(admin.Mo... | [
"freegirladalaw@hotmail.com"
] | freegirladalaw@hotmail.com |
4423dc9f47cd61d0fa20a672528459528704914d | de3231d5e55674538f8888afe94b241eb884fd34 | /dj4e/home/migrations/0002_auto_20190322_0417.py | 6aaa72d8662aa67fff542d1947e0a1c794446f80 | [] | no_license | hanacoon/django_projects | 9e14371b71f5217b7e68799528825d48684881fe | eab1f948f339273f583bd35f7da81d17b333ba60 | refs/heads/master | 2020-04-18T01:13:25.816950 | 2019-04-18T04:37:01 | 2019-04-18T04:37:01 | 167,110,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | # Generated by Django 2.1.7 on 2019-03-22 04:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='site',
name='ISO',
),
migration... | [
"hanacoon@Hanas-MacBook-Pro-2.local"
] | hanacoon@Hanas-MacBook-Pro-2.local |
356f041e1899bb712556a43afe67e2dbe40e7453 | b7a8582f8bd8259d2a8cf794efab238c09c10e08 | /pa3/mylex.py | af38607ceb8ca7ebf6aaf0fa9f8789057f5725c3 | [] | no_license | ajvarshneya/pl | 3f2e02fea96a031ec68a9506a32673681ae81d9e | 33e76540acfc0895145ed673c33107c4717b461b | refs/heads/master | 2021-05-31T13:11:30.519870 | 2016-04-02T00:02:17 | 2016-04-02T00:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # Produces Token objects from input
class Lexer(object):
def __init__(self, tokens):
self.tokens = tokens
self.iterator = iter(tokens)
def token(self):
try:
token = next(self.iterator)
# print token
if len(token) == 2:
return Token(tok... | [
"aj@ajs-MacBook-Air.local"
] | aj@ajs-MacBook-Air.local |
1f4d8ef6054bf7d36be215b980e3e271a6884841 | 2d9e23e9aac796a9514709fc9585e12a9d365810 | /venv/bin/pip | 341ef8c8329bf74c5b531bf5fd811d2dec6a7c7a | [] | no_license | EvelcNeerg/Jerry | a6ad923bf69e01c2ae646ead872c7255e78b4e0f | f97f3bfb59fa90f2e5efd7a31db6d6496e9c2c3a | refs/heads/master | 2020-04-18T04:37:13.397852 | 2019-01-24T13:30:16 | 2019-01-24T13:30:16 | 167,245,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | #!/Users/cgreen/PycharmProjects/JerrysProject/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
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])
... | [
"cgreen@shipleyschool.org"
] | cgreen@shipleyschool.org | |
531e3867e6ed8774254ce503967e5f32c3ea8710 | 9a46907c545a3d2e09924d1431ade1cd448e1de6 | /generate_distorted_images.py | bb978248468fa6042c5e39cde465b3cdef5d3842 | [] | no_license | kazmiekr/GasPumpOCR | 126cf1bce517c53b1bfe5fcda4b8a3a23adf90d4 | 3ef1386f853176b514708cc6b30d332b3b8d5e9f | refs/heads/master | 2022-08-19T21:40:11.048720 | 2022-07-20T11:20:54 | 2022-07-20T11:20:54 | 86,585,608 | 154 | 57 | null | 2022-07-20T11:20:55 | 2017-03-29T13:30:13 | Python | UTF-8 | Python | false | false | 2,522 | py | import cv2
import os
import sys
from DisplayUtils.TileDisplay import show_img
from ImageProcessing.OpenCVUtils import rotate_image
def dilate_img(img, file_name, file_folder, show, write):
for iterations in range(1, 4, 2):
for dilate in range(1, 4, 2):
kernel = cv2.getStructuringElement(cv2.MO... | [
"kazmiekr@gmail.com"
] | kazmiekr@gmail.com |
03832ca41691bd1f684229de69ff9c9c70b06791 | 2a7597b443c5866d62f1fd3386e5699cbb3ccf5e | /firstproject/firstapp/forms.py | 395e5aba181f96b226dd40f4d26c98f8a28a3aae | [] | no_license | neha-webllisto/All_projects | 319b211360d50d3296d872ccff70627762657dbe | 6bb6f2550b701f8bbdc026725f3db1d781fd69d1 | refs/heads/master | 2020-04-15T04:51:39.070851 | 2019-01-07T08:14:22 | 2019-01-07T08:14:22 | 164,398,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django import forms
class User_form(forms.Form):
Username = forms.CharField(label='Name',max_length=20)
Email = forms.EmailField(label='Email id')
Contact = forms.CharField(label='Phone no.',max_length=12)
Course = forms.CharField(label='Course',max_length=20)
| [
"mansi@webllisto.com"
] | mansi@webllisto.com |
c69d9a13942e8632f0e56c2c3af6de1f0ff2ce04 | 6974096eaf642a1c3dfbc4567d0f0776621261de | /pantalaimon/index.py | 5c8e02bf60702704918aa491142f8a997272a5a8 | [
"Apache-2.0"
] | permissive | thrrgilag/pantalaimon | 29709e1231db7655e57685babad27094f68afe5c | d388a21b9b1f17b7f52790f79dd571d8e75a4543 | refs/heads/master | 2022-11-13T12:56:14.747072 | 2020-07-02T10:19:59 | 2020-07-02T10:19:59 | 277,380,106 | 0 | 0 | Apache-2.0 | 2020-07-05T20:41:57 | 2020-07-05T20:41:56 | null | UTF-8 | Python | false | false | 16,796 | py | # Copyright 2019 The Matrix.org Foundation CIC
#
# 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 agre... | [
"poljar@termina.org.uk"
] | poljar@termina.org.uk |
3f3ae230f286e6f217bdaf35e1ea3c4fe7b84beb | b5c01c72929a2ee1dbe75fd57ff1850be2cdc542 | /Hackerrank/Fibonacci/Solution.py | 28c3db56f79f0ec845b2e79e57e975bbc035b635 | [] | no_license | AnishM-8353/Coding_Questions_Hacktober21 | 9adc24298015f53aa0eea4c3e9269a8b18273ea9 | 5226f8001e6b9f388be671507e416b921b4f0d0d | refs/heads/main | 2023-07-18T20:50:41.810143 | 2021-10-02T13:12:08 | 2021-10-02T13:12:08 | 412,789,563 | 0 | 0 | null | 2021-10-02T12:27:17 | 2021-10-02T12:27:16 | null | UTF-8 | Python | false | false | 95 | py | def fibonacci(n):
if n is 0 or n is 1:
return n
return fibonacci(n - 1) + fibonacci(n - 2)
| [
"noreply@github.com"
] | AnishM-8353.noreply@github.com |
6164509e800a06dda453b4292ea669f5ee00614d | 3ed89d8a9b626a383cf3aa40fe4c9e03c92eb35c | /pycodeexec/languages.py | 261a90997543e154f217c4498d913093c1da1f19 | [] | no_license | 3jackdaws/pycodeexec | 0644b186556fc10171baad90572c11f7721940ca | bc073075f7cf3e2af2cce330597ae57a29ec5066 | refs/heads/master | 2020-04-08T05:56:02.162418 | 2018-11-26T07:26:13 | 2018-11-26T07:26:13 | 159,079,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | LANGUAGES = {
"python": {
"aliases": [
],
"versions": {
"default": {
"image": "python",
"tag": "alpine",
"command": 'python -c "{}"'
},
"3.6": {
"tag": "3.6-alpine"
},
... | [
"3jackdaws@gmail.com"
] | 3jackdaws@gmail.com |
893240ec55751856141e0876c160e926e05aadf2 | d6458a979207e00da6dc653c278b9bfb818ce18d | /Additional Stuff/Medium Stuff/Classes/Inheritance/Polymorphism/animals.py | 0456abd6253f6846ad767427f47eded1419f4eff | [] | no_license | Hackman9912/05-Python-Programming | 61ce7bb48188b4cd3cd8e585480325fdd02e579b | d03a319c952794b2f298a3ef4ddd09c253e24d36 | refs/heads/master | 2020-08-29T14:28:48.403323 | 2019-12-18T21:30:55 | 2019-12-18T21:30:55 | 218,061,276 | 0 | 0 | null | 2019-10-28T14:07:31 | 2019-10-28T14:07:31 | null | UTF-8 | Python | false | false | 1,465 | py | # The mammal class represents a generic mammal
import time
class Mammal:
# The __init__ method accepts an argument for the mammals' species
def __init__(self, species):
self.__species = species
# The show_species method displays a message indicating the mammals species
def show_species(self):
... | [
"charleshackett89@gmail.com"
] | charleshackett89@gmail.com |
fc262677dbd8e943479ae62b5a88260d2b44f1e0 | fb936b0a98a6b54eb067e2aade2fde808615c901 | /PeptideSequencingFunctions.py | f8c641dd3aa8af0c495a0bcb87e48ba2bf918618 | [] | no_license | jmmichaud/BioinfoTools | e71bd4b89072d34efaa31703c947cbab5606c256 | 7b3040c9582530494009e072c2950d461fdb254b | refs/heads/master | 2020-04-09T01:03:40.663127 | 2019-04-11T03:45:11 | 2019-04-11T03:45:11 | 159,890,489 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,950 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 22 13:41:22 2018
@author: jennifermichaud
"""
import copy
import collections
import numpy as np
def GenerateCycloSubstrings(proteinseq):
"""Inputs protein sequence of a cyclic peptide using single letter amino acid
code.
Outputs ... | [
"jennifermichaud@Jennifers-MBP-5.hsd1.ca.comcast.net"
] | jennifermichaud@Jennifers-MBP-5.hsd1.ca.comcast.net |
20bd26d012b69d5dfc6723ff2ae9d1f80631982a | 22cb5739c017767afc8b55d2b3c72d9d92dd25bf | /rent/home/migrations/0008_auto_20200427_1928.py | 16d654a882cabf6f94db105e8ef3431321a414e9 | [] | no_license | Rochakdh/GetWheels | f2be91f688df9d58179adbf9248c663dfa9b044e | 33dfffbf0c3de6c7c960d30b6f509c22fa07e440 | refs/heads/master | 2023-03-21T13:00:47.859683 | 2021-03-06T07:00:03 | 2021-03-06T07:00:03 | 276,622,563 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.0.4 on 2020-04-27 13:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0007_vehicleavailable_user'),
]
operations = [
migrations.AlterField(
model_name='vehicleavailable',
name='s... | [
"rochakdh@gmail.com"
] | rochakdh@gmail.com |
3f459c98571bce7eed53ccbf2f805857aae44171 | 1cdd95a72c9b253fe7f6fc3fe0fd87c5e055a632 | /apps/operation/__init__.py | 2a4e6d4d5d8908cb6f40fd6781153b7fe1dbaad5 | [] | no_license | ShoutangYang/djangoOnline | b40d3d601b3c0096ae4e84a62b7ba5bffeeeaf0d | 31838384d59e8b08561c17236151589276bef015 | refs/heads/master | 2020-03-14T22:28:17.491991 | 2018-06-25T16:12:11 | 2018-06-25T16:12:11 | 131,821,866 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | # 设置用户显示的名称
default_app_config='operation.apps.OperationConfig' | [
"to_yst@163.com"
] | to_yst@163.com |
219fdfefbdd96987c78fcb73a76f371345edb5ec | 62745a26c8bb36c4e0e0f36328059aa99201850c | /Fix_files.txt.py | 48865ffb64e46454c34555dc395a84082a00c2d0 | [] | no_license | shubham1637/Orphan-CRISPR-project | 134ccb0c01315db2e3b2e9af6269432c3729f7e7 | 549e343c7a0d835ed641c543501cd80af585ed80 | refs/heads/master | 2020-04-03T22:53:04.871620 | 2018-05-28T21:37:30 | 2018-05-28T21:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | import itertools
import re
#
# Labels = ["merge", "labels", "height"]
#
# for uno in Labels:
# with open("//panfs/pan1/orphancrispr/IslandsCluster/wg_output_" + str(uno) + ".txt","w") as File:
# count = 0
# print(uno)
# for line in open("//panfs/pan1/orphancrispr/IslandsCluster/wg... | [
"utkinaira@Irinas-MacBook-Pro.local"
] | utkinaira@Irinas-MacBook-Pro.local |
e685a0cd0f729a503d834bf8df8e34a47a329fe2 | 8922075b4fd3179cec07f1b0f5dc47fc92533f8d | /task1.py | 6954f1d5b22c93fe90c5d9e89ae5c2b0827adbf6 | [] | no_license | akbeki21/week4_thursday_task | 2d647ff72adf9e31347f3d658355a727ed1e471b | 53a375d82c4704265d09d691b3d00937274c2ec6 | refs/heads/master | 2023-01-21T21:21:46.768467 | 2020-11-07T17:26:56 | 2020-11-07T17:26:56 | 310,597,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | # Task 1
# def last_one():
# num =input("Enter any number:")
# print(num[-1])
# last_one()
# Task 2
# def isdigit():
# digit = input("Enter any number: ")
# digit = int(digit)
# if digit %2 ==0:
# print("This number is even")
# else:
# print("This number is odd")
# isdigit()... | [
"akmatovabeka21@gmail.com"
] | akmatovabeka21@gmail.com |
10984f7273d2e462fc205946946f58747af35492 | 843136a88f04b9eb42dc967ea8cac7625cfaffef | /WDStartup/wsgi.py | cfd3c946f83b95707aaadb6259ce244f2cc3bb58 | [] | no_license | skrulling/WDStartup | 66fdef4a3a791cd7a200127507cea7c5108d91b0 | ae4c19bdcb23e80c46fea226346ecf5560aa2a29 | refs/heads/master | 2020-05-21T07:50:08.872998 | 2018-09-27T18:35:32 | 2018-09-27T18:35:32 | 56,911,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for WDStartup 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"mikkeleb@gmail.com"
] | mikkeleb@gmail.com |
f501d353de483ac071efcd002afb39410d8a1a5f | 472d508190fd7167bd6dbd5d1680019dd7af993c | /Exercicios/Aula 12/036.py | d326128df61b915e8319094a24278c8ae0d7f557 | [] | no_license | FefAzvdo/Python-Training | f3b8cca72d47f641c504b19b60864cde829b1935 | 0e97d64c7c00bc1eae721a18af7bd96c2484ca34 | refs/heads/master | 2022-12-25T22:23:49.802465 | 2020-09-30T03:00:47 | 2020-09-30T03:00:47 | 298,328,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | n1 = int(input("Digite um número :"))
n2 = int(input("Digite outro número :"))
if n1 > n2:
print(f"{n1} é maior do que {n2}")
elif n1 == n2:
print(f"{n1} é igual a {n2}")
else:
print(f"{n2} é maior do que {n1}")
| [
"wfernandoaugusto01@gmail.com"
] | wfernandoaugusto01@gmail.com |
207e03c01c90dceb13e5e4fcc561d33cce794d0b | 8439766cd9c4667f9cbd041baab9b6ef74312e1c | /BACKEND/main.py | 61a4fad308bc52abe84cf27bfe4e94c7bdeab676 | [] | no_license | ifigueroa065/PROYECTO2_201904013 | 3881224d68a5a759ea0191a7181cc351793c4dc1 | 65e947e31c3b55608155837ce042a001e8056539 | refs/heads/main | 2023-01-06T11:30:29.351811 | 2020-11-09T09:06:22 | 2020-11-09T09:06:22 | 303,919,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,367 | py | from flask import Flask,jsonify, request
from flask_cors import CORS
from Usuario import Us
from Canciones import Cancion
import json
from Comentarios import Comentario
from Playlist import Play
import re
app=Flask(__name__)
CORS(app)
#ARREGLOS PARA ALMACENAR DATOS
cont_canciones=0
cont_solicitudes=0
... | [
"isaiimiff13@gmail.com"
] | isaiimiff13@gmail.com |
a6fb847c0765aa03676507099ad81c8f60fdb6a0 | fff64930b1cf4f1d99062903cc5bea941bc5eb95 | /viikko2/verkkokauppa-1/src/varasto.py | cfe16e83bd0b556e93537999743a9fbdde64f659 | [] | no_license | jpiiroin/ohtu-tehtavat | a2879053e9a42fea47ad289a273c37ef9234b0c1 | 2b205d7cc9d593ed73cf4a25c048bf942bb34e60 | refs/heads/main | 2023-04-02T00:30:53.535820 | 2021-04-09T15:26:27 | 2021-04-09T15:26:27 | 337,110,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | from tuote import Tuote
from kirjanpito import kirjanpito as default_kirjanpito
class Varasto:
def __init__(self, kirjanpito=default_kirjanpito):
self._kirjanpito = kirjanpito
self._saldot = {}
self._alusta_tuotteet()
def hae_tuote(self, id):
tuotteet = self._saldot.keys()
... | [
"jpiiroin@hotmail.com"
] | jpiiroin@hotmail.com |
0275fc13ee1c1285d19946c7a42126d679e48c48 | adb0dd445fe9dc72f7f940be12909769a422f0bb | /sample.py | 731c0848870fcc51bf47f38ad503bc73f7762c37 | [
"MIT"
] | permissive | yng87/Gasyori100knock | 40fd5c20043dd3822b183b6a4fb9d33c5c497be2 | cdf5e375e8f882420ceb54d170d9c015dcd50722 | refs/heads/master | 2020-12-27T04:30:33.106121 | 2020-02-05T02:55:55 | 2020-02-05T02:55:55 | 237,765,829 | 0 | 0 | MIT | 2020-02-02T12:11:23 | 2020-02-02T12:11:22 | null | UTF-8 | Python | false | false | 368 | py | import cv2
import numpy as np
img = cv2.imread("assets/imori.jpg")
img2= img.copy().astype(np.float32)
img2[60:100, 60:100, 0] = 260
cv2.imshow("imori", img2.astype(np.uint8))
cv2.waitKey(0)
cv2.destroyAllWindows()
img2[np.where(img2 > 255)] = 255
cv2.imshow("imori", img2.astype(np.uint8))
cv2.waitKey(0)
cv2.destr... | [
"k.yanagi07@gmail.com"
] | k.yanagi07@gmail.com |
a99571385b1152a602ec8571c137d01f376a98f9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_212/ch11_2020_04_12_13_52_22_999006.py | 63db066fd32828470eb88e06314bcd1d455f5303 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | def distancia_euclidiana (x1, y1, x2, y2):
d1 = x1 - y1
d2 = x2 - y2
return d1, d2 | [
"you@example.com"
] | you@example.com |
b8d4164de6616526a5aee2128aa4ece67648f082 | 1b66406251b3480403e452352c17a0cccd009bf6 | /PAT (Advanced Level) Practice/1003Emergency.py | 59f8849c52d5184f2c54580c1cd72da47654b0eb | [] | no_license | NeoFantom/PAT | eb997166382e01006fb73b070e458bb6ead40a29 | bd2fd76c40f7e1779240168dc87989685c295e8e | refs/heads/master | 2023-03-14T10:39:09.010227 | 2021-03-03T15:49:36 | 2021-03-03T15:49:36 | 293,193,209 | 1 | 0 | null | 2020-09-06T03:05:16 | 2020-09-06T03:05:15 | null | UTF-8 | Python | false | false | 1,603 | py | from queue import PriorityQueue
def inputs():
return [int(s) for s in input().split(' ')]
def dijkstra(graph, rescues, s, d):
lenG = len(graph)
pathCount = [0] * lenG
rescueCount = [0] * lenG
dist = [0x4fffffff] * lenG
visited = [False] * lenG
q = PriorityQueue(lenG ** 2)
... | [
"neohuiqixue@foxmail.com"
] | neohuiqixue@foxmail.com |
3c95a2c8629a2f7a82ff4e1e0db977aee608c498 | 681c7bd995adb41cf8400c4848f4be3c182ced47 | /l2tteBE/chat/consumers.py | ccd22e6393b7258330a9016dc7bea075cbedbd1b | [] | no_license | imdangodaane/l2tte | fa201df4375bbe85fe2153f0989851f0d6b8dd3e | c582519e95492af57e4cf612b377967bb36e152a | refs/heads/master | 2022-06-28T05:32:52.346823 | 2019-12-01T16:02:18 | 2019-12-01T16:02:18 | 225,188,690 | 0 | 0 | null | 2022-05-26T21:26:24 | 2019-12-01T16:01:52 | Python | UTF-8 | Python | false | false | 1,572 | py | from channels.generic.websocket import AsyncWebsocketConsumer
from api.account.models import Login, Token
from asgiref.sync import async_to_sync
from .models import ChatBoxMessageModel
import json
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
# a = self.scope['url_route']['kwargs'][... | [
"imdangodaane@gmail.com"
] | imdangodaane@gmail.com |
bf6ddec1223087c1b1cf8e30b49b6d980d81ac61 | 71e831b3cd97d027c3961ef735a141aaf6266be8 | /setup.py | fdddc00670362ca2cd025105b920186d45c9ffee | [] | no_license | sokolovdp/translator | 3b38ba9236923340f59bd2c6d17f14b1fbb41ff3 | 5d8a8a009bb0e11d40391367fbe1d95d45babc3b | refs/heads/master | 2021-07-08T15:02:57.462824 | 2017-10-06T10:21:06 | 2017-10-06T10:21:06 | 105,991,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #!/usr/bin/env python
# encoding: utf-8
# from distutils.core import setup
from setuptools import setup
long_description = 'This a simple text translator, which can use Yandex or MyMemory translation services'
setup(
name='translator',
version="1.0.1",
author='Dmitrii Sokolov',
author_email='sokolovdp... | [
"sokolovdp@gmail.com"
] | sokolovdp@gmail.com |
e6ce796941dee8ab5b65a845430c95a51b4abf11 | 048abdd7e0676cf5ed9134f23858e462bf954901 | /day03_Matplotlib数据可视化/venv/bin/tensorboard | 35118ca358abebaf3d2071b69f889cc41bc55508 | [] | no_license | MirduSandy/Tersonflow2 | 0f6886021e95b85a04c7c592ee3f5a0b20c8dc75 | 7d380a9ae72d2bd5dac720ae4e6a28c409013560 | refs/heads/master | 2022-11-28T02:18:58.879018 | 2020-08-08T17:51:05 | 2020-08-08T17:51:05 | 273,542,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | #!/Users/a1/Documents/Projects/Python/day03_Matplotlib数据可视化/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tensorboard.main import run_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_main())
| [
"2367738403@qq.com"
] | 2367738403@qq.com | |
b025683518d73f680071522ffc13d707ebcf92cc | 0518d2845240436fac9b34aa068dead635cede31 | /test/test_add_project.py | 2b36e924151c7b163e25e805beb08976e9da6a55 | [] | no_license | bogdanova1/python_training_mantis | 3e01a61d0a23b5e74479c4a28851053228b31483 | 508a71a49cebf6bc7fe9d7e861480a51e9548e82 | refs/heads/master | 2021-03-12T14:20:47.279070 | 2020-03-22T14:16:11 | 2020-03-22T14:16:11 | 246,628,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | from model.project import Project
def test_add_project(app, db):
username = app.config["webadmin"]["username"] #administrator"
password = app.config["webadmin"]["password"] #"root"
app.session.login(username, password)
name=app.random_string("Name",10)
id = db.get_id_project_by_name(name)
if i... | [
"Natalia.Bogdanova@firstlinesoftware.com"
] | Natalia.Bogdanova@firstlinesoftware.com |
c0f4f9ad2aea75b19e5d011df5a178bc5d9e350d | 79dab81736be472e94485ddc7c4a21c0aae07c07 | /Backend/minProject/blog/serializers.py | 39166b517bc9c83da3afb3756f6da7b45c3168b1 | [] | no_license | Pjambhale01/LibraryManagementSystem | 9076cdaa447cf1fde9b15918329ba9c4cd05cc2b | 1a42b7b3f09b4d8f0e509a66412b60a7a9517e2c | refs/heads/master | 2023-08-22T04:19:32.968782 | 2021-10-29T19:16:40 | 2021-10-29T19:16:40 | 422,687,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from django.contrib.auth import models
from django.db.models import fields
from rest_framework import serializers
from django.contrib.auth.models import User
from rest_framework.validators import UniqueValidator
from .models import Blogs
class UserSerializers(serializers.ModelSerializer):
username = serializers.Cha... | [
"jamble085@gmail.com"
] | jamble085@gmail.com |
a9052cfede6cd3dfe1bef8ee2bdef09dd268cd4c | 62dd63d1c0fab618575d00882122004b301d978d | /RTS/applyAlembicOnSelected_v03.py | 178d7828e55c9a49d152ac5db1de6075a772a37c | [] | no_license | benjamintomad/modo-scripts | 4cb241ce9b7614a597581d3f6bef9e8ad55f9c36 | a1b27eb7c3f7e5b2671ab4e8e871dea0a5835abc | refs/heads/master | 2021-01-16T19:16:51.897211 | 2016-01-13T16:33:36 | 2016-01-13T16:33:36 | 21,005,240 | 0 | 0 | null | 2015-03-24T16:27:02 | 2014-06-19T15:21:41 | Python | UTF-8 | Python | false | false | 1,589 | py | #python
import modo
import os
import re
scene = modo.scene.current()
basepath = r'W:\RTS\Caches\tch'
endpath = r'publish\maya\pcache'
seq = scene.name.split('_')[0]
shot = seq+'_'+scene.name.split('_')[1]
versions = []
for i in scene.selected:
cacheForMesh = {}
# checks the caches on the drive
if i.type == ... | [
"benjamin.tomad@gmail.com"
] | benjamin.tomad@gmail.com |
0509e5bf1e76eaa4213818e9501d2ba02ed8c58f | d9fa1e903ab6057b8841268a35c76fd2955b57f0 | /no_live/utils_no_live.py | ad0b45a0493f69015b3f12d3f1152eb82ac41f49 | [
"MIT"
] | permissive | mepearson/Dash | d4c770209d231218c9cc6a9d245718133fe8c21e | 30257d8c6298bee32105f46207bf3dbfbda178c3 | refs/heads/master | 2020-07-20T06:52:15.512682 | 2020-04-06T19:26:42 | 2020-04-06T19:26:42 | 206,593,624 | 0 | 1 | MIT | 2019-09-10T13:20:02 | 2019-09-05T15:12:50 | Python | UTF-8 | Python | false | false | 1,544 | py | from urllib.parse import urlparse, parse_qs
import os
from sqlalchemy import create_engine
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from dash.exceptions import PreventUpdate
import dash_table as dt
import pandas as pd
import n... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
57b4f9c19b39642979779df10ecd081cde515fd3 | edd75f46663df54ad9f73ea69119ef1717f40497 | /Tuples.py | 81e2bed0c931f67c1ade7f89bdc02f81826a16cf | [] | no_license | Titchy15/HackerRankPython | 14de49ed632e0e81d23d56ba057d462a9c91612b | 629ddfe8e68a1774dc67b79685311eafda425744 | refs/heads/master | 2022-10-26T22:16:20.653317 | 2020-06-18T07:36:56 | 2020-06-18T07:36:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | if __name__ == '__main__':
n = int(input())
num = input().split()
print(hash(tuple(int(i) for i in num)))
| [
"noreply@github.com"
] | Titchy15.noreply@github.com |
7dc02c16f177c0e093640dd68dd9b794b75d7b47 | 35a0480f0562a966daca155ac36b481fc2b6396f | /venv/Lib/site-packages/pipenv/patched/notpip/_vendor/urllib3/util/ssl_.py | ef320b35ac44f22a9cff36488e2b18337bf6ddc8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"Apache-2.0"
] | permissive | ryantan-sk/mudkip-discordbot | 14cae2cdf8496bc610541f81b82def353ab8f7b3 | 2b7e9fd238636ec624996f6c54293e54795e26b4 | refs/heads/master | 2020-08-29T05:19:48.597640 | 2019-11-19T15:14:01 | 2019-11-19T15:14:01 | 217,940,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,055 | py | from __future__ import absolute_import
import errno
import warnings
import hmac
import socket
from binascii import hexlify, unhexlify
from hashlib import md5, sha1, sha256
from ..exceptions import SSLError, InsecurePlatformWarning, SNIMissingWarning
from ..packages import six
SSLContext = None
HAS_SNI = False
IS_PY... | [
"32567080+Ryantansk@users.noreply.github.com"
] | 32567080+Ryantansk@users.noreply.github.com |
17e697b542e82af40f6684793faaf8f231bddf86 | 2ab2993c8695af6ecad97428b8f703c1af4708bf | /pages/migrations/0004_cart.py | 5d5794d38aea5452a783f274636df3bb7a84592a | [] | no_license | gfdperez/LBYCPD2_Group5 | fcaeba7bd17073448d49b92bcef306ad13f4a5ec | df627378e7e175c4849f8af6fd8811c4c197d947 | refs/heads/main | 2023-05-12T06:55:38.454682 | 2021-06-03T12:50:49 | 2021-06-03T12:50:49 | 350,992,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # Generated by Django 3.2 on 2021-05-20 08:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0003_drink_classname'),
]
operations = [
migrations.CreateModel(
name='Cart',
fields=[
('id',... | [
"brendon_medrano@dlsu.edu.ph"
] | brendon_medrano@dlsu.edu.ph |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.