blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32cbc365f1bcb79e52d198486af3c6907efeebcc | 5a7c1e936c7233365ccc123fea40380c2e311004 | /utils/datasets/dataset_megadepth.py | 2cebcd0ee2d680c4b6599e7aa01cf3eacb447b71 | [
"MIT"
] | permissive | bgr1993/patch2pix | 588d664662bddab20e57df5e85b536cc6f21a956 | ad26ef065568eabf9a0bb6dc09f53462e9aeef36 | refs/heads/main | 2023-08-14T15:10:14.149924 | 2021-09-21T18:54:45 | 2021-09-21T18:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,668 | py | import os
from PIL import Image
import numpy as np
import torch.utils.data as data
from utils.datasets.preprocess import get_tuple_transform_ops
from utils.eval.measure import sampson_distance
from utils.eval.geometry import pose2fund
class ImMatchDatasetMega(data.Dataset):
'''Data wrapper for train image-matchin... | [
"jennyzqj00@gmail.com"
] | jennyzqj00@gmail.com |
39bc48f8e547d77650dab9624fbf2778bf929f02 | f440dcbd85d8f33540a1efea5a922e759bb1b8ba | /tests/test_mappings.py | 5f5b4d6ecb5b86b2fa4f54fc8f45e8f99bf6b128 | [
"MIT"
] | permissive | isabella232/mangrove | 652e74826c4598830e607bc5d25688f26ecff334 | 234eff15aaeae0064594fd99afe614f436c5d305 | refs/heads/master | 2023-03-16T14:35:49.821537 | 2014-03-20T14:18:21 | 2014-03-20T14:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | import pytest
import boto
from concurrent.futures import ThreadPoolExecutor
from moto import mock_s3
from mangrove.mappings import ConnectionsMapping
class TestConnectionsMapping:
def test_getitem_evaluates_future_connexion(self):
executor = ThreadPoolExecutor(max_workers=1)
f = executor.submit(... | [
"tcrevon@gmail.com"
] | tcrevon@gmail.com |
776c061485addbfd028ca7f580793265843308cf | 39d2fa06fa28617116295f71b2081a392859ccab | /captcha/tests/views.py | 230d4785892e765ddb95b9959f11197a3b075676 | [] | no_license | rezaduty/Django-Bookstore | f535d636532e6a514fc55434bb86214f837525a9 | 94b8ca1fc263fd6b952b5efa9696b2c31843248f | refs/heads/master | 2021-01-19T00:15:01.086788 | 2018-04-07T14:17:16 | 2018-04-07T14:17:16 | 63,248,185 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | from django import forms
from captcha.fields import CaptchaField
from django.http import HttpResponse
from django.contrib.auth.models import User
from six import u
import django
try:
from django.template import engines, RequestContext
__is_18 = True
except ImportError:
from django.template import RequestCo... | [
"mohamad.bax98@yahoo.com"
] | mohamad.bax98@yahoo.com |
74b0c9b69b1067d525471ffd7dbfebf2967a12de | 1f6c73435d6f5f3f388735e34e57d89296c515b8 | /users/models.py | 5a73567ce12fb0c331e013880fe496ed9a91ffe0 | [] | no_license | ugurhmz/Fantom-Blog-Volkan-Atis | aece4f1385a301cee93cfa3b62d88969c06a5f0a | 08e17d118dae06a53fe0f5bdad947f8bd37c0a65 | refs/heads/master | 2023-04-02T01:17:08.954711 | 2021-03-30T03:49:14 | 2021-03-30T03:49:14 | 350,883,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | from PIL import Image
from django.db import models
from django.conf import settings
from django.db.models.signals import post_save
from django.template.defaultfilters import slugify
class UserProfile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
birth_day = mod... | [
"craxx67@gmail.com"
] | craxx67@gmail.com |
240219ff4877b199e6a92ef75a653f18e431bf3a | 4c8eaccc3b55565c2b0eddac75d713b6d60d98a8 | /onnx_tf/handlers/frontend/log.py | b53635f6c0386a2b6a74d6e7fc63f11d777a98b3 | [
"Apache-2.0"
] | permissive | parth1595/onnx-tensorflow | a3b96b7513754d9f734874d5cdb00c60312a60eb | 060e5cdb8fd436152327527811d29a0b957c3138 | refs/heads/master | 2020-04-03T19:34:57.268392 | 2018-10-29T20:16:27 | 2018-10-29T20:16:27 | 155,527,882 | 1 | 0 | Apache-2.0 | 2018-10-31T09:03:09 | 2018-10-31T09:03:09 | null | UTF-8 | Python | false | false | 463 | py | from onnx_tf.handlers.frontend_handler import FrontendHandler
from onnx_tf.handlers.handler import onnx_op
from onnx_tf.handlers.handler import tf_op
from .math_mixin import BasicMathMixin
@onnx_op("Log")
@tf_op("Log")
class Log(BasicMathMixin, FrontendHandler):
@classmethod
def version_1(cls, node, **kwargs):
... | [
"noreply@github.com"
] | noreply@github.com |
91357c211e5073d5b50569facfbbda0b406a9886 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/library-tests/variables/scopes/test.py | 940576d44dfe9eff4e4399fd52b40809619cecb7 | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 987 | py |
global0 = 0
global1 = 1
def func0(param0, param1):
return param0 + param1
def func1():
global global0, global_local
local0 = 0
local1 = 1
global_local
global0 = local0 + local1 + global1
def func2():
local2 = 2
def inner1(param2):
local3 = local2
return local3
ret... | [
"mark@hotpy.org"
] | mark@hotpy.org |
bc66ab3d60470cc43b19347d3be1f0136d69ad59 | 744a9a1f3fe7bb2b067c694ca7e598393954b96d | /game_server.py | e201df50d69823ded5e59cacdb5251575c85629a | [] | no_license | josephdiniso/PyPong | 7970f704b14bf90e4c02dc6591e0c6408e0bf779 | a751e305a714361b491ecd0624abc62c22f02dcf | refs/heads/master | 2022-10-25T03:55:57.815029 | 2020-06-14T20:41:46 | 2020-06-14T20:41:46 | 268,941,669 | 0 | 0 | null | 2020-06-06T14:05:21 | 2020-06-03T00:56:34 | Python | UTF-8 | Python | false | false | 2,346 | py | #!/usr/bin/env python3
import socket
import pickle
import threading
import sys
import os
class Socket():
def __init__(self):
self.clients = []
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.settimeout(20)
self.s.setsockopt(socket.SOL_SOCKET, s... | [
"noreply@github.com"
] | noreply@github.com |
eeff7aa25e3673469b0ac401e1cdec5018a9db45 | 58f2aa32360a7d09f095794e606b44cbdde79cfa | /pelican/bin/pelican-quickstart | 4500bea86bb9f942a526c210573d87f192eaeb5e | [] | no_license | langhai/pelican | 14ed4ceb8d73afe8351b4aa46baebdabc3cde80c | 7ac9024099e8b0a9894264c6c204abe2567bf343 | refs/heads/master | 2020-12-24T14:18:49.106864 | 2013-09-16T20:11:42 | 2013-09-16T20:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | #!/home/bestwc/Developer/pelican/pelican/bin/python2
# EASY-INSTALL-ENTRY-SCRIPT: 'pelican==3.1.1','console_scripts','pelican-quickstart'
__requires__ = 'pelican==3.1.1'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('pelican==3.1.1', 'console_scripts', 'pelican-quickstart')()
)
| [
"hailang@apu.edu.my"
] | hailang@apu.edu.my | |
a786bf475cbf48015a192eb7d585e6b6014972f7 | f287086f47e004c8e7e018c686f8937133fe43b5 | /scripts/drone_motion.py | 9e5db80a6b91c52a1b1699ef6fa2fe178844332c | [] | no_license | afaroo01/drone_gazebo | 838f5b7679787811e67deb82cb2df26f4954fb76 | ad138e698384b17277cff402d69b7a34001696e6 | refs/heads/master | 2023-06-29T20:48:51.942674 | 2021-07-24T14:12:31 | 2021-07-24T14:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,332 | py | #! /usr/bin/env python
import rospy
from gazebo_msgs.msg import ModelState, ModelStates
from geometry_msgs.msg import Pose, Twist
import message_filters
import math
from tf.transformations import euler_from_quaternion, quaternion_from_euler
import sys
import ast
linear_velocity = 0.3
angular_velocity = 0.8
waypoint... | [
"zhefanx@andrew.cmu.edu"
] | zhefanx@andrew.cmu.edu |
cb16a65fddaf90da83c8635395f50dcbd00f2645 | d9b82d91c5feb77238c6852742af6455a5f77d90 | /rip/hashtable.py | 36dd2ab22e3249928ac3d234b66515a228baa03f | [
"MIT"
] | permissive | antonioan/repeat-free-py | bf114e39c531cb5554f7bcf346695991958c87ff | 4641f9bdaef2adb56e3aa2ec8f45aa3a487b1617 | refs/heads/master | 2022-04-12T23:47:30.002807 | 2020-04-09T02:02:06 | 2020-04-09T02:02:06 | 241,734,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,635 | py | # Source: https://github.com/Darthfett/Hashtable/blob/master/Hashtable.py
import abc
import math
from typing import List, Callable
from rip.linked_list import *
class Hash:
@staticmethod
def division_hash(key, size) -> int:
return key % size
@staticmethod
def auxiliary_hash_quad(key, size) -... | [
"antonioabunassar@gmail.com"
] | antonioabunassar@gmail.com |
646f560791c6440e8eaeb5fba21c78512ccb2020 | 0ff92f9d580d373908eecbb7fb773993e12e6657 | /B_fin.py | 94342fc6a52af1d7489cdc9586defe69e8296363 | [] | no_license | OllieEm/13-sprint_fin | 549d4ad69970c3388b9a4895abc7850f607e2c1d | 4892a2678a58b778064d872dc174be38ab0f2c87 | refs/heads/main | 2023-05-07T03:29:19.166337 | 2021-06-01T18:10:12 | 2021-06-01T18:10:12 | 372,921,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # ID 51774953
from math import floor
ACTION = {
'+': lambda x, y: x + y,
'-': lambda x, y: x - y,
'*': lambda x, y: x * y,
'/': lambda x, y: floor(x / y),
}
class Stack:
def __init__(self):
self.items = []
def push(self, item):
self.items.append(item)
... | [
"noreply@github.com"
] | noreply@github.com |
1fdbaaded79fc2233276a57d7482c3fa6516b403 | 8b95e494ed9b0871953e9a83127610a31ebab31c | /CVE-2021-41794/PoC.py | 1ca2aaaf56e106d82d9920d10018d69ceacb27d2 | [] | no_license | MYTFX/CVE-mitre | fe8389f7a0bbe93aedfb78356d0982910d2045ec | 16c22fc5e33fa07fdbb6aa7731227a944b25c3ba | refs/heads/main | 2023-08-18T09:32:32.333487 | 2021-10-19T14:55:27 | 2021-10-19T14:55:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | #!/usr/bin/env python3
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.settimeout(1.0)
pfcp_association_setup_req = b'\x20\x05\x00\x1a\x00\x00\x01\x00\x00\x3c\x00\x05\x00\xc0\xa8\x3f\x88\x00\x60\x00\x04\x5f\xf4\x38\x25\x00\x59\x00\x01\x00'
pfcp_session_establishment_req = b'\x21\x32\x00\x... | [
"noreply@github.com"
] | noreply@github.com |
e5afe11339814efc010060f141562f2c0f6a8e6c | 7d667b70c8ae1c8f214b85d613d3a98462af9d0c | /froide/account/forms.py | db1cd0962ee519c64b00d35ca627351437a19328 | [
"MIT"
] | permissive | handlingar/froide | c57653a87a05fb402c1fe61f0df1ff480391f911 | 5ed80cf6550fb4cbc757029b2c860b53e784eb93 | refs/heads/master | 2021-05-28T18:13:17.573095 | 2015-06-18T13:00:16 | 2015-06-18T13:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,675 | py | import floppyforms as forms
from django.utils.six import text_type as str
from django.utils.translation import ugettext_lazy as _
from django.utils.safestring import mark_safe
from django.core.urlresolvers import reverse
from django.contrib import auth
from django.contrib.auth import get_user_model
from django.conf im... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
0b9f0412e790c2a383c2c3f9d7db1590eaf6de98 | f26680a3694fa1cc7662ce0a7774719b5624169a | /src/dynamic_graph/sot/pattern_generator/meta_pg.py | 4d5d3629764a73f981e68c762f43cb84b1ff51e8 | [
"ISC"
] | permissive | imaroger/sot-pattern-generator | 3251986abf9ba9e3596b3eb9b458784da7d879e2 | f4c07418ae26b7085b5fe2b0c8cbb3a61cbb611b | refs/heads/master | 2021-08-25T09:28:38.024262 | 2018-08-17T13:18:08 | 2018-08-17T13:19:12 | 198,965,902 | 0 | 1 | null | 2019-07-26T07:09:30 | 2019-07-26T07:09:30 | null | UTF-8 | Python | false | false | 8,778 | py | from dynamic_graph.sot.core import *
from dynamic_graph import plug
from dynamic_graph.sot.pattern_generator import PatternGenerator,Selector
from dynamic_graph.sot.dynamics import *
class MetaPG:
def __init__(self,dyn):
self.pg = PatternGenerator('pg')
modelDir = dyn.getProperty('vrmlDirectory')
... | [
"olivier.stasse@gmail.com"
] | olivier.stasse@gmail.com |
8fb7ab55705948bdd8ed17f4432312c23d69569b | c42d878b9d27b3e08fb53b87af24ee6d49d67942 | /phase_3/src/Form/ViewGraphGen.py | 9d2a92c19310449d18b57d2d2121df98124be0a2 | [] | no_license | e-prakash/fall2020-cse111-project | 9a970389e0559ed13abcf014df087e901396cd4e | b8c5c61d197beea1722de8b444d898e1653415a7 | refs/heads/main | 2023-03-19T02:50:38.155902 | 2021-03-03T19:51:28 | 2021-03-03T19:51:28 | 306,124,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,819 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import matplotlib.colors as mcolors
from ..Common import DBTypes
from .import ValueCheck
from time import gmtime, strftime
import folium
Action = DBTypes.EnumReq.Action
Fields = DBTypes.EnumReq.Fields
ResFields = DBTypes.EnumRes
eq_template = """... | [
"noreply@github.com"
] | noreply@github.com |
4bc52290347637c5b2fd2e1bab0b443fed88b2ab | 40b76594127c409204a578c32a9b88e9e6c1a44f | /层次聚类_AGNES.py | 77c718069dfc1d1c1232401ef71c9386f8378c7b | [] | no_license | prosperhitfz/Machine-Learning_Cluster-Analysis_kmeans-FCM-DBSCAN-AGNES_iris | 7e99249982ff96e3cff9e8343879950e613e5e28 | bb0f220a4d2ddd12a198a509026b847e88526174 | refs/heads/main | 2023-06-24T19:32:31.750373 | 2021-06-25T08:16:36 | 2021-06-25T08:16:36 | 380,169,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | # 凝聚层次聚类:AGNES算法(自底向上)
# 首先将每个对象作为一个簇,然后合并这些原子簇为越来越大的簇,直到某个终结条件被满足
from sklearn import datasets
from sklearn.cluster import AgglomerativeClustering
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
import pandas as pd
# 解决中文显示问题
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rc... | [
"noreply@github.com"
] | noreply@github.com |
ceeccd13ee0b16ef28e303cbc40be7a296dffd3c | 958231073be5a0978d3e3fbb648da8f26b2cbb03 | /python testing/testing_web/homework2/tests_buy.am/test_section.py | bd26f82dc1efce63d0863c7a8fdbe9e62cc9a70b | [] | no_license | Suren76/Python | afc9589c677496db6bbfb38166164b6e28da41ab | c843d43f7384397aeabcc16155b7ef6617ce256c | refs/heads/main | 2023-03-02T22:36:17.904471 | 2021-01-31T23:48:29 | 2021-01-31T23:48:29 | 329,370,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import pytest
import allure
from selenium.webdriver.common.by import By
@pytest.mark.usefixtures('add_page_attribute')
@pytest.mark.usefixtures('chrome_driver')
class TestSection:
def test_banner_slider(self):
slider_elm = self.page.driver.find_elements(By.XPATH, "//section/div[3]/div/div/div/div")
... | [
"parsyan_suren@mail.ru"
] | parsyan_suren@mail.ru |
3f6f23ae079267fb63b546d8461f4b288ddf16b4 | 9d4728585c97b1bf2e087e632eb2e69655ca6320 | /lagou/spiders/lagou.py | 16a67958a63e98e4dacf5f049419e4dcf85c8149 | [] | no_license | 602437897/lagou | fe243068226e24038272c1eec267218cd8a87f53 | 9da242629811d50efc067266c9e6fd3430f07333 | refs/heads/master | 2022-12-06T00:13:09.333623 | 2018-01-21T11:57:08 | 2018-01-21T11:57:08 | 118,330,034 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | # -*- coding: utf-8 -*-
import scrapy
from lagou.items import LagouItem
from lagou.settings import DEFAULT_REQUEST_HEADERS, COOKIES
import time, random
class LagouSpider(scrapy.Spider):
name = 'lagou'
allowed_domains = ['lagou.com']
start_urls = ['https://www.lagou.com/zhaopin/C%23/?labelWords=label']
... | [
"602437897@qq.com"
] | 602437897@qq.com |
dbcba9ad27062bad24db1012950d38e19bd1f169 | ffde0966c32c07043f2ec9bb23da3e6cdbe9d0fa | /CirclePlotter.py | fd4544a31c9f98c67ad5e44288e8a066e13d213d | [] | no_license | matthj1/OS-API-Learning | dac921e33a3d9d40f11885c0c6a91833fd712fb4 | f6111c9cf25101e8591591ed6d9a726ae90473ad | refs/heads/master | 2022-12-25T11:29:36.110765 | 2020-09-29T14:31:33 | 2020-09-29T14:31:33 | 298,582,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import math
pi = math.pi
def circle_coords(radius, points, centre):
return [((math.cos(2 * pi / points * x) * radius)+centre[0], (math.sin(2 * pi / points * x) * radius)+centre[1]) for x in range(0, points)]
if __name__ == "__main__":
print(circle_coords(10, 36, (10.05476, 6.09875)))
| [
"joematthewsphotography@gmail.com"
] | joematthewsphotography@gmail.com |
e264997a567934de5c318c0c7c6f24c252c280b3 | eed3c272b0fcb379967df62e161e46869b4dd1b7 | /src/SF/Exp1_2.py | 5d9ef509732ea7d43a6ad1507a00a63226b02ec1 | [] | no_license | juanfung/retrofit-policy | 64d76fd98c6797a2e893cacaf690bcf747ec37df | f8f390eb446fae4c21f1983933643d3737d772a1 | refs/heads/main | 2023-01-24T11:41:43.380121 | 2020-11-23T18:24:22 | 2020-11-23T18:24:22 | 152,454,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,156 | py | # Post-1980 wood-frame buildings
# 1. Add building characteristics
# 2. Add sales data, convert sales data to 2019 USD
# 3. Add assessor data, convert assessor data to 2019 USD
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# path = "F:/RetrofitPolicy/SF Exp1/"
# os.chdir(path)
####... | [
"juan.fung@nist.gov"
] | juan.fung@nist.gov |
5ada850496b766d56da6dc90b7d634e1aa9f19c4 | 1cf3a339c0f94bce94cf142fde9a9f6ab38369a8 | /yt_arch/core/api_client.py | 226b998e4c8765b26d726b26d53496c6d0694b0e | [
"MIT"
] | permissive | hilbertqqc/youtube-playlist-archiver | 959f9afc541c293ff05b37b99833f640d39f4c2a | 69727075e0151d03259c373647278312b11f0299 | refs/heads/master | 2023-03-24T03:34:36.507215 | 2021-03-17T20:57:48 | 2021-03-17T20:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import httpapiclient
from httpapiclient.mixins import JsonResponseMixin, HelperMethodsMixin
class ApiClient(JsonResponseMixin, HelperMethodsMixin, httpapiclient.BaseApiClient):
base_url = 'https://www.googleapis.com/youtube/v3/'
| [
"dbashkatov@gmail.com"
] | dbashkatov@gmail.com |
35b5605675d38e47f6e9113f00cec7ad47b2cd14 | 39d26bedd4049d58265fcd6c480cc7a5b73c7ece | /Tutorial_SimpleTeacherAPI/python-sample-code/tests/conftest.py | 5698513372a065217fe1f856dfe1735a2f254317 | [] | no_license | sramirezh/Developing | 7adc6dbb5c8436db6a3ab125018186ea7bdd1b40 | a07ed07899911b9860830f9498c08144c4eca3d4 | refs/heads/master | 2022-11-08T01:43:05.755215 | 2021-08-23T03:57:39 | 2021-08-23T03:57:39 | 249,786,342 | 0 | 1 | null | 2022-10-24T21:02:22 | 2020-03-24T18:26:46 | Python | UTF-8 | Python | false | false | 281 | py | import pytest
@pytest.fixture
def basic_tree():
return [
(23, "23"),
(4, "4"),
(30, "30"),
(11, "11"),
(7, "7"),
(34, "34"),
(20, "20"),
(24, "24"),
(22, "22"),
(15, "15"),
(1, "1")
]
| [
"sramirez.hinestrosa@gmail.com"
] | sramirez.hinestrosa@gmail.com |
c4471486670e06f8fc2d38a46f1455aac165f69f | a4b3c10ae7e82995ffb012d2787ca5e622cc83b5 | /LibOM/Tools.py | ff729d814c3c4b0d1a7668527f08d0b4f0ba952b | [] | no_license | hamzaz/OpenMaker | 1b8edd321d9ae37923249ded05b71bd002255d60 | a8b0ed13b6a5059451b92ffd5453ea6b2d6d094c | refs/heads/master | 2021-01-20T17:03:41.564352 | 2017-05-09T14:43:11 | 2017-05-09T14:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,946 | py | """This module contains a set of functions and classes to be used while analyzing themes/memes within maker community.
Attributes:
*
Classes:
* WatchTower: Connects to BOUNs Media Watch Tower API to retrieve influencers and themes.
* Twitter: Connects to Twitter API to harvest tweets of the predetermined u... | [
"bulentozel@gmail.com"
] | bulentozel@gmail.com |
243ef68fe11d18e22369979cd2bf46125b0e0df8 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day12_mysql/orm8_fk3_update.py | 8e4124a903201d0e359e84c71a75f1bf66cd9c77 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 2,731 | py | #_*_coding:utf-8_*_
'''
8,外键foreign key
8.3修改数据
study_record考勤表在插入时stu_id字段为null,修改
'''
from sqlalchemy import create_engine,ForeignKey,bindparam
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String,DATE,Enum
from sqlalchemy.orm import sessionmaker
# 1,连接数据库
engine ... | [
"sgq523@163.com"
] | sgq523@163.com |
71a5825c6ebf0e58ab701d593092a5a502881890 | bec959395820d3e273f292becede91afa8053aba | /2.231.py | 6b3ee0f17cd6e8814cd495d5ec07f0c785d45c5e | [] | no_license | smartu3/kernel | 0779f776fac53b14f6b7c172414a9fd5def8d801 | 34f1a1a35c5e35bcfcf8bcdd87735fcd42f04abc | refs/heads/master | 2021-01-22T04:41:50.028909 | 2017-04-26T08:00:22 | 2017-04-26T08:00:22 | 81,574,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | # -*-coding:utf-8 -*-
class Itr(object):
def __init__(self):
self.result = ['a','b','c','d']
self.i = iter(self.result)
def __call__(self):
res = next(self.i)
print "__call__ called,which would return %s" %res
return res
def __iter__(self):
print "__iter__ called"
return iter(self.result)
#iter函数返... | [
"zhze93@qq.com"
] | zhze93@qq.com |
87feffb75938933a0676f94999c40d3b1256618a | d36074240972041b1f8ac19acac154cd707c0628 | /manage.py | b7a4fd392e450c05aaa42010b1f3c0b0c0445269 | [] | no_license | jaya-joseph/erp | d45b99c41cc92b2e9cd2f6b011419eeb99d7a110 | 1c8bbd3eca4a7b14971bd2238f78176834f2cbda | refs/heads/master | 2023-05-17T08:36:55.988890 | 2021-06-10T10:17:43 | 2021-06-10T10:17:43 | 375,663,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | 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', 'RITSOFT.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"62609770+jaya-joseph@users.noreply.github.com"
] | 62609770+jaya-joseph@users.noreply.github.com |
e0a8e099387d137239284405b8a10b388eca81c7 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/uv_align_distribute/pack_islands.py | a9fd3e306ce026b741f500faf275f51c1a81050d | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,153 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# bu... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
2c12ad60738b486115434e2d07faa622a1586cef | c056f0f8b1cd896996225d5c2bcfc20bfbfc185e | /pymdb/models/company.py | 0bd5329cd9d01a2a2dd8fe508eeb4aebdc2bd800 | [
"MIT"
] | permissive | zembrodt/pymdb | 30baeb52972ac2d92d587d9d8024a3a6d0c1f6f8 | 1708438630bff18ab961241657e99ad7511652e3 | refs/heads/master | 2022-12-12T14:16:47.266359 | 2021-05-21T20:07:17 | 2021-05-21T20:07:17 | 211,527,115 | 4 | 0 | MIT | 2022-12-08T07:43:52 | 2019-09-28T16:11:23 | Python | UTF-8 | Python | false | false | 3,617 | py | """The classes used to represent various information about companies on IMDb.
All information for the classes here will be scraped from IMDb web pages.
"""
from ..utils import is_int
class CompanyScrape:
"""Stores a title a company is credited for on IMDb.
This information is taken from IMDb's search by co... | [
"ryan.zembrodt@uky.edu"
] | ryan.zembrodt@uky.edu |
ff971e59f7f7d80e1e4ae02f404ef6913b40ce43 | c7265f5bfba2a5b28372af870946b3012198e656 | /models/__init__.py | c250cba660d853f15b16d70829ac0690a88c1705 | [] | no_license | Sanada-lab/StereoNet | 0657dac9150d1a00f2e1af2446dabd8f6afe95f5 | 0b919457d1c76cdb9b0d1ec55b8f3f5cb7c57a88 | refs/heads/master | 2023-09-01T08:04:58.194425 | 2021-10-26T02:17:35 | 2021-10-26T02:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | from .stereonet import StereoNet as stereonet
| [
"zhixuanli520@gmail.com"
] | zhixuanli520@gmail.com |
510cbc0e160a524f152c2d68971ddc0e7654aad9 | 4f09a69d70626696bd90a86ee45b006373b9e846 | /flaskr/location_code_fetcher.py | 151a666cec5b6e73561705eb68d92403b74063f0 | [] | no_license | seyoung755/place_project | 9d7903ea638de0446fde04a5bf0de8bc9542dc82 | 7e0de3e98389b7cca1ff1f4ea640d6735f7a173c | refs/heads/master | 2023-04-23T20:07:19.191715 | 2021-05-05T11:17:44 | 2021-05-05T11:17:44 | 346,026,713 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,461 | py | import math
NX = 149 ## X축 격자점 수
NY = 253 ## Y축 격자점 수
Re = 6371.00877 ## 지도반경
grid = 5.0 ## 격자간격 (km)
slat1 = 30.0 ## 표준위도 1
slat2 = 60.0 ## 표준위도 2
olon = 126.0 ## 기준점 경도
olat = 38.0 ## 기준점 위도
xo = 210 / grid ## 기준점 X좌표
yo = 675 / grid ## ... | [
"seyoung7555@naver.com"
] | seyoung7555@naver.com |
09414566219ff95bbe9dd52a53d58304dcb9b59f | b9283cc20c0c26d7be7129452d3203e54fffed02 | /src/newsletter/admin.py | 66f5b95ecbde96b8ddd119a885b643485daddcae | [] | no_license | gagannaidu/trydjango18 | 6c99aa89c33a6823832756559465ddc21bc5ae05 | 175c4ee80cefe71f6c2d67f0a91ca04332c7727e | refs/heads/master | 2021-01-20T00:55:52.552224 | 2017-05-04T06:30:22 | 2017-05-04T06:30:22 | 89,210,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from django.contrib import admin
# Register your models here.
from .models import SignUp
from .forms import SignUpForm
class SignUpAdmin(admin.ModelAdmin):
list_display = ["__str__","timestamp","updated"]
form = SignUpForm
#class Meta:
# model = SignUp
admin.site.register(SignUp, SignUpAdmin)
| [
"gagan.globin76@gmail.com"
] | gagan.globin76@gmail.com |
737133a9d5ff1fea555972ced06e52451d461166 | a7c15e8a4de1838aee0d8a8409932ec0ed4da29f | /adapt/views.py | 69c2d9282bb5e16ba791cd06358f0d531f8471bd | [
"Apache-2.0"
] | permissive | bhagvank/adapto_lernado | 42da4b06400bf687f40ce3a805eb3222d0a5471d | 416f261d7943d7e8982dcc6b04e57df5dff74d6e | refs/heads/master | 2020-04-01T13:43:21.471692 | 2020-01-19T20:22:52 | 2020-01-19T20:22:52 | 153,264,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,870 | py | from django.shortcuts import get_object_or_404, render
# Create your views here.
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from django.template import loader
from .models import SlackUser
from .models im... | [
"bhagvan.kommadi@apples-MacBook-Air.local"
] | bhagvan.kommadi@apples-MacBook-Air.local |
a90ce32550af5fc89fe8d8fc64a7c1c99513cd00 | 2d4a32dd7cde180b09286fc8e8fc2e242fbfad42 | /xdmfview/output.py | 1052de2ce9ea09b3ad8c2e9fa50c426610b457b1 | [] | no_license | HIT-CTC/DNS-postprocessing | b26f382cd99da8eb1f7f21e4cb6b898bc7a37780 | 63ef1609fe8e6cbbd58453e357e30a7a4fbe198b | refs/heads/master | 2023-04-14T20:08:04.572910 | 2021-04-24T03:06:44 | 2021-04-24T03:06:44 | 318,992,123 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | #!/usr/bin/python
import h5py
import numpy as np
import re
from pathlib import Path
from prof import avg, div
#----------------------------------------#
#---------- Get Var Dictionary ----------#
#----------------------------------------#
def varDict(fn):
vardict = {}
with h5py.File(fn, 'r') as f:
var... | [
"xilingchu@163.com"
] | xilingchu@163.com |
f59da9d8547eeaf30bbdec1aea66028e443f9349 | 166a791898fc2ce80f15bf3c9dd535411eb65370 | /tournaments/migrations/0004_auto_20180312_2122.py | 0594046942a51268b5ddf21dcd65f50b1020a221 | [] | no_license | FrostFlame/bowling_p | 17dcba9fb4643006d54f9db212fcbffc18616d87 | ca18a91ea9ccbd245c2d263c0e9ff3ae58ff9204 | refs/heads/master | 2020-04-25T05:49:14.889010 | 2018-09-04T19:21:02 | 2018-09-04T19:21:02 | 172,556,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-12 18:22
from __future__ import unicode_literals
from django.db import migrations, models
import tournaments.models
class Migration(migrations.Migration):
dependencies = [
('tournaments', '0003_auto_20180312_2116'),
]
operations =... | [
"kair493@mail.ru"
] | kair493@mail.ru |
07071eecb441b9fcf357cd53c2e787e0521f8b7b | aa90434900a007c572b5147efdb8d5f1e8d4b9a1 | /Yaman's Experiment/scoring_test.py | 274cc01a7883044b395ccaf61182ff4bea7d6aae | [] | no_license | harshgupta9723/ML_Experiments | d563c45116a8a06ed2a3d63eb93c8712223809fb | 3997531a78d5f173af1c4f1eeba6cd4d4b8688b4 | refs/heads/main | 2023-09-04T13:26:10.592725 | 2021-11-19T06:28:10 | 2021-11-19T06:28:10 | 406,354,066 | 0 | 0 | null | 2021-11-19T06:28:11 | 2021-09-14T12:16:45 | Jupyter Notebook | UTF-8 | Python | false | false | 857 | py | import pandas as pd
import numpy as np
import requests
import json
df = pd.read_csv('user.csv', index_col='job_id')
neg = np.random.randint(11, size=len(df))
df['negative'] = neg
pos = np.random.randint(11, size=len(df))
df['positive'] = pos
df.drop(columns=['userfeedback'], inplace=True)
df['tota... | [
"noreply@github.com"
] | noreply@github.com |
e77f2772ce0f33c9076d9680c91c0165196bf144 | b71707810f2eb713257d9c39f16992af9322674b | /python3/venv/bin/easy_install | 988b0d659c99084bd3faca7d7b47ee0d15c3e769 | [] | no_license | kennykim11/advancedPython | 9840d74b7857affab5a30a5d6a974c510ccc5d44 | 32ddd7f1f316104ced32cdcd0910d5dc9cb49de7 | refs/heads/master | 2020-12-22T17:54:04.454592 | 2020-06-07T12:54:01 | 2020-06-07T12:54:01 | 236,880,962 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 466 | #!/Users/kenny/Desktop/Programming/Python/advancedPython/python3/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(... | [
"kennykim11@gmail.com"
] | kennykim11@gmail.com | |
6ace55c0f84dd4805eb1026e871e5d7ed6b7ed97 | a5b9a8f7ca2e831c3c84467b23d9c3e1ae382385 | /fri3d/button.py | 6ee994c31391c30834c15e9e7113bd6cfa529244 | [] | no_license | Fri3dCamp/api | d60e9048cb56e118487d9344897b5e6220adb03c | 9373b0b9d8f5ccc52941c766a539a3f9bb41b843 | refs/heads/master | 2022-12-15T14:30:07.861022 | 2017-08-09T13:23:12 | 2017-08-09T13:23:12 | 99,805,938 | 0 | 0 | null | 2022-12-07T23:56:30 | 2017-08-09T12:29:38 | HTML | UTF-8 | Python | false | false | 1,455 | py | import os
from flask import render_template
from flask import request
from flask import request, abort
from flask_restful import Resource
from fri3d import api, rest, mongo
@api.route("/button")
def render_button():
return render_template("button.html")
class Button(Resource):
def get(self):
try:
arg... | [
"contact@christophe.vg"
] | contact@christophe.vg |
5630a1f755bcb97d80903c68d63d85f599297cb6 | 401d664697e0df149281ca94ea88f6eee3e609f0 | /python/04_OOP/descriptor/08property_and_descriptors.py | 820da9fddcbe2a34c95bc12cade297a6478c6fe2 | [] | no_license | git-mih/Learning | 6806fd14f174b908781714e4c3d15da1c6f63307 | 36ea5cb3ed8da0fb2de43f718d4446bbf000a670 | refs/heads/main | 2023-08-30T02:09:18.299638 | 2021-10-26T01:36:23 | 2021-10-26T01:36:23 | 360,233,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,747 | py | # Properties and decorators
from numbers import Integral
# __________________________________________________________________________________________________
# property object: using decorator syntax:
class Person:
@property
def age(self):
return getattr(self, '_age')
@age.setter
def age(self... | [
"git.mih@gmail.com"
] | git.mih@gmail.com |
a6b08df42fd248573eb7c8fa360cc0f27060166f | ca8f4b3e28ca79367f245a5912bb43e1c8b64797 | /xcom/xcom_dag.py | d5bc5e2ff5778d2be036797ed58ab13c385285b9 | [] | no_license | aTechGuide/airflow-dags | 797a631e0034513a797500a9a84770b0513ba033 | 8aa3280ada687cf323e43c61c2da9d72f18bda6c | refs/heads/master | 2020-08-21T17:23:46.962268 | 2020-06-15T10:48:30 | 2020-06-15T10:48:30 | 216,207,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | from datetime import datetime, timedelta
from airflow import DAG
from airflow.hooks.postgres_hook import PostgresHook
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.python_operator import PythonOperator
default_args = {
'owner': 'airflow',
'depend_on_past': False,
'start_date': d... | [
"kamali@expedia.com"
] | kamali@expedia.com |
c39c32eab42926735834b4162c43fea51ebe0067 | 0e478561dfff017c543395e68f1e70967a3383d2 | /02_L3.py | cea84c2b608866019cf6b89515dd8dd568ddb957 | [] | no_license | wernerweinhartner/aulas_python | f1ad3bfa475075f02059d85a9f3d90efb5b0a62f | a59a98de934a6292e56b06ad036e328284c57d2f | refs/heads/master | 2020-05-25T09:11:27.281668 | 2019-06-24T22:42:09 | 2019-06-24T22:42:09 | 187,729,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | #Faça um programa que leia um nome de usuário e a sua senha e
#não aceite a senha igual ao nome do usuário,
# mostrando uma mensagem de erro e voltando a pedir as informações.
usuario = ''
senha = ''
while (usuario == senha):
usuario = input('Informe seu nome de usuário: ')
senha = input('Informe sua senha:... | [
"wernerweinhartner@gmail.com"
] | wernerweinhartner@gmail.com |
e815bc00ac8a9f39a473d1ae169a929143560be6 | c93f51492cfee3f98040f07d7f4323ec27ac81a5 | /refinery/units/obfuscation/ps1/concat.py | 40bc8a8c7d142f8dcdff27d0265cce17adba6673 | [
"BSD-3-Clause"
] | permissive | prats84/refinery | cbe9ebfeb570c9c0531e13bbf13ec18801f12aca | 5f961051e9cc1857a06108ce4d36a6799ac9d720 | refs/heads/master | 2023-07-13T02:32:04.998285 | 2021-08-20T09:08:01 | 2021-08-20T09:08:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from .. import IterativeDeobfuscator
from . import string_unquote, string_quote, Ps1StringLiterals
class deob_ps1_concat(IterativeDeobfuscator):
_SENTINEL = re.compile(R'''['"]\s*[+&]\s*['"]''')
def deobfuscate(self, data):
def concat(data):
... | [
"rattle@nullteilerfrei.de"
] | rattle@nullteilerfrei.de |
ea1b544ed273f1a243034912b650460c0c769fc9 | c37e93862d118209a8976b1e6b7ab502b2b62e55 | /minha_casinha.py | 74fda26d1bdebd04629ff60e427f2b2dba6af7a5 | [] | no_license | Larissapy/aula-remota-5 | c8162df9ac80ad9e30c99f209632731f57fda000 | 919cbd665a3e8c97c000f86710c14a14daf387ac | refs/heads/master | 2022-12-13T11:06:56.586659 | 2020-09-14T13:39:53 | 2020-09-14T13:39:53 | 295,423,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from turtle import *
shape("turtle")
speed(5)
color("Gray")
pensize(5)
forward(100)
right(90)
forward(100)
right(90)
forward(100)
right(90)
forward(100)
color("Red")
right(90)
forward(103)
left(140)
forward(70)
left(80)
forward(70)
penup()
forward(20)
right(45)
left(90)
forward(83)
left(90)
forward(57)
left(95)
pend... | [
"larissa20carvalho17@gmail.com"
] | larissa20carvalho17@gmail.com |
7b9ce6335d49f7b2c29528005a59eb78c4361630 | b2b56763d26ce4edd30b904a0148f3736aaca126 | /learn_python/learn_python_04/01_if_else.py | ffb58d5ef513ae22615e9f0ebc02c704916814fd | [] | no_license | 0xTiefer-Atem/Python_exercise_demo | d042dfb90b0912948c5f3eb06cf7f0cf907b28dd | 241322dc0913731940757a1aef3a540de3af39d9 | refs/heads/main | 2023-04-24T13:10:54.463789 | 2021-05-10T08:57:43 | 2021-05-10T08:57:43 | 365,975,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # if判断语法
# 语法1:
# if 条件:
# 代码一
# 代码三
# 。。。。
# age = int(input("请输入年龄: "))
# is_beautiful = True
# star = "水瓶座"
#
# if 16 < age < 20 and is_beautiful and star == "水瓶座":
# print("我喜欢你")
# else:
# print("咱俩不合适")
#
# print("其他代码.....")
# if语法二:
# if 条件:
# 代码1
# 代码2
# ....
# else :
# ... | [
"1144502582@qq.com"
] | 1144502582@qq.com |
be878f61f2658494ecef8ee6b0d6eba050723a8f | e986bc8871f927e4f9739023d37d112a72b140c4 | /blog/models.py | 93db3b56aca242d87af35170683c3d1fb4cec8af | [] | no_license | Arnold-git/Blog-Web-App-with-Django | 0584c3297865444ee1c65e781a2bd67ae2de49a8 | 8ef73990a3dff8029f20631fb6dd56a52fb8af72 | refs/heads/main | 2022-12-31T11:25:00.181709 | 2020-10-27T20:15:06 | 2020-10-27T20:15:06 | 307,816,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
date_posted = models.DateTimeField(default=timezone.now)
author = models.ForeignKey(User, on_delete=models.CASCA... | [
"arnold.ighiwiyisi@eng.uniben.edu"
] | arnold.ighiwiyisi@eng.uniben.edu |
e8b54d9e903c75d119d9734ed0e8ed68ba5aebea | f98502c5331a44712bce28af90faa4c3184cb168 | /client.py | 63d26e9125c06848f9a6d8c2944fc89dcc44eae6 | [] | no_license | dpmR/python-tcp | 4aa4365077b04782433ceafc2a8dc8995ca70608 | 2e6a917254c671bcaa5444ecc8c430561a356391 | refs/heads/master | 2021-01-11T17:07:19.811305 | 2017-01-22T15:30:29 | 2017-01-22T15:30:29 | 79,724,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | #Imports
import socket
import time
import random
import subprocess
#Variables
lHost = "127.0.0.1" #Server IP
port = 4711 #Connection Port
filename_inc = ""
filename_out = ""
#Functions
def send(msg):
s.send(msg.encode("UTF-8"))
print("Sent: " + msg)
def sendFile(fil... | [
"dr@debian"
] | dr@debian |
032759bf15afbf28050b5da8834741e808f9c101 | ed1caa7dab36afb3b4083653c9f87a1575817140 | /maakay/models/tournaments.py | aaaf9642c57bf0aab8472d3c0c1e33e659e07d52 | [] | no_license | hussu010/maakay-discord-bot | 9e79cc1cdfd487b21d2921994fc9cdf2688e7569 | c839e27732d88d53c90076f61a408167f3dae6fe | refs/heads/main | 2023-08-13T15:00:50.785941 | 2021-10-01T10:37:03 | 2021-10-01T10:37:03 | 412,343,143 | 0 | 0 | null | 2021-10-01T05:42:15 | 2021-10-01T05:42:14 | null | UTF-8 | Python | false | false | 1,779 | py | import uuid
from django.db import models
from core.models.users import User
class Tournament(models.Model):
ONGOING = 'ONGOING'
CANCELLED = 'CANCELLED'
COMPLETED = 'COMPLETED'
status_choices = [
(ONGOING, 'Ongoing'),
(CANCELLED, 'Cancelled'),
(COMPLETED, 'Completed')
]
... | [
"55182298+dhakalkushal@users.noreply.github.com"
] | 55182298+dhakalkushal@users.noreply.github.com |
4557746799910cdf94ffee6c12d27a8671793a33 | 0787cae7417d0702ac74b63408feb19e82216ae8 | /src/rastervision/semseg/models/conv_logistic.py | 969283adf6c7b7217c1133ed94bcaaa09ab0d1b7 | [
"Apache-2.0"
] | permissive | rahulsingh24/ML | f57b8745cfc307095d3bac110f7de6509f3bdef3 | d5dd7215ab7d3041dc86b03c718bf8d1afa0518c | refs/heads/master | 2021-08-11T04:40:47.179010 | 2021-04-20T19:42:59 | 2021-04-20T19:42:59 | 126,322,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | """Convolutional logistic regression model.
An extremely simple model for semantic labeling which is expected to have
poor results. It does logistic regression across sliding windows in the
image. This is just to test that our data is processed correctly and that we
know how to use Keras.
"""
from keras.models import ... | [
"sahudhanraj123@gmail.com"
] | sahudhanraj123@gmail.com |
f940bcf1ea682999bed19fc60ca0f4af0c8a6610 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5695413893988352_1/Python/sempav/b.py | 8ad8a3ac5ec44bbc0fd72c27fcc7cc57a5f07a7f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | POS = 1
NEG = 2
BOTH = 3
NONE = 0
ans_c = ''
ans_j = ''
ans_diff = 10**20
def extract_num(score_str):
pow10 = 1
res = 0
for ch in reversed(score_str):
if ch != '?':
res += (ord(ch) - ord('0')) * pow10
pow10 *= 10
return res
def check(diff, ans, positions, score_c, score_j)... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
b9d4b40eb8ee711ce836773b1102fa904d5d7281 | fd3460952febec5d4d4cbe16a91fd3f06577d9a6 | /app/views.py | da055749ba8cca16713ebc16eced687cece05cf4 | [] | no_license | sakkhar/accounts | 9ea52783bc720b0422fef00e80b83947f4d9c566 | 7da8357d548cca20426b39c4f39ff0f5608a906f | refs/heads/master | 2020-03-27T20:18:05.622381 | 2018-09-02T05:21:39 | 2018-09-02T05:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,472 | py |
from django.contrib import messages
from django.contrib.auth import login, authenticate, REDIRECT_FIELD_NAME
from django.contrib.auth.tokens import default_token_generator
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.views import (
LogoutView as BaseLogoutView, PasswordChangeV... | [
"sakkhar@mail.com"
] | sakkhar@mail.com |
6fc3e353a8326a114fc60b18e3229535220c28c9 | 0a118477c8b6d1ef79b26310a1d3fb06716743e9 | /contributer_demo/demo2/coordination/formation_demo/my_leader.py | 6a3f3c47ca5aa8e260d12d37928babc195285821 | [
"MIT"
] | permissive | nsgcjdsz/XTDrone | 773ea65421044a895e427cfc68d9e3669210c12a | ebefd6cf943b95998e1b47de6be9052a146d667d | refs/heads/master | 2023-08-25T18:12:48.338686 | 2021-10-23T12:03:47 | 2021-10-23T12:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,406 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import rospy
from geometry_msgs.msg import Twist, Vector3, PoseStamped
from std_msgs.msg import String
from pyquaternion import Quaternion
import time
import math
import numpy
import sys
#if sys.argv[2] == '6': #formation_dict是该文件夹下的文件
# from formation_dict import formatio... | [
"robin_shaun@foxmail.com"
] | robin_shaun@foxmail.com |
41dbc5a92725aee961175682a2fa30a8d0cafdd6 | 7ad3b98ba2dd4736768da218afbb3e61abe67b5d | /contin/feed/urls.py | 47882ce737323edd06f0301757f54527c3f4a8ea | [] | no_license | asimunit/django-SocialNetwork | d208409910154df9f793371f65a28152af08d828 | f385a2d31573a9e326860414e8c4c399270ab7ce | refs/heads/master | 2023-05-15T03:27:26.070850 | 2021-06-14T02:56:55 | 2021-06-14T02:56:55 | 369,500,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.Home.as_view(), name='home'),
path('post/new/', views.create_post, name='create_post'),
path('post/<int:pk>/', views.post_detail, name='post-detail'),
path('post/<int:pk>/update/', views.PostUpdateView.as_view(), name='pos... | [
"asimunit.2015@gmail.com"
] | asimunit.2015@gmail.com |
49c123e66a9ca564f05e711b6a61d32c9dcd56b6 | b4ea8a4c451aedf955f121c4331c46edd3879846 | /aifedayoscrumy/views.py | a48b66310694220c3222e21d33c59d95c78e42e7 | [] | no_license | Aifedayo/scrumyapp | 04fa6a61d7bbd79d7b367774296500c4383fd64a | a8f4fac4419be4159e01127a46a5423a525f7777 | refs/heads/master | 2022-07-04T18:05:43.120727 | 2020-05-25T10:57:38 | 2020-05-25T10:57:38 | 266,754,398 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,751 | py | from django.shortcuts import render, get_object_or_404, Http404, redirect
from django.http import HttpResponse, HttpResponseRedirect
from .models import *
import random
from django.contrib.auth import authenticate, login, logout
from django.urls import reverse
from .forms import *
from django.contrib.auth.models import... | [
"akeemifedayolag@gmail.com"
] | akeemifedayolag@gmail.com |
84072dbb16d09e04624c613e573e99e06f88a20d | 0442edb5a817569b46151c5f131c90c0f0fba313 | /__init__.py | 15a258e137fed24740151aeb6bfe11e3b463e2d8 | [
"BSD-3-Clause"
] | permissive | RiverArchitect/riverarchitect | 6847d7a8705530b226ef3ed01e9aa38b7abf316d | be21ff3c69c9cc0e50a7360c360cc435ad9eafb3 | refs/heads/main | 2023-08-31T14:45:42.064572 | 2021-09-20T12:56:46 | 2021-09-20T12:56:46 | 408,382,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | print("Hi from RiverArchitect RTD")
| [
"sebastian.schwindt@alumni.epfl.ch"
] | sebastian.schwindt@alumni.epfl.ch |
7053bfbfc4d5df12a1ea652236039b7e779c28cb | 08e411f248252de190a60b5643ead021c1bde19e | /hire/admin.py | 41f77f05f8e08104930f93acb1c6e361f3576f59 | [] | no_license | Priteshkamde/SP_Tbi | ea9756d1e95ebcf4fad3526101d5cc956aaa7788 | 64dcbc9be092e8469539672107cfe0b3c5318391 | refs/heads/master | 2020-04-11T20:57:50.693099 | 2018-12-26T13:14:12 | 2018-12-26T13:14:12 | 162,089,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.contrib import admin
from .models import *
admin.site.register(Company)
admin.site.register(JobPost)
admin.site.register(Applications)
| [
"40750377+Priteshkamde@users.noreply.github.com"
] | 40750377+Priteshkamde@users.noreply.github.com |
30d65da0cff0e93c6725787294a07ddd9d4abcb3 | d161a5ea1e4fff3540f488e953619d06da715b7e | /dtf_tasks/__init__.py | ca8f2e17c6c9df1eec1c73148ef5371ba61d6aad | [] | no_license | mjtorn/prkl | 017e734911d5c557c046bfa32f32db016bfc2145 | 1c95d454c9efc180058156694b5c9900ef526ed0 | refs/heads/master | 2021-01-13T01:37:55.214514 | 2009-12-22T17:07:39 | 2009-12-22T17:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # vim: tabstop=4 expandtab autoindent shiftwidth=4 fileencoding=utf-8
from tweeter import Tweeter
# EOF
| [
"mjt@fad3.fadgames.com"
] | mjt@fad3.fadgames.com |
a5d7909a17f6af66a01de4d84f29e1e7ee96e4b5 | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/transformers/examples/pytorch/summarization/run_summarization_no_trainer.py | 3bd925569bb6a8347b8f7e8562568fc34cfb023a | [
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 31,761 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. 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.ap... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
3ce82361cee6e451334ba20a496ae2c3cdf43949 | c597fbaa224302fafba7f1ee893dc340eeefd4af | /services/views.py | ca9ee1e2b8c696c5ef10a68e109a3a7e64a726a9 | [] | no_license | MohamedMawed/government-service-provider-backend | cc49b31d18f647cd7d13c47c78cd5dd734052f83 | 0fdb0bdd09226f22651d9cfd1bcc0595c34c7eb3 | refs/heads/master | 2020-12-14T10:57:26.341057 | 2019-12-18T09:09:04 | 2019-12-18T09:09:04 | 234,719,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | from .models import *
from rest_framework.views import APIView
from .serializers import *
from accounts.serializers import UserSerializer
from accounts.models import User
from rest_framework import generics
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.response import Response
fro... | [
"mohmmedmoued55@gmail.com"
] | mohmmedmoued55@gmail.com |
5fe337f75f189524749d169396ed19b821be42af | 474525154a4e1d48ef5242d1f44164d05399b145 | /tensorflow_probability/python/distributions/hidden_markov_model_test.py | dec2ea82c27a1efb1f509b75bdb840c5ac4184d4 | [
"Apache-2.0"
] | permissive | svshivapuja/probability | 9855737790f74a39169688fbfec9671deef804d9 | af7ccb22d972329633530c3b754ed1f49472f6a7 | refs/heads/main | 2023-07-17T04:14:53.703622 | 2021-08-30T17:47:06 | 2021-08-30T17:47:06 | 400,983,015 | 1 | 0 | Apache-2.0 | 2021-08-29T07:51:29 | 2021-08-29T07:51:29 | null | UTF-8 | Python | false | false | 90,147 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
8766db5f17f73ece19a8e050eb0f6c2da93a0634 | 02d8a026d63127f045042e03e23acbe6c9675db8 | /vb2py/test/testcollection.py | 68f0506871cd8ec816e607dfee324b6b6168fe80 | [
"BSD-3-Clause"
] | permissive | VB6Hobbyst7/xl_vb2py | 40e77976b452732575e2726fb1f0675b1ab9f86f | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | refs/heads/main | 2023-07-28T20:12:11.933183 | 2021-09-23T18:12:02 | 2021-09-23T18:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py | from vb2py.vbclasses import Collection
import unittest
class TestCollection(unittest.TestCase):
def setUp(self):
"""Set up the test"""
self.c = Collection()
# << Collection tests >> (1 of 9)
def testAddNumeric(self):
"""testAddNumeric: should be able to add with numeric indexes""... | [
"c.git@pronovost.net"
] | c.git@pronovost.net |
4c9d7417da9957ec7e079ccb9a71bfe48c768581 | 956bfd26912c1df979907f3849be576cafc31819 | /0_data_gen/analyze_campaign.py | 2196e004ecf07488583b55d95106e3d0a488ae89 | [] | no_license | muskaankularia/Fair-recommendation-system- | cb1868441a5840c90ec3fc831675ed4350498537 | 7bbc04e43201300a01b9d549677250ceb4a946ab | refs/heads/master | 2020-05-16T19:12:40.758644 | 2019-05-28T07:16:51 | 2019-05-28T07:16:51 | 183,251,681 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,029 | py | # import numpy as np
# import pandas
# from collections import Counter
# if __name__ == '__main__':
# data = pandas.read_csv('merge_11col.csv', low_memory=False).as_matrix()
# theme_list = ['others', 'Health', 'SHG', 'Education', 'Curated Local Updates', 'Social Welfare', 'Social Entertainment', 'Livelihoods', 'Ag... | [
"noreply@github.com"
] | noreply@github.com |
ce74e3ac93652f4b96e347842bc4da8db56e9bb4 | dcce41221d1661a5b5406d6d94863838bf792100 | /pointnet2/utils/pointnet2_modules.py | 459436cd5f49b868aea24e42f3413a53b64eebf9 | [] | no_license | whuhxb/PointMixup | 69514a1c385667a2162ec7a75986f76eb9d2530c | 4752b16407a9781795b1ad4600746e7eeb5db05f | refs/heads/master | 2023-01-24T12:54:42.694531 | 2020-12-05T21:36:16 | 2020-12-05T21:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,383 | py | from __future__ import (
division,
absolute_import,
with_statement,
print_function,
unicode_literals,
)
import torch
import torch.nn as nn
import torch.nn.functional as F
import pointnet2.train.etw_pytorch_utils as pt_utils
from pointnet2.utils import pointnet2_utils
if False:
# Workaround for... | [
"rex_cyl@hotmail.com"
] | rex_cyl@hotmail.com |
a270f0bfe251afd4d77425392a011b26bcdbb29d | 39a41840311643f5a576bb3f51a37fb744dc4bed | /jaiku/admin.py | c7b31205df7ad7869bbb5effc68880843fc9f19a | [] | no_license | Tattoo/lifestream | 79a1180911c262a5b56960b611128b7a57e1811b | 3be88bc994ed41312085f2b8d7060fc9e3a1a1f4 | refs/heads/master | 2021-01-23T15:53:31.538380 | 2011-07-11T14:08:59 | 2011-07-11T14:08:59 | 2,030,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from django.contrib import admin
from lifestream.jaiku.models import JaikuEntry
class AuthorAdmin(admin.ModelAdmin):
pass
admin.site.register(JaikuEntry, AuthorAdmin) | [
"tatu.kairi@gmail.com"
] | tatu.kairi@gmail.com |
6218f48765dc1861e53e853bb3e08eae1296574c | 87330e22ad670a227fa0aa140d96d099817e9177 | /screen.py | 8441e14279520b57c46bb924d8fe95ac67fa38ac | [] | no_license | aakashthapa060/Table-Tennis- | 4e7c8f87f7e6f801279fbf4cf7dfff281f914548 | 1684e6eddd202ea78c56fa6205642c962d7e925e | refs/heads/main | 2023-04-13T21:52:46.169030 | 2021-04-22T12:07:26 | 2021-04-22T12:07:26 | 360,499,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import pygame
class Screen:
def __init__(self, width, height):
self.width = width
self.height = height
def screen_display(self):
return pygame.display.set_mode((self.width,self.height)) | [
"noreply@github.com"
] | noreply@github.com |
312b52cb1b4319add74ab61694c18b56da2451a1 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-Cocoa/PyObjCTest/test_nscolorsampler.py | 1b666e6faca75d95e31360218b6b1b293f053d99 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 290 | py | import AppKit
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSColorSampler(TestCase):
@min_os_level("10.15")
def test_methods_10_15(self):
self.assertArgIsBlock(
AppKit.NSColorSampler.showSamplerWithSelectionHandler_, 0, b"v@"
)
| [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
9cb8c99b0fc2cbe805cbf28784627800a3e630bf | 322cc47eb3b7e596a7b136ea44a82f19b140fff9 | /src/notifications/migrations/0002_auto_20151011_2113.py | 30bf3a17a56fbda56aa0f5326b9e0e464cbcdc41 | [] | no_license | summerbt/srvup_dance | e3b753e809858d132a2ed5279098692f08660375 | 9fff98ea1eb09d0141256197d3a7ad207e98aea4 | refs/heads/master | 2021-01-10T03:30:26.232837 | 2015-11-08T22:09:54 | 2015-11-08T22:09:54 | 45,801,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0001_initial'),
('notifications', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"summerbartontaylor@gmail.com"
] | summerbartontaylor@gmail.com |
655a961672c361b1ced6b82454352d0a7220e958 | 27cb0aab1d6525b9689853f99af9f4561d47d38e | /OCR/main.py | 860fef99daefd70aa7244212bdaa89582f96085e | [] | no_license | parthjain99/Pedagogy-System-for-Assessing-Students-Performance | 85605e452f571623e8b097206e2ea58253439e5a | 4a2e78474806f01ced8cb664190bbd5ffd725d8b | refs/heads/main | 2023-08-02T02:01:49.038508 | 2021-10-05T21:46:13 | 2021-10-05T21:46:13 | 413,986,789 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | import cv2
from time import sleep
import requests
import io
import json
import os
import random
key = cv2.waitKey(1)
webcam = cv2.VideoCapture(0)
sleep(2)
print("For Recognize Image PRESS 'S'\n"
"For QUIT PRESS 'Q\n"
"After run time if 'images.jpg' is still visible,Please re-run the program.\n")
while Tr... | [
"pchamp22.pj@gmail.com"
] | pchamp22.pj@gmail.com |
35d9d78251c7c409384d361152329bb9a09e2a50 | 52cef818e83ea70957411940bc9f562500e11bf0 | /assignments/shell/cmd_pkg/tail.py | 18712921c668dfdf9f930c7ec03366e81d9bd664 | [] | no_license | shailamogalapu/5143-201-OpSys-Mengaraboina | 27b524cb8b03ba6dcda066f543b9e8e000bc3309 | fd5df8805536ac9c199cc9674b7bc34c124f3b0e | refs/heads/master | 2021-01-09T05:27:01.835203 | 2017-02-21T20:30:37 | 2017-02-21T20:30:37 | 82,729,220 | 0 | 0 | null | 2017-02-21T21:31:18 | 2017-02-21T21:31:18 | null | UTF-8 | Python | false | false | 232 | py | def tail(filename):
if os.path.exists(filename):
nlines=-10
lines=open(filename,'r').readlines()
tot_lines = len(lines)
for i in range(nlines,0):
print lines[i]
else:
print("file doesnt exists") | [
"lavanyamengaraboina@gmail.com"
] | lavanyamengaraboina@gmail.com |
08cf0f0f502f7707e27dbb1c434bf4865d542d55 | 81a0995bd9278e646cfe8e1765744a3497c2c025 | /backend/database/migrations/0002_auto_20210512_1720.py | 071b336f199dca93c9167506e09728657e25dbb4 | [] | no_license | wawel37/crypto-app | 475c1bda37660a7aaa1f16a1661fa95ace66be9c | 094fb1990731ffaf15421ff98702b7ca20c4e04b | refs/heads/main | 2023-06-02T06:36:36.455985 | 2021-06-14T10:21:33 | 2021-06-14T10:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # Generated by Django 3.2 on 2021-05-12 17:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('database', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"pstecyk@student.agh.edu.pl"
] | pstecyk@student.agh.edu.pl |
9493df6cb5e308abd83f10492fb5f33eeba389ea | 8ee6b60ec93f858e90d1db2728a5b827c91be93f | /config/settings/local.py | 913d3ec7bae80650038f4175c736e6840768e8f8 | [
"MIT"
] | permissive | TrellixVulnTeam/auto-review_28F3 | df9708c15156140543d65542450a47c127bdb801 | 64d4c1e40a4c415e14680ed333be818ce7d320a8 | refs/heads/master | 2023-03-19T11:18:25.261191 | 2017-10-27T01:09:47 | 2017-10-27T01:09:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from .base import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '_$l*dwz%)f7nv)6behbdfd*wh$x^g&5(=&@2o=%%fiykcqd-ne'
DEBUG = env.bool('DJANGO_DEBUG', default=True) | [
"breakfastalways@gmail.com"
] | breakfastalways@gmail.com |
856e1b9f8b32d71adc877918ddfca7855f87d8e9 | 47f7925d2a2e74fa2fa54308bfd465f39cf5164f | /home/migrations/0002_danisman.py | 0ec2ad19e23124560021aa4bbdb3ec90111032fb | [] | no_license | asitaslan/Homlook | c13b937e85d3300f8732603b92c0c93939e39140 | c1a0ee937dee27c90e09dc3c5f1329b6ae53bccf | refs/heads/master | 2022-11-06T22:17:00.222347 | 2020-07-12T09:20:50 | 2020-07-12T09:20:50 | 279,030,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # Generated by Django 3.0.4 on 2020-07-04 08:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='danisman',
fields=[
('id', mo... | [
"asitaslan95@gmail.com"
] | asitaslan95@gmail.com |
bfc74cf81837266fab6836d5440c75ebfa920a50 | 28eb3c2c5f63edc9da9ff6e0b2c6decda076278f | /2515/project2/q1.py | ac9011f507578de9b61e1811eb25dd1b742f2e32 | [] | no_license | ljh6993/CSC2515_Intro-to-Machine-learning | 3ff2a2de9b2bc9b1f2558c87cd06a4046b1aac94 | 3845481d4e26490047e53a05bb051144a09e4468 | refs/heads/master | 2021-03-31T14:22:23.721095 | 2020-03-18T01:47:25 | 2020-03-18T01:47:25 | 248,112,098 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import numpy as np
from sklearn.datasets import load_boston
def Huber_loss(a, delta):
# a=y-t
H = np.where(abs(a) <= delta, 1 / 2 * a ** 2, delta * (abs(a) - delta / 2))
dH = np.where(abs(a) <= delta, a, np.where(a > delta, delta, -delta))
return H, dH
def gradient_descent(rate, X, y, delta, iterati... | [
"ljh69993@gmail.com"
] | ljh69993@gmail.com |
36cc0b54b41fcc7f8fe680953ecdd8685005c0bc | 6a746abb4dd3f2e0538936f272ed5d051a120c5b | /message_ix_models/model/build.py | f92ab09a1bd72b04109c697d15c7faf224e8c6b0 | [
"Apache-2.0"
] | permissive | OFR-IIASA/message-ix-models | d902d26c10db8215a856032d09f4252e16500c99 | 7459065505f8f3a418086aa620b789b5c5f39cde | refs/heads/main | 2023-06-15T00:16:56.654237 | 2021-07-02T09:33:49 | 2021-07-02T09:33:49 | 380,197,167 | 0 | 0 | Apache-2.0 | 2021-06-25T10:01:47 | 2021-06-25T10:01:47 | null | UTF-8 | Python | false | false | 4,795 | py | import logging
from typing import Callable, Dict, Mapping
import pandas as pd
from ixmp.utils import maybe_check_out, maybe_commit
from message_ix import Scenario
from sdmx.model import Code
from message_ix_models.util import add_par_data, strip_par_data
from message_ix_models.util.scenarioinfo import ScenarioInfo
l... | [
"mail@paul.kishimoto.name"
] | mail@paul.kishimoto.name |
5d4d2ed476aea05494ec90081e7dd8d67f9f8cb0 | 602ea2edb853c5561a45b6aa2783ac894ef408e4 | /res_mlp_pytorch/res_mlp_pytorch.py | 1ac60d23a7068840b29608111b116cc789825440 | [
"MIT"
] | permissive | BadGuy-wang/res-mlp-pytorch | 427d6f1f2279dcfe59d7cee02befb26a0a4dad79 | 562814a406cc418bdb4710aa3bdc569206ac171b | refs/heads/main | 2023-05-05T13:22:46.575901 | 2021-06-03T22:30:40 | 2021-06-03T22:30:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | import torch
from torch import nn, einsum
from einops.layers.torch import Rearrange, Reduce
# helpers
def pair(val):
return (val, val) if not isinstance(val, tuple) else val
# classes
class Affine(nn.Module):
def __init__(self, dim):
super().__init__()
self.g = nn.Parameter(torch.ones(1, 1, ... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
f083e527a4b3f1412943ad2d21140a45ff657c27 | bc441bb06b8948288f110af63feda4e798f30225 | /monitor_sdk/model/monitor/alert_rule_pb2.py | 890d5bd10e21cba46074562e7086cd679fd504d1 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 23,813 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: alert_rule.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"service@easyops.cn"
] | service@easyops.cn |
de7fe8a3116f89860feb58cc06238a1c9f045460 | 924763dfaa833a898a120c411a5ed3b2d9b2f8c7 | /compiled/construct/enum_int_range_s.py | bc6c06e80d04163057a993b93a7ea82933e7a6d2 | [
"MIT"
] | permissive | kaitai-io/ci_targets | 31257dfdf77044d32a659ab7b8ec7da083f12d25 | 2f06d144c5789ae909225583df32e2ceb41483a3 | refs/heads/master | 2023-08-25T02:27:30.233334 | 2023-08-04T18:54:45 | 2023-08-04T18:54:45 | 87,530,818 | 4 | 6 | MIT | 2023-07-28T22:12:01 | 2017-04-07T09:44:44 | C++ | UTF-8 | Python | false | false | 383 | py | from construct import *
from construct.lib import *
import enum
class enum_int_range_s__constants(enum.IntEnum):
int_min = -2147483648
zero = 0
int_max = 2147483647
enum_int_range_s = Struct(
'f1' / Enum(Int32sb, enum_int_range_s__constants),
'f2' / Enum(Int32sb, enum_int_range_s__constants),
'f3' / Enum(Int32s... | [
"kaitai-bot@kaitai.io"
] | kaitai-bot@kaitai.io |
247ff4fa309b29c41e2df933d58baaa072ccde67 | 5f430fe2e8acc0056ff0da03f704c08077acb6e9 | /Graduation-thesis_2017-master/Linear Regression/Linear_Regression_DT1.py | 651867073bc7a40af1aceed7471bda5433e27ac7 | [] | no_license | YoonDongMin/Graduation-thesis_2017 | 1dee3f69f8ff6d6c0c5cb0bc793373d33a798e22 | 73e7b5205d76e30092fc88f45afda62318f2be3b | refs/heads/master | 2020-03-06T20:53:13.482857 | 2018-03-28T01:21:27 | 2018-03-28T01:21:27 | 109,697,911 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import pickle
tf.set_random_seed(777) # for keep the random number constant
xy = np.loadtxt('DT1.csv', delimiter=',', dtype=np.int32) # Order Data load
sale = np.loadtxt('Sale_Data.csv', delimiter=',') # Sale Data load
x_data = xy[0:500, [0]]... | [
"remainer00@hanmail.net"
] | remainer00@hanmail.net |
02004b7cb6d2ce6d006cbd1271aea766b8b73311 | 98a9db9a042192f16ea56ffee8a8be6d0f9d1045 | /Start.py | dda845283589661580522f3b411ce6cfe53952ad | [] | no_license | RobotLovingGuy/binaryclockgerberfiles | 3e12797e7aa61712a9012ba7c992c6c3c9dafb22 | a249131f4bb83a58db134e6b393a37ceda3b1504 | refs/heads/main | 2023-03-27T18:24:59.290556 | 2021-03-24T03:57:29 | 2021-03-24T03:57:29 | 345,001,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | import machine
import utime
from machine import Timer
aa = machine.Pin(17, machine.Pin.OUT)
ba = machine.Pin(16, machine.Pin.OUT)
ab = machine.Pin(26, machine.Pin.OUT)
bb = machine.Pin(22, machine.Pin.OUT)
cb = machine.Pin(20, machine.Pin.OUT)
db = machine.Pin(18, machine.Pin.OUT)
ac = machine.Pin(12, ma... | [
"noreply@github.com"
] | noreply@github.com |
2e0ce8e8f05880e97b477dffefdf4d4f3920593b | d91f987c064f921c5112ed638b39f2728c11ea5e | /PostProcessing/OutlierDetection.py | 59a5ea5c1a21470ce8abbc249a2b1bc2bc16c759 | [] | no_license | p-lothaller/Air-Quality-Forecast-Challenge | 1f3b44f8aa1ab6c31575f3cbc5bf70ed73a39e12 | a21ac0eafb3f352d030fedcd5d3aafed9360f16b | refs/heads/main | 2023-04-26T02:15:34.453975 | 2021-05-10T15:56:24 | 2021-05-10T15:56:24 | 344,584,338 | 1 | 2 | null | 2021-05-05T18:37:30 | 2021-03-04T19:19:56 | Jupyter Notebook | UTF-8 | Python | false | false | 7,995 | py | import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime
from sklearn.cluster import DBSCAN
from sklearn.neighbors import NearestNeighbors
import numpy as np
from kneed import KneeLocator
import matplotlib as mpl
from sklearn.metrics import mean_absolute_error
import seaborn as sns
from statsmo... | [
"77859089+p-lothaller@users.noreply.github.com"
] | 77859089+p-lothaller@users.noreply.github.com |
c76a9ab060509bbcd85398bc82c1cc512d5b668b | bfa1e38b05fb7b657d5126c656a2f52ea44d2e9a | /venv/Lib/site-packages/darr/raggedarray.py | 220fab4dea4e9538773608b46e016fd71394797d | [
"BSD-3-Clause"
] | permissive | Maksims0230/VolumeControl | 880921a900bc81a4c9e6cc3198f5829a4e5199dd | e7f5e984fb653f9176f38846a9744cff427f556a | refs/heads/master | 2023-04-10T17:33:20.534155 | 2021-04-16T09:22:30 | 2021-04-16T09:22:30 | 358,544,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,249 | py | from pathlib import Path
from contextlib import contextmanager
import numpy as np
from ._version import get_versions
from .array import Array, MetaData, asarray, \
check_accessmode, delete_array, create_array, \
truncate_array
from .datadir import DataDir, create_datadir
from .metadata import MetaData
from .r... | [
"maksims023@gmail.com"
] | maksims023@gmail.com |
0851909e363479ba235d4695efcaea65d70d7f9d | 7acc8ec7bc81a2acecb91ab513710c38aeaa1299 | /HashTable/LongestChain.py | fed737b14b7d0d49219d5b0f3f1d5f856da8617f | [] | no_license | zhengli0817/ProgrammingInterviewQuestions | 453d29a2d29020d5f12b129b1c71839cd88fbfda | 595c709b1d0516c16a616a0138c6c84dcdec5b46 | refs/heads/master | 2021-01-10T01:49:03.294103 | 2016-12-01T00:12:12 | 2016-12-01T00:12:12 | 50,531,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | # https://instant.1point3acres.com/thread/189098
# http://massivealgorithms.blogspot.com/2016/05/like-coding-mj-56-longest-string-chain.html
# http://buttercola.blogspot.com/2015/10/zenefits-oa-longest-chain.html?m=1
def LongestChain(words):
if not words or len(words)==0:
return 0
words = sorted(w... | [
"zhengli0817@gmail.com"
] | zhengli0817@gmail.com |
27af4d42e1a0cdc16826948e7d69e7e6b8a9ef94 | 5b683c7f0cc23b1a2b8927755f5831148f4f7e1c | /Python_Study/DataStructureAndAlgorithm/classical_algorithm/binary_search.py | 556f7aa8a3e48cec1ab4feb7b9ccb23c04cbbe3c | [] | no_license | Shmilyqjj/Shmily-py | 970def5a53a77aa33b93404e18c57130f134772a | 770fc26607ad3e05a4d7774a769bc742582c7b64 | refs/heads/master | 2023-09-02T04:43:39.192052 | 2023-08-31T03:28:39 | 2023-08-31T03:28:39 | 199,372,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | #!/usr/bin/env python
# encoding: utf-8
"""
:Description: 二分查找算法
:Author: 佳境Shmily
:Create Time: 2020/3/15 21:34
:File: binary_search
:Site: shmily-qjj.top
:Desc:
二分查找场景:寻找一个数、寻找左侧边界、寻找右侧边界。
"""
import logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger ... | [
"710552907@qq.com"
] | 710552907@qq.com |
88cd9ffbf994ee8b07ef7aaf89f1231ef2c7d509 | 21ce617f03d7b38591866ae8d7064bcbd0099e8f | /SpellingCorrector/test.py | dbedf9e510a486eee3a225ac5395ab5f3ab03f2d | [] | no_license | zhanghaiting001/PythonCoding | c19fde15495457f2118835f83cd99d1ab8c82a3a | 73465f7ac7437305081235dc5999752ed9ef5a2c | refs/heads/master | 2020-07-10T13:03:15.680887 | 2019-10-22T15:32:12 | 2019-10-22T15:32:12 | 204,268,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py |
def multipy(y):
print('multipy')
return y*y
"函数参数的multipy只计算一次"
def testFunc(x,y=multipy(10)):
return x*y
#print(testFunc(20))
#print(testFunc(10))
def testMax(x):
return countDic[x]
countDic = {'a':10,'b':10,'c':3,'d':3}
"dict countDic迭代是key .values()迭代是values .items()是key,value对"
for x in countDic: #key 如果想两个,... | [
"zhanghaiting001@126.com"
] | zhanghaiting001@126.com |
25428ab231ed9df3e44a578437a041fdaa2fea36 | a61111856d5b5cec07e262816a3abe7b3221cf8f | /code/optical_flow.py | 7ba27cc4cbdd04a9bf8b06f65d00cdfd85d02527 | [] | no_license | ColinJLZhang/thesis | 055d8842054aadf451c752e3fd00bfac01534c9d | c4ddd445855332b5fc5ed08d0b0c4595a2159e29 | refs/heads/master | 2020-10-01T18:43:32.571784 | 2020-06-20T03:21:19 | 2020-06-20T03:21:19 | 227,601,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | #!/usr/bin/python
# coding:utf8
import numpy as np
import cv2
root = r"E:\postgraduate\渔机所\烟台东方海洋出差\2018_10出差\GOPR6437.MP4"
savepath = r"E:\postgraduate\论文\thesis\img"
cap = cv2.VideoCapture(root)
print("info:\n width:{}, height:{}, fps:{}".format(cap.get(3), cap.get(4), cap.get(5)))
start = 20030
count = 0
num = 60... | [
"mrobotor@gmail.com"
] | mrobotor@gmail.com |
45e4801e5547dad69252ada8dcd2810f206cc64b | 29daec5d741a3c6c4c05bbf8080eba883e7351b1 | /ecchronos-binary/src/pylib/ecchronoslib/rest.py | be1d71f6c3226a1f60822b420dabab148442de5a | [
"Apache-2.0"
] | permissive | itskarlsson/ecchronos | 3cb44a1b2d6ea962cc2a75819bba83daa0703421 | bcbb29af283d4319ef9f63341d036fd3ce36f6f6 | refs/heads/master | 2023-08-08T03:51:02.019545 | 2023-06-29T12:03:09 | 2023-06-29T12:28:41 | 168,316,880 | 0 | 0 | Apache-2.0 | 2021-06-24T08:31:49 | 2019-01-30T09:37:00 | Java | UTF-8 | Python | false | false | 8,654 | py | #
# Copyright 2019 Telefonaktiebolaget LM Ericsson
#
# 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 ag... | [
"noreply@github.com"
] | noreply@github.com |
308e6b9e3059ec9e125d0eaddd98e486959c8ed9 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1444+236/sdB_pg_1444+236_coadd.py | a65a6188dc4e228dc8635b076832771c6f17f941 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[221.784042,23.360553], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_1444+236/sdB_pg_1444+236_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
11d28f3aa560d3a574d306c77fa96b0c8c08e349 | ba861a90a0d3bdc7f69ad4b00ba5e89fb16104f7 | /BOJ/1766.py | df10cfe7a906603ee056f31316802ed1719480f9 | [] | no_license | parkjaehyeun/practice-for-coding-test | 2e25f5620738f0f73dfcd385e45f7f2907a20de0 | 6f55f1cce503e918aff6b687946576624277aa3a | refs/heads/master | 2023-05-03T00:01:12.989089 | 2021-05-25T08:59:54 | 2021-05-25T08:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import heapq
n, m = map(int, input().split())
array = [[] for i in range(n + 1)]
indegree = [0] * (n + 1)
heap = []
result = []
for _ in range(m):
x, y = map(int, input().split())
array[x].append(y)
indegree[y] += 1
for i in range(1, n + 1):
if indegree[i] == 0:
heapq.heappush(heap, i)
result ... | [
"elxm6123@gmail.com"
] | elxm6123@gmail.com |
fbfe830c4c1db56944173198cf8a81fd11c5ab41 | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/menu_app/views_20201231155853.py | 69a782ad142ac3afd83b74830f621b95b6557bc3 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py |
from .models import MenuItem, ItemsCategory, Order, generate_order_id
from account_app.models import Profile
from django.views.generic import ListView
from django.shortcuts import render, get_object_or_404
class MenuListView(ListView):
model = MenuItem
template_name = 'items/menu_list.html'
def menu_list... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
4deb419b3ab9e429e64970439cb1ee54b22162d9 | 14c7fa212c1d1801ed542115d2982a81d859ae04 | /models/WaveNet/estimator_def.py | afb5e82164e07a5282c7023419c3891193fef0cd | [] | no_license | EllenRushe/AudioAnomalyDetectionWaveNet | deede10b41ee67ed1322c7616cff38f1a01633db | 329b897362fc4f6c17685c8e82a5c4075e3c2838 | refs/heads/master | 2023-03-06T16:02:49.504817 | 2023-02-27T10:49:23 | 2023-02-27T10:49:23 | 171,162,261 | 20 | 5 | null | 2022-11-21T20:55:25 | 2019-02-17T19:23:52 | Jupyter Notebook | UTF-8 | Python | false | false | 4,385 | py | import tensorflow as tf
from .WaveNet import WaveNet
def _parse_function(file):
features = {
'label': tf.FixedLenFeature([], tf.int64),
'audio_inputs': tf.FixedLenFeature([], tf.string),
'scene': tf.FixedLenFeature([], tf.string),
'source_file': tf.FixedLenFeature([], tf.string)
... | [
"ellen@theengine.ucd.ie"
] | ellen@theengine.ucd.ie |
2f159bc5f771cc42abdc4a2bf06ab55734c32d40 | 03b7e68fa845d2f67743358a98ad28891132fb56 | /apps/travel_buddy/urls.py | 722cc35dc7c171755456b55135aa39d5d9918726 | [] | no_license | Jason-R-Scott/django-exam | e9f7800ad652965ac97fb05bf2c6f4a0e4bb6505 | 814181cdaf0c72e5afcf03928f96985620199bee | refs/heads/master | 2020-04-02T19:16:46.562537 | 2018-10-25T21:14:13 | 2018-10-25T21:14:13 | 154,729,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^register$', views.register),
url(r'^login$', views.login),
url(r'^logout$', views.logout),
url(r'^travels/$', views.travels),
url(r'^join/(?P<id>\d+)/$', views.join),
url(r'^view/(?P<id>\d+)... | [
"jasonscott613@gmail.com"
] | jasonscott613@gmail.com |
e92928fc105a84d170b6d2cf43d303bf7e417a2f | 07b41984d04acc5f328fc43ec18b76282474a28d | /main.py | 4ef9963d35d4a67e653cc94b5383b014000613bd | [] | no_license | iamAkolab/ML_Flask_App | d4cd21458f9d8ff6ebd7e5730042c213a01e742a | 162a89ff040a0c6961bd564a74e81d8fa0a9e253 | refs/heads/main | 2023-08-20T17:47:39.866415 | 2021-10-10T16:26:41 | 2021-10-10T16:26:41 | 415,636,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import pickle
from flask import Flask, request , jsonify
from model_files.ml_model import predict_mpg
app = Flask("mpg_prediction")
# create another route
@app.route('/', methods = ['POST'])
def predict():
vehicle_config = request.get_json()
with open('./model_files/model.bin', 'rb') as f_in:
... | [
"noreply@github.com"
] | noreply@github.com |
26a9384368ce014b5b18474fee6ca847f4944df1 | b94a9e4388c54d27dd40826885f7a65b083848f3 | /kinetics-i3d/i3d.py | 9cdd946d30c1a085ec9772824091beefaa7e7d68 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | chi3236/TVQA_with_I3D | 8480badf61cade15c6cc5c5bd7866c7b99caa0d7 | 655f39fc0e641296ff37b56135faa9066fed9dad | refs/heads/master | 2020-06-04T05:38:02.376050 | 2019-06-14T06:55:02 | 2019-06-14T06:55:02 | 191,891,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,526 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"chi3236@gmail.com"
] | chi3236@gmail.com |
9adb2f941bf5d47c462c44dae8d72de1b9269d95 | d4a569dcf616b7f05e53a44803e38196b436b8b9 | /Thesis@3.9.1/Lib/site-packages/django/test/utils.py | 235136ed67432f1217462c16026362efa3fe60c3 | [
"MIT"
] | permissive | nverbois/TFE21-232 | ac3178d24939c872c02a671c0f1d8cc471af516b | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | refs/heads/main | 2023-06-05T18:50:59.207392 | 2021-06-25T19:54:40 | 2021-06-25T19:54:40 | 337,691,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,893 | py | import asyncio
import logging
import re
import sys
import time
import warnings
from contextlib import contextmanager
from functools import wraps
from io import StringIO
from itertools import chain
from types import SimpleNamespace
from unittest import TestCase, skipIf, skipUnless
from xml.dom.minidom import Node, parse... | [
"38432529+nverbois@users.noreply.github.com"
] | 38432529+nverbois@users.noreply.github.com |
63821e410ac7923d403cc949bd2ccb80dd6be7ab | bd0b80b921e1a8e03c9bd5ec18db93f03cc528a8 | /administration/helpers/tokenHelper.py | a536e0e9f02b90d983d4cc20c1830cf18dbdf2f4 | [] | no_license | jamesngangabest/james-best-banking-system | 4d38e74987f836a250e489533c4197a2e70b2995 | a03636b1032293df2c4e80ce41ef6eb1b7ca172d | refs/heads/master | 2022-10-26T19:31:45.265904 | 2020-06-18T13:36:04 | 2020-06-18T13:36:04 | 273,245,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py |
from rest_framework_simplejwt.tokens import AccessToken
class TokenHelper:
@staticmethod
def get_token(requestObj=None):
if requestObj == None:
return None
try:
token_str = (requestObj.META.get('HTTP_AUTHORIZATION') or requestObj.GET.get('token'))
#print("tok... | [
"noreply@github.com"
] | noreply@github.com |
b5958304575c340146e7b8af97c16d0dafbe093b | a9aeb5a190e1da997ee855c072c58b608d491dca | /app/main.py | 25028c42c56aecb8011b2eb39993cc3ca9aafd88 | [] | no_license | moorthikanthasamy/my-dev-python | 4ff145240f12fee2040ff25b9f351ed336fd7a16 | 1d0d22d0998e69ca3cc481978c817d6525ae2737 | refs/heads/master | 2020-06-25T10:08:10.426823 | 2017-08-03T10:33:00 | 2017-08-03T10:33:00 | 96,971,993 | 0 | 1 | null | 2017-07-12T08:29:43 | 2017-07-12T06:16:24 | null | UTF-8 | Python | false | false | 118 | py | from package1 import module1
def main():
print("This is main function")
if __name__ == "__main__":
main()
| [
"Moorthi.Kanthasamy@csscorp.com"
] | Moorthi.Kanthasamy@csscorp.com |
62a0402314ba944050a24978a67b564db631e65c | ad88d24efaee55ed43c1e1f80fed59d5094a0cdc | /assignment1/asgn1.py | 7b98ed9aeb805b46b8a66be13bfb961a0123ea27 | [] | no_license | fantaichen/Quant_hw | 3c7d1afd8d9aa138d55d716f7e0d8c5c90f71438 | 258d55b770832a0fd3ad4403c2dc17b94b512f86 | refs/heads/main | 2023-03-20T05:29:39.128304 | 2021-03-22T15:04:53 | 2021-03-22T15:04:53 | 336,995,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | # _*_ coding: utf-8 _*_
"""
Time: 8/2/2021 15:57
Author: FAN Taichen
Version: V 0.1
File: asgn1.py
Describe: CUHK course homework
"""
import pandas as pd
def min5(a):
minute = int(a[-2:])
minutenew = int(minute / 5) * 5
if len(str(minutenew)) == 1:
minutenew = '0' + str(m... | [
"noreply@github.com"
] | noreply@github.com |
8839acff26034ba1c625d12d98a1ce8c632e5eea | 13a4b193135579beadcdb94e5bdf842ac4d93f5a | /workserver/service/getGameResultSRV.py | 23062a2872b2e2ed4304d820787c60b625dbcd3d | [] | no_license | LiqunHu/lottery | 69ba05fa7e263b7c454d1ffb04071e2b6f4f0ea5 | 20899b50be4094b1da0aa9f7c5e1a163bf441423 | refs/heads/master | 2021-01-15T17:28:48.047187 | 2017-08-14T01:32:48 | 2017-08-14T01:32:48 | 99,753,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 13 17:05:35 2016
@author: huliqun
"""
import falcon
from workserver.util import GLBConfig
from workserver.service.ServiceBase import ServiceBase
from workserver.module.models import User, MatchData, MatchInfo500Time, MatchInfoD
from workserver.util import SysU... | [
"huliquns@126.com"
] | huliquns@126.com |
202fe2674dddb0798aa94d61fc5dd00d5899b777 | a76401f82ed1c9ac47ddaff27681b90f37627426 | /.history/student_olx/main/views_20210916141012.py | edb998f41256d3683fcb91d308dfb9053702e68b | [] | no_license | RiteshK555/itw-project | e90e1dd13517ee8b07d72cc3bd5a42af367ab587 | a2e4c8682c2030ff77da9ade5ae4677bd475f87a | refs/heads/master | 2023-08-30T03:48:58.904979 | 2021-11-10T09:50:59 | 2021-11-10T09:50:59 | 410,032,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from django.shortcuts import render
from .models import ToDoList,Item
# Create your views here.
from django.http import HttpResponse
from .forms import CreateNewList
def index(response,id):
lis=ToDoList.objects.get(id=id)
return render(response,"main/base.html",{"name":lis})
def home(response):
return rende... | [
""
] | |
f5329d285bec6749f74d5c53bd5eb3451e518110 | f06393bbc532e1feb2402ff5b30000d3472adc33 | /description/app.py | 52d44f48e151751c6fb2e254dd5c5aaab5ba0b9e | [
"MIT"
] | permissive | Build-Week-AirBnB-Optimal-Price/Data-science | d6013325edbddf9c78eedc17e1be5a5bf25f737d | f5f1934fe9ad4045aa0b491968f3bf7565df9385 | refs/heads/master | 2022-12-19T06:49:44.854532 | 2020-01-11T02:20:17 | 2020-01-11T02:20:17 | 228,754,469 | 0 | 5 | MIT | 2022-12-08T03:28:32 | 2019-12-18T04:00:20 | Jupyter Notebook | UTF-8 | Python | false | false | 766 | py | from flask import Flask, render_template, request, jsonify
import pickle
import requests
import json
import numpy as np
import nltk
nltk.download('vader_lexicon')
from nltk.sentiment.vader import SentimentIntensityAnalyzer
# Model
sid = SentimentIntensityAnalyzer()
# Pickle it
pickle.dump(sid, open('mo... | [
"noreply@github.com"
] | noreply@github.com |
0d20c22822d20ba246ec32ccc5d4da9a661a23db | b927ea68bf3743c83ef39dbade04fdd8c9b7f1af | /transforms/images/polus-rolling-ball-plugin/src/main.py | 58553d18d879100a14e534a8457123819110141c | [
"MIT"
] | permissive | Nicholas-Schaub/polus-plugins | 9561fb93b7349888a58ad786d4b72734a272a975 | 1a1e70456b8e7acc4a4c92b5fdb0defb12edcb1e | refs/heads/master | 2023-07-23T23:09:33.364942 | 2023-02-16T14:58:10 | 2023-02-16T14:58:10 | 208,253,925 | 0 | 3 | MIT | 2022-09-13T15:32:33 | 2019-09-13T11:47:01 | Python | UTF-8 | Python | false | false | 3,582 | py | import argparse
import logging
from multiprocessing import cpu_count
from pathlib import Path
from bfio.bfio import BioReader
from bfio.bfio import BioWriter
from rolling_ball import rolling_ball
# Initialize the logger
logging.basicConfig(format='%(asctime)s - %(name)-8s - %(levelname)-8s - %(message)s',
... | [
"noreply@github.com"
] | noreply@github.com |
f9cf9f7abfa6ffb2a598675b2ec9c0951eb20071 | f5baec3afc326288bb96078243863a042b0d54f2 | /main.py | 0b455018f4e060a42b643ca05b553c34e92f33c4 | [] | no_license | DudeAbides0/textadventure | 4255f7472d0466ebb5b593b53dff2146a8a2109a | 2e90d794a99fd739c320fe177922dc7bfe986d1a | refs/heads/master | 2021-04-30T00:01:26.362649 | 2018-04-25T21:48:03 | 2018-04-25T21:48:03 | 121,567,489 | 0 | 0 | null | 2018-02-28T22:45:40 | 2018-02-14T22:14:08 | Python | UTF-8 | Python | false | false | 7,239 | py | import self as self
class Inventory():
def __init__(self):
self.items = []
def add(self, item):
self.items.append(item)
def drop(self, item):
self.items.remove(item)
def list(self):
print ("You are carrying:")
for item in self.items:
print (item.g... | [
"isaarobl23@e3civichigh.com"
] | isaarobl23@e3civichigh.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.