blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
334cda64f6566b641dfa7f695a7911c18aeb72bf | a4228efe4788e043727c587589ad8e7043233c9e | /topic_based_segmentation/train_keras_model.py | 73b209fb9301725f5e6392adaf4457a3d871cd20 | [] | no_license | CrystalXiaoXiao/SpokenInputTopicDetection | f53aa8a4944f5a35981b12a93d1960b10b60c83d | f075f5a8f128a4fda4cae9377da50f5b9377760a | refs/heads/master | 2020-11-30T09:25:46.022675 | 2017-10-15T11:38:38 | 2017-10-15T11:38:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,090 | py | from DataLoader import DataLoader
from keras.models import Sequential
from keras.layers import Dense, Activation, \
LSTM, Dropout, Embedding, Lambda, Bidirectional, Merge
from keras.layers import Conv1D, MaxPooling1D
import keras
from keras.preprocessing import sequence
from keras.callbacks import ModelCheckpoint
... | [
"mohamed.emad.soliman@gmail.com"
] | mohamed.emad.soliman@gmail.com |
1b5e747a4b2642018e32c6e08f4f4180972ecebd | abfff8ab3162f7003b51d3fdcc7897684d2d4e54 | /c_py_extention/Lib/site-packages/pip/_vendor/urllib3/response.py | 5502a119973864003bf66c8602b91f684a84c7cb | [] | no_license | RedKnite5/Junk | 972dc24c99fe30400ab35e77bb4b69abe9076190 | 93b5bb4b6138518724528770cf56ea1df10e95b4 | refs/heads/master | 2023-04-10T07:25:14.968070 | 2023-04-04T04:19:42 | 2023-04-04T04:19:42 | 143,909,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,042 | py | from __future__ import absolute_import
from contextlib import contextmanager
import zlib
import io
import logging
from socket import timeout as SocketTimeout
from socket import error as SocketError
try:
import brotli
except ImportError:
brotli = None
from ._collections import HTTPHeaderDict
from... | [
"mr.awesome10000@gmail.com"
] | mr.awesome10000@gmail.com |
fbab493168de831c8b736596a9bf700cad48ca29 | 0f0a8050b90ab2db927aa67a097643fbacf73ebb | /mysite/mysite/settings.py | af0c31cf290016ed39e864cc610445f5b69d898d | [] | no_license | kotnid/django-chatroom | 8bbad633ae9b8a7b93201857e81d41ce2d403496 | 651c79e95424bff268523f08cadded2260d1129e | refs/heads/main | 2023-06-18T15:07:30.825758 | 2021-07-20T00:35:00 | 2021-07-20T00:35:00 | 384,048,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"tkt0506tkt@gmail.com"
] | tkt0506tkt@gmail.com |
06ca81d105d2299fc45662811c6a969bc1757358 | b4bd028a9cf6ee1c2cf0dab4f3fbc5bf779767f1 | /app/core/tests/test_admin.py | c3f726808a95ccdf95047d6b1677bfdd03230c24 | [
"MIT"
] | permissive | okidijimmy200/recipe-app-api | 33500c7bbe48b10a4045a71cfc3cfd4bdfeca474 | 987788043c95c6c4f75f4df3124306b4f6575b15 | refs/heads/main | 2023-08-22T22:43:54.247329 | 2021-09-23T12:28:31 | 2021-09-23T12:28:31 | 405,045,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
# setup functions tht need to be run b4 any other test
def setUp(self):
self.client = Client() #set to test client variable
self.admin_user = ... | [
"okidijimmie@gmail.com"
] | okidijimmie@gmail.com |
712beee0c3563de9fb46b2bcac2975a3cab3e520 | 570227155e5a9f1285cec3bacb5e0f570f53daf3 | /mrcnn/parallel_model.py | c75df62bf06fe158224c6dad859a41baa50ecb4a | [] | no_license | frodsantos/polyp-detection-segmentation-mask-rcnn | 56676f47e9824e30ed56f3bfc67049e46a2f303e | 5b9a138d7fa95c5c720eaf6081c7efe4242d4a1b | refs/heads/master | 2021-09-22T11:26:57.034982 | 2018-09-09T16:13:03 | 2018-09-09T16:13:03 | 147,788,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py | """
Mask R-CNN
Multi-GPU Support for Keras.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
Ideas and a small code snippets from these sources:
https://github.com/fchollet/keras/issues/2436
https://medium.com/@kuza55/transparent-multi-gp... | [
"noreply@github.com"
] | frodsantos.noreply@github.com |
2874f74de9f3de37544a1e61636acc55e31149f1 | 67d94cea8a4e48683e74ad7da26ab4b02ae37c19 | /demo/services/qotm.py | ab405266a3e4504b3d51242754b2179293a01958 | [
"Apache-2.0"
] | permissive | smoshtaghi/ambassador | fa39ec86acdde3b76706e37a5273c252b62fda66 | f653780befd65d72f955e94f5fac146d8794c712 | refs/heads/master | 2020-05-02T09:52:45.928453 | 2019-03-26T20:22:35 | 2019-03-26T20:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,956 | py | #!/usr/bin/env python
from flask import Flask, jsonify, request, Response
import datetime
import functools
import logging
import os
import random
import signal
import time
__version__ = "0.0.1"
PORT = int(os.getenv("PORT", "5000"))
HOSTNAME = os.getenv("HOSTNAME")
LOG_LEVEL = os.getenv("LOG_LEVEL", "DEBUG")
app = Fl... | [
"flynn@datawire.io"
] | flynn@datawire.io |
c112adbf68b743044edcb76406c6f539a19c6611 | c0ef5d2f48a52a23fce89c5fb965ac7f724f8244 | /statistical_prediction.py | 218640e2f4ddf71911b18eabccf71a9cc0d1a2cc | [] | no_license | setnicka/gene_prediction_project | a62762a6008d0182540162325c732cd0cb3ddd17 | cfd52d4c447ad8701a4341d3c6112bda74002336 | refs/heads/master | 2021-01-10T04:16:21.652103 | 2016-01-22T07:06:31 | 2016-01-22T07:06:31 | 49,730,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | #!/usr/bin/python3
import gene_tools
from gene_settings import sequences_dir
model_pre = 15 # To catch Pribnow and Gilbert box
model_post = 25 # To catch ribosomal binding site
def StatisticalPredictionTrain(sequences):
model = None
for seq in sequences:
real_genes = gene_tools.ReadGenes(sequences_dir + seq +... | [
"setnicka@seznam.cz"
] | setnicka@seznam.cz |
390292cd85133a1d94b7ccdc633c51b83ca43120 | 997312a59cb833c3c14e90fbf0046dd76ddf741f | /djangoproxy/proxy/apps.py | b6b0bcba5241a7932314db14595697f722b62f24 | [] | no_license | Aggosh/DjangoProxy | 0ebccf222aaa5c02a3673194110002a04732e658 | 706eeb1a4527fcfd9e938dddc673af4e8c30056b | refs/heads/master | 2023-02-22T16:24:30.894222 | 2021-01-20T12:03:34 | 2021-01-20T12:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class ThumbnailerConfig(AppConfig):
name = "proxy"
| [
"bkmzilia@gmail.com"
] | bkmzilia@gmail.com |
23469463dfbc6631814a0468add53c75df07336e | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0572.0_Subtree_of_Another_Tree.py | 04f22ba2c1aebcb28258a3c091754703156231d3 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | '''
Success
Details
Runtime: 340 ms, faster than 10.24% of Python online submissions for Subtree of Another Tree.
Memory Usage: 14.6 MB, less than 53.07% of Python online submissions for Subtree of Another Tree.
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=... | [
"lixiang@rxthinking.com"
] | lixiang@rxthinking.com |
4aadeccf6326d9ccb2694ac8bd52aaf36d149d60 | 111529119f4311045510560e617903fad68590da | /0024/0024.py | f4edb242fec037e99bf9adda67ce4e2a8f71e48a | [] | no_license | ashtonbaker/project-euler | 2ab66b0a2195ca2ef07aca6fc2e6fb7731925bc5 | 134e3d984e6f5e695e30f1ef5488e8a8883b1aa0 | refs/heads/master | 2016-09-06T06:33:43.250972 | 2015-10-26T00:35:34 | 2015-10-26T00:35:34 | 30,418,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import math
factorials = [math.factorial(i) for i in xrange(9, -1, -1)]
coefficients = [0] * 10
n = 0
while sum([a*b for a,b in zip(factorials, coefficients)]) != 999999:
while sum([a*b for a,b in zip(factorials, coefficients)]) < 999999:
coefficients[n] += 1
if sum([a*b for a,b in zip(factorial... | [
"ashtonsb@umich.edu"
] | ashtonsb@umich.edu |
b1da72ca6a90f4e8721e59a996efb5614262544d | 04f5eb559d2d1823b545f6e9536fdb427d533506 | /ex_methods/lime/lime_tabular.py | ec1100dff9d70767e843ed20ef7db09043bfeb00 | [] | no_license | shybeeJD/XAI-platform | 467b80883a451b352cdc2dec13f446e899f39e83 | 7bde870321e5366a3cf41ae04b9c3a2a7e898610 | refs/heads/main | 2023-08-13T22:34:10.115463 | 2021-10-19T02:03:45 | 2021-10-19T02:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,435 | py | """
Functions for explaining classifiers that use tabular data (matrices).
"""
import collections
import copy
from functools import partial
import json
import warnings
import numpy as np
import scipy as sp
import sklearn
import sklearn.preprocessing
from sklearn.utils import check_random_state
from pyDOE2 import lhs
f... | [
"295886980@qq.com"
] | 295886980@qq.com |
6b070f4656d6fd36f68bc0dd598ac9f15b9f3123 | a7aabc5bd71b5ef6bdddee9908efcc840930e13c | /tests/testapp/tests/test_utils.py | 509c0a384f223b47432eab62359e52d05cb6b9c5 | [
"BSD-2-Clause"
] | permissive | enterstudio/towel | b7567261b325d19d621af126553ac33350f9a927 | 6892788527b8a111cbf5963e909964aabc96d740 | refs/heads/master | 2021-07-05T05:49:11.654374 | 2016-11-21T08:43:41 | 2016-11-21T08:43:41 | 85,775,854 | 0 | 0 | NOASSERTION | 2021-07-03T01:07:07 | 2017-03-22T02:25:57 | Python | UTF-8 | Python | false | false | 3,733 | py | from __future__ import absolute_import, unicode_literals
from django.template import Template, Context
from django.test import TestCase
from towel.utils import (
related_classes, safe_queryset_and, tryreverse, substitute_with)
from testapp.models import Person, EmailAddress
class UtilsTest(TestCase):
def t... | [
"mk@spinlock.ch"
] | mk@spinlock.ch |
f513905a2f9d37b2ca98385e6dcfa3ca23c4aef0 | 6b7e79c450a53f49a88b5c0a27eafcc43e4cf8d2 | /src/transformers/models/ibert/modeling_ibert.py | ec547aae7cc19f374bcc8f55304b21a00738bc32 | [
"Apache-2.0"
] | permissive | lohjine/transformers | 034196d5032b92aae8eb964480948b22fe3373b3 | ca22b488d7fd2620fe45fb14e06effd990762cfd | refs/heads/master | 2023-05-15T00:10:11.052110 | 2021-06-09T09:25:03 | 2021-06-09T09:25:03 | 375,295,469 | 0 | 0 | Apache-2.0 | 2021-06-09T09:15:50 | 2021-06-09T09:15:49 | null | UTF-8 | Python | false | false | 55,423 | py | # coding=utf-8
# Copyright 2021 The I-BERT Authors (Sehoon Kim, Amir Gholami, Zhewei Yao,
# Michael Mahoney, Kurt Keutzer - UC Berkeley) and The HuggingFace Inc. team.
# Copyright (c) 20121, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | [
"noreply@github.com"
] | lohjine.noreply@github.com |
52a7077c4a5e57e74351d2143f1de90345c7a686 | 75678ff3f7fb3af16b36d5ef952ce90c089336e1 | /legacy_folder/lspi.py | be9388df0bf5391f1256dbf20676302329ca1385 | [] | no_license | jeonggwanlee/LSTD-mu | 71cc530b7072aab9e515609fa61f0fefe1d53903 | b2d890ddba587ac01b722a4a6b21575b354dec9d | refs/heads/master | 2020-04-12T16:06:25.249480 | 2019-03-07T16:58:00 | 2019-03-07T16:58:00 | 162,602,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,535 | py | import numpy as np
from rbf import Basis_Function
from policy import Policy
import pickle
import ipdb
import os
"""
important property of LSPI is that it does not require an an approximate
policy representation, At each iteration, a different policy is evaluated
and certain sets of basis functions may be more appropri... | [
"leejk526@gmail.com"
] | leejk526@gmail.com |
a470996c18a37b613670620541320c7ae4f9bc6c | 3869085dd69bc23c9b9a8f30e80835f1e1e22364 | /purchasing/urls00.py | 46260ba52f7a54d845a0b8082d5bfddc2aa7af49 | [] | no_license | izzwl/nest | 679f7ac713fe6f1dee04412dd4ce2f3d0bad3c93 | 074fa63370ea8334c11295fa571584f05e6d45ff | refs/heads/master | 2022-11-29T03:54:50.902647 | 2019-07-24T09:11:42 | 2019-07-24T09:11:42 | 196,491,884 | 0 | 0 | null | 2022-11-22T04:07:40 | 2019-07-12T02:06:32 | Python | UTF-8 | Python | false | false | 472 | py | from django.urls import path
from . import views00
app_name = 'purchasing'
urlpatterns = [
path('in71/',views00.in71, name="in71"),
path('in72/',views00.in72, name="in72"),
path('in73/',views00.in73, name="in73"),
path('in74/',views00.in74, name="in74"),
path('in75/<int:in73_id>/',views00.in75, n... | [
"nest@nest.umcntp.co.id"
] | nest@nest.umcntp.co.id |
497fa83c1c9aa580261535736445295525cf4427 | 67d43f62e64d45e4dcdbf47d758a630dd9e4e50b | /guess_the_number.py | 42a0c9030fc2b02079fc681359941f605362541f | [] | no_license | Loto-bit/first-project | 8185caa2c013e6c1e77aa562a4c75826fe6b0aeb | db1a76723db3bc17f0f9e49cc0aba7e56e36f492 | refs/heads/master | 2022-11-17T23:32:46.549998 | 2020-07-09T08:30:30 | 2020-07-09T08:30:30 | 275,242,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | import random
def compare():
win = random.randrange(1,10)
print(win)
flag = True
while flag:
num = int(input("Write a number: "))
if num > win:
print("Nope, try lower")
elif num < win:
print("Nope, try higher")
... | [
"noreply@github.com"
] | Loto-bit.noreply@github.com |
d591b7b7cee682ba69d0ba97411d93be9f283bc6 | e7840ce797c11daab93807a115f552a0112da315 | /run/train_cifar_gumbel.py | 8edaa179482bd06ce7af838970d637fb9b2a1c97 | [] | no_license | ymcidence/OperationFreya | aaf5d08807d51fab4acf421727bbb2b76a76a07e | e9706a39ce288117c8f1845824302bf4c06950d5 | refs/heads/master | 2023-01-06T19:59:36.270735 | 2020-11-02T09:54:56 | 2020-11-02T09:54:56 | 300,807,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import tensorflow as tf
from time import gmtime, strftime
from model.gumbel_model import GumbelModel as Model
from model.gumbel_model import step_val, step_train
from util.data.basic_data import BasicData as Data
from util.dat... | [
"ymcidence@gmail.com"
] | ymcidence@gmail.com |
11d058213a608ce27edb34ddf3e016581618858f | ae46bfda33900ae8098aa222a5695c9cfdde6ef0 | /user/urls/__init__.py | 2b664bec948df17de71178c8a1a77b1c1851d178 | [] | no_license | znavy/MiracleOps | c08f51a3bbc98f0afc18d487753517b1ac1f88f2 | 004685ad53fee0b64009ea3ce87bad6dad233a47 | refs/heads/master | 2021-05-09T05:54:27.030399 | 2018-01-28T23:31:54 | 2018-01-28T23:31:54 | 119,322,487 | 1 | 0 | null | 2018-01-29T02:44:32 | 2018-01-29T02:44:32 | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/env python
# encoding: utf-8
# @Time : 2018/1/3 下午9:39
# @Author : MiracleYoung
# @File : __init__.py.py
| [
"295891721@qq.com"
] | 295891721@qq.com |
4484d2110dcfa4da0fff35767ea4919cc1d05daa | eb3ec5892947f4984843b6634c7e2fd4f60c88a6 | /2020/arc_ws/src/arc2020/scripts/main/main_dev.py | b1014e0090a0b38cdc1873c04f29f59a20c49851 | [] | no_license | arcosaka/arcosaka | 2385dcb8d4fdb0561bbf55839f6128f11879c4f1 | 0a4fc20de0fdb18a64705773e3eea2ee55b5a3ba | refs/heads/master | 2023-08-02T21:55:36.703124 | 2023-07-27T13:30:02 | 2023-07-27T13:30:02 | 157,073,359 | 0 | 1 | null | 2021-10-09T04:48:39 | 2018-11-11T11:35:29 | C | UTF-8 | Python | false | false | 3,368 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# license removed for brevity
# pythonでROSのソフトウェアを記述するときにimportするモジュール
import rospy
# gpio制御用
#import pigpio
# 自作ライブラリ
#from Vec3D import Vec3D
#from Transform3D import Transform3D
# 自分で定義したmessageファイルから生成されたモジュール
from arc2020.msg import client
from arc2020.msg import main
... | [
"woowayer@gmail.com"
] | woowayer@gmail.com |
8d44f0ae2fab70d1487c0f3c5d9cd7d23366ab77 | 30ddeb5af375185c2052839e6ea7c8db377ae307 | /CBVProject2/CBVProject2/settings.py | 68e25edb76c04fad6aa3ee24cd03deee776b7185 | [] | no_license | lukez08/CBV-repo | ffe121d6e65136c42fa07bc683a07d6593a1443e | 960acf4c246483cdcb1b06942552149526d372cb | refs/heads/master | 2023-02-19T21:28:05.665897 | 2021-01-23T05:47:22 | 2021-01-23T05:47:22 | 332,137,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | """
Django settings for CBVProject2 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"manojmmanu13@gmail.com"
] | manojmmanu13@gmail.com |
cb04ddbe159999dd98fe3bc062ec157af7e08e40 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/36d056acd92ca2f7e97fec82fd09f36c42c05338-<input_producer>-bug.py | 3a7ddc7afac95a39d452b1dd75f57e4f08345d0f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py |
def input_producer(input_tensor, element_shape=None, num_epochs=None, shuffle=True, seed=None, capacity=32, shared_name=None, summary_name=None, name=None):
'Output the rows of `input_tensor` to a queue for an input pipeline.\n\n Args:\n input_tensor: A tensor with the rows to produce. Must be at\n one-d... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
da67d7ed8dcc598ee9cefa72bace4f050b28b358 | d28c5a2993f5ba6133845ee724c188e0b3c3775a | /python/tests/test_helper.py | 9f71fa7d2dd00a8d29ffc62329535b7979a77772 | [
"Apache-2.0"
] | permissive | bcgov/RSBC-DataHub-API | 5817d9b5298ee5824415cb53fad2e10c19806533 | 5039b02cb3b5e2eb008fb8ad82e4070b65c59c7e | refs/heads/master | 2023-07-12T17:02:51.857211 | 2023-07-06T16:05:31 | 2023-07-06T16:05:31 | 240,372,827 | 9 | 12 | Apache-2.0 | 2023-07-06T16:07:56 | 2020-02-13T21:57:54 | Python | UTF-8 | Python | false | false | 1,320 | py | import python.common.helper as helper
import python.common.message as message
import python.form_handler.business as business
import pytest
import json
def test_helper_has_add_error_to_message_method():
message_dict = json.loads('{"event_type": "some invalid event"}')
expected_error_message = 'error message'
... | [
"jlonge@corebox.net"
] | jlonge@corebox.net |
b8a6d4b5c488151244256500ffaab2184cecdabc | c6eb52478346d4c0b272035f45f62f6b1dccf2c3 | /data_science_py/26_spark/lambda_expressions.py | e961135b4db95e1a1a503192e7ba57b3086ce7a9 | [] | no_license | antichown/udemy_courses | 88732eea17eac8614152aa815d57c64fa54d0104 | d308fe478a67cb7fc395d99d798ac58fdc1f58c4 | refs/heads/master | 2022-11-06T22:28:08.118570 | 2020-07-17T02:00:19 | 2020-07-17T02:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | #!/usr/bin/env python
# coding: utf-8
# #lambda expressions
#
# One of Pythons most useful (and for beginners, confusing) tools is the lambda
# expression. lambda expressions allow us to create "anonymous" functions. This
# basically means we can quickly make ad-hoc functions without needing to properly
# define a... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
3b9abbb2fcb50fd72c4067684bcf92b9414508fa | c874b33d28b4fb4b794be4447cc1abadce707178 | /generator.py | cdfc502aabab07a011b16912f65f46e2f2ae8c0a | [] | no_license | Zombiedbot/Pentago | 885695d78b9bf7eb993b726f2d63760585c6778a | 8679d924d4f0cb347c09308f436b841bdaa122a1 | refs/heads/master | 2020-07-04T00:12:34.319143 | 2019-08-13T08:07:12 | 2019-08-13T08:07:12 | 202,094,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,984 | py | import random
import pentago
def make_4_1():
M = [['.' for i in range(6)] for i in range(6)]
k = random.randint(1, 14)
if k < 7:
for i in range(1, 5):
M[k - 1][i] = 'X'
b = random.randint(5, 7)
#print(b, k, 0)
for i in range(b):
c = 36 - 4 - i - 2
... | [
"artemyena52@gmail.com"
] | artemyena52@gmail.com |
c6d6428abed097189480ad71fdb265184f16897f | fe1b2c9ecf1727dded76bffa84b3b20e66d91f4d | /tests/pylibversion/test_version_util.py | b92b9093d7ac92fcf3389ca4a3e3d50d0566537c | [
"Apache-2.0"
] | permissive | dbradf/pylibversion | db888d26d0a5b0535af45621f1c920642f8fc267 | 3b5522c4853142890eeeac2613c03a277c84b48e | refs/heads/master | 2020-07-14T02:32:22.575591 | 2019-09-04T16:58:00 | 2019-09-04T16:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | try:
from unittest.mock import patch
except ImportError:
from mock import patch
import pytest
import pylibversion.version_util as under_test
NS = "pylibversion.version_util"
def ns(relative_name): # pylint: disable=invalid-name
"""Return a full name from a name relative to the test module"s name space... | [
"david.bradford@mongodb.com"
] | david.bradford@mongodb.com |
ad82cb2299da4d2401808287a51200b9a1bb360a | 3db6e4cb2f62b913f14a557eb800a4c5f000d6ac | /CSI337-Information Security/python_practice.py | d889e6d5969e5b6fea4ca87c396c50be53a3077d | [] | no_license | alanscottthomas/StudentPrograms | 9310f8ae2471165887141853c664af037b82bb81 | 2bee5173663c87fba6734aac6ebb6b059dac995c | refs/heads/master | 2021-01-11T10:27:57.258407 | 2019-06-27T00:45:36 | 2019-06-27T00:45:36 | 78,896,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Alan
#
# Created: 21/02/2018
# Copyright: (c) Alan 2018
# Licence: <your licence>
#-------------------------------------------------------------------------------
def... | [
"noreply@github.com"
] | alanscottthomas.noreply@github.com |
b0b1c1d1f7925088c04ccd1e0791231dec1defb3 | 6d4dc3eb681acd8891936b396865b026bf0e32d9 | /preprocess_SSL/pretrain.py | 5e07b90cd3cb8afe739dd1b22d8879c52ee1b466 | [] | no_license | roger199585/bag_of_words | e0e336bbcde5ecd29fcb859f1c77b6cf6b8cc1d5 | 382571c910760e6d8b681f79cc2a4777b369cf50 | refs/heads/master | 2023-04-21T19:28:47.983054 | 2021-05-16T12:57:39 | 2021-05-16T12:57:39 | 311,578,171 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | """
Author: Corn
Update: 2021/5/3
Description: 使用預先訓練好的 SSL model 去做我們的異常偵測的前處理
"""
""" Pytorch Library """
import torch
from torch.utils.data import Dataset, DataLoader
""" STL Library """
import os
import random
import pickle
import argparse
import numpy as np
from tqdm import tqdm
... | [
"roger199585@yahoo.com.tw"
] | roger199585@yahoo.com.tw |
68cd96a2791e4344d6cade1c5e3956e2ee6d612e | bef07e9674a9f71325b359f87c93a7f40b048268 | /pageObjects/loginPage.py | 815d48dc076893945ff63b5a7cad89905aefefa1 | [] | no_license | apache161/pythonFramework | 45089b03dbcef9de097ab6d97f853602050f78b4 | b6f1c7c19ba1e8cb93c86a64b4613ed1dc84a883 | refs/heads/master | 2023-04-21T05:53:54.410855 | 2021-05-02T00:35:11 | 2021-05-02T00:35:11 | 363,525,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | class loginPage:
textbox_usrname_id = "Email"
textbox_passwd_id = "Password"
button_login_xpath ="//button[@type='submit']"
button_logout_linktext = "Logout"
def __init__(self, driver):
self.driver = driver
def Usrname(self,usrname):
self.driver.find_element_by_id(self.textbox... | [
"“emails4syed@gmail.com”"
] | “emails4syed@gmail.com” |
1a365a2bb0309fda4f59bd582114adaab048140e | d65759301e0184955aac88d9a659f22d160a41bf | /games.py | f3ea8ae1f7417708d8e1965c6cf7a9fae34809c2 | [] | no_license | Ilu92/Parsing | 01cf9a04c25338e3cf8d20156d1ae46c181661b3 | a27a02c368d1b1ee64046c940b879a2983e999bf | refs/heads/main | 2023-06-06T06:14:23.060868 | 2021-06-26T09:12:01 | 2021-06-26T09:12:01 | 348,758,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from selenium import webdriver
from time import sleep
driver = webdriver.Chrome()
driver.get('https://app-time.ru/games/list/all/android/2022')
game = driver.find_elements_by_class_name('gamebox')
for i in range(0, len(game)):
print(game[i].text)
| [
"noreply@github.com"
] | Ilu92.noreply@github.com |
155ebd99501cc8fb0db360b9c150527356d3ac1a | 3cd1b656c2b3a4b6963139e1d6a4b5889a273508 | /src/sac_stage_1.py | b14836736f3d3f8a118837aa0dd7a1e332be227d | [] | no_license | dranaju/project | d3a722421312f96a93953cdf8a3c32a5229943b5 | cdd4ded4c3ccc9753a54d73846964d92d4a82db9 | refs/heads/master | 2021-06-12T22:08:30.245769 | 2021-03-04T08:24:26 | 2021-03-04T08:24:26 | 157,602,301 | 65 | 31 | null | null | null | null | UTF-8 | Python | false | false | 13,674 | py | #!/usr/bin/env python
# Authors: Junior Costa de Jesus #
import rospy
import os
import json
import numpy as np
import random
import time
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from collections import deque
from std_msgs.msg import Float32
from environment_stage_1 import... | [
"dranaju@gmail.com"
] | dranaju@gmail.com |
84d2699b024982d719d9bcf1f5df234a6296f80c | d1f89c11cdebbf0c03d6a40ec1cccc64525f9053 | /kai/clients/urls.py | 5835d05919d86f285486cfbf3e890dcf5bf36225 | [] | no_license | Project-Kai/kai | 1854fd79c1cd3218132f79e31fc946a60f22158f | 9f7f84cb0c8291e6d38f15d07a29a1006ef1a92c | refs/heads/master | 2020-04-16T01:36:41.609803 | 2019-01-13T07:52:38 | 2019-01-13T07:52:38 | 165,180,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | """kai URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"mike@marketfresh.com.sg"
] | mike@marketfresh.com.sg |
6f537f2a2eb98ce9355e639f4b1a40938a2975e3 | 763d2f0a40c905bc9cbcd83e21c8d716072fcf90 | /chapter01/04.py | faf5d15b0528921cf23472e4699f4bf3a532a3d9 | [] | no_license | s19014/ProgrammingTraining2 | c707dc0a9dc1f4678f91fc05ded6bb1419db4f7a | c28b452d0a52c0e8481731bd1cda6b1aba88228d | refs/heads/master | 2022-11-08T18:27:36.692911 | 2020-06-29T03:36:51 | 2020-06-29T03:36:51 | 262,897,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | '''
“Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also
Sign Peace Security Clause. Arthur King Can.”という文を単語に分解し,
1, 5, 6, 7, 8, 9, 15, 16, 19番目の単語は先頭の1文字,それ以外の単語は先頭に
2文字を取り出し,取り出した文字列から単語の位置(先頭から何番目の単語か)への
連想配列(辞書型もしくはマップ型)を作成せよ.
'''
text = '''Hi He Lied Because Boron Could Not Oxidize Fluo... | [
"s19014@std.it-college.ac.jp"
] | s19014@std.it-college.ac.jp |
a4a775e230fc2f3380b90ca4b69fdf7259f22e2a | 17c08826eac8129c0c83ecaa368ac305f9b03a11 | /Code/getPowers.py | 0efaacf818c94538bb63f54198263f58afe0f2e5 | [
"MIT"
] | permissive | abdalazizrashid/AI-Feynman | f445062b831cf835c2f53111e85fd615ecb7d38d | 3121276389a2cb6749592206268ac8f31f6c1bbc | refs/heads/master | 2022-12-06T01:18:47.214162 | 2020-08-05T18:04:39 | 2020-08-05T18:04:39 | 279,799,700 | 1 | 2 | MIT | 2020-07-15T07:37:34 | 2020-07-15T07:37:33 | null | UTF-8 | Python | false | false | 1,745 | py | import numpy as np
import pandas as pd
from scipy.sparse.linalg import lsqr
from scipy.linalg import *
from sympy import Matrix
from sympy import symbols, Add, Mul, S
from numpy.linalg import matrix_rank
from itertools import combinations
N = np.array([[ 0, 1, 1],
[ 0, -1, -1],
[ 1, 0, ... | [
"noreply@github.com"
] | abdalazizrashid.noreply@github.com |
d1b8b380409305b112615cc2f6a3b1f200a89b38 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_268/ch34_2020_03_29_20_16_22_997795.py | 7ac92c7d8b2fdc1116c6e200a907b413c1ee9f71 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | def eh_primo(n) :
if (n <= 1) :
return False
if (n <= 3) :
return True
if (n % 2 == 0 or n % 3 == 0) :
return False
i = 5
while(i * i <= n) :
if (n % i == 0 or n % (i + 2) == 0) :
return False
i = i + 6
return True
def maior_pr... | [
"you@example.com"
] | you@example.com |
5b89bfaddbe563dad9ee2840d839716f8e5b6d5c | bddd531834f01ff358a3d2f9d534d7a210e35c3f | /mlpJupiter.py | ce073212a72b3c81a6aeafa8c3f1674eca78bf8a | [] | no_license | TomAbrahams/mlpJupiter | 5f78aa99acd6e14cc77ee89e192b4bd9caa6ddd9 | 19aad6f5b2ef25aa22428badab1bb9fd627e8b08 | refs/heads/master | 2021-07-13T08:40:17.552866 | 2017-10-16T05:45:25 | 2017-10-16T05:45:25 | 103,591,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,884 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 28 18:43:06 2017
@author: Thomas
"""
# Objective
# The objective is to analyze the size of the sepal length, sepal width,
# petal length, petal-width to classify the type of flower using neural networks.
# Steps:
# Today you are going to:
# 1. Import a datasheet
# 2. Ra... | [
"noreply@github.com"
] | TomAbrahams.noreply@github.com |
2450b992096d4accb4fb99aa6c6aa9972a3ab40d | 069e82d0400913682bf5ff1ffa60a62422610b83 | /demo03_MaoYanMovie_OOP_mysql_executemany.py | 1afcca10fc82418c7bdecfc65a604af67e83b7de | [] | no_license | La0bALanG/Spider_Codes | ae9aa6a97c15d0aeeb72702f6a6b3b8caa7b107d | 72ce5b72b0baf1de7d8fecac4805d4711dc6409f | refs/heads/master | 2022-12-30T13:06:13.937923 | 2020-10-13T09:18:54 | 2020-10-13T09:18:54 | 298,497,349 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,762 | py | # -*- coding:utf-8 _*-
"""
@version:
author:安伟超
@time: 2020/09/07
@file: demo02_MaoYanMovie_simple.py.py
@environment:virtualenv
@email:awc19930818@outlook.com
@github:https://github.com/La0bALanG
@requirement:1.获取top100榜单页面全部内容;
2.使用正则匹配出每一条的电影名称,主演,上映时间
3.将获取的内容写入字典(下一节讲解写入持久化存储)
"""
import threading
import re
impo... | [
"awc19930818@outlook.com"
] | awc19930818@outlook.com |
b825b147c5f4cb1ca642d0522025724422c21b8d | a4581e379ff79d10cfc4f0842325cb82d16420d7 | /project.py | ccf690f6fa01c57c2e330410a26fb300afdafcdc | [] | no_license | Anshul-Gupta24/Microexpression-Spotting | d8952d551db32815d1a70181ffa5735e29f0c2d4 | f672b78af61c4d96091b28c9372ea2ce0ba7b62a | refs/heads/master | 2020-04-10T06:24:09.986017 | 2018-12-26T17:00:29 | 2018-12-26T17:00:29 | 160,853,289 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | '''
Extract and align faces using opencv dlib library.
Usage:
>> python project.py <foldername>
Output:
./aligned_frames
'''
import sys
import dlib
import cv2
import openface
import os
# You can download the required pre-trained face detection model here:
# http://dlib.net/files/shape_predictor_68_face_landmarks.d... | [
"noreply@github.com"
] | Anshul-Gupta24.noreply@github.com |
8643c21f14838b13d866383e24760ea048005756 | 5600bf9fc7215617c7c5f3690054189a219d65b6 | /users/urls.py | 384330b6791bda9be268b69b5a888786cef9dc10 | [
"MIT"
] | permissive | MECKEM-COV-19/backend | 28037541e218403e4ba3b6f615130947423a001c | c0686f32f98b3acd5dc028d8a054089694654a07 | refs/heads/master | 2021-07-13T13:12:21.678771 | 2020-04-02T21:54:55 | 2020-04-02T21:54:55 | 248,934,011 | 0 | 0 | null | 2021-06-10T22:44:00 | 2020-03-21T08:17:18 | Python | UTF-8 | Python | false | false | 242 | py | from django.urls import path
from . import views
urlpatterns = [
path('signup/',views.user_signup, name="user_signup" ),
path('login/', views.user_login, name="user_login"),
path('logout/',views.user_logout,name="user_logout"),
] | [
"philipp.wegners@gmx.de"
] | philipp.wegners@gmx.de |
a79c31dde53d4382b1920a94324c8c6bf44f6dfd | 35baa9617b8e46c172d47ad7200037ec11adbc83 | /app/oauth2/resources.py | dd416162b9ee135fb5a2187da761745d0e8bbf49 | [] | no_license | cuongpianna/oauth2_api | 343128c65477779493d5921474e605062aa4042a | 9a783ae30184ee9008c1f978c8670e4414d22513 | refs/heads/master | 2020-05-02T20:03:31.099660 | 2019-03-29T03:54:29 | 2019-03-29T03:54:29 | 178,178,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from flask import g, request, url_for
from flask_restful import Resource
from flask_jwt_extended import create_access_token, create_refresh_token
from app.extensions import github
from app.user.models import UserModel
class GithubLogin(Resource):
@classmethod
def get(cls):
return github.authorize(url... | [
"cuongpianna1996@gmail.com"
] | cuongpianna1996@gmail.com |
c1e2e20594477764d4734d0ffe64d2544cd228a2 | 6b3832826ffc16b8b831f1c91f6863efb608f147 | /git_py.py | eec47419244166dbc2270791ebaf0f3abe7022df | [] | no_license | wangkunk/GitDemo | d35afeb05fe88f7d1afd085523af2b349439f198 | 4dfbf2c16e8129194900c4cdd4dff2c456a2dee2 | refs/heads/master | 2020-07-22T04:22:22.405985 | 2019-09-08T07:54:11 | 2019-09-08T07:54:11 | 207,072,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # 这是我的第一个Python程序
import time # 我导入了一个时间模块
print(time.time()) # 在屏幕上打印出从1970年1月1日0:00 到现在经过了多少秒
if 10 - 9 > 0:
# 这行需要缩进,缩进用4个空格
print('10大于9')
| [
"863879392@qq.com"
] | 863879392@qq.com |
c882cc7af50a9749d550a38205740f835645ad2e | 1daaf410301dc686ce401d5ac389eded738b976a | /Student/models.py | 4a64a14060613cb996a457afc6fd80be204fc93c | [] | no_license | MazenAshraff/DjangoHelloWorld | d2c8dca4028b7da591579d1e7f4c4be98456d821 | 0789d62b75c2cc1500133e0fd8c4b29c437acc7f | refs/heads/master | 2022-07-10T09:03:54.036345 | 2020-05-19T12:18:26 | 2020-05-19T12:18:26 | 265,239,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.db import models
# Create your models here.
class Student(models.Model):
name = models.CharField(max_length=20)
gpa = models.DecimalField(decimal_places=2, max_digits=3)
student_id = models.CharField(max_length=10)
age = models.DecimalField(max_digits=3,decimal_places=... | [
"mazen.ashraf.12@gmail.com"
] | mazen.ashraf.12@gmail.com |
670d34dbe3196b61380c9d3ee86b17dcf3491f2e | 935c04921b18c162e7838fedfc8b914b9a171003 | /flaskr/flaskr/bin/flask | 75dc4e8c33faf91ee225d73af48886c08fd66ffb | [] | no_license | erbarmungslos/hello-world | 48fceb4b3fd54321ebc18d7be0d44c5dfd6088e9 | ec15991e14d161abb35883d44155bfccb2f887b2 | refs/heads/master | 2021-03-27T10:15:59.145482 | 2018-02-14T18:16:23 | 2018-02-14T18:16:23 | 120,190,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/home/alexis/projects/flaskr/flaskr/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"erbamungslos187@gmail.com"
] | erbamungslos187@gmail.com | |
b7a6f3b2a4bd86f924545888b676eb9f43135eef | d9697cda9384aec02b870e5ed5d53db37f015893 | /kaggle/google_football/rule-based-agents/testv8_6.py | 8f0f56d42591f0174e8f518f74ca06e6988fe8a2 | [] | no_license | guocongyun/ml-projects | 0eb809f047960213ce88967b2d7cbc2d55d16e2b | a883935d779dca3a3cc443c3fa6d6a455f21e87a | refs/heads/master | 2023-01-24T17:35:53.820315 | 2020-12-10T14:15:19 | 2020-12-10T14:15:19 | 277,168,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | import numpy as np
import math
from v9_1_combine_everything import get_player_score, RUN_SPEED, is_within_border, Action, get_distance, evaluation, SHORT_STEPS,PASS_SPEED,normal_get_distance,check_steps,PASS_Y_SPEED
def is_blocked(obs, player_x, player_y, teammate_x, teammate_y, teammate_speed=[0,0], speed=PASS_SPEED,... | [
"congyun.guo@student.manchester.ac.uk"
] | congyun.guo@student.manchester.ac.uk |
b7b874acea85c0c1c0b468fa63bfcdec322d8e33 | d4a874792cc86f64dba859392deacd9e7e6721fc | /monitor.py | 01ae60fc559113881e40b008bc3cc7858202075c | [] | no_license | tarungoyal1/python_scripts | a1b0e725813a0277b812f75a73fac330d92405cb | ac362c753d61c3430c46863235bb263ecc62a053 | refs/heads/master | 2020-03-28T14:23:26.896106 | 2018-11-13T00:49:17 | 2018-11-13T00:49:17 | 148,483,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import time
import glob
import shutil
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class MyHandler(FileSystemEventHandler):
def on_created(self, event):
folder = "10_Practical Uses of S3"
current = glob.glob("*.mp4")
if len(current... | [
"tarun13317@gmail.com"
] | tarun13317@gmail.com |
84768cd09a36028bf006dd8401bafb0357279c0d | 61ac1b89ad090a41d41be1de178a26ae89711dd2 | /solutions/1480.py | 596e5b89691c4ec5a8e11c58167e47c32de48b5f | [] | no_license | zszzlmt/leetcode | ea0bdc24248075e35094d036520f729e699f7d7e | daee4df1850740438e3860b993aa32b45c03812e | refs/heads/master | 2023-07-16T18:55:21.418378 | 2021-05-10T07:24:05 | 2021-05-10T07:24:05 | 119,399,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | class Solution:
def runningSum(self, nums: List[int]) -> List[int]:
if len(nums) == 0:
return nums
result = list()
result.append(nums[0])
for idx in range(1, len(nums)):
result.append(result[-1]+nums[idx])
return result | [
"zpu@pku.edu.cn"
] | zpu@pku.edu.cn |
ab59db052bdf4934ce86436713e6a01207d89d3c | 7b750c5c9df2fb05e92b16a43767c444404de7ae | /src/leetcode/python3/leetcode735.py | ba41f98ebc046b632377456faffcf0601cd24c7a | [] | no_license | renaissance-codes/leetcode | a68c0203fe4f006fa250122614079adfe6582d78 | de6db120a1e709809d26e3e317c66612e681fb70 | refs/heads/master | 2022-08-18T15:05:19.622014 | 2022-08-05T03:34:01 | 2022-08-05T03:34:01 | 200,180,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from typing import List
"""
行星碰撞
"""
# 暴力求解 292ms
class Solution:
def asteroidCollision(self, asteroids: List[int]) -> List[int]:
tasteroids = asteroids
result = []
change = True
while change:
for x in tasteroids:
... | [
"jack.li@eisoo.com"
] | jack.li@eisoo.com |
9762d380a9a390461c021b2987b08810032c0e8b | 602bd2ac3de6f1c2c4a6cd7d3e9382ebefe52f96 | /Jaan.py | d6bb7acbb732c1bbdf59fea8516d4919418bca04 | [] | no_license | KINGJAANMALIK/JAANMALIK | c2e4fa8d39bbd4278a4e26b1bb49b942aa2ce2cc | 1a0b63cb1df90a6f772e6088b799e1bdaac63c3a | refs/heads/master | 2022-12-05T18:04:41.376700 | 2020-08-11T19:36:33 | 2020-08-11T19:36:33 | 286,804,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,654 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | KINGJAANMALIK.noreply@github.com |
2327e451efdb4a8666c843c8a91c238cd40c83c0 | 56169cc42c21baeb0773a11f9dc2d14bc873e094 | /sortowaniee/venv/bin/easy_install-3.6 | 40be963b14b45a1c26c3afd53c4dc64c948e96aa | [] | no_license | PROGRAMMINinGPYTHON/minilogia | cc1842bb1e5a388c6d7c71bb7b8412776c1ed26b | 346b97671a72046d45e1736b11ba360a92f32c6f | refs/heads/master | 2021-07-09T00:47:11.406056 | 2021-03-28T11:19:13 | 2021-03-28T11:19:13 | 234,959,810 | 0 | 0 | null | 2020-03-21T19:07:48 | 2020-01-19T20:19:22 | Python | UTF-8 | Python | false | false | 453 | 6 | #!/home/stas/Desktop/mini_logia/sortowaniee/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__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'(-script\.pyw?|\.e... | [
"59664343+PROGRAMMINinGPYTHON@users.noreply.github.com"
] | 59664343+PROGRAMMINinGPYTHON@users.noreply.github.com |
107740e2f0f2f7e2b70c20c128ca470001ce9a62 | 6beed92ab590a2bff40152cfda89c043f8b164ff | /0608/Animal.py | b7dd79a0759aa55fcda053c308a1729a8690deae | [] | no_license | vulmoss/practice | 201f1f0e8dc0a529af6f4ced3ed65a63f3e4cb74 | a35b72cbf7fba14bb30a2e6c1e66636658b250e4 | refs/heads/master | 2022-02-18T08:43:58.064614 | 2019-09-19T09:26:50 | 2019-09-19T09:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/env python
# coding=utf-8
class Animal():
def run(self):
print('the Animal is running')
class Dog(Animal):
def run(self):
print('thd Dog is running')
def eat(self):
print('The dog eat meal')
class Cat(Animal):
def run(self):
print('the cat is running')
de... | [
"yaokevin1987@gmail.com"
] | yaokevin1987@gmail.com |
5dc37e3678c8d99e94d4438d3183d21b96df9997 | 9c6b4e008d1b8885104c8cb0e58d60688f9a685d | /yaya/python/python/huatu.py | 519a57d92d06a1dac1e8883130d4bb665fd1592e | [] | no_license | JinleiZhao/note | 2c977266175c9096d6e5be93e92433fa5f9d7ff2 | d698b50cd239a079d6d5294fa884ea75f7426996 | refs/heads/master | 2020-03-11T13:34:32.163152 | 2019-11-21T13:35:18 | 2019-11-21T13:35:18 | 130,028,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | digraph abc{
a -> b;
b -> d;
c -> d;
}
| [
"jinlei06@foxmail.com"
] | jinlei06@foxmail.com |
d45a1f2fe70feb6686b5d29bd50a1cdd2fbe5dcc | 9cbacf179d81985b3813dc3370c8176575ee457c | /extract_repetitive_elements.py | 50c53a077b0a608e8469ece3be5adcb35f65bc0d | [] | no_license | hzz0036/extract_RE_fromgenome | 69c24f495c3b42d09c61ea6b989f9ddafcd56c6b | 7babfbea81260c8fdf277fb6d77a1912b83ccc0d | refs/heads/master | 2020-03-24T01:46:36.494218 | 2018-07-25T20:41:43 | 2018-07-25T20:41:43 | 142,351,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # Extract all of the repetitive elements from a genome scaffolds according to the location of each element.
#!/usr/bin/python
import sys
import re
FASTA= sys.argv[1]
RE_file= sys.argv[2]
#fasta = open(r'test.fa.txt', 'U')
fasta= open(FASTA, 'U') # universal newlines mode
fasta_dict= {}
for line in fast... | [
"hzz0036@hopper-login.(none)"
] | hzz0036@hopper-login.(none) |
a9f8f0449a0448d406352fab76d8a7797f373824 | 6863313f17fa69bb324f21b1a8f55cbef12a28eb | /Mean Reversion/meanreversion_strategy_1.py | ba4751004abb955d2e14ecb41d81181da819f220 | [
"MIT"
] | permissive | webclinic017/Mister-Market | 4dc84247f20bbdab96dad81d42eea2ea0ad6c665 | 5022b3684c8fda239ff2c6dfc445ae7eedf9f9a5 | refs/heads/main | 2023-06-23T05:28:02.565166 | 2021-07-27T04:43:26 | 2021-07-27T04:43:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,662 | py | # Importing the libraries
import math
import nsepy
import numpy
import pandas as pd
import sklearn
import importlib
import seaborn as sns
import matplotlib.pyplot as plt
from datetime import date
from scipy.stats import norm
from nsepy import get_history
from matplotlib.pyplot import figure
# Declaring neccessary gl... | [
"arnabaroy@outlook.com"
] | arnabaroy@outlook.com |
c7b1119f2e17232fefd85a261db1140a3847f62e | 9c85d132b2ed8c51f021f42ed9f20652827bca45 | /source/res/scripts/client/gui/shared/gui_items/customization/c11n_items.py | 61bc31e680cc7214b04d3f2dbc684bf2271ae9b3 | [] | no_license | Mododejl/WorldOfTanks-Decompiled | 0f4063150c7148184644768b55a9104647f7e098 | cab1b318a58db1e428811c41efc3af694906ba8f | refs/heads/master | 2020-03-26T18:08:59.843847 | 2018-06-12T05:40:05 | 2018-06-12T05:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,317 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/gui_items/customization/c11n_items.py
import Math
from gui.Scaleform.locale.ITEM_TYPES import ITEM_TYPES
from gui.Scaleform.locale.RES_ICONS import RES_ICONS
from gui.Scaleform.locale.VEHICLE_CUSTOMIZATION import VEHICLE_... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
e57b0830a99f0a76850073f697da70e43720ba17 | f12d5995ea03c904fa706fd021051f29faf53edb | /pysecm/ric/index/__init__.py | f4db98a5e0e2f1b6e8723aa0ce3df1811e9aa836 | [
"MIT"
] | permissive | bostonrwalker/pysecm | 260cb3688255b7eb801355c1d989882aecd7f5ee | 76fa1d537c6f222214d7582d723ea9b9b67c87b9 | refs/heads/master | 2022-12-11T05:05:46.559559 | 2020-09-07T16:58:43 | 2020-09-07T16:58:43 | 293,171,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from .index_ric import IndexRIC
| [
"bostonrwalker@gmail.com"
] | bostonrwalker@gmail.com |
f26c419a8f84627497ddac7284cfc7c5ac205b4d | cd8c68ce6447af84fce96f2fb8c9f011c9950fc8 | /norm_files.py | 1f477811434f0fbba0fb2564e885e5ce2cde1027 | [
"MIT"
] | permissive | jncraton/ipeds-data | 498f58be012833cf8f0ac80238a82c85245541c3 | e17b051bac3d4d112d83a85f38dc1422d4fb584b | refs/heads/master | 2020-03-30T17:22:32.200849 | 2020-01-22T02:43:37 | 2020-01-22T02:43:37 | 151,452,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | """
Normalizes contents for all data files.
- Converts column names to uppercase
- Converts data values to uppercase
- Converts to Unix line endings
- Removes trailing whitespace from all lines
"""
import os
csvs = ['data/' + f for f in os.listdir('data') if f.endswith('.csv')]
for f in csvs:
lf = f.lower()
o... | [
"jncraton@gmail.com"
] | jncraton@gmail.com |
12a39d32430ed59f38dc93de20332541f9a36ff5 | 35cea906bf1ec6f66165a72d02708d3e357f42c0 | /common/models.py | e55cb21d6f3d6b5ad8fbfd9e5bf7c84b2e8e1d0f | [] | no_license | HyunJik-Lee/Betterthannothing | 2c05309f44796c90f91fcdd067ab9d26fed0aa7b | e2fa2ceea7e3c1ba72771c6195fa68c8d7956eee | refs/heads/master | 2023-06-10T03:12:58.195054 | 2021-07-02T08:04:18 | 2021-07-02T08:04:18 | 379,490,297 | 0 | 6 | null | 2021-07-01T10:22:12 | 2021-06-23T05:33:40 | Python | UTF-8 | Python | false | false | 1,195 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.db.models.deletion import CASCADE
import uuid
class User(AbstractUser):
# 기본 User 모델은 username, email, password, last_login 등 제공
# 성별과 마일리지, 레벨, 소개글, 캐릭터 추가
GENDER_MALE = 0
GENDER_FEMALE = 1
GENDER_UNKNOWN... | [
"jiggy0429@gmail.com"
] | jiggy0429@gmail.com |
6f49afff0c429c904dedbd53e6449d4842422037 | f3b7cc17aafa21511eb94534324077e88b943701 | /create_data.py | 700d44f11f486aa7029968a2706f57c44a3bf1ab | [] | no_license | arsenhakobyan/Data_Preparation | e5e7c1a8f25ac887c122c1cd93cde8a4e6761fcf | 52b549d9f9d99a403e3afbc99989d609e6295c5a | refs/heads/master | 2021-05-04T11:03:05.061090 | 2018-01-05T14:02:05 | 2018-01-05T14:02:05 | 45,413,882 | 1 | 0 | null | 2018-01-05T14:02:06 | 2015-11-02T18:35:07 | Python | UTF-8 | Python | false | false | 1,703 | py | #!/usr/bin/env python
# This tool helps to generate training data set of an images croped from the original images.
import cv2
import math
import os
import os.path
import sys
import subprocess
import xml.etree.ElementTree as ET
if sys.argv[1] == "-help":
print ("usage example: ./create_training_data.py <dir_for_... | [
"arsen@fimetech.com"
] | arsen@fimetech.com |
041691e4fbf40bbcf0d56b6963aefb25068d3319 | b4b3238de8b87fef7070b80c1db943d2f29b1055 | /final/main.py | 48e7de15d65ba863a329bdd9c436f5a3cb3524c4 | [] | no_license | nimavakili/Doppelganger | f84b2d4af43848d5ef4095c6f21de545e48bbf9f | 8bbf47efad329cc944f0c101e7db08651ef10577 | refs/heads/master | 2016-09-08T02:42:45.776612 | 2014-11-21T17:23:26 | 2014-11-21T17:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | from helpers import *
BUFFALO = 0
AARHUS = 1
side = BUFFALO ##
aarhusSpeakers = [0+65, 130+65, 260+65, 390+65, 520+65, 650+65, 780+65, 910+65, 1040+65, 1170+65, 1300+65, 1430+65] ## cm
aarhusSensors = [188+65, 297+65, 391+65, 485+65, 586+65, 688+65, 783+65, 883+65, 977+65, 1071+65, 1181+65, 1282+65] ## cm
aarhusTunn... | [
"miNim@arpl-13.ap.buffalo.edu"
] | miNim@arpl-13.ap.buffalo.edu |
69240e74f4667dcc2eca03b64939ad5d07446fa2 | 0ffb18f4d58961ca675d8294eb2154f69061989f | /examples/pipeliner/fastqc_pipeline_example.py | 4a2c7ea0b317b3fd00e841734a13324343f5b38b | [] | no_license | nandr0id/auto_process_ngs | a794e904e6d24b0e0403941b44c884374f95850e | 9b09f20b344d0ee87227e8771a479aa7c04f1837 | refs/heads/master | 2020-06-26T03:23:53.225029 | 2019-06-12T12:11:32 | 2019-06-12T12:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | #!/usr/bin/env python
#
# Example pipeline to run Fastqc on one or more Fastq files
# but ignoring any with zero reads
import os
import argparse
from bcftbx.FASTQFile import nreads
from auto_process_ngs.pipeliner import PipelineTask
from auto_process_ngs.pipeliner import PipelineFunctionTask
from auto_process_ngs.pipe... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
de4d0c6ac188a61b7880ec4da4b12c785ec1c6f3 | b91588cda1a129f06aa9493ee6d6a70e4f996b7f | /Production/python/Summer16/LQToUE_M-950_BetaOne_TuneCUETP8M1_13TeV-pythia8_cff.py | 35e4d425a5c3511644e3d09a9f876c29f68833da | [] | no_license | muzamilahmad/LeptoQuarkTreeMaker | 2371e93589dbe41b02a93a2533cbf5e955aaa0db | 8e7eed0d03c6770a029eafb9b638e82c600a7425 | refs/heads/master | 2021-01-19T01:02:35.749590 | 2018-02-06T17:27:52 | 2018-02-06T17:27:52 | 65,389,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer16MiniAODv... | [
"muzamilphy786@gmail.com"
] | muzamilphy786@gmail.com |
a2213b5bb7dca308281c97a32ac56df0e3accb41 | e9de250a097291af9ee18f912bb3961015080ff2 | /learner/torch/PseudoMLETorchVersion.py | 5fbd6f9a7f94bb61d6d42e19b395de3ffab661fb | [] | no_license | leodd/Relational-Neural-MRF | 3d7f602da247168ae6f81dff9238a92149992c2c | 971160843d61bf9a3ced13f14eb93c4896c9bb48 | refs/heads/master | 2023-08-23T20:29:25.154846 | 2021-10-28T19:27:00 | 2021-10-28T19:27:00 | 230,360,179 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,435 | py | from Graph import *
import numpy as np
import torch
import random
from collections import Counter
from optimization_tools import AdamOptimizer
from utils import save, load, visualize_2d_potential_torch, visualize_1d_potential_torch
import os
import seaborn as sns
class PseudoMLELearner:
def __init__(self, g, trai... | [
"410528518@qq.com"
] | 410528518@qq.com |
e11f4464f4bcb444cd86b8e49fb7298d7f59b6a0 | 0a67ea7b95ed3182a8142cdb4f2e97d5c25268fd | /service-scan-3.x.py | 80f032327878d27d27673b3dd3995ce7f4e20bd5 | [] | no_license | BrainLyh/service-scan | 2e17502ea6afb939442bb89be339ef59172472c6 | 5be2037aa8e883124367b0a197defca218bc4362 | refs/heads/master | 2020-12-05T03:58:07.974570 | 2020-01-06T02:07:41 | 2020-01-06T02:07:41 | 232,003,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,199 | py | import pymysql
import socket
import time
from datetime import datetime
from multiprocessing.dummy import Pool as ThreadPool
from ftplib import FTP
# 测试目标端口开放情况
save_path = "./result.txt"
ip_list = []
with open('iprange.txt', 'rb') as f:
for line in f.readlines():
ip_list.append(line.strip())
def port_sc... | [
"noreply@github.com"
] | BrainLyh.noreply@github.com |
613fefd8380bf4435858fd0857c0dfb569fafb41 | 1dfba6d8c60a534d6bdeb985697fba913da5fe9b | /src/mceditlib/bench/time_loadsave.py | 52fb8a10945703382abccd3848abbce13e03efe2 | [
"BSD-3-Clause"
] | permissive | shipbiulder101/mcedit2 | 2d88a6933bac3010f5bedcdd65d542587841a19f | 44179472b7834c803da243a82d731f9ef555764d | refs/heads/master | 2021-01-12T21:52:56.581572 | 2015-10-20T21:30:34 | 2015-10-20T21:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | """
time_loadall
"""
from __future__ import absolute_import, division, print_function
import logging
import timeit
from mceditlib.test import templevel
import gc
log = logging.getLogger(__name__)
def loadall():
ents = 0
for cPos in pos[cStart:cEnd]:
chunk = dim.getChunk(*cPos)
ents += len(c... | [
"codewarrior@hawaii.rr.com"
] | codewarrior@hawaii.rr.com |
358d90cae4b02c3a2bfdc2705e245c5cf7724a73 | 6cc25605d1942cbf0bae41f8547934e950ecf3c8 | /detect-from-images.py | efb1211c5a21884761cb21c5b94ef765297ff380 | [] | no_license | JMDTol/Pedestrian-Detection-using-Video-Stream | 4c4328f453c94591a746c862b1acd0fd19447f4a | 8af71b425d627c35f0a52ec4c18c541e30115374 | refs/heads/master | 2021-09-04T18:35:58.229016 | 2018-01-21T03:11:52 | 2018-01-21T03:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | # USAGE
# python detect-image.py --images test
# import the necessary packages
from __future__ import print_function
from imutils.object_detection import non_max_suppression
from imutils import paths
import numpy as np
import argparse
import imutils
import cv2
# construct the argument parse and parse the arguments
ap... | [
"ahmad.ali.abdilah@gmail.com"
] | ahmad.ali.abdilah@gmail.com |
b1a813aef6ba473bea7a5c2fd78a298593eb2d7a | cb70b467312f2fb8f8415bac03476d207acb990d | /study_case/crawler_7x24_study3.py | fe7a0ea1a66fd9f850e00e2ec518e92fe0c5fcf8 | [] | no_license | eddiewang-wgq/python-interface | ded532dbad1dc943420823e91ba5f00637fa978e | d232cfc3a7ffc27f8f186d577265bc93e89b9b54 | refs/heads/master | 2023-03-27T00:52:50.018082 | 2021-03-30T07:53:08 | 2021-03-30T07:53:08 | 352,916,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | # !/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@Author : pgsheng
@Time : 2018/8/13 9:31
"""
import sys
import time
import pandas
from PyQt5.QtCore import QUrl
from PyQt5.QtWebEngineWidgets import QWebEnginePage
from PyQt5.QtWidgets import QApplication
from bs4 import BeautifulSoup
from public import config
c... | [
"2568080700@qq.com"
] | 2568080700@qq.com |
a63e5392c77c44efb38492a70d95c6dfa7e974e7 | 885404aa969841369b9617c8fad0ac5c1dad555a | /sshmonitor/tests.py | 70619ca9ee1e3955fbe456a501873e05b3d6c71a | [] | no_license | meyerjo/ClusterJobMonitor | 66262994561d700b0f7f45ff0729935ae4ce2612 | 24cd87d90e626f8be67fc432f35dce7233ee8965 | refs/heads/master | 2021-01-21T04:44:26.537933 | 2016-06-12T16:37:44 | 2016-06-12T16:37:44 | 53,283,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import unittest
from pyramid import testing
class ViewTests(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def test_my_view(self):
from .views import my_view
request = testing.DummyRequest()
info = my_vie... | [
"meyerjo@informatik.uni-freiburg.de"
] | meyerjo@informatik.uni-freiburg.de |
b0d16eb562e21a82097a113150a457e185e4f5c0 | d55f30ef56f7bae881a721232b307e5182c2c477 | /migrations/versions/c17650a89261_.py | 399f4d0ddf43cf42dc8c045bc68617f1dc86150d | [] | no_license | saubbie23/belt | 0daef57547f75fdbe3ef8eb92cfa3fd38eef075a | 29314eebb26028aaadfe572b8e5b2c299c339839 | refs/heads/master | 2020-05-16T14:39:51.932681 | 2019-04-23T23:26:44 | 2019-04-23T23:26:44 | 183,110,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | """empty message
Revision ID: c17650a89261
Revises: dda8f2e84674
Create Date: 2019-04-23 18:06:19.829883
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c17650a89261'
down_revision = 'dda8f2e84674'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"aubuchon37@gmail.com"
] | aubuchon37@gmail.com |
36c299456974514ce63ca5ad0a30a6deb5316604 | 1c5a025d8a1689970d6655e164bb558584a1cc3b | /process_rawdata.py | a80543edbba8936b23b09051c335658c2e75401f | [] | no_license | drogen120/RawDataProcess | 675f470c5a1e4e236ff862e4d5897907dce2882b | de518c38f68b3f4dfafaa009b76720e58c256153 | refs/heads/master | 2021-01-15T22:39:24.793676 | 2017-08-10T09:18:17 | 2017-08-10T09:18:17 | 99,904,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | import cv2
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
from numpy.linalg import inv
def wbmask(m, n, wbmults, align):
colormask = wbmults[1] * np.ones((m,n), np.float32)
if align == 'rggb':
colormask[0::2,0::2] = wbmults[0]
colormask[1::2,1::2] = wbmults[2]
elif... | [
"wangqianlong120@gmail.com"
] | wangqianlong120@gmail.com |
37617caf7b26e4fac3e19e04f61478fd628ee5f7 | 2b41d4bf97d407ed6668291388e0cfe84c10f99a | /apps/mmfile/__init__.py | 90647105568695cea7d6e7306a0dad8005badaa4 | [] | no_license | zhangchunlin/mmscope | d8e40d7b052bb2974aa5e7e981710e7463d46406 | 348f9ebc4a4f676cb808a446316a1cb14159c102 | refs/heads/master | 2021-09-08T19:46:11.211214 | 2021-09-01T14:43:05 | 2021-09-01T14:43:05 | 132,072,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,635 | py | #coding=utf-8
import os
import platform
import hashlib
import logging
import time
from pickle import dumps as pickle_dumps, loads as pickle_loads
from datetime import datetime
from sqlalchemy.sql import and_
import gevent
from PIL import Image
from uliweb import settings
from uliweb.utils._compat import text_type
log... | [
"zhangchunlin@gmail.com"
] | zhangchunlin@gmail.com |
91de258357da03040a37deec4cce1b055beea036 | 4ce94e6fdfb55a889a0e7c4788fa95d2649f7bca | /User/apps/logreg/urls.py | 13f5528d4db332284dfc1f9219fa72fb983eed21 | [] | no_license | HaochengYang/Django-class-assignment | 4018d8eb0619a99ebe8c3e47346d29934aafc66b | cb8f920f432209f88c810407ca646ee7dec82e22 | refs/heads/master | 2021-06-08T20:05:22.876794 | 2016-12-19T23:39:22 | 2016-12-19T23:39:22 | 75,032,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.index, name="index"),
url(r'^register$',views.register, name="register"),
url(r'^login$',views.login, name="login"),
url(r'^main$',views.main, name="main"),
url(r'^logout$',views.logout, name="logout")
]
| [
"haocheng0906@gmail.com"
] | haocheng0906@gmail.com |
7929f42fee71cd4a6aa8f0d4abc358df8c6c003e | b6ad13b41ebce02a89928eda10f6709fa272cd36 | /SchedulerHelperMethods.py | 30cf106e7a256712f42fdc809e9bce15eaad916d | [] | no_license | evinceng/exposureMeterToShare | aec5a7fa303341c7eb686394c2a721e8bc5ecb7f | ab71a263651487ff89bd18c4d9ee7c94bb1e00af | refs/heads/master | 2020-03-20T08:59:28.007842 | 2018-06-14T08:01:45 | 2018-06-14T08:01:45 | 136,161,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,397 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 24 14:57:45 2018
@author: evin
"""
import os
from datetime import datetime
from pydispatch import dispatcher
from EventType import EventType
import logging
import Questionnaire
from pygame import mixer # Load the required library
import inspect
import Database
from coll... | [
"aslan.evin@gmail.com"
] | aslan.evin@gmail.com |
a5c303c67c7616999fea0538e5cd659a809d73ab | 205ff70495217826bf9bf154e4e537419bc3c918 | /HackerRank_Climbing_the_leaderBoard/.history/alice_20191021203727.py | b7298e7331e5c90d252a560eee14d2f2cd7dfcaf | [] | no_license | sadegh-babapour/AlgorithmzSolutios | f841b72c9b6cc8cfd6441e99f25ae76766d8a1e3 | 7ace5528ae504dc837c9968d3505d73444dffce1 | refs/heads/master | 2020-08-21T06:56:15.889121 | 2019-11-24T22:15:11 | 2019-11-24T22:15:11 | 216,108,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | import math
import os
import random
import re
import sys
def climbingLeaderboard(scores, alice):
alice_ranks = []
for alice_score in alice:
for i, player_score in enumerate(scores):
rank = 0
if (player_score > alice_score and i == 0):
rank += 1
elif ... | [
"sam.bp.1988@gmail.com"
] | sam.bp.1988@gmail.com |
a0b7840f8e31a40c5470899592e6690d84c9efb5 | d2e71300b36e6686719ce609469e699ea87ac4bc | /metagrok/games/test_tictactoe.py | 78a0f5812773f96e5feff42aa0ba87b7e25e0bb6 | [
"MIT"
] | permissive | yuzeh/metagrok | 42ff22e69c8172fb19fb1a2aa14f57cb2b2556ff | 27f71441653611de939f1fe43e7aee6a7cdf1981 | refs/heads/master | 2020-06-05T23:04:53.058303 | 2019-09-18T13:58:43 | 2019-09-18T13:58:43 | 192,569,074 | 27 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,234 | py | import unittest
from metagrok.games.tictactoe import Game
class SequencePlayer(object):
def __init__(self, seq):
self._seq = seq
self._idx = 0
def update(self, opcode, data):
if opcode == 'end':
self.result = data
def action(self):
action = self._seq[self._idx]
self._idx += 1
ret... | [
"github@yuzeh.com"
] | github@yuzeh.com |
cd114c83b9966d2daf5cee241b255c9ac3014f68 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fabric/rstofabricpaths.py | 0659e77a7c7208ae475bd9c3100f3f18424e752b | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 9,325 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
6f20ea4026405a9598e5facc2c46b3e34bc3f1db | 80579d5cf31edd31750b644d6eb46a2b29ff4972 | /CandidateApp/migrations/0004_auto_20191104_0734.py | 392e3a7ab7e8e002f5e272f8bbfeb223b6a9d073 | [] | no_license | Nigar-mr/Vacancies | fb2935202488d957a4cccece0ac68a3ec052aa87 | a8c4605e66cb4cf425abd6565b265df5b458e26d | refs/heads/master | 2023-01-27T11:36:32.836172 | 2020-12-02T14:41:50 | 2020-12-02T14:41:50 | 317,890,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # Generated by Django 2.2.6 on 2019-11-04 07:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('CandidateApp', '0003_citymodel_countrymodel'),
]
operations = [
migrations.RemoveField(
model_n... | [
"muradlinigar@gmail.com"
] | muradlinigar@gmail.com |
2cd75d5d3386369578cce46cf97a8093935871de | ac461875baac1fdd306d6ed4b7df493bc5df21eb | /CiscoTropoSendSMS_v7 | 97a8fc65f0e0f23e1c82add43399fb9b81825a18 | [] | no_license | CiscoDoBrasil/Python-Programs-for-Cisco-APIs | 03d48ed9168fb73b3e0dbd90b00de60a6444e4fe | 6c47748e73a79c2f8ed3f70d8f0d3b50bf549120 | refs/heads/master | 2021-01-19T01:48:37.788506 | 2016-06-20T20:50:42 | 2016-06-20T20:50:42 | 61,578,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | #!/usr/bin/python
# -*- coding: cp1252 -*-
import requests
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()
import time
import csv
import os, sys
# Function to Send the SMS to the People on the smsusers.csv file
def sendme( customerNames, numberToDials, alarmLocation ):
url = ... | [
"noreply@github.com"
] | CiscoDoBrasil.noreply@github.com | |
bf643a7a27447d15f1d74490504b8f5699958481 | 47c7549e5f2de8893bf2113e8f50d1562d981614 | /service lane hackerrank | 297b6441da13d0c45ba1e38a021c590da306e18e | [] | no_license | shantanusl15150/Hackerrank-Solutions-in-Python | 0d50eef35fe8c56f742b47e445e537692ee4f854 | 4cf04746b0be79b9fb18b8e583c224afd372e9a2 | refs/heads/master | 2022-12-30T10:04:24.730316 | 2020-10-20T06:02:09 | 2020-10-20T06:02:09 | 294,696,637 | 1 | 0 | null | 2020-09-11T13:04:49 | 2020-09-11T13:02:03 | null | UTF-8 | Python | false | false | 665 | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the serviceLane function below.
def serviceLane(n, cases):
result = []
for i in cases:
result.append(min(width[i[0]:i[1] + 1]))
return result
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w'... | [
"noreply@github.com"
] | shantanusl15150.noreply@github.com | |
ba6a10edb9830a39009bee9ba0cc75451678036a | 5fac8d09c3de4bfb86c6522873a7a68d9b42c3bb | /manage.py | 44e68760be335b6dda8a416d1176d7d62bd5540c | [] | no_license | LAladder/ceshi | 76a77c72cc6d6db66f0e8cba632f029d2ae0e68c | 218c9f18acffe0d6d85033bb18fa0d1f3d690d12 | refs/heads/master | 2020-04-29T07:30:27.750662 | 2019-03-16T10:07:46 | 2019-03-16T10:07:46 | 175,955,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crm_.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"guiwanli95@gmail.com"
] | guiwanli95@gmail.com |
b207757f438be172d38018eac13981d98905a6a4 | c22f7d3b6af3d813fd8607c82a98f6e8ff9f934d | /M6T2_WilliamsAaron.py | 141ce7156891b9beb966256291aff7a6e0a75f63 | [] | no_license | Williama0558/cti110 | 12e606444a59658c754db92befa1b17e54797ff0 | f5439703342087f8dba45e71623e169a2b8fb56a | refs/heads/master | 2021-05-16T10:59:25.916675 | 2017-12-12T00:59:55 | 2017-12-12T00:59:55 | 104,895,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #CTI-110
#M6T2 - Feet to Inches Converter
#Aaron Williams
#11/14/2017
#This programs converts feet to inches.
#Constant used to convert feet to inches.
INCH_CONVERTER = 12
def main():
#Asks user for a distance in feet.
feet = float(input('Please enter a distance in feet: '))
conversion(feet)... | [
"noreply@github.com"
] | Williama0558.noreply@github.com |
8644cb81bf0fcfd6f2c5b8dbf1b318cdfb99784c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_370/ch120_2020_04_01_03_35_57_135848.py | 9d294a0499ab557c0f53778c9d2f27dd6b98aebe | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import random
dinheiro = 100
while dinheiro > 0:
print (dinheiro)
aposta= int(input("Quanto voce quer apostar? "))
if aposta != 0:
n_ou_p=input("Voce quer apostar em um numero (n) ou paridade(p)? ")
if n_ou_p == "n":
numero=int(input("Escolha um numero entre 1 e 36: "))
... | [
"you@example.com"
] | you@example.com |
0ecd1fe87ede48fb67a3f78ddd1b51df788584e5 | 74e47e8e9abc316590d735c660b7b69c38863235 | /example/training/tensorflow2-cifar/models/alexnet.py | 7a162fc4d2a645a73a55fdeb36a75c4effdacb1a | [
"Apache-2.0"
] | permissive | anandj91/tensorflow | 33f80abf8d7c6b7e6f29365a48ecd2453b11b5aa | dca12f7cd1e98e113c7494a4d6edb01d4f511e22 | refs/heads/master | 2022-10-25T22:49:29.159368 | 2022-09-27T22:29:52 | 2022-09-27T22:29:52 | 197,257,249 | 0 | 0 | Apache-2.0 | 2021-05-20T21:44:05 | 2019-07-16T19:43:22 | C++ | UTF-8 | Python | false | false | 1,853 | py | '''
AlexNet in TensorFlow2.
Reference:
[1] Krizhevsky, Alex, Ilya Sutskever, and Geoffrey E. Hinton.
"Imagenet classification with deep convolutional neural networks."
Advances in neural information processing systems 25 (2012): 1097-1105.
'''
import tensorflow as tf
from tensorflow.keras import layers
clas... | [
"32458106+serach24@users.noreply.github.com"
] | 32458106+serach24@users.noreply.github.com |
3f2f6fbc0481c2d636f6942ed89673e7e7f6161e | 32b769cab585de6800a491f5b2f1fadd6d2aba0c | /backend/app/resources/forms.py | a141826e50bf31ccce0b35430dd8cf1246461178 | [] | no_license | guoxingx/gxblog | e5a59c43ad58075fba58614e5fddf878b2d37071 | bd580f9dd2c97bdea183f83ef7ca57723926c64b | refs/heads/master | 2020-03-12T18:27:54.148119 | 2018-06-19T17:48:02 | 2018-06-19T17:48:02 | 130,760,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py |
from flask_wtf import FlaskForm
from wtforms import StringField, FloatField
from wtforms.validators import DataRequired
class BetOnEtherCreateForm(FlaskForm):
home = StringField('home', validators=[DataRequired()])
visiting = StringField('visiting', validators=[DataRequired()])
opening_time = StringFiel... | [
"3064793912@qq.com"
] | 3064793912@qq.com |
7a39118e0f167f072d6c15e7eff6fc1a9ecc00f7 | 61638e7978f3ad79a1c63df9a5dd5cefb8379134 | /proxy.py | bdbd4a3cc579b6220fe2b6824bd1e861d5730df0 | [] | no_license | tiger-00/cheker_proxy | 0133629de4ba461882c75f24939a4088cf4c70f3 | 5b87cb2a8bfcdb3c8784e60b77229818dbe8cad5 | refs/heads/main | 2023-02-01T23:54:25.624399 | 2020-12-22T13:51:19 | 2020-12-22T13:51:19 | 323,638,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | import random
import requests
import threading
from time import sleep
print("Developer :mounir AL bdullha 👨🏻💻")
print("snapchat:ar5824")
fill = input("put file proxy:")
def pro():
try:
proxy = open(fill, 'r').read().splitlines()
proxylist = []
for prox in proxy:
... | [
"noreply@github.com"
] | tiger-00.noreply@github.com |
a7036727702187f9a453abac487548e362300ef5 | f40bf1e1c0ee174d95bae80319ff81e3f7a301d0 | /src/entities/region.py | 88df3837439c651aa8cbdd26a7b594def6e94c11 | [] | no_license | ljvannoo/delvernmud | db31a0bb9c33a62dedf326955838399f7e8399e3 | d848d7249f35ee19e0dba9f366e46444aeff7e5d | refs/heads/master | 2021-10-14T15:39:05.138360 | 2019-02-05T03:40:35 | 2019-02-05T03:40:35 | 137,833,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from mongoengine import Document, StringField, ListField, ObjectIdField, IntField
import src.entities.entity as entity
class Region(
entity.LogicEntity,
entity.HasData,
entity.HasCharacters,
entity.HasItems,
entity.HasRooms,
entity.HasPortals):
def __init__(self, *args, **kwargs):
super(... | [
"lukas.vannoord@gmail.com"
] | lukas.vannoord@gmail.com |
4445c4437b3365ae0e73e459d55783e940cf29bf | 95cf98bd7484d037dccb7f92659f8c2575f40556 | /weatherObservations.py | 427fab2867648819ad3a671104e30d5991ccbc0f | [] | no_license | jermainlaforce/channel3 | 34d2892da10e7d17db9434651d189870dce511fa | 95db97313cc24476d3a0445df020415d38ca2254 | refs/heads/master | 2022-04-17T05:57:18.023468 | 2020-04-16T10:22:05 | 2020-04-16T10:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | rom setup import *
import os
import urllib.request
import xml.etree.ElementTree as ET
import xmltodict
## Download weather XML file from NWS, change location code in setup.py
def loadWeather():
try:
os.remove('weatherObservations.xml')
urllib.request.urlretrieve(weatherObservationURL, '... | [
"dolfin@gmail.com"
] | dolfin@gmail.com |
14f11d1880106ac0cea4729fca3d4e4634e95dbd | a7e9dd8ad69a8e21803ebd228673f694b94b7fc6 | /2017/Day 4/Part 1/main.py | ac2e9a6beb64ac963416f63e1306286d87765762 | [] | no_license | thekabaro/Advent-of-Code | d54db9e709410a3aa3056059521a95c95bf0862c | ee6e970c463249c5b13b7b4be0dc6a4d61309f80 | refs/heads/master | 2020-07-25T02:55:31.801375 | 2019-09-20T22:34:06 | 2019-09-20T22:34:06 | 208,142,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | myFile = open("../input.txt", "r")
total = 0
for line in myFile:
clear = True
line = line.strip()
words = line.split()
for i in range(len(words)):
for j in range(len(words)):
if (j > i and words[i] == words[j]):
clear = False
if (clear):
total += 1
print(t... | [
"thekabaro@gmail.com"
] | thekabaro@gmail.com |
a616047134756ed93653e3641eeadb7056c6d93e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/permutations_20200723155542.py | 0a2cb82160de953b2379765e3b9c3fe802252d19 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | def perm(arr):
# sort the array
if len(arr) == 0:
return 0
else:
arr.sort()
perm = set(arr)
maxValue = max(arr)
if len(perm) == maxValue:
return 1
eli:
print(perm([1,1,1])) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
6fb7b4c0f1f3aaa4ff072d35062629e31bbb8707 | bad6ba1cc6b01e423a95f25f55933fcd5c9475d5 | /src/model/inceptionUnet.py | a9f8375e90515886e17b4bbb4809ba1ea59d4d46 | [] | no_license | MaxenceLarose/GLO-4030-7030-DL-Project | 53fe5ba0befcd13a6c690c2947cb15fdd0cf7d89 | 22b8e2c2d95b5969edf75e77c9ab1cadcb182df5 | refs/heads/main | 2023-05-07T22:41:00.527588 | 2021-06-01T18:30:35 | 2021-06-01T18:30:35 | 348,068,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,753 | py | import torch
from torch import nn
class VGGBlock(nn.Module):
def __init__(self, in_channels, middle_channels, out_channels, kernel_size=3, batch_norm_momentum=0.1):
super().__init__()
self.relu = nn.LeakyReLU(inplace=True)
self.conv1 = nn.Conv2d(in_channels, middle_channels, kernel_size=kernel_size, padding=1)
... | [
"BeCe3010@domain_chuq.reg03.rtss.qc.ca"
] | BeCe3010@domain_chuq.reg03.rtss.qc.ca |
b2465b0a106029e03744dcec97325d8d8c6df2cb | 505a9364edae5fe3fdb165dd7b1592cc63755255 | /10_frequency/frequency.py | acfea09eb4db53024d4cd87052f0d0385b1845ad | [] | no_license | vrussillo/python-ds-practice | 6dcebaf205fda8616e049e86fd16938e0a1a625e | 1bafc5e20d32d303baa84ee896fdf9acfed9a27e | refs/heads/main | 2023-06-23T22:51:16.126025 | 2021-07-28T23:18:12 | 2021-07-28T23:18:12 | 390,535,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | def frequency(lst, search_term):
"""Return frequency of term in lst.
>>> frequency([1, 4, 3, 4, 4], 4)
3
>>> frequency([1, 4, 3], 7)
0
"""
index_counter = lst.count(search_term)
return index_counter | [
"80196694+vrussillo@users.noreply.github.com"
] | 80196694+vrussillo@users.noreply.github.com |
c2a7b8bd8ed8c4e5ae34e9eeea91aec3c5d466d1 | 8578bf2218c5ff0842f21f5ce1d6b0b8a2ef9ec3 | /venv/Scripts/pip3-script.py | 64cc46ddbde8c1bdb43c634715e6a420e411ccdc | [] | no_license | amoghkalyanshetti/GeeksForGeeks-Practice-Solutions-Python | b9ea9c1c8d7c669ab2b8bb9e63ffe301c4e63257 | 644c71668e2638af928873b2fd4a01e051f8fe5c | refs/heads/master | 2020-04-10T11:36:48.344765 | 2018-12-09T02:55:55 | 2018-12-09T02:55:55 | 160,998,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!"C:\Users\amogh\PycharmProjects\GeeksForGeeks Practice Solutions\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?... | [
"amoghkalyanshetti@gmail.com"
] | amoghkalyanshetti@gmail.com |
bffb93f11e2d156068446b36e4f0a07a925befaa | 9efe98cd4e2c4b23230ba8af2b98609b0a8654a5 | /articles/urls.py | cc4823f2d18d59695b2fe6aa45fc3bc87e971e07 | [] | no_license | Jordan-Rob/django-news | f0855d10f9056ad491d90d9086284ed3de468227 | fc73862274522a16530d2fd3497d6e90b7b109c2 | refs/heads/master | 2021-09-25T11:37:50.529863 | 2020-02-26T13:50:42 | 2020-02-26T13:50:42 | 241,844,795 | 1 | 0 | null | 2021-09-22T18:45:20 | 2020-02-20T09:34:47 | Python | UTF-8 | Python | false | false | 551 | py | from django.urls import path
from .views import (
ArticleListView,
ArticleCreateView,
ArticleDeleteView,
ArticleDetailView,
ArticleUpdateView,
)
urlpatterns = [
path('', ArticleListView.as_view(), name='article_list'),
path('new/', ArticleCreateView.as_view(), name='article_new'),
pat... | [
"jordanrob709@gmail.com"
] | jordanrob709@gmail.com |
421c7df8c51d2a23bca7d546d4fb6919cd98646d | 2c74e0a5f0459cb03cb510711d7ce7677d036c18 | /bin/create_ipsec_conf | 0f0fdf7a88fbdaf5ea20da36afca76b593ab7237 | [] | no_license | Tubbz-alt/secure_ros_tools | 9a22e699920d1c2503918b671d00740b3d3e53c6 | 2f3287703920174729de739e09e4ca067f4d2d5e | refs/heads/master | 2021-06-25T13:55:14.644284 | 2017-08-30T19:44:30 | 2017-08-30T19:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2017, SRI International
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code m... | [
"aravind@ai.sri.com"
] | aravind@ai.sri.com | |
82e203e7765873e866d53104c46d6c8e98aa7857 | 8f112426cb1154bd7a75b7a4d43aa4740b8f600c | /demo.py | 57b486b019cfc77a7e32cd7d8c9b2187572fe544 | [] | no_license | yeyeye777/toususina | b77968718e10cb194d3351ea60a99ba3d9528768 | cb57a67bdf34d0779c6fbed796716c243e79cc79 | refs/heads/main | 2023-06-22T19:21:00.322075 | 2023-06-12T05:46:40 | 2023-06-12T05:46:40 | 364,834,231 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import time
import random
import hashlib
import json
sha256=hashlib.sha256()
c=str(int(time.time() * 1000)) #13位时间戳
a = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C",... | [
"noreply@github.com"
] | yeyeye777.noreply@github.com |
416202ebf4e2747dd2056cfbbefa57616e96e4e9 | ec8d11121b6bdda9e7927365e49b1c4a5242bd9c | /src/sr_factory/sr_method_factory.py | a57a76d9361f96a1b407e98b26b5204e80ab6f61 | [] | no_license | ivarshav/SRLab | cb3ff22e91669e6a062b4a73f6b179200430b618 | 7cdc546cb17ae9e9e0f495f439ecce527253c23f | refs/heads/master | 2021-05-15T13:16:25.665337 | 2018-05-07T11:00:33 | 2018-05-07T13:10:12 | 106,411,443 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from sr_method.iccv09 import ICCV09
from sr_exception.sr_exception import SRException
class SRMethodFactory(object):
@classmethod
def create_method(cls, method_type):
"""Create a SR method object.
@param type: type of SR method
@type method_type: str
@return: an instance of SR... | [
"inbvar@gmail.com"
] | inbvar@gmail.com |
4e41708c351fee9a7c63120d04ebf8b6b7dcd013 | 057b97ef719c6b13121e4cb28caf55fe75358620 | /minggu-03/praktik/src/listcomprehensions.py | 4fd213d494525d0edda7d2302a47f025b915b97d | [] | no_license | rodesta2212/bigdata | 3dc209a3b7b84291c82d99be31952141bd3f6f16 | 06c9761e03771664d75fdf4c2c8ff094611f9e56 | refs/heads/master | 2020-03-28T15:34:46.306985 | 2019-01-07T14:53:08 | 2019-01-07T14:53:08 | 148,607,540 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | squares = []
for x in range(10):
squares.append(x**2)
print squares
print [(x, y) for x in [1,2,3] for y in [3,1,4] if x != y]
combs = []
for x in [1,2,3]:
for y in [3,1,4]:
if x != y:
combs.append((x, y))
print combs
from math import pi
[str(round(pi, i)) for i in range(1, 6)] | [
"rodesta2212@gmail.com"
] | rodesta2212@gmail.com |
29a81e6881db1268d23434dc6980737b6eb640d4 | 52855d750ccd5f2a89e960a2cd03365a3daf4959 | /ABC/ABC102_A.py | 5b3e4fd37e2243daff35ceda1216e174bf71c576 | [] | no_license | takuwaaan/Atcoder_Study | b15d4f3d15d48abb06895d5938bf8ab53fb73c08 | 6fd772c09c7816d147abdc50669ec2bbc1bc4a57 | refs/heads/master | 2021-03-10T18:56:04.416805 | 2020-03-30T22:36:49 | 2020-03-30T22:36:49 | 246,477,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # 最大公約数
def gcd(a, b):
while b != 0:
a, b = b, a % b
return a
# 最小公倍数
def lcm(a, b):
return a * b // gcd(a, b)
N = int(input())
print(lcm(2, N))
| [
"takutotakuwan@gmail.com"
] | takutotakuwan@gmail.com |
6d3aa231cfaf1a601049852cfd75a2b99f12a31e | 01903cf9f510d9fe893a042a4d3dd4c027d3ecb7 | /prototyping/keyboardTest.py | c65c5e0e4015f07ea0876b5ba48eebcb1aa02782 | [] | no_license | EvanBrown96/JayBotsDT | 3371609d8b0bd48a7cba44b6759186a7726cd914 | 31bd8b7d66b56206e5f896835e3c2cf5af995afa | refs/heads/master | 2022-12-11T22:25:04.404435 | 2020-05-27T12:29:19 | 2020-05-27T12:29:19 | 238,026,350 | 1 | 0 | null | 2022-12-08T10:15:38 | 2020-02-03T17:53:44 | Python | UTF-8 | Python | false | false | 1,790 | py | from gpiozero import DigitalOutputDevice, PWMOutputDevice
import curses
left_fwd = DigitalOutputDevice(20)
left_bck = DigitalOutputDevice(21)
left_spd = PWMOutputDevice(12, frequency=500)
right_fwd = DigitalOutputDevice(5)
right_bck = DigitalOutputDevice(6)
right_spd = PWMOutputDevice(13, frequency=500)
c... | [
"noreply@github.com"
] | EvanBrown96.noreply@github.com |
8579c92447a21ce7b508108375db792656afff0a | 7357d367b0af4650ccc5b783b7a59090fdde47bb | /library/k8s_v1_config_map.py | f1f041f9632980fdd20118debaac00931c8b2207 | [
"MIT"
] | permissive | BarracudaPff/code-golf-data-python | fb0cfc74d1777c4246d56a5db8525432bf37ab1a | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | refs/heads/main | 2023-05-29T05:52:22.856551 | 2020-05-23T22:12:48 | 2020-05-23T22:12:48 | 378,832,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,574 | py | DOCUMENTATION = """
module: k8s_v1_config_map
short_description: Kubernetes ConfigMap
description:
- Manage the lifecycle of a config_map object. Supports check mode, and attempts to
to be idempotent.
version_added: 2.3.0
author: OpenShift (@openshift)
options:
annotations:
description:
- Annotations is an ... | [
"sokolov.yas@gmail.com"
] | sokolov.yas@gmail.com |
6b7f37d2fd1de90aaddae7a91b5ac1259183df26 | ab092c8d031ff38c16e6dd0d14c61b6474a34929 | /switcher.py | 3fb3b6844f5c6c5fad259b1a2b200bb01db538af | [
"MIT"
] | permissive | boiledfroginthewell/windowswitcher | 0e4fa44fb6a6109fc1b1544be0888ddc16f1c6dd | 8da870146c43fd610a1839e742976f52171e8aec | refs/heads/master | 2020-12-24T18:55:17.525040 | 2017-03-31T12:15:41 | 2017-03-31T12:15:41 | 58,038,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,403 | py | #!/usr/bin/env python
# vim: fileencoding=utf-8
# Note
# only one-letter labels are supported
# Currently only one-letter label is supported, since the event handeler
# accept only one letter.
import gtk
import wnck
import pango
import sys
# Window name for this program.
# This name should be different from the oth... | [
"boiledfroginthewell@users.noreply.github.com"
] | boiledfroginthewell@users.noreply.github.com |
20d466c872a9e9cc3e8c0d6993541a1ee769c0e9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_dissed.py | bfd39eb88b44f035eafe50cb7e30ebacde72a66b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.verbs._diss import _DISS
#calss header
class _DISSED(_DISS, ):
def __init__(self,):
_DISS.__init__(self)
self.name = "DISSED"
self.specie = 'verbs'
self.basic = "diss"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.