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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82abbc3ce7e1e1dd9278c63bcb1725656b42b94b | 567a1bf9bde90a8cfd6a9e7125413751350c5676 | /utility_programs/debug_stock.py | 6868eb3fa5690e6894100346882b019b0f5cbe7e | [] | no_license | webclinic017/StockTrading-4 | 2f4b5b94cdc2543a0fdec7833c658375f64fbca6 | a8e886bd5c2a5fa2e8cd43ff21baa4f2ed5fc217 | refs/heads/master | 2023-03-23T06:07:26.422759 | 2021-03-08T15:43:49 | 2021-03-08T15:43:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | import json
history = json.load(open("./tmp/summery/history.json", "r"))
import plotly.graph_objects as go
import plotly as py
import dateutil.parser
import pandas as pd
import pickle
def get_instrument():
filehandler = open("../tmp/instruments", "rb")
instrument = pickle.load(filehandler)
filehandler.c... | [
"patidarchat@gmail.com"
] | patidarchat@gmail.com |
becdb112bb47e331e0ba9f6b5eb175b7e8f43035 | 3c6b36eb1f4f9760c52903f6d0ec4a501f948c90 | /osp/test/citations/utils/test_get_text.py | 663abb8fd5fc80e075106a2ff9727effea40b0c3 | [
"Apache-2.0"
] | permissive | davidmcclure/open-syllabus-project | 38444249af845013e3f281a7a713dca83159c56e | 078cfd4c5a257fbfb0901d43bfbc6350824eed4e | refs/heads/master | 2021-06-30T21:47:07.636558 | 2021-06-27T15:15:35 | 2021-06-27T15:15:35 | 50,152,020 | 220 | 14 | Apache-2.0 | 2021-06-27T15:11:15 | 2016-01-22T02:29:57 | Python | UTF-8 | Python | false | false | 501 | py |
import pytest
from osp.citations.utils import get_text
from bs4 import BeautifulSoup
@pytest.mark.parametrize('tag,text', [
('<tag>Article Title</tag>', 'Article Title'),
# Strip whitespace.
('<tag> Article Title </tag>', 'Article Title'),
# Empty text -> None.
('<tag></tag>', None),
(... | [
"davidwilliammcclure@gmail.com"
] | davidwilliammcclure@gmail.com |
2b456fe7f8408de4d62123c681fd0a221664cdb9 | 7dc4daf1eb4d5f5cb455d0189c2cf706eefa6d91 | /app/blueprints/business/v1/employee/swagger.py | 572f22b2e0010715df808484025de1b7fd2dc394 | [] | no_license | daltroedu/acmevita | 5fd0045bfa0e27a7a0a3f11cb48e94e38756e9ed | ff9ccdf2942d4e9c55e81566054ee96726c24bc0 | refs/heads/master | 2022-12-23T05:51:23.176049 | 2020-09-26T23:59:58 | 2020-09-26T23:59:58 | 298,897,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from flask_restx import fields
from .resources import api
employee_post_model = api.model('EmployeePostModel', {
'full_name': fields.String(description='Employee name', required=True),
'departament_id': fields.String(description='Departament UUID', required=True),
'dependents': fields.List(fields.String)
}... | [
"edaltro23@gmail.com"
] | edaltro23@gmail.com |
c4ef7c591fd8a46d76275c722e4d024e4b5e906e | 2f201b39f732e3aecd198e1f4e1d4ec271b2aa2c | /tests/unit/test_database_consumer.py | ed40c6251b0a9387181fcfbe51a7270e1c46c70b | [] | no_license | Barel3220/python_rabbitmq | f22be2dbab945b000fa2f4b4fe115d3b39c34a8c | 2d31b499c068084719bb75f482a5d97ef48d4cde | refs/heads/master | 2023-06-03T11:36:19.962798 | 2021-06-24T12:40:47 | 2021-06-24T12:40:47 | 376,535,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import unittest
from src.database_consumer import DatabaseConsumer
class TestDatabaseConsumer(unittest.TestCase):
def setUp(self):
"""
creating an object of producer
"""
self.database_consumer = DatabaseConsumer()
def tearDown(self):
"""
clearing and 'forgettin... | [
"barelhatuka@gmail.com"
] | barelhatuka@gmail.com |
32273e37f6ed947cad8183262e2fbe2b5511c0bf | e42c337b179ea9e85c41c992d1440dbdd10e4bdb | /solution/leetcode/120.py | 18bddd5d74b8a75dc62e353f0e5eb862930701c7 | [] | no_license | harshraj22/problem_solving | 7733a43e2dcbf507257e61732430d5c0fc1b4cb9 | 2c7d1ed486ae59126244168a446d74ae4fdadbc6 | refs/heads/master | 2023-05-26T12:58:40.098378 | 2023-05-12T17:53:11 | 2023-05-12T17:53:11 | 193,202,408 | 20 | 5 | null | 2022-08-03T16:40:45 | 2019-06-22T06:58:09 | C++ | UTF-8 | Python | false | false | 501 | py | # https://leetcode.com/problems/triangle/
class Solution:
from math import inf
def minimumTotal(self, triangle: List[List[int]]) -> int:
# create a copy
dp = [[inf for _ in row] for row in triangle]
dp[0][0] = triangle[0][0]
for i, row in enumerate(dp[:-1]):
for j, cell in enumerate(row):
try:
... | [
"harshraj22aug@gmail.com"
] | harshraj22aug@gmail.com |
db525a6e8e9d146f247b6cb83049c0aaa129b63d | 035a3eebe2091897b942796781a192f67680b336 | /objects/choices/ebsnodquew.py | f6742c10bf8f3001492c25a0e2cd0f8cb5b498a9 | [] | no_license | gduvalsc/kairos | 763eb8fa5daeefc5fd46ea066a47400d5be7b7f5 | 2bf863ba3f73fc16ef75842ad390eb55fb1906f1 | refs/heads/master | 2021-12-23T18:33:34.382989 | 2021-10-19T16:44:00 | 2021-10-19T16:44:00 | 77,072,517 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | class UserObject(dict):
def __init__(self):
object = {
"type": "choice",
"id": "EBSNODQUEW",
"action": "dispchart",
"chart": "EBSNODQUEW",
"query": "EBSNODCHOICE",
}
super(UserObject, self).__init__(**object)
| [
"gduvalsc@gmail.com"
] | gduvalsc@gmail.com |
6ef29292a7e42861fa5c76bb43f7c074044b2706 | 2850d9adba96bc4e73185de5d6adebf363a5c534 | /tce/tcloud/clb/InquiryLBPrice.py | 8d39cc90ea056cc0f7f42b894868a5e5193ddabb | [
"Apache-2.0"
] | permissive | FatAnker/tencentcloud-sdk-python | d8f757b12ad336e78a06b68a789ecc3c86d1d331 | d6f75a41dc7053cb51f9091f4d41b8cb7a837559 | refs/heads/master | 2020-04-30T22:34:16.740484 | 2019-04-28T11:14:11 | 2019-04-28T11:14:11 | 177,122,691 | 0 | 1 | null | 2019-03-22T10:46:01 | 2019-03-22T10:46:01 | null | UTF-8 | Python | false | false | 1,376 | py | # -*- coding: utf8 -*-
from QcloudApi.qcloudapi import QcloudApi
from tce.tcloud.utils.config import global_config
# 设置需要加载的模块
module = 'lb'
# 对应接口的接口名,请参考wiki文档上对应接口的接口名
action = 'InquiryLBPrice'
region = global_config.get('regions')
params = global_config.get(region)
secretId = params['secretId']
secretKey = params... | [
"1113452717@qq.com"
] | 1113452717@qq.com |
2535b9e482d52561bfe867b4c123c90bf97aa836 | 0e2c27c27dcadae42fbddd44e03a853a0b140f01 | /string_validator.py | a354ed1a245397cc00393b1e1500caa466c13a43 | [] | no_license | Nihal2409/Python-programs | 5fcc037cb3cd5b096d85ef13d48631a5172e8af8 | 75ff9b6b73276dc1cf8290659fe459e02f997510 | refs/heads/master | 2020-04-13T05:23:30.641273 | 2018-12-24T12:56:18 | 2018-12-24T12:56:18 | 162,990,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | s=input()
for method in [str.isalnum, str.isalpha, str.isdigit, str.islower, str.isupper]:
print (any(method(c) for c in s)) | [
"noreply@github.com"
] | noreply@github.com |
e4fefb89f91cb5964e07d797c667e827a9dcfba2 | a3d956e71c3186688c1eb895157810bd821829cd | /catkin_ws/devel/lib/python2.7/dist-packages/dji_sdk_web_groundstation/msg/_WebWaypointReceiveActionFeedback.py | adb1aa80e784c363aa3a0c19ca63a4c774522bdb | [] | no_license | lipor/MatricePyROS | 885e09b46637703c031746dd39bdc628c2899669 | b76b2eab4db49243f892671614512924c9bd74f6 | refs/heads/master | 2021-08-28T00:21:15.524791 | 2021-08-10T21:07:25 | 2021-08-10T21:07:25 | 196,454,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,508 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from dji_sdk_web_groundstation/WebWaypointReceiveActionFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import dji_sdk_web_groundstation.msg
import genpy
import ac... | [
"justinetulip@gmail.com"
] | justinetulip@gmail.com |
06d5fc526105679cba551b448d128373512b4bcf | 3cec6018d5df72db762eaf7205071ab25622b8ba | /python_for_Beginners/aula25_b.py | 99bc700af59e5888e77dd2e50a252462425d2335 | [] | no_license | romildodcm/learning_python | 1907277fcb305ce17a8b14c26a60de275a80fa7a | c10f62160b09989e7e02c6e45a381bc281f30564 | refs/heads/main | 2023-06-28T02:36:32.269910 | 2021-07-30T22:20:21 | 2021-07-30T22:20:21 | 319,170,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Arrays are also collections of items
# Arrays: store numerical data types must all be the same type
# Collections: store anything, store eny type
from array import array
#'d' is for the double type, for int use 'i' and for float use 'f'
scores = array('d')
scores.append(97)
scores.append(98)
print(scores)
print(sco... | [
"romildodcm@gmail.com"
] | romildodcm@gmail.com |
176b9a5ad861967ec472034da2fa184999cbb235 | fee09117d0011b0d9c169694e21770303f21d299 | /old/attic/knl/survey.py | f78ca83d0df1507dbde71e3d3be8f6e762e352a0 | [
"MIT"
] | permissive | formura/formura | e6791dab9913947c723c94a2ec7d6af775364da7 | b1b483dda5f726e95d654dc104d9ced2c281a325 | refs/heads/master | 2021-01-23T11:35:04.316160 | 2019-08-01T05:13:19 | 2019-08-01T05:13:19 | 102,631,578 | 16 | 2 | NOASSERTION | 2019-08-14T08:16:14 | 2017-09-06T16:21:02 | C | UTF-8 | Python | false | false | 1,898 | py | #!/usr/bin/env python
import copy,re,subprocess
class Parameter:
def __init__(this, typ, name):
this.typ = typ
this.name = name
def param_choices(x):
return param_choices_internal(x.items())
def param_choices_internal(list_of_ranges):
if len(list_of_ranges) == 0:
return [{}]
... | [
"muranushi@gmail.com"
] | muranushi@gmail.com |
174ea5a061932560b5e4d67d01fb118d751c1ea9 | 5117eb9e5ba0f4bfe2a528a9266701e987b2adbd | /bin/pip2 | 8a613f47e54803cf82db10e86d1c02623f5eb4ef | [] | no_license | kunal-pahwa/SalesManager | 7c16dfa0736b31cc7109424cbab06c66c3ec9098 | 07edd0ea9df275361628a312c30a7235564cc920 | refs/heads/master | 2020-07-11T22:10:06.934589 | 2019-08-30T18:39:04 | 2019-08-30T18:39:04 | 204,654,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/shopclues/PycharmProjects/BooksManagement/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kunalpahwa0001@gmail.com"
] | kunalpahwa0001@gmail.com | |
584bb757dfa086d47ff6eafa245adb2238b4d7f7 | 90994742554f52426c9c5069455c276d0d802d08 | /GPflow/__init__.py | af47d6bf3f6608f280b4041b964b14449df1ee01 | [
"Apache-2.0"
] | permissive | karlnapf/GPflow | f0cf430fa8c9fb5eaba6f058d231693012591dcd | a7a1b152fc1b7bbd121cc3a45e57ab900d1a0627 | refs/heads/master | 2021-01-15T23:02:26.398760 | 2016-02-17T19:33:16 | 2016-02-17T19:33:16 | 51,947,488 | 0 | 1 | null | 2016-02-18T18:52:38 | 2016-02-17T19:04:45 | Jupyter Notebook | UTF-8 | Python | false | false | 87 | py | from . import likelihoods, kernels, param, model, gpmc, sgpmc, priors, gpr, svgp, vgp
| [
"james.hensman@gmail.com"
] | james.hensman@gmail.com |
7c5d32c3ffaac7970bf70403037a561284a32c02 | c8c668836de8c64e0d087a7f247ab29a4ea48427 | /thinglang/lexer/definitions/thing_definition.py | e22ec10c22b6dcddd50075eed1ec86bac24fa2ee | [
"MIT"
] | permissive | ytanay/thinglang | 138a2b04816c6ad9ca173bdc4d3f5ff2a8891d79 | 18557db95ead629e1cda2da65a22b942bcc8077c | refs/heads/master | 2021-01-17T04:32:49.387017 | 2018-02-17T11:56:43 | 2018-02-17T11:56:43 | 82,967,133 | 5 | 1 | MIT | 2018-01-04T19:49:30 | 2017-02-23T20:13:03 | Python | UTF-8 | Python | false | false | 653 | py | from thinglang.lexer.lexical_token import LexicalToken
class LexicalDeclarationThing(LexicalToken):
"""
Begins a thing definition.
Examples:
thing Program
"""
class LexicalDeclarationMethod(LexicalToken):
"""
Declares a method.
Examples:
does say_hello
does walk... | [
"yotam.tanay@gmail.com"
] | yotam.tanay@gmail.com |
bb5554675b64f4e7bfbfe07ba6ff2472ec4f1c0e | ac0c96ad280ac43de9c06ba21a1cbe2b1679b2f9 | /minidump/streams/HandleOperationListStream.py | 3e3e7422e7caf3d7beec41f6aea2c8b0d753690a | [
"MIT"
] | permissive | mkorman90/minidump | 5cfc9e7119f68e91e77e0039b7c364d46b769e39 | 749e6da56d0ea414450c287caa4ecfb292197b59 | refs/heads/master | 2020-05-09T23:39:29.089331 | 2018-06-17T14:51:30 | 2018-06-17T14:51:30 | 181,508,823 | 3 | 0 | MIT | 2019-04-15T14:53:20 | 2019-04-15T14:53:20 | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python3
#
# Author:
# Tamas Jos (@skelsec)
#
class MINIDUMP_HANDLE_OPERATION_LIST:
def __init__(self):
self.SizeOfHeader = None
self.SizeOfEntry = None
self.NumberOfEntries = None
self.Reserved = None
def parse(dir, buff):
mhds = MINIDUMP_HANDLE_OPERATION_LIST()
mhds.SizeOfHeader = int.... | [
"info@skelsec.com"
] | info@skelsec.com |
7955552002bb416e87fcb0590aec1a71531e0bd3 | 16399d47ad4a25a578620f7b962d6d6d83769274 | /apps/birth/admin.py | d11e6aa3ba3b73480dfe525da0f2b7329837e70b | [] | no_license | mvpdev/rapidsms | 42b308867023f5a385b8bb46167eb70f95918fbe | 5cb1764a637c69d65c0bfbba1baacf07a50e174b | refs/heads/master | 2020-12-30T17:31:57.506901 | 2011-08-05T05:56:28 | 2011-08-05T05:56:28 | 287,592 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 coding=utf-8
# maintainer: ukanga
from django.contrib import admin
from birth.models import ReportBirth
class ReportBirthAdmin(admin.ModelAdmin):
list_display = ('case', 'display_name', 'display_dob', 'weight', \
'entered_at', 'complications'... | [
"ukanga@shiver.(none)"
] | ukanga@shiver.(none) |
7ba7298644ea801b42016afbaa37ceaaefd61d96 | f642c054451aa3c87bb18fa63037eea0e6358bda | /my_django_app/cache/views.py | 5860e516f6bed9a965ced0893aa975acc095d93b | [] | no_license | devendraprasad1984/python | 30f3a539e92be13d893246ad28a42907457a38d5 | 0f1badabba07fbe7f5f792b7e543c0748eecd6c7 | refs/heads/master | 2023-07-21T08:22:45.193077 | 2021-08-27T15:09:28 | 2021-08-27T15:09:28 | 254,812,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | # from django.shortcuts import render
# Create your views here.
def get_mod1(req):
return 'cache1'
| [
"devendraprasad1984@gmail.com"
] | devendraprasad1984@gmail.com |
495ce2f9cfe10accb714b8a7ae55e59dcd8e762c | eec105101d7a82d0551503100a3bd9a1a2af3b3c | /Assignments/a5_public/code/char_decoder.py | 180d88968e8b831c9cb4d68b2702a7a64917d69a | [] | no_license | ethanenguyen/Stanford-CS224n-NLP | 807c36cf67f8aade5b1ca7bfd5878ac354e96bbb | 181c659dbb0e0a1a1c3865a336fd74c8ebc5633e | refs/heads/master | 2022-03-28T04:16:01.236240 | 2020-01-14T13:52:21 | 2020-01-14T13:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,318 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CS224N 2018-19: Homework 5
"""
import torch
import torch.nn as nn
class CharDecoder(nn.Module):
def __init__(self, hidden_size, char_embedding_size=50, target_vocab=None):
""" Init Character Decoder.
@param hidden_size (int): Hidden size of the ... | [
"daviddwlee84@gmail.com"
] | daviddwlee84@gmail.com |
41036ad6f83e3c00754d3d2b878637562e593298 | 2f694bea81c13ef84de68d8e460bf5e8e2c8abd5 | /Previous_Works/Version_1/Segmentation_Final_Models/testing_model_infection_mask.py | 10be5e2e357784e397fe618a6acce8907424d367 | [] | no_license | ashish-max/COVID-19_Detection | c71609d0b9490de39a72e6d9fcb92f51f8e015e1 | ae750c44a227d99271f4cbdf35b66908d4eb5183 | refs/heads/main | 2023-08-31T07:41:02.267647 | 2021-10-14T20:28:58 | 2021-10-14T20:28:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | import tensorflow as tf
import numpy as np
import os
from tqdm import tqdm
from skimage.io import imread, imshow
from skimage.transform import resize
import matplotlib.pyplot as plt
IMG_WIDTH = 128
IMG_HEIGHT = 128
IMG_CHANNELS = 3
##################################### image preprocessing ########... | [
"noreply@github.com"
] | noreply@github.com |
13cf8670b7bd434ecac587597ee999271956d22e | 087d58a6a1b5760193f861a9700adb6c0ef6663d | /do_it_django_prj/blog/apps.py | 9366ebc147b3e0849ea9729890233d487b8c6f41 | [] | no_license | hyungminjin/do_it_django_a_to_z | 8276e744713e76d12f8316485e8b5080c468d269 | 8103f3d5d22adf8e5e35d7bb2499b8f890ce9b4a | refs/heads/master | 2023-06-12T08:56:30.636977 | 2021-07-04T09:15:46 | 2021-07-04T09:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.apps import AppConfig
class BoardConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'blog'
| [
"spartasparta819@gmail.com"
] | spartasparta819@gmail.com |
8308f1bda2732b3dd68b53bd9a2e8a06d873fe8c | 9ba55397d0d8cad9a40260fc23860d2097a615f9 | /fitter/unimodal.py | 3150fdb0e8d4e7b808f833b263b694e9e52219c2 | [] | no_license | wombaugh/modefit | 32bf927ade786a38309d925e88bde765f3025ab6 | 855cafa799db9fbea724347d0bb9db0d101a6452 | refs/heads/master | 2020-06-20T04:38:32.010125 | 2016-11-27T10:47:45 | 2016-11-27T10:47:45 | 74,881,429 | 0 | 0 | null | 2016-11-27T10:41:51 | 2016-11-27T10:41:51 | null | UTF-8 | Python | false | false | 15,666 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
""" Module based on virtualfitter to fit bimodal distributions. Does not have to be a step """
import numpy as np
from scipy import stats
import matplotlib.pyplot as mpl
# - local dependencies
from astrobject.utils.tools import kwargs_update
from .baseobj... | [
"mick.rigault@gmail.com"
] | mick.rigault@gmail.com |
f118504ffec509db53a049d4a8f4fedc624e591f | 951cf4a7b5eb75ee8cd1eeabfbd27bbd3294255c | /testCode/cameraTest.py | 9ce6c20291b63ecab53be29d025d475a504bc9c6 | [
"Apache-2.0"
] | permissive | ksurct/Mercury2018-19 | 8c03a1aaeec5bb76948eec3909c7ff3d5d431073 | ee90803c1b14727663c65ebc396cdb92c2b79667 | refs/heads/master | 2020-03-28T22:01:15.376687 | 2019-07-16T02:31:34 | 2019-07-16T02:31:34 | 149,199,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview()
sleep(9999)
camera.stop_preview()
| [
"rberens@ksu.edu"
] | rberens@ksu.edu |
2644c99628ef7b30fd89792b116bf20967aa9375 | 1d8304084479700fb1dccfaf3f9dae7408c11a4b | /foods/urls.py | 3f048ffa1ca55041b0aeaae0de0514ddcdb1824a | [] | no_license | Ilyosbek07/Restaurant | 88af5564a87650c1fe5e3df8eaf6a2e93b5c49f7 | 41599507cb46f79efb9ad73fef5014f776489864 | refs/heads/master | 2023-08-13T01:53:07.516623 | 2021-10-13T11:14:29 | 2021-10-13T11:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from django.urls import path
from foods.views import CartListView, \
HomeTemplateView, ShopListView, \
AboutHomeTemplate, ShopDetailView, add_to_cart, CommentCreateView
app_name = 'foods'
urlpatterns = [
# path('checkout/', CheckoutTemplateView.as_view(), name='checkout'),
path('menu/', ShopListView.as_view(), n... | [
"phyton@micro.domains"
] | phyton@micro.domains |
9b8c739d7a0ab8a062144f29f0b8b7954495838a | d6ef0247ce254623a731ea5a8c20340af25753dd | /python-mr/mapper.py | e098de276160513d5a49aa3398b1eed12ed73e7e | [] | no_license | mattolsen1/goober | a984942a8e0cccc2fde8140a57b3c9818f2d262c | 8834b4886994cc471e6201971c946301fc200925 | refs/heads/master | 2021-01-10T20:57:26.109317 | 2014-06-12T05:10:17 | 2014-06-12T05:10:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!/usr/bin/env python
import sys
for line in sys.stdin:
line = line.strip()
keys = line.split()
for key in keys:
value = 1
print("%s\t%d" % (key, value))
| [
"mattolsen1@gmail.com"
] | mattolsen1@gmail.com |
cbd830989035a51e65179bf8f3c151f0fa0d0bc7 | 8371b8a166abf793c4ceb686ed58b361f3c13cbb | /test.py | ba2fa983adc68513ed56ea3b5acb751328fd86ab | [] | no_license | arnabuchiha/Signature_Recognition | 7bf3f8ff30bcd539e70458b42284f2eaa063b64c | 0c18a4dd90c03314d60a3b37ce938e637847cbc3 | refs/heads/master | 2020-04-01T15:16:25.157009 | 2018-10-16T16:21:27 | 2018-10-16T16:21:27 | 153,329,391 | 1 | 0 | null | 2018-10-16T17:50:18 | 2018-10-16T17:50:17 | null | UTF-8 | Python | false | false | 5,040 | py | import sys
try:
from Tkinter import *
except ImportError:
from tkinter import *
try:
import ttk
py3 = False
except ImportError:
import tkinter.ttk as ttk
py3 = True
import unknown_support
def vp_start_gui():
'''Starting point when module is the main routine.'''
global val, w, root
... | [
"arnabkeya04@gmail.com"
] | arnabkeya04@gmail.com |
d3492b43661cd8142c687ba548fcf68682d17426 | f529be8190f7d61804bc959b51c67dd7ffd06b0c | /03/tags.py | 4dcb73bc9deb78e2cee16f59090a9bb596d1624a | [] | no_license | jjisnow/challenges | 444f18b2070aecd3bdca07d26469d8fb358a2727 | d949c1ae17be56a2a3b4a2d60b5c9a1cafd7b846 | refs/heads/master | 2020-03-24T20:08:52.212695 | 2018-08-19T10:56:54 | 2018-08-19T10:57:39 | 142,961,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | import itertools
from collections import Counter
from difflib import SequenceMatcher
from itertools import product
import re
REPLACE_CHARS = str.maketrans('-', ' ') # forgot to add this
IDENTICAL = 1.0
TOP_NUMBER = 10
RSS_FEED = 'rss.xml'
SIMILAR = 0.87
TAG_HTML = re.compile(r'<category>([^<]+)</category>')
def get... | [
"jjisnow@gmail.com"
] | jjisnow@gmail.com |
3a62b1ba2e80848d62d9997e93e5aca318a855a9 | 3641c0aa5c7e8f2826c3947a8b794ad2936cd147 | /config/custom_components/hacs/validate/__init__.py | fc12b2f5f9009b6985ce53ee5c8377ca087e68da | [
"MIT"
] | permissive | frasquez/home-assistant-config | 150cc0ec897e3cddb080b549b8106ef21ac0dffe | 70975211418f9d6beb12bac9b2dc65363401782b | refs/heads/master | 2022-12-22T06:06:25.042733 | 2020-09-25T19:47:35 | 2020-09-25T19:47:35 | 298,931,180 | 0 | 0 | MIT | 2020-09-27T01:43:47 | 2020-09-27T01:43:46 | null | UTF-8 | Python | false | false | 1,488 | py | import asyncio
import glob
import importlib
from os.path import dirname, join, sep
from custom_components.hacs.share import SHARE, get_hacs
def _initialize_rules():
rules = glob.glob(join(dirname(__file__), "**/*.py"))
for rule in rules:
rule = rule.replace(sep, "/")
rule = rule.split("custom... | [
"frenck@addons.community"
] | frenck@addons.community |
b80c7e7f30702eabcd38920f95252efd7a507181 | b3442253f59c67a97352d71ebbc52f1b3357d270 | /store/tests/test_api.py | 14420621afbbaf98106b39df50aec4b35d1b2444 | [] | no_license | 42chameleon/DRF_Books | ca993597ab517b35f086b3872e40282bf0e6b8a0 | 1215576eccb6493eb9c9c76a42efc7206f341230 | refs/heads/main | 2023-01-22T18:35:28.878872 | 2020-12-05T13:17:12 | 2020-12-05T13:17:12 | 308,371,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,759 | py | import json
from django.db import connection
from django.db.models import Count, Case, When, Avg, F
from django.test.utils import CaptureQueriesContext
from django.urls import reverse
from rest_framework import status
from django.contrib.auth.models import User
from rest_framework.exceptions import ErrorDetail
from re... | [
"42israpilov@mail.ru"
] | 42israpilov@mail.ru |
56d401cd3843ce83fe3b6f8e807a1d9e4d5e4a76 | e25f24ae9eec7aafcf385ae05d6463125276931d | /setup.py | e1b582d612cdea85c784be1ae2c6482c7fc57c71 | [
"MIT"
] | permissive | AleksiNummelin/scale_dependent_diffusivity | 35e35e2d39ea0993923e1426ce6ebfc4a5b1c395 | 21d581511b58820840f96c8b29fbb00ac4511ab0 | refs/heads/master | 2023-01-02T09:19:00.767709 | 2020-10-23T21:28:05 | 2020-10-23T21:28:05 | 305,736,448 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Code for reproducing Nummelin et al. (2020) analysis.',
author='Aleksi Nummelin',
license='MIT',
)
| [
"aleksi.h.nummelin@gmail.com"
] | aleksi.h.nummelin@gmail.com |
79ff025138567c3ccb925da38183d60fed421f5b | bdd40432a391eb03afac202a99173893da89357f | /ssdmobilenet/run.py | b92b6ab31f2d06b99565845e3d5921af7323eeda | [] | no_license | krg-nandu/rpi-ncs-toolkit | 541510ef9d96cc2283c678b4d1d4272a346a64e3 | 2f662937634cf4d0e1884984efecfe1acb10bf64 | refs/heads/master | 2020-03-19T06:54:52.521442 | 2018-08-03T17:51:16 | 2018-08-03T17:51:16 | 136,066,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,256 | py | #! /usr/bin/env python3
# Copyright(c) 2017 Intel Corporation.
# License: MIT See LICENSE file in root directory.
# Modified to include video mode for zebrafish detection
# Author: Lakshmi
from mvnc import mvncapi as mvnc
import numpy
import cv2
import sys
from pytictoc import TicToc
from joblib import Parallel, de... | [
"krg.lakshminarasimhan@gmail.com"
] | krg.lakshminarasimhan@gmail.com |
c3418c0bc14439f3a396442041af6a15d8b775f9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03096/s362138423.py | 0610f35f78b278535f070e6f3b9519ef3b0d4fe8 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | MOD = 10**9+7
N = int(input())
C = []
C.append(int(input()))
for i in range(N-1):
c = int(input())
if c == C[-1]:
continue
C.append(c)
#print(C)
N = len(C)
lis = [[0] for i in range(max(C)+1)]
for i in range(N):
lis[C[i]].append(i+1)
for i in range(len(lis)):
lis[i].append(MOD)
def binary_s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0d418823597ecb4ca5462b72bfba24546d020e51 | d755f28dd2ec78106b1d32944d36695df3075f26 | /yun_bridge_pythoncodes/catch_param_scope.py | c3914a7c5095e1b3302688e8082314d29539707e | [] | no_license | dattalab/behavior_PirCtx_gonogo | 71de21ff133c7ce390ff4fadca579807101661e5 | 5ca642089a92940b342118449993feea4a18097a | refs/heads/master | 2020-04-16T16:15:36.277167 | 2016-06-12T22:07:12 | 2016-06-12T22:07:12 | 32,098,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,452 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.ElementTree as ET
import sys
import json
import urllib
import random
sys.path.insert(0, '/usr/lib/python2.7/bridge/')
from bridgeclient import BridgeClient as bridgeclient
value = bridgeclient()
tree = ET.parse(urllib.urlopen('http://192.168.20.14/yun_co... | [
"comptes@ludovic-cacheux.info"
] | comptes@ludovic-cacheux.info |
cecdbca2a9e5c7bd9bd0b24b89d1ee2e009b7da0 | c3ec5a73dd2d7423f7e458450da1aec2b25db298 | /func-button/klBacktest.py | 26ed19887a8feac98581585f546a0e754e16933c | [] | no_license | rlcjj/PythonLab | 9aa8e2b9d53dd96019f88f102fb0fd6911e7d22b | 97707a403c3300753d988167beb6759e7ee729dc | refs/heads/master | 2020-03-15T03:26:50.362824 | 2018-04-23T09:35:33 | 2018-04-23T09:35:33 | 131,942,252 | 1 | 0 | null | 2018-05-03T04:37:01 | 2018-05-03T04:37:01 | null | UTF-8 | Python | false | false | 760 | py | # coding: utf-8
"""
插入所有需要的库,和函数
"""
import numpy as np
from ctaFunction.calcFunction import *
from ctaFunction.visFunction import *
#----------------------------------------------------------------------
def klBacktest(self):
wLimit = self.getInputParamByName('wLimit')
cLimit = self.getInputParamByName(... | [
"moon.nejs@gmail.com"
] | moon.nejs@gmail.com |
c410c6eece78eb265e9ef6aacd7adcbf3be50f3c | d725a070fe906092a4e3435a9e46569644904494 | /ush/run_metplus.py | 66dbb038a21dfd6d060c52e0f69b2d8fa8dd8147 | [
"Apache-2.0"
] | permissive | dtcenter/METplus | 3721fbace99bf8be5b5c073ced6afa2cea026987 | a666ac3b58d19f04249f76c9340f2e4a4a27939b | refs/heads/main_v5.1 | 2023-08-31T11:22:37.097852 | 2023-08-03T12:59:18 | 2023-08-03T12:59:18 | 66,569,441 | 41 | 37 | Apache-2.0 | 2023-09-14T19:13:57 | 2016-08-25T15:19:30 | Python | UTF-8 | Python | false | false | 3,919 | py | #!/usr/bin/env python3
"""
Program Name: run_metplus.py
Contact(s): George McCabe, Julie Prestopnik, Jim Frimel, Minna Win
Abstract: Runs METplus Wrappers scripts
History Log: Initial version
Usage:
Parameters: None
Input Files:
Output Files:
Condition codes:
Developer Note: Please do not use f-strings in this file s... | [
"noreply@github.com"
] | noreply@github.com |
a96ed7f2455252214e1aa1fb46a8a862a603b599 | a0c26df97a4f4aede90a65b8a66de06e9b6284fe | /news/migrations/0001_initial.py | 01939a25d0374d32a14eaaa59eaf1851de9a1b2f | [] | no_license | Kelmac/django | fa8444a29cba967fa8ffadacca3c215067a54413 | ec71e4ca18d54ab236f338b553db46ef4e871cea | refs/heads/master | 2021-09-06T16:29:48.151034 | 2018-02-08T14:03:37 | 2018-02-08T14:03:37 | 120,091,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | [
"pteresiak@gmail.com"
] | pteresiak@gmail.com |
5a33a893c6c708b68319ab2370c50e14035b0c86 | 282e25f71e34744a4ed647c563d13b18ce7eb28e | /pycabcalc/app/db/bigqueryHandler_DEPRECATED.py | 92d7441819b758a54fd7c82dc3efa4e305662784 | [] | no_license | Bubica/CabCalc | d57e64aa3b42c231d31c38e792fd49d4c9a27825 | 40034f64e116bcf91337badf7e394f48d7e39b19 | refs/heads/master | 2021-01-02T09:34:55.619700 | 2015-07-14T13:43:25 | 2015-07-14T13:43:25 | 35,681,168 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import pandas.io.gbq as gbq
from subprocess import call
taxi_table = '833682135931:nyctaxi.trip_data' #just for back-up
class DBHandler(object):
def __init__(self, *kwargs):
#Init bq
call(["bq", "init"])
def selectQuery(self, sqlQuery):
#Retrieve query
df = gbq.read_gbq(sql... | [
"bubica@AgatasMac.local"
] | bubica@AgatasMac.local |
88cc90c811bf40584e981843c0665460c3140aad | 3ae288daabf10b5f3dd5f09bb7bb974a6caacdaf | /processimage/cropimage/urls.py | 24083c8f8536913662bc82f1876b785f6dd67890 | [
"MIT"
] | permissive | singh1114/image-processor | 62ab01f9b87b6deda5debb010feeb4c74135c39b | a2b6e8fcb64b1449859a06775b2d7b3a0205e952 | refs/heads/master | 2022-12-13T21:44:56.316988 | 2019-02-04T06:13:05 | 2019-02-04T06:13:05 | 167,675,243 | 0 | 0 | MIT | 2022-12-08T01:35:03 | 2019-01-26T10:12:44 | Python | UTF-8 | Python | false | false | 483 | py | from django.urls import path
from cropimage.views import (
ImageUploadView,
ShowMainImagesView,
ShowCroppedImagesView
)
app_name = 'cropimage'
urlpatterns = [
path('upload_image/', ImageUploadView.as_admin_view(), name='upload'),
path('show_main_images/',
ShowMainImagesView.as_admin_vie... | [
"ranvir.singh1114@gmail.com"
] | ranvir.singh1114@gmail.com |
13eb9d5df7bd1b66c602bda0c55492a22a3cfd1b | 0f946e4bbad3a44339e75893fbd185ae1fb25f67 | /lesson13/utils.py | 1444b0df757759af65c486ab2bbd1f438df459bd | [] | no_license | kirigaikabuto/distancelesson2 | e53dda7d8a07ea5c4ec2e7a39a47619b533a5df8 | 24cf61d34334fa2d6a736a81d4bc75170db2a2ad | refs/heads/master | 2022-07-03T07:16:47.588461 | 2020-05-13T13:50:54 | 2020-05-13T13:50:54 | 254,647,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | def create_student(line):
parts=line.split(",")
name = parts[0]
age = int(parts[1])
marks_str = parts[2]
marks_str_arr = marks_str.split(" ")
marks_int_arr = [int(i) for i in marks_str_arr]
d={}
d['name']=name
d['age']=age
d['marks']=marks_int_arr
return d
def print_arr(arr):... | [
"ytleugazy@dar.kz"
] | ytleugazy@dar.kz |
99abafaacb52e0ac10405b3dfec98d306fa90be8 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/teams/item/schedule/offer_shift_requests/offer_shift_requests_request_builder.py | 9ec6c4dd978f6f66f8c8f218736ac7dd0b479c4e | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 10,282 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
d05cad635b5f48b4437fc87ec589f003c6198ad9 | f41d8a08d90e1809ce51bade0f3a9bda1fa1eb1a | /gen.send.py | 6c35380c25d78c1b99bfa5bc40191cad27415e09 | [] | no_license | edureimberg/learning_python | 703b8d97ae60e2ad665e6b6a2a1d1baf0fe08fbc | f483788a3ba76116cd46a9be9468c009eeb2c5d5 | refs/heads/master | 2021-01-10T12:30:55.311492 | 2017-01-04T01:13:42 | 2017-01-04T01:13:42 | 51,038,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def counter(start=0):
n = start
while True:
result = yield n
print(type(result), result)
if result == 'Q':
break
n += 1
c = counter()
print(next(c))
print(c.send('Wow!'))
print(next(c))
print(c.send('Q'))
| [
"eduardo.reimberg@gmail.com"
] | eduardo.reimberg@gmail.com |
d31e50e52de6e21b62d5151500e488fb9aeff23b | 0e3383bdaf784c24b92deae5b63f3a47ac644d01 | /apps/chirperprofile/models.py | bf443bc75a0ee23e387f29619a75e502e5b2c2f1 | [] | no_license | ahmuh1306/chirpy | c247d76268c7a30874242d224f17e2aa6e9f1a15 | fa3c9c5da090c33f1fd9bb795d2e97624e20ef48 | refs/heads/main | 2023-07-28T12:03:32.987031 | 2021-08-30T13:18:11 | 2021-08-30T13:18:11 | 320,788,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from django.contrib.auth.models import User
from django.db import models
class ChirperProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
follows = models.ManyToManyField('self', related_name='followed_by', symmetrical=False)
avatar = models.ImageField(upload_to='uploads/', b... | [
"info@ahmadmuhammad.co.za"
] | info@ahmadmuhammad.co.za |
4525ba580218503a8dcdc8e1eaa0c14a873a67f3 | 8c30c0d84228b9a8643f2a13cc626b5766153ccd | /tests/providers/amazon/aws/operators/test_eventbridge.py | c6a5b7e91666fb1ae76222d6a9d7ae4119a968bc | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | Khrol/airflow | ec069fe9135bf708305fe359583a7979eb1e5d8b | 6634d8562ea1b8df67c44e3bb5417c0b41fef19c | refs/heads/main | 2023-08-29T03:32:04.990133 | 2023-08-05T19:32:13 | 2023-08-05T19:32:13 | 337,962,067 | 0 | 0 | Apache-2.0 | 2021-02-11T07:48:28 | 2021-02-11T07:48:28 | null | UTF-8 | Python | false | false | 3,578 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
7aa4c6a7fcab8423c4d26ef98463361cde663d9f | 819a20ec726b9a1be2d075c2d03bd7c21ec98ddd | /Algorithms/SortAlgorithms/merge_sort.py | 6d596350e344b5972fd5a731c232b93c03df2aca | [] | no_license | NightFlightCaptain/python-common | 47c6e10223ca22a24c511b2417377527a7ee780e | cc4b3de5d536130651d90f5a44f82574d1fcec0f | refs/heads/master | 2022-10-22T01:02:12.419025 | 2020-06-11T05:46:48 | 2020-06-11T05:46:48 | 154,910,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | # -*- coding:utf-8 -*-
# __author__ = 'wanhaoran'
def MergeSort(input_list):
length = len(input_list)
if length <= 0:
return input_list
merge_sort(input_list, 0, len(input_list) - 1)
def merge_sort(input_list, left, right):
if left >= right:
return
mid = (left+right) // 2 # 如果不能平... | [
"whr1314520@qq.com"
] | whr1314520@qq.com |
243527285d0de4bbb61b0982fafadbcc476d075d | 27d36b16b20b81fb5e966f8da463e2ae0192ed4c | /p01 - alien_invasion/game_functions.py | c350c9d4e232e1a255cc1b8d56bfa424752f876b | [] | no_license | IanPaulDaniels/Python_CrashCourseBook | 963cae64e54025bf90ab051c93b3da3fe6846ec7 | c3278854825ba84f8954ac3e8e72ebcb231c8a92 | refs/heads/master | 2020-04-13T23:36:57.252276 | 2019-05-08T10:39:19 | 2019-05-08T10:39:19 | 163,511,253 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,872 | py | import sys
import pygame
from bullet import Bullet
from alien import Alien
def check_keydown_events(event, ai_settings, screen, ship, bullets):
"""Respond to Keypresses."""
if event.key == pygame.K_RIGHT:
ship.moving_right = True
elif event.key == pygame.K_LEFT:
ship.moving_left = True
... | [
"ianpauldaniels@gmail.com"
] | ianpauldaniels@gmail.com |
1a46c8d568402db84e611a414452edb434b00e39 | 8982f5d9072aa9a2c7fb9466144b07760551a94e | /data/data_process.py | 21ff0c5fa4521ab1108d8895d591b5fc7458814e | [] | no_license | qw1085209368/SSLDPCA-IL-FaultDetection | 965442eac03ad996a28127c9d5513780b2738b17 | b68aa835cc127fc00ef29100908e8261ddc76998 | refs/heads/master | 2023-05-08T02:48:23.299522 | 2021-06-03T03:16:16 | 2021-06-03T03:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,244 | py | #!/usr/bin/env python
# @Time : 2021/3/2 15:44
# @Author : wb
# @File : data_process.py
'''
数据处理页面,将数据处理成需要的格式
'''
import h5py
import pandas as pd
import numpy as np
import os
import scipy.io as scio
import matplotlib.pyplot as plt
from PIL import Image
from matplotlib import image
from pyts.image import Grami... | [
"769790863@qq.com"
] | 769790863@qq.com |
5474853aa0063918f02b655556ab3268ea02e12a | edb699b1a63c3412e5a8788e32b26690c707ce2e | /rdconf.py | 1c57f37d1fefcab9072488d13dec9db4abe06cb2 | [
"MIT"
] | permissive | dkoes/rdkit-scripts | 518fe55058524ddd3a4f5ad4f0dd3d125a73f01a | 71cf2ccc4b26eb1541cc63690f40aa24b195fe8d | refs/heads/master | 2022-07-14T19:04:18.760183 | 2022-07-01T12:39:32 | 2022-07-01T12:39:32 | 72,130,300 | 48 | 32 | MIT | 2019-04-15T18:46:27 | 2016-10-27T17:09:14 | Python | UTF-8 | Python | false | false | 6,117 | py | #!/usr/bin/python3
import sys,string,argparse
from rdkit.Chem import AllChem as Chem
from optparse import OptionParser
import os, gzip
'''Given a smiles file, generate 3D conformers in output sdf.
Energy minimizes and filters conformers to meet energy window and rms constraints.
Some time ago I compared this to al... | [
"dkoes@pitt.edu"
] | dkoes@pitt.edu |
41363e9e082a015139c4dc149553b0e4019bf6ca | 126e8dc56736fddca9e3d4ff9328918548d0cc57 | /sql.py | dad20df1cf7c549b267f00b41e6aec7c34ec14fc | [] | no_license | Erruuu/AtomBot | 5b3b550dd723cf671bd5aacd238ca83c5845b53b | 28e182e585b7cca55bb0fb6e26361c79e1dd1896 | refs/heads/master | 2020-03-08T19:26:34.460018 | 2018-04-06T06:11:58 | 2018-04-06T06:11:58 | 128,352,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | import MySQLdb
import MySQLdb.cursors
import time
import discord
class MySQL:
def __init__(self):
self.db = MySQLdb.connect("localhost", "root", "4rYk5vZMNQQqCxsW", "proton", cursorclass=MySQLdb.cursors.DictCursor)
self.cur = self.db.cursor()
self.db.autocommit(True)
... | [
"noreply@github.com"
] | noreply@github.com |
ff13bac075cd81484153058e98fe0e61a7c1c474 | f2cb8d8a6c58c2ebd9356a30dc11c1e3e08da9ef | /ssd_client/ssd_client.py | 15625ba270094dbb4d48b2916884776c61c13357 | [] | no_license | phao1/intership | d7ab7e85ac5d971d66758560d62ea7e92030dc39 | 21fb78aad64fffef882d027c31bd981e8aa79ac5 | refs/heads/master | 2021-08-23T14:06:54.711380 | 2017-12-05T05:41:38 | 2017-12-05T05:41:38 | 112,990,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | import zmq
import ssd_server_pb2
import cv2
import sys
import os
import time
import socket
import numpy as np
class SsdZmqClient:
def __init__(self, server, timeout=10000):
self.timeout = timeout
self.server = server
self.socket = None
self.ctx = zmq.Context()
self.hostname ... | [
"penghaohhh@gmail.com"
] | penghaohhh@gmail.com |
d6f40a48d7f0a468a50bc850904ef6f17e284756 | 46e5d8df183c90eb92effcdb767df0e7935b7230 | /pyspider/database/elasticsearch/resultdb.py | dda2ee6808fa96e68aeff8cb7467fc603fd90769 | [
"Apache-2.0"
] | permissive | Danielhui/pyspider | 40f8f1bc745aa2aabe4b5182f826b1de1f838c80 | 72f1e343bc90f5184d81e74461dba844b79b4f32 | refs/heads/master | 2022-10-18T21:57:25.939860 | 2016-09-06T06:58:05 | 2016-09-06T06:58:05 | 64,045,724 | 0 | 0 | Apache-2.0 | 2022-10-11T12:22:20 | 2016-07-24T02:51:02 | Python | UTF-8 | Python | false | false | 3,866 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<roy@binux.me>
# http://binux.me
# Created on 2016-01-18 19:41:24
import time
import elasticsearch.helpers
from elasticsearch import Elasticsearch
from pyspider.database.base.resultdb import Result... | [
"roy@binux.me"
] | roy@binux.me |
f43722221bd03060e7ab0d48ef3c34de153b2797 | b9c96c750f25b45691ed5de7b5f1e70935e18fb7 | /app/models/group_audio.py | 5de0082820aef36952185bd8a268153c4b5baa37 | [] | no_license | ITBotBoy/fileManageApi | 06cf18609265eb3787f30d03c8724832802ddc79 | 1c7a259c9da4fd09ab2604da18b3b5f7a55594ee | refs/heads/master | 2023-06-08T01:34:28.484084 | 2021-03-23T09:07:50 | 2021-03-23T09:52:49 | 345,654,047 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | """
:copyright: © 2019 by the Lin team.
:license: MIT, see LICENSE for more details.
"""
from lin.interface import InfoCrud as Base
from sqlalchemy import Column, String, Integer,Text
class AudioGroup(Base):
id = Column(Integer, primary_key=True, autoincrement=True)
path = Column(String(200)... | [
"1249485588@qq.com"
] | 1249485588@qq.com |
3206f76afbb140a85a67cbd4410b0444c25e3535 | 87f3cc3294ce0dae67803eef8cb392b7fdda548b | /semana7/scrapy_cultural_sp/scrapy_cultural_sp/items.py | 5bceb88ca5907f18a91abf6f7c81c55f1a624791 | [] | no_license | edutomazini/courseraPython2 | 818ba7a63c76752f4461d22d26d8314c02f4ebe2 | f0aab4d6e7894ae54d502240e62a675fc6b90add | refs/heads/master | 2020-12-22T18:18:18.650967 | 2020-02-14T03:01:37 | 2020-02-14T03:01:37 | 236,886,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ScrapyCulturalSpItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"eduardo_tomazini@msn.com"
] | eduardo_tomazini@msn.com |
323015e49cd95b03235008c6a76c28dc1081805b | 75082880e210aa955d0c1fb9d3b25049549a7cfc | /Binary counter.py | 967126beaac76e8c29c194857979da182bff9e32 | [] | no_license | JTemps1/Python-Playground | c449d7d55485b3dca8201876307aebad27ff3f7e | 80af2efff915b3fb895d9a51d5217cd14fd0782e | refs/heads/master | 2020-09-12T04:16:34.990604 | 2019-11-24T01:42:05 | 2019-11-24T01:42:05 | 222,301,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | '''
This is a binary converter which takes it's input as 3 numbers: a lower limit, an upper limit, and a step.
The program will then return this range of numbers with the given step as binary numbers.
'''
#Function to convert an integer into binary:
def int_bin(x):
a = x
num = []
if x == 0:
... | [
"noreply@github.com"
] | noreply@github.com |
e7e80f2adc30dd1979a333284f8ab5df5124745d | f533840d313af1a7be73c63f42d211c8c337aa92 | /ginga/misc/plugins/Pipeline.py | afdf9d3cf9f4577d8f65613dfaf14277eb8a0831 | [
"BSD-3-Clause"
] | permissive | godber/ginga | 2d0b5c73fa168ad33bbf7dbe0c5fd2e1b0e54900 | acb32ed422aa604681c63c5a9494ffb0ad96cf2e | refs/heads/master | 2021-01-22T18:28:04.235890 | 2014-11-20T01:09:51 | 2014-11-20T01:09:51 | 27,312,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,032 | py | #
# Pipeline.py -- Simple data reduction pipeline plugin for Ginga FITS viewer
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
from __future__ import print_function
i... | [
"eric@naoj.org"
] | eric@naoj.org |
e04459b930bb7f6b0c2b98eab89e3ee3da3c4dcf | 1a2e542c8493720cbb5c90c4c1c3761fb20b5c74 | /CSV File Vizualization/sitka_highs_lows.py | 582c72f51f8dae9f48fa180ada629921bd54365f | [] | no_license | mbrad26/Data-Vizualization | 1a4c292f055b132ec06da770b360b66aa10a2653 | 17963f604ca69103005191b6f422f93d8ca549f2 | refs/heads/master | 2020-03-30T04:56:13.786292 | 2018-10-04T17:03:31 | 2018-10-04T17:03:31 | 150,770,092 | 0 | 0 | null | 2018-10-04T15:40:19 | 2018-09-28T16:55:03 | Python | UTF-8 | Python | false | false | 1,544 | py | import csv
import matplotlib.pyplot as plt
from datetime import datetime
import pygal
filename = 'sitka_weather_2014.csv'
with open(filename) as f:
reader = csv.reader(f)
header = next(reader)
dates, highs, lows = [], [], []
for row in reader:
date = datetime.strptime(row[0], '%Y-%m-%d')
... | [
"mbrad26@gmail.com"
] | mbrad26@gmail.com |
9388566730fc5fc701a05add88d966ba95553dfe | 14d60e8d50397ba18e7857f8b4959aad47bb2614 | /spark/python/whyspark/preprocessing/__init__.py | dd843b78292b26c0c2d9f27d2d4069833007e116 | [
"Apache-2.0"
] | permissive | whylabs/whylogs-java | 4a3239585faad902b3f5117eef621abfad9a39db | 24933f19aa31fae192e5eaa2fa39b641577c5e87 | refs/heads/mainline | 2023-08-20T16:35:32.475213 | 2021-09-28T20:12:23 | 2021-09-28T20:12:23 | 288,033,225 | 186 | 8 | Apache-2.0 | 2021-09-02T22:51:50 | 2020-08-16T22:16:08 | Java | UTF-8 | Python | false | false | 85 | py | from .autosegmentation import estimate_segments
__ALL__ = [
estimate_segments
]
| [
"noreply@github.com"
] | noreply@github.com |
dcfd779e0e8311ddf2e4b9742185897846fc5d04 | e9574d385b708e1d6bb93296f9f2241c56b99b92 | /aula_4/exercicio_2/exercicio_2.py | 3c862b2cd41e5cb7960071286c33f94a6c2e1537 | [] | no_license | GustavoLeao2018/algoritimos | 553117644c9f1fecc78ec46e84d55d2475a0221f | dbd0be54cb9be9f86429d0d5bcab114364deaed0 | refs/heads/master | 2020-03-27T16:11:56.487755 | 2018-09-30T23:57:28 | 2018-09-30T23:57:28 | 146,765,377 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Leia dez números inseridos pelo usuário e responda:
- Qual o maior número e qual o seu índice?
- Qual o menor número e qual o seu índice?
- Qual a soma dos números pares?
- Qual a soma dos números ímpares?
- Qual a soma da divisão dos números de índice par, pelos númer... | [
"glno181510004"
] | glno181510004 |
878fb9e27192edfd8e9225a0bc61eabbf38c1421 | 5884d6052436deb2878a537a2649e047fa1a81ed | /ROM/rom_programmer.py | 8bfadcb9f149590549be3879e002263cd00ecc67 | [
"MIT"
] | permissive | redvers/IBM-Wheelwriter-Hack | 1dcd38867de01cee5a0e58b95908fe11ae59a07c | 437c6ac8a055ab84112fcde0310de24bfc0b20c5 | refs/heads/master | 2022-02-22T22:34:15.964447 | 2019-07-04T01:44:21 | 2019-07-04T01:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,878 | py | #!/usr/bin/env python3
import RPi.GPIO as GPIO
import time
import sys
import traceback
import argparse
FULL_CHIP_SIZE = (1 << 17) # 128K
# datasheet: https://www.datasheets360.com/pdf/1277907997291200345?xrefPartId=1277907997291200345&alternatePartManufacturerId=0
# KM23C256 pins
# datasheet for flash chip: http:/... | [
"tofergregg@gmail.com"
] | tofergregg@gmail.com |
a52faf956b7c9d2017cedb4b0ccc513c223b682a | 23b5576bd5f5d896345c92b6ad35cd1755b12c6d | /dimensionalquantity/tests/test_dimquant_str_io.py | 94fb21b6d677ceb0cddcfb8cf017ebb81641e6cb | [
"MIT"
] | permissive | stefantkeller/dimensionalquantity | 6c8aeda90076f3ad03775d6df0e96272a273962b | 544c5804dc415629056793ea691ece645adf9695 | refs/heads/master | 2021-01-21T14:40:05.924262 | 2017-10-28T17:06:11 | 2017-10-28T17:06:11 | 95,323,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,224 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
"""
Dimensional works with a regular dict.
Problem with regular dicts:
the order of their keys isn't guaranteed.
From a functional point of view this is not a problem:
'm.s-1' are absolutely equivalent to 's-1.m'.
But from a testing point of view, these two strings differ fr... | [
"stefantkeller@gmail.com"
] | stefantkeller@gmail.com |
1f23f8d2e438bfcb38cfd8b0a24fa8edcc70b91b | bcfb1fa8faf841d0d61dab96ab1ace247996c79c | /simplemooc/core/migrations/0002_auto_20180101_1331.py | 74ffc58744fcdd194fb0fbf37608d325367c1e7d | [] | no_license | jdoliveirasa/fine-uploader-django-image | 5ae9a44efa0bc3e096bdd87f620925f8a4bbbeea | c47e8bfda4d53cce0dafec68a2d1b5bbb5722eac | refs/heads/master | 2021-09-02T10:36:04.783591 | 2018-01-01T23:00:53 | 2018-01-01T23:00:53 | 115,953,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 2.0 on 2018-01-01 15:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='item',
name='image_uuid',
field=... | [
"jjnatanx@gmail.com"
] | jjnatanx@gmail.com |
d821d1b799e43f0696b56e9149f4ff364590c6c6 | a206e9795919f0ffe92940a8c102437dbf058b3d | /test_NavNet.py | 7bc8a71787cb33fb8aad15258f8c160f53207fc4 | [] | no_license | ggeorgak11/mapping_navigation | c45b88d97f82b49282ae89dadc1ce3196b594899 | b4235aedccfb7bc20b461619cddec3e9b18a745d | refs/heads/master | 2020-12-08T23:28:05.840861 | 2020-09-15T13:24:25 | 2020-09-15T13:24:25 | 233,123,787 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,384 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import os
import numpy as np
import random
from dataloader import AVD_online
from mapNet import MapNet
from IL_Net import Encoder
from parameters import ParametersMapNet, Parameters_IL
import helper as hl
import data_helper as dh
import networkx as nx
i... | [
"noreply@github.com"
] | noreply@github.com |
11b6d896d9e0b56267799708c019729a8d38c700 | 4bb14bda9a0b5679dc80cc1a8def19e3ae14684d | /live_cameras/models.py | 5f91f7393a31122169ffb388e4a4327e9872a865 | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | CarvinEdlin886/lp-backend | 8474be9c6c9a6ba77de8edc7b66dca6d21f09b86 | 6a25e2d118fe10d39553a898d7cdee32847540e8 | refs/heads/master | 2022-12-14T17:22:51.414311 | 2020-02-12T17:22:45 | 2020-02-12T17:22:45 | 234,299,171 | 0 | 0 | NOASSERTION | 2022-12-08T03:27:07 | 2020-01-16T10:52:17 | Python | UTF-8 | Python | false | false | 217 | py | from django.db import models
class LiveCamera(models.Model):
base64 = models.TextField(blank=True, default='')
created = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ['created'] | [
"carvin.edlin@koinworks.com"
] | carvin.edlin@koinworks.com |
dce0a7169575e5fbc677d956709cabef70b6e9da | 3eb9779e2014bf3e820798aef6494c23c3b37eb6 | /nnet_example.py | aa054c1acb8f7283a9b9347c4faf6ea9fd6887db | [] | no_license | KolesovDmitry/gee-scripts | b7cf4a181ea24605588e7013bfc34b4ce2bd5de5 | 980a0e919f9dcbe9f74af5b5ab915949db34816b | refs/heads/master | 2021-07-05T20:33:20.968262 | 2017-12-06T13:49:02 | 2017-12-06T13:49:02 | 95,089,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
IMAGE_ID = 'LANDSAT/LC8_L1T_TOA_FMASK'
import ee
from nnet.nnet import Neuron, Layer, NNet
def cloud_mask(img):
cloudMask = img.select('fmask').lt(4)
return img.mask(img.mask().And(cloudMask))
def select_bands(img):
return img.select("B6", "B5", "B4")
... | [
"kolesov.dm@gmail.com"
] | kolesov.dm@gmail.com |
b0ab8ff4ab743b17755dfb7e6e382fd412a78283 | e68bd5356c614b9a16fa497af6d138f653b4a774 | /python/MoveHistory.py | 29b6e0df3b75e313cab4504d22f96c9b44b07ce6 | [
"MIT"
] | permissive | khml/sanmoku | e56f0dee504573febebbeaabb894aaf4150ce422 | 35e5f307100e4b645c059590ef9835a4fef90b0f | refs/heads/master | 2021-07-06T06:23:25.669815 | 2019-12-30T11:44:13 | 2019-12-30T11:44:13 | 153,987,145 | 2 | 0 | MIT | 2019-12-31T10:49:40 | 2018-10-21T08:18:43 | C++ | UTF-8 | Python | false | false | 774 | py | # -*- coding:utf-8 -*-
import numpy as np
import Board
class Move:
def __init__(self, pos: int, data: np.ndarray):
self._pos = pos
self._data = data
@property
def pos(self):
return self._pos
@property
def data(self):
return self._data
class MoveHistory:
de... | [
"43922054+khml@users.noreply.github.com"
] | 43922054+khml@users.noreply.github.com |
73854988d7d55e38cf4920974e99441e1abd043f | 07068c8c37df8c7d1a2c2c0bb3e8b0c41ea4867b | /DataCreator.py | f970f3768d862ad3b2ed525551f5b618b659dc2d | [
"CC-BY-4.0"
] | permissive | bmaag90/code_scan | b3655bfb12921be6661d65f7bdb08dfa70805848 | fe662ba8a03abe96fcce9a9dc81be44ac5c2ed53 | refs/heads/master | 2020-06-17T18:13:42.555717 | 2019-07-09T13:19:21 | 2019-07-09T13:19:21 | 195,996,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | import numpy as np
class DataCreator():
'''
DataCreator:
Generates random data of multiple sensors that are in rendezvous (they meet in space and time) with each other.
The sensor are aligned in a calibration path, which can be used to calibrate the sensors over multiple hops.
'''
def __init__... | [
"bmaag@ethz.ch"
] | bmaag@ethz.ch |
cef180107e92dc508a0d1b01e1fa2d1cb839b314 | ecf8eb49a479b032519575c15d5d0f1fb9d7d258 | /bot.py | e3ef7920d42d451949ea328118c9c68b8ad959cd | [] | no_license | NoahFijan/aws-minecraftbot | b5d5a595a7729ce974cde094ae378978f2df1232 | acdeec7f0018c6617286b979ea0b504a9a632e45 | refs/heads/master | 2023-01-08T05:13:17.935120 | 2020-11-06T02:12:57 | 2020-11-06T02:12:57 | 310,468,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | import discord
import random
import io
import aiohttp
import json
import subprocess
from discord.ext import commands
def getToken():
with open('resources/token.txt') as f:
for line in f:
token = line.strip('\n')
return token
token = getToken()
bot = commands.Bot(command_prefix = '.')
... | [
"noahfijan1@gmail.com"
] | noahfijan1@gmail.com |
816a5568ae603ca0725d2816ec6382adb5beaa7e | 585dd2091e5414d15eb807163f41473e560759e6 | /tf_retrainer/image_classifier.py | f1581a8ebe9915018abce61182d9137cfd1b978b | [
"BSD-3-Clause"
] | permissive | joshsungasong/tf-retrainer | c2a869ce59294f242dafdb6623822344e1869173 | c8f202cfc323e66e2bb252ccee10a3ea76994cdd | refs/heads/master | 2021-04-27T01:40:29.617385 | 2018-02-23T04:11:50 | 2018-02-23T04:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import sys
import tensorflow as tf
sys.path.append('/repos/coding-interviews/stackline')
# from utils import preprocess
slim = tf.contrib.slim
def conv_net(images, n_classes=None):
with slim.arg_scope([slim.conv2d], padding='SAME',
weights_initializer=tf.truncated_normal_initializer(stdd... | [
"messiercr@gmail.com"
] | messiercr@gmail.com |
ef258bb106bc53bf5ed4c1a06b980d66154f5206 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class783.py | 22d75780c4d05107a506bcec34d8229140243599 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=20
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
df0e78b60bfc72c412b3fa914ea00ef5c830d3b3 | 234df74b8d2ff67e1ec1e44df6128e9506ad8ab1 | /sgim/apps/catalogo/views.py | f2afa8b7e3b90431b4c76df2159ca9f2a62b26f6 | [] | no_license | edxavier/tesis2015 | c1289bc648c054edde082e200beda1cfb6e9e27f | d04b20b67f9f1ef2e6d97a18b7bfa6466223384f | refs/heads/master | 2021-01-23T03:33:27.149595 | 2016-02-17T21:51:37 | 2016-02-17T21:51:37 | 33,018,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | from django.shortcuts import render
from django.views.generic import View
from django.http import JsonResponse
from rest_framework import viewsets
from .serializers import (TipoDispSerializer, EdificioSerializer, OficinaSerializer,
EstadoOpeSerializer, SistemaSerializer,
... | [
"edxavier05@gmail.com"
] | edxavier05@gmail.com |
59e7efd7c9f67741580d7402f2235895e4b25a95 | eff638e128276c5d7de4fca5b0acde312e9a8a8d | /single line if-else.py | 846752636af516206408659f87bedf230522f61b | [] | no_license | Sahil4UI/Python_Jan_12-1_Regular2021 | 81e274ef2129fe43da8fbea172c055861dcda4d2 | 8e78457c2215d6bc652b14957d73423aecdd5c41 | refs/heads/main | 2023-03-04T09:22:48.582757 | 2021-02-18T07:26:47 | 2021-02-18T07:26:47 | 334,865,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | x = int(input("Enter Number : "))
res = "Even" if x%2==0 else"Odd"
print(res)
| [
"noreply@github.com"
] | noreply@github.com |
0bb05f9a709fa5f554fe031f826f890692200424 | 0c6189ee24daa1fa25351f1a9c51e50d004910bf | /mysite/urls.py | 541a5cc8a6e19b89494de34e217f1096c43d6697 | [
"MIT"
] | permissive | Abbos0511/django-celery-rabbitmq | abc02d7538accaef29e10ded9db7ec41602b9a4a | a02fe7aecb6302b30654de7af9848933a105d3bf | refs/heads/main | 2023-06-30T14:56:58.172201 | 2021-08-09T10:26:36 | 2021-08-09T10:26:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.contrib import admin
from django.urls import path
from core.views import index
urlpatterns = [
path('admin/', admin.site.urls),
path('send-email/', index, name='send_email'),
] | [
"cinorouizi@gail.com"
] | cinorouizi@gail.com |
db508cd4bcd3fa891bbd1f0067a4bb8269d2f093 | 3378bf2ebcd3cd794b26b74f033932cb0c6a6590 | /tuframework/network_architecture/cotr/DeTrans/ops/functions/ms_deform_attn_func.py | ce8862f5fc39e40bd00747c8d9c65fcffb6118b3 | [
"Apache-2.0"
] | permissive | Magnety/tuFramework | d3d81f0663edbffbdd9b45138cbca82ffb78f03e | b31cb34d476ef306b52da955021f93c91c14ddf4 | refs/heads/master | 2023-05-01T04:36:04.873112 | 2021-05-18T01:07:54 | 2021-05-18T01:07:54 | 361,652,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | import torch
import torch.nn.functional as F
from torch.autograd import Function
from torch.autograd.function import once_differentiable
def ms_deform_attn_core_pytorch_3D(value, value_spatial_shapes, sampling_locations, attention_weights):
N_, S_, M_, D_ = value.shape
_, Lq_, M_, L_, P_, _ = sampling_location... | [
"liuyiyao0916@163.com"
] | liuyiyao0916@163.com |
ad653a57948af87bd73d954b3eae1782e1dd3c21 | a35e044007f3d875be9ede7363d6f7541d5ed1a0 | /tests/unit/test_twindb_galera.py | 627475c015f55dc1a37c2a1dcfac68c2581d1a8b | [] | no_license | twindb/twindb_infrastructure | bb77074bd79202d3a6dbbf3b761827656e701e12 | a0eb48028dce982fb91c6990fae237c0940a53da | refs/heads/develop | 2020-04-15T12:42:20.862554 | 2019-05-28T15:26:40 | 2019-05-28T15:26:40 | 63,542,540 | 2 | 4 | null | 2019-05-28T15:29:20 | 2016-07-17T16:50:40 | Python | UTF-8 | Python | false | false | 209 | py | from click.testing import CliRunner
from twindb_infrastructure import twindb_galera
def test_main():
runner = CliRunner()
result = runner.invoke(twindb_galera.main)
assert result.exit_code == 0
| [
"noreply@github.com"
] | noreply@github.com |
ec865f58f41b8ed0e31ae99a849d827385ff434f | 2d8ff942b49bd0150342cb1dfab28abf863d020a | /seahorn/py/term/program.py | 1c49c9a4fc06ec7b9c724881b680e81b5081f680 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Robbin1987/Visualization | bef61fd0b71356ce1ff31c4c26cd7214ab45b52f | b04cd84df78da6f3c1f02a835b304d5d556c9b2c | refs/heads/master | 2021-08-24T12:14:05.341201 | 2017-12-09T19:14:58 | 2017-12-09T19:14:58 | 113,678,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,432 | py |
import z3
from rule import *
class Program:
""" Program """
def __init__(self,fp):
""" builds the program control flow graph (CFG) """
# program rules and variables
self.rules = list()
seen, self.variables = set(), list()
for rule in fp.get_rules():... | [
"noreply@github.com"
] | noreply@github.com |
ae88a1d00f3039d964de1fdc81afeec39214848f | 407bcc93248c59550dce000124e7712833bde93d | /02-推荐系统FMM实战/FMM.py | ed0631225e78ebb1b8ba29f5c5a97d5fcaefd476 | [
"Apache-2.0"
] | permissive | HelloWorld19930113/rec_dl | 984c1a143473565e51f981b62b7963667fff9eec | 9e844214651c84bd52a8568111f7dacb757e7b27 | refs/heads/master | 2020-11-28T14:54:03.491941 | 2019-12-24T01:52:59 | 2019-12-24T01:52:59 | 229,850,844 | 0 | 0 | Apache-2.0 | 2019-12-24T01:52:01 | 2019-12-24T01:52:01 | null | UTF-8 | Python | false | false | 2,846 | py | import tensorflow as tf
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
K = tf.keras.backend
from tensorflow.keras.utils import plot_model
class MyLayer(tf.keras.layers.Layer):
def __init__(self,field_dict,field_dim,input_dim,output_dim=30,**kwargs):
sel... | [
"zydeve@163.com"
] | zydeve@163.com |
5f293792655f4f7411ea5be656aa41be11628084 | 5e95ec5aac226d4b60028e810d670a306074d578 | /JRVA/JRVA.py | e7ca2f7353fa972511363c1912bb2e747ebeeb81 | [] | no_license | Maceido/Jrva | 166634cef3ac74625724ce808338099f10d847ac | b5ba2bd7ea9f526481f7a4244ca0473e29bde901 | refs/heads/main | 2023-06-26T03:12:58.863445 | 2021-05-12T14:08:27 | 2021-05-12T14:08:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,956 | py | # Benjamin Ugaz
# AM CLASS OF 2021
# 4-27-2021
# Final ver 5/7/2021
from tkinter import *
import pyaudio
import pyttsx3
import speech_recognition as sr
import threading
import time
import os
import datetime
import wikipedia
import subprocess
import webbrowser
from selenium import webdriver
import cv2
i... | [
"noreply@github.com"
] | noreply@github.com |
19315dcd65d4eca5b320320f7ee937f48548a353 | 08f75cc525aadc22930b838eac773db694ada909 | /main/posts/routes.py | 3c3254fe181c331d7700a5539d3f321706a6f0e3 | [] | no_license | kevinhamlin/flask_project | ef9d5842bbadf5efe4c45b898cc08aabcd350b1c | 7d4f1064e06dc6a6c27b8cd2d22efda368dad4f7 | refs/heads/master | 2022-12-02T22:53:17.914054 | 2020-02-15T01:56:57 | 2020-02-15T01:56:57 | 235,880,477 | 0 | 0 | null | 2022-11-22T05:16:28 | 2020-01-23T20:29:56 | HTML | UTF-8 | Python | false | false | 2,933 | py | from flask import Blueprint, url_for, render_template, request, flash, abort, redirect
from flask_login import login_required, current_user
from main import db
from main.models.models import Post, Comment
from main.posts.forms import PostForm, CommentForm
posts = Blueprint('posts', __name__)
@posts.route("/post/new"... | [
"kevin.hamlin@gmail.com"
] | kevin.hamlin@gmail.com |
7c630ad3ee4d176da0df7a3bf3b4b8b1695bcdf6 | 8788d18825806d1b450b1d5debbd71489c970c5f | /book/migrations/0005_auto_20190117_0608.py | b18182afd500501ffa772318582708ae1e040b70 | [] | no_license | SaurabhJ86/trydjango | 63241630089dad34c1576483a89d4b2846748a98 | 3a519ba273d15bd5f345cc88aef6179c270f495b | refs/heads/master | 2021-08-18T04:43:03.625775 | 2019-02-21T06:14:45 | 2019-02-21T06:14:45 | 163,810,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # Generated by Django 2.0.7 on 2019-01-17 06:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0004_book_pages'),
]
operations = [
migrations.AddField(
model_name='book',
name='book_type',
fi... | [
"saurabh.jhingan.08@gmail.com"
] | saurabh.jhingan.08@gmail.com |
131f7c6002a89e218254ab58d03d8847e90d4e63 | 76267a89bf07d945094d6a1081be7f5c2240f656 | /pages/base_page.py | 9a535c693cd2cd654f06053ddaa208418f136738 | [] | no_license | skipkent/selenium_python | bd0d5a799d3c63820a1e2ca992ae406a17dff320 | 1966066aaef6c428e2e82519338be8c7e16b890f | refs/heads/master | 2021-06-07T04:21:35.776635 | 2018-10-21T16:36:32 | 2018-10-21T16:36:32 | 153,943,118 | 0 | 0 | null | 2021-06-01T22:48:54 | 2018-10-20T19:56:27 | Python | UTF-8 | Python | false | false | 1,081 | py | from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
import time
class BasePage():
def __init__(self, driver):
self.driver = driver
def get_page_source(self):
return self.driver... | [
"kent.wood@nutonian.com"
] | kent.wood@nutonian.com |
a4f95aee76697e7effca765b050ca7625b1842e0 | 2197a9566120eb9b2d5a9080a533dc82f56ddb1c | /pipeline/Step2/AlexNet_torch/train.py | 70df7d1a00c870a5d7b839c1805469474ab1ed7f | [
"Apache-2.0"
] | permissive | ttjygbtj/AlexNet-Prod | 6464c2e921dd1ee7c42950856bb935cd3fd0f9d9 | e3855e0b1992332c2765ccf627d0c5f5f68232fe | refs/heads/master | 2023-08-14T14:33:08.113765 | 2021-10-19T08:08:32 | 2021-10-19T08:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,672 | py | import datetime
import os
import time
import torch
import torch.utils.data
from torch import nn
import torchvision
import presets
import utils
try:
from apex import amp
except ImportError:
amp = None
import sys
sys.path.insert(0, ".")
import numpy as np
from reprod_log import ReprodLogger
def train_one_e... | [
"dazhiningsibuqu@163.com"
] | dazhiningsibuqu@163.com |
a831a15311ca769464ae3d93d9aaa7da33b81916 | 94ca6ad1a5dd260f8a3022ddc833258c0200707f | /shared/templates/socket_disabled/template.py | f5c682dd6756ac76b66779f0bf83d41cce98a751 | [
"BSD-3-Clause"
] | permissive | ComplianceAsCode/content | c4ee8dc78615fccb3944755d2db854bccfefc246 | 7610bb96db7d2e0df922916f846f119444b119af | refs/heads/master | 2023-09-05T16:37:20.588127 | 2023-09-05T15:29:17 | 2023-09-05T15:29:17 | 19,279,458 | 1,483 | 492 | NOASSERTION | 2023-09-14T14:54:00 | 2014-04-29T14:32:02 | Shell | UTF-8 | Python | false | false | 127 | py | def preprocess(data, lang):
if "packagename" not in data:
data["packagename"] = data["socketname"]
return data
| [
"vpolasek@redhat.com"
] | vpolasek@redhat.com |
09b922f0536f3f67a76cd56420e258503b2f7ff3 | 59c36fc84771d18dac468231390a29769ffb05ec | /Number Pattern/Pattern2.py | d015874b00cf56056790904e513c8810533b967c | [] | no_license | dshah98/Python_Pattern | eb0cc682b29dc389b4f4a3b7959fc354721c8612 | 38075a8a500773196415310e97b27a1ffefe9c03 | refs/heads/master | 2022-12-01T13:36:37.593788 | 2020-08-23T08:54:52 | 2020-08-23T08:54:52 | 289,647,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | '''
PATTERN
1 2 3 4 5 6 7 8 9 10......
'''
n = int(input("Enter Number: "))
for i in range(1, n+1):
# Start with 1 and continues to the number entered adding 1 everytime.
print(i, end=" ")
| [
"dhairyashah429.ds@gmail.com"
] | dhairyashah429.ds@gmail.com |
145e57e6be29273d92a4e5c1ff9dda1810e63f46 | 8c751a814231d8aa6f4f55960040e3886e6532c0 | /co2.py | cc93b4eb464956d97330e80d3300214cf2e3ff23 | [] | no_license | Farhanamazhar/assignment2 | 634bd725a3290c9583879c639c543d3e9552a9a1 | 28913d972518b31f683c6202591b265181eeb6d0 | refs/heads/master | 2020-12-15T00:28:01.363822 | 2020-01-19T17:16:06 | 2020-01-19T17:16:06 | 234,928,200 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 19 15:19:34 2020
@author: FARHANA MAZHAR
"""
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('monthlyexp vs incom')
X = dataset.iloc[:, :1].values
y = datas... | [
"noreply@github.com"
] | noreply@github.com |
810c0f5353737a78ccb3ce1128268e6dc7defa7c | f45e523fac15b6ababc842fe11d7c5f3e8a10fe3 | /camera_interface/camera_server.py | 366c9eb83a239d60e37c70d0a2e353cf340d4087 | [] | no_license | Tylerc230/fido_pi | 0e789bfebc8036356996ab5fe3eed99440a81c39 | 52e076cac3258d4669550c27d616ffeba7f945ec | refs/heads/master | 2021-01-10T15:21:18.695743 | 2013-08-23T02:18:40 | 2013-08-23T02:18:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import os
def startCamera():
os.system("sudo mkdir /tmp/stream")
os.system("sudo raspistill -w 640 -h 480 -q 20 -o /tmp/stream/pic.jpg -tl 16 -t 9999999 -th 0:0:0")
def startStreamServer():
os.system('LD_LIBRARY_PATH=../tools/mjpg-streamer/mjpg-streamer/ ../tools/mjpg-streamer/mjpg-streamer/mjpg_streamer -i "in... | [
"tylerc230@gmail.com"
] | tylerc230@gmail.com |
943165f93aedc0cfc97acfb710195d37e15fa1f5 | 1197f0fd6a660915e548940fa7ec7cc6967440ed | /tools/management/commands/get_gtp_ligands.py | 394b4cf932c96498fcda5eeb16d172c622812ad1 | [
"Apache-2.0"
] | permissive | AlibekMamyrbekov/protwis | 4a6d7ae9a4a4b4dc33eb0b2d1c05c6216f4f46f2 | b3d477b1982623618d995ab5c7f47c918a70238b | refs/heads/master | 2021-11-14T04:20:05.864001 | 2021-10-22T09:17:30 | 2021-10-22T09:17:30 | 164,080,903 | 1 | 0 | Apache-2.0 | 2019-07-29T11:51:01 | 2019-01-04T08:35:10 | Python | UTF-8 | Python | false | false | 21,947 | py | from django.db import IntegrityError
from build.management.commands.base_build import Command as BaseBuild
from protein.models import Protein
from ligand.models import GTP_endogenous_ligand, Ligand, LigandProperities, LigandType
from common.models import WebLink, WebResource, Publication
import logging
import time
impo... | [
"31478442+AlibekMamyrbekov@users.noreply.github.com"
] | 31478442+AlibekMamyrbekov@users.noreply.github.com |
4f824b6c13da790c385a3a29eea34d865da0fdd5 | e9c31997fc3fd2be1904fb7d83763599101c2a24 | /Behaviour-cloning/model.py | 23eb1e55eec30b087e391caae1c58c89b6ec6525 | [] | no_license | psahay101/Behavioral-Cloning-P3 | fedf03de331be3c0d2ab4340ca25ba07cb1fe5e7 | 972886a6ea08874c41a3e1a17c8cd2b4df7d87a2 | refs/heads/master | 2020-03-21T11:12:27.897219 | 2018-06-24T17:50:40 | 2018-06-24T17:50:40 | 138,494,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,206 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 23 14:53:34 2018
@author: psahay101
"""
import tensorflow as tf
tf.python.control_flow_ops = tf
from keras.models import Sequential, model_from_json, load_model
from keras.optimizers import *
from keras.layers import Dense, Activation, Flatten, ... | [
"noreply@github.com"
] | noreply@github.com |
3cee34a9135b57208eaf3059efdea7cce09d4893 | 3b8fe64c42b74376040a18febb38e00789264618 | /aestesting/views.py | d01a88338dcf01ee85680c423895f7b27f6f5495 | [] | no_license | shakeebanwar/Django-Encryption | de396340e4876d8f37fc92dc429569ad3398ef58 | 45fe1c071c99a408e5bd9d0317936df4f73ad97d | refs/heads/master | 2023-01-04T10:00:26.198475 | 2020-11-07T13:04:15 | 2020-11-07T13:04:15 | 310,593,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | from django.shortcuts import render
from django.shortcuts import render, HttpResponse,redirect
from .models import Health_Professional_Account
from rest_framework.views import APIView
from rest_framework.response import Response
from hashlib import sha256
import base64
from Crypto import Random
from Crypto.Cipher imp... | [
"shakeebanwar250@gmail.com"
] | shakeebanwar250@gmail.com |
3a96ff0283e661c937b5974f506c94981a97f949 | 4170dbd36c0a7922beb4a92604d693444d949d3f | /Predicate Unification/myLogics.py | ed1747e8983dd0eedc732635d3e8e9b554c720f5 | [] | no_license | BussHsu/AI | 839fb633b3fdc9445b30d1e1af7e5dbd9c17ee19 | 7669b5b9ef07151bddad71ee9d95dc424bbd8ab3 | refs/heads/master | 2021-04-06T09:38:53.156774 | 2018-03-09T19:11:26 | 2018-03-09T19:11:26 | 124,581,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,064 | py | import copy
# Literal, has name_string (string) and positive (indicating having not)
class Literal:
def __init__(self, in_name, isPositive= True ):
self.name_str = in_name
self.positive = isPositive
def __repr__(self):
if self.positive:
return "'"+self.name_str+"'"
... | [
"noreply@github.com"
] | noreply@github.com |
c663ea308d13dca7d37fc0de89bdfddaaa7e2a58 | 80044d28134dd02af4d9046d94170d2c59446748 | /products/urls.py | 684dca4e4e790100f536683eecb87f339feee169 | [] | no_license | Im-your-hari/DjangoLearn | 1c3bd5ebbba81a68fb8ce82af3f18ded498498af | 45e3c8bbe477f94fbffe9a9d188920af94c51f74 | refs/heads/master | 2023-07-05T17:18:42.204347 | 2021-08-12T16:22:43 | 2021-08-12T16:22:43 | 367,385,489 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | from django.urls import path
from . import views
app_name = "products"
urlpatterns = [
path('', views.home,name="home"),
path('about/',views.about,name="about"),
path('contact/',views.contact,name="contact"),
#path('contactform/',views.contact_create_view,name="contact_form"),
path(r'products/',vi... | [
"baluoger91@gmail.com"
] | baluoger91@gmail.com |
619049455dcbe223f40b6c42c5b1b32a4bcff6a7 | 10719213a3b8a5d1ae55db9c84018607abbbc632 | /assign4/assignment4/src/main/mc/codegen/Frame.py | a8256fcb2161c7f17f5c071569bdd67183f3bf9a | [] | no_license | CapiZerbino/PPL2019 | 94f0f61095c6d3505e1feed114ab773e9a2b5acf | 4365c4fddb359b0d156f3cf9cfcaf17e99df6501 | refs/heads/master | 2023-08-19T07:40:54.773486 | 2021-10-02T23:40:21 | 2021-10-02T23:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,013 | py | from Utils import *
class Frame():
def __init__(self, name, returnType):
#name: String
#returnType: Type
self.name = name
self.returnType = returnType
self.currentLabel = 0
self.currOpStackSize = 0
self.maxOpStackSize = 0
self.currIndex =... | [
"tranxuanhoi199@gmail.com"
] | tranxuanhoi199@gmail.com |
c892052021821ff8212713de0e25b57b998f5e76 | e7ab780aeae5a6910eb0b7f23d204ae6b6d4b93b | /case/__init__.py | be22fc7699a55f1869c48eedb401e1b51454dbe8 | [] | no_license | wmengchen/hufu_ui | 59dd60cc48bffc5685a2e82235d98496cf6972a9 | 324497bb9f1c4461d8d80cd956e24317a6565e60 | refs/heads/master | 2023-01-14T04:39:52.260732 | 2020-11-17T02:34:58 | 2020-11-17T02:34:58 | 276,246,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# @date: 2020/7/20 15:03
# @name: __init__.py
# @author:menghuan.wmc | [
"15051968801@163.com"
] | 15051968801@163.com |
eafd5338953171b029908af6d5fb1b893a5f8259 | e606561e599fac17c6ec51808597496f108f2ff3 | /model_cdss.py | 033801e162ddb1acec4acf7fadbdf798f29a8b15 | [] | no_license | ShilpiKiran/COMRED | 91f480f46fe9db415a6777600e44847a81c0063b | e7d280c1e8d8f6e0f3fb3518b689466238f0d3e0 | refs/heads/master | 2023-04-28T16:03:59.213466 | 2021-05-24T07:20:08 | 2021-05-24T07:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
import joblib
saved_model = joblib.load('model_cdss.pkl')
b = sys.argv[1]
a = list(range(2, 134))
b = [int(x) for x in b.split()]
count = 0
while count < len(b):
item_to_replace = b[count]
replacement_value = 1
indices_to_replace = [i for i, x in enumerate(a) if x == item_to_replace]
count +=... | [
"thesumit98@gmail.com"
] | thesumit98@gmail.com |
8d59c63bb569d0b06ceed76e1ba3e92ddfc89ae5 | 612325535126eaddebc230d8c27af095c8e5cc2f | /src/build/android/pylib/utils/device_dependencies_test.py | 40a9c3791fd32e20a2ab0f1ae30c53831e561944 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | #! /usr/bin/env python
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import unittest
from pylib import constants
from pylib.utils import device_dependencies
class DevicePathCompo... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
92de986004ad83ec57cd0bf995417d908f32e34e | 6b25bf4787ca1578c8132712ce0734cc4c5328d1 | /shop/migrations/0003_item_photo.py | fb13b749e71c8f2cd4118d8abfffa7658a3d4f3d | [] | no_license | rkdurd34/piro12-django_auth | 53eefe3361f538bfded24a3b76f75667760ed590 | f512eb9f56f598b4acbae4ab37cf026ed8078739 | refs/heads/master | 2020-12-18T22:48:55.123622 | 2020-01-27T11:55:19 | 2020-01-27T11:55:19 | 235,543,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 2.2.9 on 2020-01-20 10:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_item_is_publish'),
]
operations = [
migrations.AddField(
model_name='item',
name='photo',
f... | [
"rkdrud34@nate.com"
] | rkdrud34@nate.com |
9778861d821f6c3303d4d9ac7cdc4fbaf15a64c5 | e96bd44dc5980a9f3f21090a3b60ed4cf3faa899 | /sentence_label.py | 2f2ac5b8f7056cc41c5857c6e8b103f4eda9ecb8 | [] | no_license | ejanos/strabag | 9b95f8bad57635918245a8815ee662992e692885 | 0034d7f3747eaaf4a58dfff739009c7687799549 | refs/heads/master | 2023-08-20T13:55:48.377632 | 2021-10-22T10:31:09 | 2021-10-22T10:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | class SentenceLabel:
id = 0
category = ""
ordinal = ""
def __init__(self, id=None, category=None, ordinal=None):
if id and category and ordinal:
self.id = id
self.category = category
ordinal = ordinal
else:
raise ValueError("Eve... | [
"37834280+janoserdody@users.noreply.github.com"
] | 37834280+janoserdody@users.noreply.github.com |
2bd5f95e415955fef9fb486aa9150da591fc22ec | a9a90eae727590f0ccffaa255ffeaa194309fbe9 | /Codekata/year.py | 7d9971890b54ef34045a6604b8e13f06aa36b4b5 | [] | no_license | dhanuskarthikeyan/guvi | 18c39674d3ee8e0012caef781d7905e541792174 | 671d64189f6039ffad8d91cab13942aafa87bf29 | refs/heads/master | 2020-06-03T00:07:45.041170 | 2019-07-08T17:39:33 | 2019-07-08T17:39:33 | 191,355,054 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | yr=int(input())
if(yr%4==0):
print "yes"
else:
print "no"
| [
"noreply@github.com"
] | noreply@github.com |
6e35b5f8d2216a75ee6508df38de0df1da1cb8ed | 39ea026c441a05b8328afc3d5928f8d2ddb43a58 | /W3Resource_Exercises/lists/ex22.py | 29891f7110e2f2ca71146fe31b6da082e10823fe | [] | no_license | kamit17/Python | 576931b9152b434d8ca62abfea719b748d1ebef0 | 840963648dd22189d5ee7694789b2315901e4aed | refs/heads/master | 2022-06-19T21:01:13.881545 | 2022-05-26T14:40:53 | 2022-05-26T14:40:53 | 116,746,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | #Write a Python program to find the index of an item in a specified list.
chars=['h','e','l','l','o']
print(chars.index('l'))
| [
"9121002+kamit17@users.noreply.github.com"
] | 9121002+kamit17@users.noreply.github.com |
c9baae557483fdcf1828ada40edd18868416e68d | bdccb421c292d4ce78814c81c80aae7165f2a625 | /easyMath 2.py | 8f169c25d96aa022ce29aaad1a09d42712df4b70 | [] | no_license | SunTXone/PythonCodes | f2199309f61509eeb0a7bfa74c65098ad4d4e2ff | ba69ee823670c1242d82736abb38b96f2654ba06 | refs/heads/master | 2021-04-27T18:33:44.504312 | 2018-02-24T01:05:45 | 2018-02-24T01:05:45 | 122,341,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | # Python 核心编程第二版(中文)11.2.4 一个例子
# 儿童算数游戏
from operator import add,sub
from random import randint,choice
"""
全局变量有:一个包含了运算符和与其相关联的函数的集合(字典),一个决定在给出正解之前,
用户有多少次机会尝试给出答案的整型变量。
函数字典的键值是运算符的符号,程序通过查字典找到合适的算术函数。
"""
ops = {'+':add,'-':sub}
MAXTRIES = 2
"""
doprob()函数是应用程序的核心引擎。该函数随机选择一个操作并生成两个操作数,同时... | [
"noreply@github.com"
] | noreply@github.com |
3032df8aae7e1bb1772adabb0555c9a99b33df4e | 4ef4687cacf1e4dfcf34542aa44e317ac4996756 | /test/shapes/press_test.py | 42e3d96cbbc9e22a0ec89e56ddc30baa10856ac5 | [
"BSD-2-Clause"
] | permissive | XRDX/pyleap | 053ae145f49f5cf5f3515ef062c3a37551d9e3c1 | a6d458801f7085c15109e47b5c703a125de12b83 | refs/heads/master | 2022-06-10T01:12:18.229520 | 2022-04-20T06:51:31 | 2022-04-20T06:51:31 | 136,725,206 | 7 | 7 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from pyleap import *
bg = Rectangle(0, 0, window.width, window.height, color="white")
c = Circle(200, 200, 100, hsl(0))
c.transform.scale_y = 0.5
i = 0
def update():
global i
i += 10
c.color = hsl(i)
print(hsl(i))
def draw(dt):
# update()
window.clear()
bg.draw()
c.draw()
c.on_press... | [
"305880887@qq.com"
] | 305880887@qq.com |
e6189e3e0646f86c59fe5e9fa366b37f2bbd941a | 8882af31a04372a564442740a2287652abf5839d | /Example2_3.py | a4fb6b7a1a377a4d4652428e59c9d64403708e38 | [] | no_license | grant111924/DeepLearning_AND-gate | 855afec7bf664713eb01ee14ad768337da08923f | a2a4713c2f7d7050a2efff4fe40dfd88013fe149 | refs/heads/master | 2021-07-08T18:06:18.185910 | 2017-10-04T07:25:10 | 2017-10-04T07:25:10 | 105,639,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 30 11:11:12 2017
Define function
Examples for Matrix
@author: DELL
"""
import theano
import theano.tensor as T
a=T.matrix()
b=T.matrix()
c=a*b
d=T.dot(a,b)
F1= theano.function([a,b],c)
F2=theano.function([a,b],d)
A=[[1,2],[3,4]]
B=[[2,4],[6,8]]
C=[[1,2],[3,4],[5,6]]
... | [
"grant111924@gmail.com"
] | grant111924@gmail.com |
fb63f6ee8a057a30027089c59c6d5ccb87cc6dc9 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/kikoAnalysis/slpDailyMeanFiles/43-tideGauge.py | 4657f7de0acc7b31a05efa28139e82d5dd1442be | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 29 09:40:12 2020
@author: Michael Tadesse
"""
import os
import pandas as pd
dir_in = "/lustre/fs0/home/mtadesse/eraFiveConcat"
dir_out = "/lustre/fs0/home/mtadesse/dailyPred"
os.chdir(dir_in)
tgList = os.listdir()
x = 43
y = 44
#looping through individual tide gauge... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.