blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37ea7ab064e4996dca287d814428daa3078abc0a | aa4b80cf7e7ac0028d0c7f67ade982d9b740a38b | /python/touple/touple_t.py | 9137b51f9f319510cd7c35b7e666637c5b9bd7b2 | [] | no_license | ratularora/python_code | 9ac82492b8dc2e0bc2d96ba6df6fdc9f8752d322 | ddce847ba338a41b0b2fea8a36d49a61aa0a5b13 | refs/heads/master | 2021-01-19T04:34:22.038909 | 2017-09-27T08:14:45 | 2017-09-27T08:14:45 | 84,435,244 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py |
aList = [123, 'xyz', 'zara', 'abc'];
aTuple = tuple(aList)
print "Tuple elements : ", aTuple
aTuple.append('effd')
print aTuple
| [
"arora.ratul@gmail.com"
] | arora.ratul@gmail.com |
0498e3544e187420ab7cacac12ad7fd5a5fb2a9c | f908adce7e25824f7daaffddfaacb2a18b3e721b | /feder/letters/logs/migrations/0002_auto_20170820_1447.py | 4a5853834afff5e659b5fc69e8d1aaf1bbcfd885 | [
"MIT"
] | permissive | miklobit/feder | 7c0cfdbcb0796f8eb66fd67fa4dabddb99370a7c | 14a59e181a18af5b625ccdcbd892c3b886a8d97e | refs/heads/master | 2023-01-13T23:03:51.266990 | 2020-11-12T14:31:52 | 2020-11-12T15:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | # Generated by Django 1.11.4 on 2017-08-20 14:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("logs", "0001_initial")]
operations = [
migrations.AddField(
model_name="emaillog",
name="status",
field=models.CharF... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
16cea51f52ae930ff0c9d3a383497d26d391b856 | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_video/mmaction2/mmaction/datasets/rawframe_dataset.py | 9359e117b7f52bc234b0e389de0b731e96c9e8db | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 7,927 | py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import os.path as osp
import torch
from mmaction.datasets.pipelines import Resize
from .base import BaseDataset
from .builder import DATASETS
@DATASETS.register_module()
class RawframeDataset(BaseDataset):
"""Rawframe dataset for action recognition.
... | [
"caixiaochen@4ParadigmdeMacBook-Pro.local"
] | caixiaochen@4ParadigmdeMacBook-Pro.local |
1bc8f879513747c4fcd355558feb0b1ee673f864 | c11cd1d6a99eafa740c3aa6d9a9e90d622af9630 | /examples/ConvolutionalPoseMachines/load-cpm.py | b8999c203ea53bde85e9ba5e4158f11b1413ecf9 | [
"Apache-2.0"
] | permissive | bzhong2/tensorpack | 0c06e45ed2357cedd0d459511a2c85a07b522d2c | 0202038159fda7aa4baa2e249903b929949e0976 | refs/heads/master | 2021-07-02T19:05:10.948197 | 2017-09-24T09:47:13 | 2017-09-24T09:47:13 | 105,573,277 | 1 | 0 | null | 2017-10-02T19:02:49 | 2017-10-02T19:02:48 | null | UTF-8 | Python | false | false | 4,599 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: load-cpm.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import cv2
import tensorflow as tf
import numpy as np
import argparse
from tensorpack import *
from tensorpack.utils import viz
from tensorpack.utils.argtools import memoized
"""
15 channels:
0-1 head, neck
2-4... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
14f0f6764cb65cfbd369c21f69c8b01bedf0dc40 | 3247d399cee22f988baa83de6c03e97c0e40ad89 | /kbengine/assets/scripts/base/GameWorld.py | 2237c2da8d78017ac1f2904e9770820cfa1fe028 | [] | no_license | ruifly2012/PaoDeKuai | 3f85af8fda1a53c9a61c35d95188e503734a6bee | b671faa60ca6e9458a863379a9c1c64ccb1fbc43 | refs/heads/master | 2020-05-14T13:18:23.005557 | 2019-04-16T08:31:27 | 2019-04-16T08:31:27 | 181,809,954 | 0 | 1 | null | 2019-04-17T03:23:51 | 2019-04-17T03:23:51 | null | UTF-8 | Python | false | false | 9,422 | py | # -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *
import Functor
import const
import math
import random
import time
import h1global
import switch
from urllib.parse import unquote
from LoggerManager import LoggerManager
from interfaces.GameObject import GameObject
from worldmembers.iFriends import iFriends... | [
"693749857@qq.com"
] | 693749857@qq.com |
2b199881e94f19fe4b040e1da9ae0108a52c857f | 292d23019c18d0b724aed88f04a0f20b5b616bb9 | /Python1/Crawler/douban_movie1.py | b845a75327d8ec2485e72a9f2f10dabbb124ec4b | [] | no_license | RedAnanas/macbendi | 6f1f6fd41ed1fe8b71408dffa0b964464bd00aa8 | 8d5aa39d9389937f0e0c3f7a7d6532537f33cda8 | refs/heads/master | 2023-06-11T18:57:31.061009 | 2021-06-29T15:04:56 | 2021-06-29T15:04:56 | 380,759,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/2/7 17:41
# @Software: PyCharm
import requests
from bs4 import BeautifulSoup
base_url = 'https://movie.douban.com/top250?start=%d&filter='
for page in range(0, 25, 25):
allurl = base_url %int(page)
resp=requests.get(allurl)
soup ... | [
"1315157388@qq.com"
] | 1315157388@qq.com |
13700a8e3b257b54c718ee11ebc82eb267a92b87 | af8f0d50bb11279c9ff0b81fae97f754df98c350 | /src/tests/account/registration.py | 8717aa6a49451c1b33cfc8c6aa4bdab639888e5e | [
"Apache-2.0"
] | permissive | DmytroKaminskiy/ltt | 592ed061efe3cae169a4e01f21d2e112e58714a1 | d08df4d102e678651cd42928e2343733c3308d71 | refs/heads/master | 2022-12-18T09:56:36.077545 | 2020-09-20T15:57:35 | 2020-09-20T15:57:35 | 292,520,616 | 0 | 0 | Apache-2.0 | 2020-09-20T15:49:58 | 2020-09-03T09:09:26 | HTML | UTF-8 | Python | false | false | 4,191 | py | from urllib.parse import urlparse
from account.models import User
from django.conf import settings
from django.core import mail
from django.urls import reverse, reverse_lazy
from tests.const import URLS_PATTERN
URL = reverse_lazy('account:django_registration_register')
def test_registration_get(client):
respo... | [
"dmytro.kaminskyi92@gmail.com"
] | dmytro.kaminskyi92@gmail.com |
1c6a1215b0db21e8519fe8f44c4fd556a89e12d7 | 78c3808342711fe04e662cfea3d394e34841f2fb | /docs/rg/rgkod11.py | 05478f163c5d469994dbf4f3844fdac574ad4c29 | [] | no_license | astefaniuk/linetc | cd0f8aa1bb2858e971caddaf6e6396363ca50a47 | b23b3b4747dded19f7030862bf486a9e0f65b4e0 | refs/heads/master | 2021-01-22T13:08:15.266332 | 2015-06-12T21:37:59 | 2015-06-12T21:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # idź bezpiecznie na najbliższego wroga
# wersja oparta na zbiorach
if wrogowie:
najblizszy_wrog = mindist(wrogowie,self.location)
else:
najblizszy_wrog = rg.CENTER_POINT
| [
"xinulsw@gmail.com"
] | xinulsw@gmail.com |
3510224b9ff10ba629557b67a1f2a7494d96ed42 | 4e353bf7035eec30e5ad861e119b03c5cafc762d | /QtCore/QElapsedTimer.py | 907ac3c36dc910112b15b9bf46aa8486cbb0d152 | [] | no_license | daym/PyQt4-Stubs | fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5 | 57d880c0d453641e31e1e846be4087865fe793a9 | refs/heads/master | 2022-02-11T16:47:31.128023 | 2017-10-06T15:32:21 | 2017-10-06T15:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | # encoding: utf-8
# module PyQt4.QtCore
# from C:\Python27\lib\site-packages\PyQt4\QtCore.pyd
# by generator 1.145
# no doc
# imports
import sip as __sip
class QElapsedTimer(): # skipped bases: <type 'sip.simplewrapper'>
"""
QElapsedTimer()
QElapsedTimer(QElapsedTimer)
"""
def cloc... | [
"thekewlstore@gmail.com"
] | thekewlstore@gmail.com |
fa7f36f70571120cbb262878199b1a168357ff47 | d9ecb105ed56979691f7776238301a3d0564665e | /ParameterUI/__init__.py | ac2bbe925bef7623a4a85333d4e5c6e16cb5d4d1 | [] | no_license | muyr/hapi_test | 4dcc5eb8e5aea4a18556002aec3d68301cb09024 | 910ca037d9afc8fd112ff6dc4fc8686f7f188eb0 | refs/heads/main | 2023-03-28T19:37:25.518719 | 2021-03-30T12:03:20 | 2021-03-30T12:03:20 | 309,288,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from MParameterLabel import MParameterLabel
from MParameterString import MParameterString
from MParameterStringChoice import MParameterStringChoice
from MParameterInteger import MParameterInteger
from MParameterIntegerChoice import MParameterIntegerChoice
from MParameterFloat import MParameterFloat
from MParameterFol... | [
"muyanru345@163.com"
] | muyanru345@163.com |
ad94f6c7e328945e686c5c49d7071033fa26365a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03549/s009493844.py | b43be6ebe855df366e38343d97e9fb47993b6a8d | [] | 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 | 608 | py | import sys
from collections import defaultdict, deque, Counter
import math
# import copy
from bisect import bisect_left, bisect_right
# import heapq
# sys.setrecursionlimit(1000000)
# input aliases
input = sys.stdin.readline
getS = lambda: input().strip()
getN = lambda: int(input())
getList = lambda: list(map(int... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c6c4e0a698e2185e960aa28af3da3501e4305561 | a2cbd654d7126c21442111fb315454561790b579 | /backend/dating/api/v1/urls.py | f32a7d281cd91a40f3f177ab0d3f660a362883a6 | [] | no_license | crowdbotics-apps/breakify-23632 | d43c9cfb23bf185c10499301f6e14ec441181907 | 14bc9010e101062f22a98837b5ac7e10de0511bf | refs/heads/master | 2023-02-09T11:07:18.680204 | 2020-12-31T16:20:19 | 2020-12-31T16:20:19 | 325,820,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
SettingViewSet,
ProfileViewSet,
InboxViewSet,
DislikeViewSet,
MatchViewSet,
UserPhotoViewSet,
LikeViewSet,
)
router = DefaultRouter()
router.register("inbox", InboxViewSet)
router.... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7bcc3b56f063f47763a83bf930c3fc789819f161 | 0ffd4524067a737faf34bb60c4041a23258ac5cd | /assignment1/q1_softmax.py | 9fc47b3c18a9c55b546f6e0848605fbe5bffcbe2 | [] | no_license | gjwei/cs224n | 6dc410ab2efc8dfc665711daac5dd1e396ae7c8f | 1ebdd31d5f3943547dc1654c756387ae5d7ef9f3 | refs/heads/master | 2021-08-23T02:38:47.120738 | 2017-12-02T16:11:32 | 2017-12-02T16:11:32 | 112,850,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | import numpy as np
def softmax(x):
"""
Compute the softmax function for each row of the input x.
It is crucial that this function is optimized for speed because
it will be used frequently in later code.
You might find numpy functions np.exp, np.sum, np.reshape,
np.max, and numpy broadcasting ... | [
"1449894353@qq.com"
] | 1449894353@qq.com |
efeea6d5486e83703709910a52331973707ea48f | e47875e83c19f8e7ec56fb1cf2ae7e67e650f15b | /kRPC/OrbitalLaunch/old/LaunchIntoOrbit_2.py | 4237e0b917cd2ff8ff4d5bc79f569b6e41f796bc | [] | no_license | crashtack/KSP | a69b031ca942adb9fd798de034605b2b2c229b8d | 2549319c116a4687639a0ebb59adafd8b6ce1ad9 | refs/heads/master | 2021-01-19T04:26:20.143710 | 2017-12-07T05:17:50 | 2017-12-07T05:17:50 | 63,728,682 | 0 | 0 | null | 2017-12-07T05:17:51 | 2016-07-19T21:17:52 | null | UTF-8 | Python | false | false | 2,517 | py | import krpc, time, math
turn_start_altitude = 250
turn_end_altitude = 90000
target_altitude = 200000
conn = krpc.connect(name='Launch Science Station to Orbit')
vessel = conn.space_center.active_vessel
# Set up streams for telemetry
ut = conn.add_stream(getattr, conn.space_center, 'ut')
altitude = conn.add_stream(ge... | [
"crashtack@gmail.com"
] | crashtack@gmail.com |
d67d3eaeff1fdd029f4ca5a75a83df6c79287ba1 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/models/keras_model/AverageEmbedding.py | 3a6238d5bcbbe898432e3adcac1b93bdc85d2781 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 828 | py | import keras
import tensorflow as tf
class WeightedSum(keras.layers.Layer):
def __init__(self):
super(WeightedSum, self).__init__()
def call(self, args):
x = args[0]
m = args[1]
s = tf.reduce_sum(x, axis=1)
d = tf.reduce_sum(tf.cast(tf.equal(m, 0), tf.float32), axis=-1... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
3d720c47a2290b71c9e834a808bf58802fdc1e16 | ecc1638f75a6ccd814923cb980e69d770c2525b7 | /Workspace for Python/studying file/class/Greeter.py | cac9ab6ba069fec9304a0df0bdd989b97385857d | [
"MIT"
] | permissive | ArchibaldChain/python-workspace | 5570e1df01f29f9916129e12d7fb1fb0608255d7 | 71890f296c376155e374b2096ac3d8f1d286b7d2 | refs/heads/master | 2022-12-01T03:00:37.224908 | 2020-08-04T10:04:47 | 2020-08-04T10:04:47 | 174,573,744 | 0 | 1 | MIT | 2022-11-22T04:02:07 | 2019-03-08T16:45:09 | Jupyter Notebook | UTF-8 | Python | false | false | 342 | py | class Greeter(object):
# constructor
def __init__(self, name):
self.name = name
# instance method
def greet(self, loud=False):
if loud:
print('HELLO, %s' % self.name.upper())
else:
print("hello, %s" % self.name)
g = Greeter('Freed')
g.gr... | [
"1156618773@qq.com"
] | 1156618773@qq.com |
bd4068cefe9147518981b5aba901ffe4a4d36eee | 56a0762c741bcac3ab1172eb6114a9e59a48a5df | /domotica/apps.py | fab422866156e3faf00870f59a37cbf90056dadd | [
"MIT"
] | permissive | jjmartinr01/gauss3 | 54af1735a035a566f237d8e0fd9a6fe4447845a2 | 41a23d35c763890d8f729c9d63ac073673689400 | refs/heads/master | 2023-08-23T06:40:51.033857 | 2023-08-08T11:50:50 | 2023-08-08T11:50:50 | 171,710,013 | 1 | 0 | MIT | 2023-02-15T18:43:56 | 2019-02-20T16:35:03 | HTML | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class DomoticaConfig(AppConfig):
name = 'domotica'
| [
"jmar0269@gmail.com"
] | jmar0269@gmail.com |
8c9d773cf834776b2cef2c5b7df3300f7601ecc1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/bgp/bdevi.py | ced83174740c95c1b16930b1c648c607d05579b5 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,393 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
08a482edc4791f5a7c670fbd4fb08bbe58dbb95f | 6ee8765a4d98472d32b1aa22f9a885f4ab54adae | /select_with_filter.py | 8c55222aa57348a1abbd9c23bbe17e2ba7b5dcec | [] | no_license | rohitaswchoudhary/mysql_python | 31e9b55f30fdd87a7c7eb7d2b24e75f8d8cf58ce | 9160b7e374472ccfafadc39d6692bc7a798d99c0 | refs/heads/main | 2023-06-03T23:25:59.713109 | 2021-02-26T15:01:12 | 2021-02-26T15:01:12 | 377,754,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | import mysql.connector
mydb = mysql.connector.connect(
host='localhost',
user='root',
password='Rohitasw@2002',
database = "mydatabase"
)
mycursor = mydb.cursor()
# Select With a Filter
# When selecting records from a table, you can filter the selection by using the "WHERE" statement:
sql = "SELECT * FROM customers W... | [
"you@example.com"
] | you@example.com |
a343f6cb593f4ac770460ec9fed2e071f2bc7a98 | e0f133b49f9f0f416f14da70a2cadb7011c0cb7b | /new_spider/downloader_sx/sx_render_local_downloader_phantomJS.py | 8cdd9dc021fba1d1b144c03a5b6055d148945024 | [] | no_license | cash2one/python_frame | ac52d052fd3698303f1f4fa022f3b35a56e07533 | 2dbda155780a19cf42d5376104879d0667fbbf75 | refs/heads/master | 2021-06-18T13:28:40.356527 | 2017-06-28T02:51:35 | 2017-06-28T02:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,789 | py | # -*- coding: utf8 -*-
import sys
import traceback
import urllib2
from downloader.downloader import Downloader
from downloader_sx.list_pulldown_picture.sx_picture_phantomjs import FindPicture
reload(sys)
sys.setdefaultencoding('utf8')
# from downloader.picture_phantomjs
class HtmlLocalDownloader(Downloader):
""... | [
"1925453680@qq.com"
] | 1925453680@qq.com |
a8da85d257cc62052c4f35689f975fc7464e7619 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/plotly/validators/scatterternary/__init__.py | bf59e22ccd4da2a9a4c7aa7e40b78651b9390213 | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 34,573 | py | import _plotly_utils.basevalidators
class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(self, plotly_name="visible", parent_name="scatterternary", **kwargs):
super(VisibleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
a547eea325ba1119f9fbf2b2bb4e7fcf323eb6cb | 9e30a239886210dc57e6c7cb9a71ad95a840712e | /views/posts_with_more_postive_recations/tests/__init__.py | 5bdbd747b63d59acf9e27cc1f37f3940355ac2b3 | [] | no_license | sridhar562345/fb_post_v2 | 0a26d661a3f335d9a9cf129c24265d7674b3fb22 | dfd150ab5521f05291f66944d7a8686a00477547 | refs/heads/master | 2022-11-08T00:32:35.752419 | 2020-06-23T15:32:02 | 2020-06-23T15:32:02 | 274,440,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # pylint: disable=wrong-import-position
APP_NAME = "fb_post_v2"
OPERATION_NAME = "posts_with_more_postive_recations"
REQUEST_METHOD = "get"
URL_SUFFIX = "more/postive/reactions/posts/v1/"
from .test_case_01 import TestCase01PostsWithMorePostiveRecationsAPITestCase
__all__ = [
"TestCase01PostsWithMorePostiveRecat... | [
"="
] | = |
5a4a390b1acf15d380fc6a36f240cf181b7614db | f6078890ba792d5734d289d7a0b1d429d945a03a | /hw2/submission/babbejames/babbejames_11046_1275480_119_hw_2_jtb/119_hw2.2.py | 68334c12c326ab34413cf2530584fbe2321c2faa | [] | no_license | huazhige/EART119_Lab | 1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0 | 47931d6f6a2c7bc053cd15cef662eb2f2027712c | refs/heads/master | 2020-05-04T23:40:53.709217 | 2019-06-11T18:30:45 | 2019-06-11T18:30:45 | 179,552,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,943 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: jtbabbe
"""
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.basemap import Basemap
#------------my modules-----------------------
import seis_utils
#--------------------------0---------------------------------------------
# ... | [
"hge2@ucsc.edu"
] | hge2@ucsc.edu |
c248ec65670cf22224af860090d811ffa837db1f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /4t6YAJS8dtT7RQjta_4.py | 8feb0bb3b7cebedc11c07c31453a8da5dcb0fe43 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py |
def num_layers(n):
return(str(0.0005*(2**n))+ 'm')
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f06a5cdc1389ec164b3277400d4616727b4d0b93 | 4f57124af46dd2a73166239df9c53af561d5f5d6 | /venv/lib/python2.7/site-packages/openstack/tests/unit/orchestration/v1/test_proxy.py | 0193781afe351d66a8143d8ea5423be658a9f3f8 | [] | no_license | briankoco/cc-scripts | 5db6e8c498d8ff103cde6c7e4914620cc5bb2c52 | 51e78f88e96c51cc5d4c8fe6debae45ab1953724 | refs/heads/master | 2018-09-17T15:07:12.800875 | 2018-06-05T20:30:35 | 2018-06-05T20:30:35 | 120,139,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,003 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"brian.kocoloski@wustl.edu"
] | brian.kocoloski@wustl.edu |
6c2600913c51f10bf6c0e7f362a0a11f1888479f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02422/s883793535.py | 8a63bbefd3dc6a9170a3efaa6447ac90fe2600e7 | [] | 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 | 506 | py | #! python3
# transformation.py
sent = input()
def print_(arr):
global sent
print(sent[int(arr[0]):int(arr[1])+1])
def reverse_(arr):
global sent
sent = sent[:int(arr[0])] + sent[int(arr[0]):int(arr[1])+1][::-1] + sent[int(arr[1])+1:]
def replace_(arr):
global sent
sent = sent[:int(arr[0])] +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7c00b913a6745d7e2678de5fe3526def5f55a2ef | cfd5892a220ec7702d5c416aa1821d2429480ede | /neodroidagent/common/architectures/distributional/__init__.py | ce4e44cdf60a3308c53090f5e034df2228bd23f1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pything/agent | 611eac80348127b951a72ca76d2ab1f5a7732775 | 71c3bc072a8f3b7c3c1d873757cf5a1dafc3302d | refs/heads/master | 2022-04-28T08:13:27.705296 | 2020-11-17T16:58:46 | 2020-11-17T16:58:46 | 150,600,674 | 0 | 0 | Apache-2.0 | 2019-01-10T11:01:17 | 2018-09-27T14:31:45 | Python | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = ""
from .categorical import *
from .normal import *
| [
"mrnaah@gmail.com"
] | mrnaah@gmail.com |
975d95103dc51fff26bbb0543f1d8172c841ff9b | ced81611f03554989bd338ac32b08fd393ac424a | /src/mlog_kafka.py | c274ec8cdc5a6f462590f13eed0f9a27fa910e32 | [] | no_license | jack139/mlog | c20a8777c326014e7e319e4f80e9408a57ed9190 | fcedd1d22bd4043e614d19b49735d83d0ca538cc | refs/heads/master | 2023-03-17T09:46:49.884896 | 2020-05-12T10:21:15 | 2020-05-12T10:21:15 | 341,840,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | # -*- coding: utf-8 -*-
# 从kafka读入数据:
#
#
import sys, os
from kafka import KafkaConsumer
import predict
out_dir = 'logs/rt'
# 根据时间日期获取 label
# 参考格式: 2020/04/17 07:09:27 [error] 26119#0: ...
def get_nginx_error_label(log, minute=60): # 按min分钟为间隔,默认是60分钟
log_split = log.split()
if len(log_split)<2: # 可能是空行
... | [
"jack139@gmail.com"
] | jack139@gmail.com |
b7452f3daa64a23ec2b6a144ea7b499a2a56416e | ab7c6042f69a921095ac036bd6919a81255847b7 | /pipeline/article_processing/controller.py | c568918eb7861d4d2c38454cd50b4698cb7dc070 | [] | no_license | EST-Team-Adam/TheReadingMachine | 49eb768d08ec0e266d076f113933a04b4bf66674 | 25c217602b3909410d9a2dc6189e3de584146a1b | refs/heads/master | 2022-12-12T20:09:46.945526 | 2019-10-21T20:27:25 | 2019-10-21T20:27:25 | 70,123,521 | 1 | 2 | null | 2022-11-21T21:26:36 | 2016-10-06T04:46:20 | HTML | UTF-8 | Python | false | false | 7,906 | py | from __future__ import division
import itertools
import pandas as pd
import string
from nltk.corpus import stopwords
from nltk.tokenize import RegexpTokenizer
from nltk.stem import SnowballStemmer
from nltk import pos_tag
from datetime import datetime
# Manual invalid title and link
maintenance_title = ['Reduced serv... | [
"mkao006@gmail.com"
] | mkao006@gmail.com |
89f25f38fdef1463139ed5b10736c753d7dc5d5a | 59636b143a2ab189145b17a7ea9a38de5af1f7a5 | /All/selenium_all/guanjiaPlus/zonghe_test_object.py | d8dfaeeffee6ccfdb47fb72792cb45fdb42eb84d | [] | no_license | woshichenya/hezi | 880a70c34cc61b6b6bcf1ccb65fa54989595fb71 | 4211ff8ef78f5d15d8fc8065247f916dfe9d305d | refs/heads/master | 2020-04-28T21:46:02.664025 | 2019-05-14T08:47:33 | 2019-05-14T08:47:33 | 175,593,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | import guanjiaPlus.xiaochengxuguanliyemian
import traceback
import time
from selenium.webdriver.support.ui import Select
'''调用进入小程序管理页面的脚本'''
go=guanjiaPlus.xiaochengxuguanliyemian.go
Go=guanjiaPlus.xiaochengxuguanliyemian.Go
GO=guanjiaPlus.xiaochengxuguanliyemian.GO
bug_num=0
def dianpu():
go.Ctext("店铺","店铺超链接"... | [
"bj_xiaoya@163.com"
] | bj_xiaoya@163.com |
1e12cfdc813dbe8b0998b82ee3627f8c4a7712ae | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/2021-5-15/python_re2_test_file/regexlib_3439.py | 343711792907104d76d4f43c1009d2d954ef90b2 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # 3439
# [\w*|\W*]*<[[\w*|\W*]*|/[\w*|\W*]]>[\w*|\W*]*
# POLYNOMIAL
# nums:5
# POLYNOMIAL AttackString:""+"<"*5000+"@1 _SLQ_2"
import re2 as re
from time import perf_counter
regex = """[\w*|\W*]*<[[\w*|\W*]*|/[\w*|\W*]]>[\w*|\W*]*"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATTACK = "" + "<" * i * 100... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
718a8d60b16760ec352731a29ee43b53d90b448c | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/app/wildfire_one/query_builders.py | 8a69476dd8130f4f63a78b313c9e2d522773494d | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 5,089 | py | """ Query builder classes for making requests to WFWX API """
from typing import List, Tuple
from abc import abstractmethod, ABC
from app import config
class BuildQuery(ABC):
""" Base class for building query urls and params """
def __init__(self):
""" Initialize object """
self.max_page_siz... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
cda579e2676fc52ddc8593410c78e43762839efd | 53d0b80b64d201def809ef11acbeca38da2c1574 | /hw_proyecciones/migrations/0003_drilldown.py | 80145377e2f3e6f8f620aebac2f51441c52f7df9 | [] | no_license | NOKIA-NI/niproyecciones | 068558b27afd26bc2eb6ab9c32f98a37742817ce | 90c5829250643443f90ae4cbb9b234464a2fcaef | refs/heads/master | 2022-12-11T18:22:32.928214 | 2018-10-25T14:52:52 | 2018-10-25T14:52:52 | 127,053,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | # Generated by Django 2.0.9 on 2018-10-25 14:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hw_proyecciones', '0002_hwcontrolrfe_hwsitelist'),
]
operations = [
migrations.CreateModel(
name='DrillDown',
fields... | [
"jucebridu@gmail.com"
] | jucebridu@gmail.com |
da137d50e78fd365f0c5dc7bb54e588af907cded | c48570083578f2ad5b10d397889c452a69091582 | /sge-python/practica05/ej8.py | ecaad2fbf012935615a6b80628281ab05a3fbc1b | [] | no_license | RamonMR95/sge-python | c9471fcf3e33eeda540982a8f947971c94e8254c | 895e3a7012f62518c4c1f61717f18f9d493f2ad0 | refs/heads/master | 2022-04-09T07:13:26.633241 | 2020-03-01T11:18:44 | 2020-03-01T11:18:44 | 234,789,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,845 | py | # !/usr/bin/env python3
# 8.- Supón que mantenemos dos listas con igual número de elementos. Una de ellas,
# llamada alumnos, contiene una serie de nombres y la otra, llamada notas, una serie de números flotantes 0.0 y 10.0.
# En notas guardamos la calificación obtenida por los alumnos cuyos nombres están en alumnos. L... | [
"ramonmr16@gmail.com"
] | ramonmr16@gmail.com |
47c7839a7f260182143c3fbbc27d47a4c6133d74 | d02abf740dd326f12b48357692af41282616a271 | /dataset-analysis/pyplot/simple_bar.py | 2b87ed287b5210a8c63a83d86b0d214fb17486bb | [] | no_license | jacowk/python-projects | a762c5542b7dab6cd7915b367b472a1a20d63a0a | 2e5f39868d0cdf292b4b1a792e946d169de61780 | refs/heads/master | 2021-01-05T05:18:35.550518 | 2020-09-27T08:42:11 | 2020-09-27T08:42:11 | 240,889,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 12 18:15:55 2020
@author: jaco
"""
from matplotlib import pyplot as plt
DayOfWeekOfCall = [1,2,3]
DispatchesOnThisWeekday = [77, 32, 42]
LABELS = ["Monday", "Tuesday", "Wednesday"]
plt.bar(DayOfWeekOfCall, DispatchesOnThisWeekday, align='center')... | [
"jaco.wk@gmail.com"
] | jaco.wk@gmail.com |
a3ae4cd9c8a7f48e4de904e34f3da61fec637a6d | f7cc8d3f04d34b7d7e64e1b54ba458e4b39bce49 | /PythonLibraries/kiwisolver/1.0.1/package.py | 187167ad925ae027309d3867621154cc3d81d323 | [
"MIT"
] | permissive | cashmerepipeline/CashmereRez | 80a53af61ddb8506bb111cd16450538c3b405689 | 13a73931d715ffac27c337abcd6df97b5c47534b | refs/heads/master | 2020-05-09T12:59:28.106229 | 2019-04-17T16:39:46 | 2019-04-17T16:39:46 | 181,132,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # -*- coding: utf-8 -*-
name = u'kiwisolver'
version = '1.0.1'
description = \
"""
kiwisolver library
"""
requires = []
variants = []
def commands():
import os
kiwisolver_libs_path = os.path.join(getenv("PYTHON_LIBS_PATH"), "kiwisolver", "%s" % version)
# env.PATH.append(os.path.join(k... | [
"yes7rose@sina.com"
] | yes7rose@sina.com |
a64453ac95c425e6155551e5d74b66ee20009f84 | f63db957cb63b3a37642d138d3092f8f897d6a53 | /roundup_getnodes/roundup/backends/back_anydbm.py | 94f7047902880a7917b096c53c787820f6fc6b0c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"ZPL-2.0"
] | permissive | fillarikanava/old-fillarikanava | c6fd819f95e675e6eddc674e71528c798b391967 | 8dbb89ea34c2aa98450e403ca2d7f17179edff8d | refs/heads/master | 2021-01-13T02:30:01.501771 | 2013-10-03T16:26:13 | 2013-10-03T16:26:13 | 13,201,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 83,763 | py | #
# Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
# This module is free software, and you may redistribute it and/or modify
# under the same terms as Python, so long as this copyright message and
# disclaimer are retained in their original form.
#
# IN NO EVENT SHALL BIZAR SOFTWARE PTY LT... | [
"rkarhila@iki.fi"
] | rkarhila@iki.fi |
3f082db88de075c9ca3e973e5512ab9093ea3e0c | c317f6a390de255540c2fb6a2e637c20bec03762 | /final/rev-kyrkkodning/obfuscate.py | 5bb035cc6b5f9c3b84c76c559e079fe4659e3869 | [] | no_license | Kodsport/sakerhetssm-2021-solutions | a7329ef22862bcfc4c970d43ac210bbe951cf3a8 | 85bc2aa619d55139acf7c91483259088329c15e2 | refs/heads/master | 2023-05-12T00:54:24.546337 | 2021-06-07T14:12:32 | 2021-06-07T14:12:32 | 353,975,490 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from pathlib import Path
import re
source = Path("challeasy.py").read_text()
names = [row.split(" = ")[0] for row in source.split("\n") if " = " in row]
for i,name in enumerate(names):
source = re.sub("\\b"+name+"\\b",chr(ord("A")+i),source)
Path("challhard.py").write_text(source)
| [
"drwal.mateusz@gmail.com"
] | drwal.mateusz@gmail.com |
1fbf502a09cc2ddd28c1e76023f44e6a52f422d4 | 65dce36be9eb2078def7434455bdb41e4fc37394 | /Two Sum - Closest to target.py | 83946cbedd32144499f639c865b05e651eadea0f | [] | no_license | EvianTan/Lintcode-Leetcode | 9cf2d2f6a85c0a494382b9c347bcdb4ee0b5d21a | d12dd31e98c2bf24acc20c5634adfa950e68bd97 | refs/heads/master | 2021-01-22T08:13:55.758825 | 2017-10-20T21:46:23 | 2017-10-20T21:46:23 | 92,607,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | '''
Given an array nums of n integers, find two integers in nums such that the sum is closest to a given number, target.
Return the difference between the sum of the two integers and the target.
Have you met this question in a real interview? Yes
Example
Given array nums = [-1, 2, 1, -4], and target = 4.
The minimum... | [
"yiyun.tan@uconn.edu"
] | yiyun.tan@uconn.edu |
3d37ccbbc8f7b579d69b9a4f8e074fbabb34d92d | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/net_tools/test_hetzner_firewall.py | 439ac8d08f12a6e166045ed0235f1abe7c8ded57 | [
"GPL-3.0-only",
"MIT",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 47,090 | py | # (c) 2019 Felix Fontein <felix@fontein.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import pytest
from ansible_collections.community.general.plugins.module_utils.hetzner impor... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
16176f545abb87396a77a21ab271f39fd5f52f3b | 0347ed077da6f98d2740809d8582928485afc4e6 | /wechatutility/wechatReceiveMsg.py | 2640346a39717961923d2e95c0907c0cbfc19776 | [] | no_license | AhMay/wechatpublic_practice | 140c45f2ca4c7423bea15dc5b57d26d032a8a03b | b38683c5e8e6a1db078c164342fead10af78818a | refs/heads/master | 2020-11-27T23:57:20.358331 | 2019-12-23T01:15:27 | 2019-12-23T01:15:27 | 229,653,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,240 | py | '''微信公众号接收到的用户消息类型
https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html
'''
import xml.etree.ElementTree as ET
def parse_xml(web_data):
if len(web_data) == 0:
return None
xmlData = ET.fromstring(web_data)
msg_type = xmlData.find('MsgType').text
i... | [
"meizi111082@hotmail.com"
] | meizi111082@hotmail.com |
74701596a433057380ef80ccb963ff63b98ec52e | f9b1157ac3486709f2655810b196086dc181adc2 | /backend/test_upgrade_plan_de_1173/wsgi.py | 0def1be27bb2fd809c50a6995188f5110839d443 | [] | no_license | crowdbotics-apps/test-upgrade-plan-de-1173 | 21364bb141fefbab45e1ee53283f9f298482f1f9 | fc5e4584fc8ddb571b2f76b52f4c7c9c3ee3bd25 | refs/heads/master | 2023-02-14T20:46:31.539334 | 2019-12-11T18:29:30 | 2019-12-11T18:29:30 | 227,433,239 | 0 | 0 | null | 2023-01-24T00:56:00 | 2019-12-11T18:28:03 | JavaScript | UTF-8 | Python | false | false | 427 | py | """
WSGI config for test_upgrade_plan_de_1173 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
023e8cfd0b3aeb66d815ceac84e680bcb62c4bca | 9137e1ccf070b3f9d92d8635662c569639910ae5 | /apps/modules/setting/apis/session_set.py | 07590e1711af07d77f4c7d0d5f050da905e11017 | [
"BSD-2-Clause"
] | permissive | zhangning123798/osroom | 08e87a4c32e9d92807a66109e7074723279179cc | 21859b77b8980ccb8a5392f02c76bd552b2bf653 | refs/heads/master | 2020-05-26T10:00:38.658768 | 2019-05-23T08:48:03 | 2019-05-23T08:48:03 | 188,195,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # -*-coding:utf-8-*-
from flask import request
from apps.core.blueprint import api
from apps.core.flask.permission import permission_required
from apps.core.flask.response import response_format
from apps.modules.setting.process.session_set import language_set
__author__ = "Allen Woo"
@api.route('/session/language-s... | [
"624393877@qq.com"
] | 624393877@qq.com |
49eaa8cbc43819fdcce800289fb77bb25c70faaa | bf11991193cd09d5d95e2706ed4168c36221f582 | /HW1/q2.py | e8aa57704cc17595e677bc46cfc4b7a1d61f2ed9 | [] | no_license | NightKirie/COMPUTER-VISION-AND-DEEP-LEARNING_2020 | f3569bf06cb824aace5fa3c3b01c26909b7b1a68 | 8b770c12bdc1e149c12c424d0637ab8f35df0370 | refs/heads/main | 2023-02-05T07:45:03.399847 | 2020-12-18T12:51:10 | 2020-12-18T12:51:10 | 304,540,542 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import cv2
import numpy as np
WIDTH = 11
HEIGHT = 8
def draw(img, corners, imgpts):
img = cv2.line(img, tuple(imgpts[0].ravel()), tuple(imgpts[1].ravel()), (0,0,255), 5)
img = cv2.line(img, tuple(imgpts[0].ravel()), tuple(imgpts[2].ravel()), (0,0,255), 5)
img = cv2.line(img, tuple(imgpts[0].ravel()), tup... | [
"qwer55113322@gmail.com"
] | qwer55113322@gmail.com |
da9b60fd9c51d7ee28d89f0b14483faf7101b364 | 423670088b9795d645cacc760dc9d9b0df0a2b34 | /vlttng/conf_template.py | fa86571506a859086343dda2d80b64c24c00f653 | [
"MIT"
] | permissive | eepp/vlttng | 4711ecadec7249795190566809a51f589b051bcd | 27c775db01ba13f27cb77bd5e6eca022c0db42bc | refs/heads/master | 2022-10-06T02:31:23.733577 | 2022-09-14T18:59:32 | 2022-09-14T18:59:32 | 59,193,437 | 9 | 4 | MIT | 2021-05-13T16:33:16 | 2016-05-19T09:38:00 | Python | UTF-8 | Python | false | false | 2,563 | py | # The MIT License (MIT)
#
# Copyright (c) 2016 Philippe Proulx <eepp.ca>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to us... | [
"eeppeliteloop@gmail.com"
] | eeppeliteloop@gmail.com |
7df1adc8cd446b6046a1e4172ae5851a82b39653 | ec77edd3a7db89f8b12202fe6ecc21ce2897bce0 | /examples/digits_basic.py | 06b871b0b71a2b192d0751a0f558f4853ad66f3e | [] | no_license | lantunes/wehd | db2a3ea9edd4b9b012f1bb8e56d6f7d331f386e6 | c13f9fb3b417d800fab09ab6f724c350c2f4d8cc | refs/heads/main | 2023-07-12T06:07:00.410568 | 2021-08-16T14:34:05 | 2021-08-16T14:34:05 | 395,657,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | import matplotlib
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import mode
from sklearn import datasets
from sklearn.manifold import TSNE
from sklearn.metrics import accuracy_score, confusion_matrix
from sklearn.metrics.cluster import rand_score
from sklearn.preprocessi... | [
"lantunes@gmail.com"
] | lantunes@gmail.com |
f97b906b4a697556ced6a92198111804e4fcb722 | 1e53216c58f3c7843031721305590b83dbaed3f2 | /week_five/log_and_reg/log_and_reg/settings.py | c6158a025afa487c688f6c615e4526c97c9271a4 | [] | no_license | MTaylorfullStack/python_july_20 | 991852ba12d6f06d6b93b8efc60b66ee311b5cb3 | bdfb0d9a74300f2d6743ac2d108571692ca43ad9 | refs/heads/master | 2022-12-12T18:03:00.886048 | 2020-08-27T23:53:31 | 2020-08-27T23:53:31 | 277,956,745 | 2 | 2 | null | 2023-06-30T20:06:11 | 2020-07-08T01:09:34 | Python | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for log_and_reg project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
bb938cd5a049722984a0234f69971204ca9c7af4 | 4310871d6d0ad59332360a0d6e980e0a41d25fdd | /comment/serializers.py | a79978c15226c0e45d99ee2139bc53813bc6fc26 | [] | no_license | jacegem/drf-test | 21bf7eaa47aeb045c31d2ba8239e587804c27a86 | 00105b6ecd38b68c58f2e5b498e0fb7ad2de099d | refs/heads/master | 2022-12-12T13:18:02.168914 | 2020-08-04T09:08:10 | 2020-08-04T09:08:10 | 146,073,595 | 0 | 0 | null | 2022-12-08T09:34:16 | 2018-08-25T07:01:35 | Python | UTF-8 | Python | false | false | 201 | py | from rest_framework import serializers
from .models import Comment
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = '__all__'
| [
"jacegem@gmail.com"
] | jacegem@gmail.com |
36801ff15a033f2b405073e33139f9994ac55639 | 98879590858368d5c32c389db31b761e479a0ab8 | /python-features/iterators.py | fc8bf99d47289b0d870921c1830127ecb4664be9 | [] | no_license | zhiruchen/get_hands_dirty | 0bbf3719113dcf474baae571ecd55e5c234072a3 | af98a11bbeb8183428fe41cb7c9fa9a2354983e9 | refs/heads/master | 2020-04-17T12:00:44.275247 | 2017-06-24T16:28:43 | 2017-06-24T16:28:43 | 66,988,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | # -*- encoding: utf-8 -*-
"""
迭代器
http://anandology.com/python-practice-book/iterators.html
http://nvie.com/posts/iterators-vs-generators/
迭代器一定是可迭代的,
"""
from collections import Iterable, Iterator
class yrange(object):
"""迭代器,yrange的对象既是可迭代的也是迭代器"""
def __init__(self, n):
self.n = n
self.i ... | [
"zhiruchen1992@foxmail.com"
] | zhiruchen1992@foxmail.com |
ba4660a4acd3ec99cc6333f14b87878bb163b698 | d54ef1dee58c239d3a5bb74cbf8d8a717dcdcb33 | /paytest/test_paytest.py | 6cf586627df8c94c2155c66542e5871c2a50535e | [
"BSD-3-Clause"
] | permissive | bhoovd/lightningd-plugins | 88cef7c51b5291ef14b32761a1b4ceeb26ee5784 | a7a0007dcee1fcf3cc401ca83663a66b678e07d3 | refs/heads/master | 2023-03-14T20:50:46.115145 | 2021-02-16T10:15:54 | 2021-02-26T10:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | from pyln.testing.fixtures import * # noqa: F401,F403
from pyln.testing.utils import DEVELOPER
from pyln.client import RpcError
import os
import unittest
import pytest
from pprint import pprint
pluginopt = {'plugin': os.path.join(os.path.dirname(__file__), "paytest.py")}
EXPERIMENTAL_FEATURES = int(os.environ.get("E... | [
"decker.christian@gmail.com"
] | decker.christian@gmail.com |
2a7781ca167806d15563fda92dec8c31c733744d | df44affab179c2546fb3e0d1dc29eebcfdf51c1c | /toughradius/txradius/authorize.py | fedf4305359d7f9665ba6b081ea9725c186fcd57 | [] | no_license | sailorhdx/taurusradius | 121c508e7faffaddcd5326d2b6d3710eaf0ed08e | 92d30820611a0c9102ae41713ea3c35437a3c6ee | refs/heads/master | 2021-01-22T02:28:31.543338 | 2017-06-17T02:15:33 | 2017-06-17T02:15:33 | 92,362,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | #!/usr/bin/env python
# coding=utf-8
import os
import six
from twisted.python import log
from twisted.internet import protocol
from twisted.internet import reactor, defer
from toughradius.txradius.radius import packet
from toughradius.txradius.ext import ikuai
from toughradius.txradius import message
from toughradius.t... | [
"sailorhdx@hotmail.com"
] | sailorhdx@hotmail.com |
14455f7f45b76263d76c758b85a92c16f61f1e47 | b38739b790ec087251280a352d38188bfc4ce9fa | /src/pretix/control/signals.py | 25b9d8c53f1ce99cf5df5685d779dd8a2bc86c1a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | marcelosantos/pretix | c4ab9f01d5b4adadb7a7257c9d0a5494c7211da4 | badad709843a64d370608ab7ead7b796d9e49950 | refs/heads/master | 2020-03-11T10:13:12.615651 | 2018-04-17T08:20:26 | 2018-04-17T08:20:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,478 | py | from django.dispatch import Signal
from pretix.base.signals import DeprecatedSignal, EventPluginSignal
restriction_formset = EventPluginSignal(
providing_args=["item"]
)
"""
This signal is sent out to build configuration forms for all restriction formsets
(see plugin API documentation for details).
As with all p... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
25bb83c6f782b5a36d42a6c483e404476b3c2f1e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /yfTyMb3SSumPQeuhm_5.py | 80ed33b96fc160972e0d5109dcaa669d35356e56 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | """
Write a function that efficiently calculates Fibonacci terms.
### Examples
fibonacci(1) ➞ 1
fibonacci(2) ➞ 1
fibonacci(4) ➞ 3
fibonacci(64) ➞ 10610209857723
### Notes
The input will always be a power of two.
"""
def fibonacci(n):
def fib_inner(n):
if n == 0:
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b954d06a1d1d14afe11039a99c3494d4ccb1ac89 | 77327e4c6de68fab4061c5acdb569e95cb8a9fae | /TestEnv/PrisonerDilemma.py | 92ce9bbf4e611e7790df41d38d79049698cca47e | [] | no_license | jiankangren/RARL-1 | 577148384bd065708c868c854ff53bc8d16fac99 | a7b28d9b56cfc7e5f832bb839d2c8f5db4d5b5ab | refs/heads/master | 2020-04-08T06:33:53.706725 | 2018-08-27T22:45:48 | 2018-08-27T22:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from rllab.envs.base import Env
from rllab.spaces import Box, Discrete
from rllab.envs.base import Step
class PrisonerDilemma(Env):
def __init__(self):
self.num_action = 2
def render(self):
pass
@property
def observation_space(self):
return Discrete(1)
@property
def action_space(self):
return Discr... | [
"maxiaoba@umich.edu"
] | maxiaoba@umich.edu |
fd0348e317dfb0cc806d13e3c1787e7508e61c8a | f8d043a7941cb311d9ea8e991b7c5be3c461675f | /mac/shop/urls.py | a1db41ac4bb8b25b8045d600df7ea205fe297640 | [] | no_license | shreyakapadia10/Django-Project | acf5c56f95ea552b589dfc6f8819b92339b3a377 | 4e9f5c2697ef1ed07209f50b1d8ed8a1bd953b87 | refs/heads/master | 2023-05-02T18:47:08.892747 | 2021-05-25T11:11:54 | 2021-05-25T11:11:54 | 370,583,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='ShopHome'),
path('about/', views.about, name='AboutUs'),
path('contact/', views.contact, name='ContactUs'),
path('tracker/', views.tracker, name='TrackingStatus'),
path('search/', views.search, name='Search... | [
"shreyakapadia8@gmail.com"
] | shreyakapadia8@gmail.com |
fe3be7f503140e17f885a9751de4ac6ce8bd2a4e | 234f0a885f6f6bffdfe21dcb4882ed9bc611029d | /fullcyclepy/helpers/taskschedule.py | ed6c9f97ea07397779e5441fbc22dddcd94fee81 | [
"MIT"
] | permissive | gitter-badger/fullcycle | 4a0fe84d92f93a333094de76706c6aeb7c4b9402 | 1f21fb5bfacdaa7005f506bd6327689368b421d4 | refs/heads/master | 2020-03-28T07:04:31.463488 | 2018-09-06T23:15:00 | 2018-09-06T23:15:00 | 147,879,359 | 0 | 0 | null | 2018-09-07T22:08:08 | 2018-09-07T22:08:08 | null | UTF-8 | Python | false | false | 1,188 | py |
import datetime
class TaskSchedule(object):
lastrun = None
start = None
pending_run = False
#default to 0 seconds means disabled
#interval is in seconds
interval = 0
q = None
def __init__(self, run_on_init=False):
self.pending_run = run_on_init
def is_disabled(self):
... | [
"dfoderick@gmail.com"
] | dfoderick@gmail.com |
91a59fef16036229feabbf59c9aa7c02b86b5d38 | 3f7fd5abd0fe3a516d620a6948f9079bc34c1f5e | /glooey/__init__.py | 6790c321f675d52a9caeabef925ecb67ace45d5b | [
"MIT"
] | permissive | wkentaro/glooey | f8cb4723e266a29941da41d5ab81f8d2b809d2f2 | 4eacfdc7c14b5903f1bc3d5d4fa2b355f5fc5ee1 | refs/heads/master | 2020-05-17T19:42:38.554766 | 2019-04-28T05:41:43 | 2019-04-28T05:41:43 | 183,922,793 | 1 | 0 | MIT | 2019-04-28T15:02:41 | 2019-04-28T15:02:40 | null | UTF-8 | Python | false | false | 319 | py | #!/usr/bin/env python3
__version__ = '0.1.2'
from .widget import *
from .root import *
from .containers import *
from .text import *
from .images import *
from .buttons import *
from .dialogs import *
from .scrolling import *
from .misc import *
from . import drawing
from .drawing import Color
from . import themes
| [
"kale@thekunderts.net"
] | kale@thekunderts.net |
0f1b8f58a2fabca481414c2c84477d370d059f5d | be4d32d35fd4af3cf4ecf3736c8e879d50b8ae37 | /Python/Django/djangoform/djangoform/wsgi.py | 145141d25d9c0de325f197f0995939cb185d6510 | [] | no_license | yangluo0901/CodingDojo_Assignment | f09bbec26f87b5b276fd6ef3c77f27d13518937e | 44ccb5158b12c1656793bac76f1a7a707b147982 | refs/heads/master | 2021-10-11T21:12:14.889189 | 2019-01-29T19:52:56 | 2019-01-29T19:52:56 | 105,716,841 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for djangoform project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"yangluo0901@gmail.com"
] | yangluo0901@gmail.com |
8ba2e00236e70179ab87d41710598309635d289b | c4dacd0f5e397422018460c268ec8375aebe6419 | /pyRMSD/benchmark/alias/test/TestCondensedMatrix.py | 1fe99c0cac1171d98093825018e25272436a89ee | [
"MIT"
] | permissive | asford/pyRMSD | 032c9e03094392a957dfc5650b28b6e70bcdf17a | 8f1149fb631bfffebeb595c5b164d6945f7444fa | refs/heads/master | 2021-01-15T20:04:10.524616 | 2013-08-01T12:56:04 | 2013-08-01T12:56:04 | 12,771,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | '''
Created on 30/01/2012
@author: victor
'''
import unittest
import scipy.spatial.distance as distance
import cStringIO
import random
from pyproclust.matrix.condensedMatrix import CondensedDistanceMatrix, load_condensed_matrix, calc_number_of_rows,complete_to_condensed,zero_condensed
from pyproclust.matrix.completeMa... | [
"victor.gil.sepulveda@gmail.com"
] | victor.gil.sepulveda@gmail.com |
e68071c5d957adac8446ee734833fc462a73c82f | ac6922fbaa51c3068883c3d60b407350f13213f9 | /src/einsteinpy/tests/test_metric/test_schwarzschild.py | 42b0c43107a4dc2b105cb234aeecafd5dac58e47 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | divya144/einsteinpy | 719c961e3c4698c1d7df77a78a3f9b51f234d077 | e5f7c15fb80f8fef8d1e8ca41188d9ac7ee668ec | refs/heads/master | 2020-05-03T09:26:27.003181 | 2019-04-09T13:33:35 | 2019-04-10T10:32:36 | 178,553,798 | 2 | 1 | MIT | 2019-03-30T12:08:14 | 2019-03-30T12:08:14 | null | UTF-8 | Python | false | false | 7,272 | py | import warnings
import numpy as np
import pytest
from astropy import units as u
from numpy.testing import assert_allclose
from einsteinpy import constant
from einsteinpy.metric import Schwarzschild
from einsteinpy.utils import schwarzschild_radius
_c = constant.c.value
@pytest.mark.parametrize(
"pos_vec, vel_v... | [
"s.ritwik98@gmail.com"
] | s.ritwik98@gmail.com |
a29f11c438bd1ae1ff2edaed687eb601ffaa6d46 | 8fc2ab3d29a30e603e19b30bb9517928de529167 | /CoinChange_5.py | 9879dd2cfd48bef094087426f31b8a20a3a81491 | [] | no_license | rushilchugh/Practise | 35a9861bec6786580dc0a440eb25d78e43cb7bc9 | 98fd593b95dad641bef1d519c6c6ed1daaae630f | refs/heads/master | 2020-03-13T21:14:14.013604 | 2018-04-27T12:23:50 | 2018-04-27T12:23:50 | 131,291,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import math
def coinChange(cList, S):
minVals = [math.inf for _ in range(S + 1)]
minVals[0] = 0
for i in range(1, S + 1):
for j in range(len(cList)):
currCoin = cList[j]
if cList[j] <= i and minVals[i - cList[j]] + 1 < minVals[i]:
minVals[i] = mi... | [
"noreply@github.com"
] | rushilchugh.noreply@github.com |
aa697365a29cb901be7dae97bff8fa8573350419 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Settlement/FPythonCode/FSettlementCommitterFunctions.py | bbb921bda4c49e2e4f2cd0efe447daea3a2bc283 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | """ Compiled: 2020-09-18 10:38:49 """
#__src_file__ = "extensions/settlement/etc/FSettlementCommitterFunctions.py"
import acm
#-------------------------------------------------------------------------
def CommitCommitters(committerList, logger):
commitSuccessful = True
acm.BeginTransaction()
try:
... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
1db686d84707ba2314d219fbd59ee026669dd20e | 14de6d507e471d582a7e7f5cba898f72f6ba186d | /python/Linked-List-Cycle/hashmap.py | 2ac2a62d573e60b6ccf32acf0e8d80d75b77303c | [
"MIT"
] | permissive | yutong-xie/Leetcode-Solution | a7d9c1f73a0fecd9de1d04dbd4c06393959dd95a | 6578f288a757bf76213030b73ec3319a7baa2661 | refs/heads/master | 2023-03-30T01:59:58.554650 | 2021-03-27T21:09:46 | 2021-03-27T21:09:46 | 290,101,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright 2020, Yutong Xie, UIUC.
Using hashmap to test whether a cycle exists in the linked list
'''
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(... | [
"36655655+yutong-xie@users.noreply.github.com"
] | 36655655+yutong-xie@users.noreply.github.com |
0f41900cd8ccc0a02af26e8e6ac41f8c02048d26 | 7caa438706a423dd9779a81f8345fcf1ec11e921 | /NXT-Python/pyglet-1.2.4/examples/opengl_3.py | 0298cc248eb88ac3b54cfbdfafdf472714967189 | [
"BSD-3-Clause"
] | permissive | tamarinvs19/python-learning | 5dd2582f5dc504e19a53e9176677adc5170778b0 | 1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9 | refs/heads/master | 2021-07-15T13:23:24.238594 | 2021-07-08T07:07:21 | 2021-07-08T07:07:21 | 120,604,826 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | #!/usr/bin/python
# $Id:$
'''In order to use the new features of OpenGL 3, you must explicitly create
an OpenGL 3 context. You can do this by supplying the `major_version` and
`minor_version` attributes for a GL Config.
This example creates an OpenGL 3 context, prints the version string to stdout,
and exits.... | [
"slavabarsuk@ya.ru"
] | slavabarsuk@ya.ru |
cbffe481b8c2609d89a052878599e76a03d759bc | 95697a9f8fed6d45cb8ae9ae2525873c99cc7cfb | /Project File/02. Second Project - notice board/server/View/V1/API/service/ShowUser.py | 33e58e2227326af8328954721c03870669d60b25 | [] | no_license | parkjinhong03/Python-Flask | d30c7447c70eb0cbda0454bfd2f2168347209adb | 5732f17c594c1fc213940b214c0beafd4448bc14 | refs/heads/master | 2022-02-24T21:04:35.868873 | 2019-09-04T02:13:49 | 2019-09-04T02:13:49 | 198,320,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from View.V1.Function import LoginCheck
import os
# 사용자 명단 라우터
def showuser():
if LoginCheck.logincheck() == False:
return 'Please Login First!'
count = 0
Userlist = ''
for root, dirs, files in os.walk('./Data/List'):
for dir in dirs:
count = count + 1
Userlis... | [
"jinhong0719@naver.com"
] | jinhong0719@naver.com |
978d109a9d79229a04673c409ce440e1dc8754e1 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Introduction_to_numerical_programming_using_Python_and_CPP_Beu/Ch09/Python/P09-LinFit.py | ad49008506665cc9671c465c648ff7ed9fc70fb7 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,416 | py | # Linear fit of a model to observed data points
from modfunc import *
from graphlib import *
# main
nn = [0]*4 # end-indexes of the 3 plots
col = [""]*4 # colors of plots
sty = [0]*4 ... | [
"me@yomama.com"
] | me@yomama.com |
6176f6f471d91cdedce7764c2d165f4fab302ff0 | 9d89530e784922173aa1c032dcfaf772a26cf99e | /vulnerabilities/tests/test_suse.py | a4695d8265175e094b60103b31d56577c44d9269 | [
"Python-2.0",
"Apache-2.0"
] | permissive | nileshprasad137/vulnerablecode | 7da3d9c15e436919bedb29d3bfeb574a233f3a5b | 4677f70c654a15da529a80d19d7de1ca013ef8eb | refs/heads/main | 2023-08-22T23:51:30.806190 | 2021-10-08T13:13:32 | 2021-10-08T13:13:32 | 418,471,773 | 1 | 0 | Apache-2.0 | 2021-10-18T11:33:24 | 2021-10-18T11:33:24 | null | UTF-8 | Python | false | false | 7,207 | py | import os
import unittest
import xml.etree.ElementTree as ET
from vulnerabilities.oval_parser import OvalParser
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_DATA = os.path.join(BASE_DIR, "test_data/")
class TestSUSEOvalParser(unittest.TestCase):
@classmethod
def setUpClass(cls):
xml_... | [
"shivam.sandbhor@gmail.com"
] | shivam.sandbhor@gmail.com |
1be8a4ba8920c53045cf4597fe0649599d965eeb | cd9f819b968def4f9b57448bdd926dc5ffa06671 | /B_Python程式設計大數據資料分析_蔡明志_碁峰_2018/ch12/shape.py | 6abc3387132728cee32128b7b8749b663d682949 | [] | no_license | AaronCHH/jb_pyoop | 06c67f3c17e722cf18147be4ae0fac81726e4cbc | 356baf0963cf216db5db7e11fb67234ff9b31b68 | refs/heads/main | 2023-04-02T05:55:27.477763 | 2021-04-07T01:48:04 | 2021-04-07T01:48:13 | 344,676,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import math
class Shape:
def __init__(self, xPoint = 0, yPoint = 0):
self.__xPoint = xPoint
self.__yPoint = yPoint
def getPoint(self):
return self.__xPoint, self.__yPoint
def setPoint(self, xPoint, yPoint):
self.__xPoint = xPoint
self.__yPoint = yPoin... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
a84a792cbc0b3a11189f3108b5bb171958a14f1f | 0ced6dc4f7c30cd58475bc5a13a7a8ad00081bab | /AndroidCase/test_023_mydingdan.py | a69a7eb2a0f03ec5b805b1325343d92ee87a1967 | [] | no_license | duanbibo/app-autotes-python | 1ef7bc635a7dcd9e82a61441ac7a567bba1c1e25 | 951fcb2a138a75e7722a7714cde62990f33b0f3e | refs/heads/master | 2022-04-25T03:39:20.675426 | 2020-04-27T15:08:47 | 2020-04-27T15:08:47 | 259,368,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | import unittest
from time import sleep
from util.driver import Driver
from util.isElement import iselement
class Login(unittest.TestCase):
# 我的订单
def setUp(self):
self.driver = Driver.DRIVER
def test_mydingdan(self):
driver = self.driver
sleep(2)
driver.find_element_by_xpa... | [
"820355197@qq.com"
] | 820355197@qq.com |
4b32656a28a2c68bceb7c7b718403512b88994f1 | 6bfda75657070e177fa620a43c917096cbd3c550 | /kubernetes/test/test_autoscaling_v2alpha1_api.py | 6f7571908e7305b29558bf7d6d8a9a4487042303 | [
"Apache-2.0"
] | permissive | don41382/client-python | 8e7e747a62f9f4fc0402eea1a877eab1bb80ab36 | e69d4fe204b98f7d7ee3ada3996b4f5fbceae5fe | refs/heads/master | 2021-01-19T23:15:50.172933 | 2017-04-18T18:00:48 | 2017-04-18T18:00:48 | 88,943,866 | 0 | 0 | null | 2017-04-21T05:19:52 | 2017-04-21T05:19:52 | null | UTF-8 | Python | false | false | 2,946 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
e1a3999957bf6d49d0e8a8693b74c61ff9a7ae7d | 4de2bfe570af0ae03db661223dc36524642a4016 | /libermatic_customization/libermatic_customization/doctype/libermatic_settings/libermatic_settings.py | ea23f8e293f4e03572f53c1e63b16d67b32d51f8 | [
"MIT"
] | permissive | libermatic/libermatic_customization | 6b645c6424987cee39653499bfa7b2683da65f42 | 38ac7abd691ee289ee85cb3926cafb3989af24e1 | refs/heads/master | 2020-03-31T18:29:28.152141 | 2019-08-27T11:16:14 | 2019-08-27T11:16:14 | 152,460,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Libermatic and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
from frappe.model.document import Document
class LibermaticSettings(Document):
pass
| [
"sun@libermatic.com"
] | sun@libermatic.com |
b331e8d4738cf4364bf4bb4dba8cab7ab907871e | 057d2d1e2a78fc89851154e87b0b229e1e1f003b | /venv/Lib/site-packages/oslo_utils/tests/test_reflection.py | 34384f7920a16de56a31f1e5bb0ed015841a979b | [
"Apache-2.0"
] | permissive | prasoon-uta/IBM-Cloud-Secure-File-Storage | 276dcbd143bd50b71121a73bc01c8e04fe3f76b0 | 82a6876316715efbd0b492d0d467dde0ab26a56b | refs/heads/master | 2022-12-13T00:03:31.363281 | 2018-02-22T02:24:11 | 2018-02-22T02:24:11 | 122,420,622 | 0 | 2 | Apache-2.0 | 2022-12-08T05:15:19 | 2018-02-22T02:26:48 | Python | UTF-8 | Python | false | false | 11,178 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Yahoo! Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | [
"prasoon1812@gmail.com"
] | prasoon1812@gmail.com |
129e7bf0bd902cefe5098246834c9b2b435b12ac | 67117fb75f765d3426b8d0b06567b9a0d446e25b | /src/gtk/toga_gtk/libs/gtk.py | 95678bd2d52085e07397acbccbe29539cb31503f | [
"BSD-3-Clause"
] | permissive | maks232/toga | 2e61723aea004c97f97f6ac4e8f2e0e6de193b8f | 47b8961ded119bc147961c0a7054d354e3f3222f | refs/heads/master | 2022-12-10T14:09:25.963436 | 2020-09-03T11:53:53 | 2020-09-03T11:53:53 | 292,660,054 | 0 | 0 | NOASSERTION | 2020-09-03T19:20:57 | 2020-09-03T19:20:56 | null | UTF-8 | Python | false | false | 771 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GdkPixbuf, Gio, GLib # noqa: F401, E402
# The following import will fail if WebKit or its API wrappers aren't
# installed; handle failure gracefully
# (see https://github.com/beeware/toga/issues/26)
# Accept any API version greater than ... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
fc738564a77ede09246ec3055abf893fcb7cccc8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnaft.py | c99a4f51bfc46638106f2eb133a0128b90268820 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 584 | py | ii = [('MarrFDI.py', 6), ('FerrSDO3.py', 1), ('RennJIT.py', 1), ('ProuWCM.py', 1), ('LeakWTI2.py', 1), ('LeakWTI3.py', 2), ('AdamWEP.py', 3), ('FitzRNS3.py', 1), ('ClarGE2.py', 1), ('CarlTFR.py', 2), ('SeniNSP.py', 1), ('LyelCPG.py', 1), ('GilmCRS.py', 2), ('FerrSDO2.py', 1), ('KirbWPW2.py', 2), ('SoutRD2.py', 1), ('Ba... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
539d0113207a5c499e7c828ef9766dbe5e11d854 | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/shared/utils/methodsrules.py | 660a7b0a547bb320ff1113ef3462da88efbd7c12 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,585 | py | # 2016.08.04 19:53:25 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/shared/utils/MethodsRules.py
from collections import defaultdict
from types import MethodType
from debug_utils import LOG_DEBUG
class MethodsRules(object):
__slots__ = ('__listenersToSkip', '__notificationToDelay', '__delayer... | [
"info@webium.sk"
] | info@webium.sk |
4a651167e8552a4ce397906eb3f85051e3281757 | 1065ec75d9ee668ffd7aafc6a8de912d7c2cee6f | /addons/script.icechannel.extn.extra.uk/plugins/livetv_uk/sky_news_ltvi.py | 0533ee893da846b0f640a240561d8b1b06333b69 | [] | no_license | bopopescu/kodiprofile | 64c067ee766e8a40e5c148b8e8ea367b4879ffc7 | 7e78640a569a7f212a771aab6a4a4d9cb0eecfbe | refs/heads/master | 2021-06-11T17:16:15.498281 | 2016-04-03T06:37:30 | 2016-04-03T06:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | '''
Ice Channel
'''
from entertainment.plugnplay.interfaces import LiveTVIndexer
from entertainment.plugnplay import Plugin
from entertainment import common
class sky_news(LiveTVIndexer):
implements = [LiveTVIndexer]
display_name = "Sky News"
name = "sky_news"
other_n... | [
"sokasoka@hotmail.com"
] | sokasoka@hotmail.com |
b4ee0e774735f7e22ec95c1c42dc59f30949f18c | e2b5f9c5ccc51be2f3c0b55f580b882f2adb4875 | /docs/conf.py | 37ab66664e95edd05101d56e93214e099d7deeac | [
"MIT"
] | permissive | bfontaine/firapria | 5e0930db20689dd5d5a5bfa4511f6781b1521c21 | a2eeeab6f6d1db50337950cfbd6f835272306ff0 | refs/heads/master | 2021-01-25T06:36:39.101391 | 2014-09-30T22:09:38 | 2014-09-30T22:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,173 | py | # -*- coding: utf-8 -*-
#
# Firapria documentation build configuration file, created by
# sphinx-quickstart on Fri Mar 28 23:02:11 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"batifon@yahoo.fr"
] | batifon@yahoo.fr |
07c23570e03becd7f5bb4afa422a232f230fa5d1 | f60eb7d15ce3ca06e2db1dc0af8b3b87bed08c37 | /home/migrations/0012_auto_20170609_2252.py | 848d2b5ca42484916880c1fe1c4dcfbfde12ea15 | [] | no_license | wlminimal/epc | 96136f0c5f2b4ddc04fbc7e7b76d6a41c631ea26 | 2127a4e273a69a3ca0d5711fd1452c1bc5ab7590 | refs/heads/master | 2022-12-12T11:33:57.711869 | 2019-04-12T16:33:58 | 2019-04-12T16:33:58 | 92,700,181 | 0 | 0 | null | 2022-12-07T23:58:05 | 2017-05-29T02:20:33 | Python | UTF-8 | Python | false | false | 879 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-09 22:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0011_delete_sermonday'),
]
operations = [
... | [
"wlminimal@gmail.com"
] | wlminimal@gmail.com |
2095e3bfdb5024a6fd017a4c63e5e06b6416e81f | 19fb0eb26f5a6d2180a323cf242ce00f5e4e1c6d | /contrib/seeds/makeseeds.py | 39db93d0b44c8c2565919b9c1b35031aba660f40 | [
"MIT"
] | permissive | j00v/NestEGG | bd4c9555f6473cc655e203531c6ab4d0dc795b61 | 8c507974a5d49f5ffa7000fa8b864a528dcb9c3e | refs/heads/master | 2022-12-03T09:16:14.732378 | 2020-08-12T15:25:31 | 2020-08-12T15:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,517 | py | #!/usr/bin/env python3
# Copyright (c) 2013-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 615801
#... | [
"shamim.ice.ewu@gmail.com"
] | shamim.ice.ewu@gmail.com |
4850a93389426ba1af6d9b80f1441d2e15b33c02 | a88a07f83024f6781bf0f297a7585686a97030e1 | /src/learning/theano/concatennate.py | 35bef22d31217cc2097e13b618070d02eb1adef4 | [] | no_license | muqiann/NamedEntityRecognition | 0b89c79a46dc6be6b61a5fe020d003724d04a971 | 3c3a979950f3f172a61fd7c9ff5d3563877810a9 | refs/heads/master | 2020-04-27T17:53:21.485758 | 2018-06-26T01:26:08 | 2018-06-26T01:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # -*- coding: utf-8 -*-
import theano
import numpy as np
import theano.tensor as T
ones = theano.shared(np.float32([[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
twos = theano.shared(np.float32([[10, 11, 12], [13, 14, 15]]))
print(ones.get_value())
result = T.concatenate([ones, ones], axis=0) # 在列上连接
print(result.eval())
res... | [
"572176750@qq.com"
] | 572176750@qq.com |
740e7c5bd00047252a123bf3aef1db3897986788 | e41e614249db33edfd62831ae30e08596e32dde6 | /filter_data.py | 839b19a473b33cbb8d42b50d12d96b238eef8d2a | [] | no_license | newtein/pollution_science | 237fd2385c870db2fdb3cc97bbc5a9d864b4e5f8 | 6779aa729f412ffe0901c069c8ef63b3a83c4ce4 | refs/heads/master | 2023-02-01T08:14:26.612619 | 2020-12-13T06:07:38 | 2020-12-13T06:07:38 | 275,144,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | from read_data import ReadData
from combine_data import CombineData
from copy import copy
class FilterData:
def __init__(self, pollutant, year=None, observation_type="daily", start_date="01-12-2019",
end_date="15-06-2020", index_col = None, fixed_where_payload = {}):
self.pollutant = poll... | [
"harshitgujral12@gmail.com"
] | harshitgujral12@gmail.com |
6934696f4d50fcab91b608637cf2ad56e25e07b2 | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L31/31-28_wat_20Abox/set_5.py | 0b41608e37632fc6b7eb344e7e03bd50ed7ca3cd | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/CDK2/L31/wat_20Abox/ti_one-step/31_28/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_5.in'
temp_pbs = filesdir + 'temp_5.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
7b1108fcacc70c764138daa4e2ec874037df6884 | 5135adcb2924ab78bb2f5ae492aca57768bd9565 | /sneaker_map_23022/wsgi.py | fa427aebab7479f1786df9cbfd48e4123136c7dd | [] | no_license | crowdbotics-apps/sneaker-map-23022 | 658eb82858b7c5f56a83870145e8aa6fc5620012 | 747c458d1e0a66e9b3df733196706f360b0bab0b | refs/heads/master | 2023-01-19T15:36:21.267419 | 2020-11-27T23:15:08 | 2020-11-27T23:15:08 | 316,617,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for sneaker_map_23022 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
19dcebc74ce7412e7a09a61d775cc92d429daf42 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_preview/models/_models_py3.py | eb8330f2ab9119967c431a9943bf9e45fb981a55 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 56,100 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
31fd733e963aacdd5f306e6ce2af4e3ce832b28d | 5d1c43bb4881039f198eedcee2ceb101b406e0a0 | /Django/project03/app/migrations/0001_initial.py | e8289a90ad8bf2cb47749b6bf504ceb405feb277 | [] | no_license | MunSeoHee/Likelion_Gachon_2020 | 46155b1686a245a59c5664f7726ac754b7079e4b | e0e48845fdb0e4aa2365e7c47e29880a27f0f261 | refs/heads/master | 2021-04-10T09:51:06.618980 | 2020-12-07T10:06:43 | 2020-12-07T10:06:43 | 248,927,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 3.0.4 on 2020-07-29 06:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(aut... | [
"nansh9815@naver.com"
] | nansh9815@naver.com |
0c34ebdee8bacb1ea327c5bb8e6ed30ba5e6a457 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_tuberculosis.py | 254ad24d14a38ada684c33760bf2c6c129c5c8c6 | [
"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 | 390 | py |
#calss header
class _TUBERCULOSIS():
def __init__(self,):
self.name = "TUBERCULOSIS"
self.definitions = [u"a serious infectious disease that can attack many parts of a person's body, especially their lungs"]
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = '... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f3f02c3c24a39f79b783b10e87490b85b01b559c | 75b9e31895336ee5f174ac94f679dcc7cda94cab | /core/__init__.py | fe72f6d4fd2808c9f8df490d4c90dc7ee37312ac | [] | no_license | eduarde/PentaGroup | e319633274d128025e538ff0afd0d5b026461491 | d67e67495daf96e274ccf5ac31f043ffd5f30f58 | refs/heads/master | 2021-09-06T16:08:02.748042 | 2018-02-08T10:56:47 | 2018-02-08T10:56:47 | 108,404,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | default_app_config = 'core.apps.CoreConfig'
# import logging
# from django.conf import settings
# fmt = getattr(settings, 'LOG_FORMAT', None)
# lvl = getattr(settings, 'LOG_LEVEL', logging.DEBUG)
# logging.basicConfig(format=fmt, level=lvl)
# logging.debug("Logging started on %s for %s" % (logging.root.name, logging.... | [
"eduard.erja@gmail.com"
] | eduard.erja@gmail.com |
dea18cce19c36cadcf59982b6e850953b0d73ae9 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/squareroot/5e828e59-aad1-47ca-bae8-ed5d41514fe3__FairAndSquare.py | be747649a6d849ba6cd0795593bbc095c0784804 | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | '''
Solving the third code jam problem
'''
def isPalindrome(number):
original = number
reverse = 0
while number != 0:
reverse = reverse * 10 + number % 10
number /= 10
return reverse == original
# main program
import os, math
full_path = os.path.realpath(__file__)
path, file = os.path.split(full_path)
f... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
aa93d7bd4ba05c34a7c892ee2434d753f300dcbf | a7b5adc5f72b9ef71c0c71691492f8af8a32c868 | /Jaehwan-Hong/baekjoon/beginner_100th/14928.py | dc0c94e8361a2dcdbeddad8b4281472f3059747f | [] | no_license | mintheon/Practice-Algorithm | 535ff607e36d1bfa9f800a28091a52c48748221c | 3a653a1d8cc6e1438cab47a427ccd0b421a10010 | refs/heads/master | 2023-04-10T17:43:10.434210 | 2021-04-10T18:46:26 | 2021-04-10T18:46:26 | 347,719,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | # 큰 수 (BIG)
from decimal import Decimal, getcontext
getcontext().prec = 10 ** 6
n = input()
print(Decimal(n) % 20000303) | [
"noreply@github.com"
] | mintheon.noreply@github.com |
56e00a955a0a95f250376e994248aea4c647cb18 | 3f53e38076713ab49fd03a54c7c9d3e21de5eb14 | /Pyrado/pyrado/environments/one_step/catapult.py | 275cacfdbd89a8bf1378ee405a40ae47ed35c6b3 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | arlene-kuehn/SimuRLacra | 4510473789d1c8927c8d5969a9606238523d5dd7 | 15901f70f0538bce19acdda2a0018984f67cc0fe | refs/heads/master | 2023-01-28T13:10:05.607575 | 2020-12-04T14:47:01 | 2020-12-04T14:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,904 | py | # Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and
# Technical University of Darmstadt.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source ... | [
"fabio.muratore@famura.net"
] | fabio.muratore@famura.net |
8b0248ae612554e90e944519298e07b1bdeb10ae | 0a89cad9f98e5c014b4c6970c6a63d29c89bacbf | /ilisa/antennameta/delays.py | 7a368c97f1533e4be73314a83c1f4b556de7b0ec | [
"ISC"
] | permissive | mpozoga/iLiSA | 5fe516972d010f04695a5990f68c1b4b6f092889 | 164c198a7569413a12d52338738aaa24c763890d | refs/heads/master | 2020-08-27T07:40:41.099906 | 2019-10-12T12:37:16 | 2019-10-12T12:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | #!/usr/bin/env python
"""Module for handling the LOFAR antenna delay files.
"""
import sys
import os
import numpy as np
#import pkg_resources
#my_data = pkg_resources.resource_filename(__name__, "share/StaticMetaData")
STATICMETADATA = os.path.join(os.path.dirname(__file__),'share/StaticMetaData/')
CABLEDELAYDIR =... | [
"tobia@chalmers.se"
] | tobia@chalmers.se |
18915148d4eae7ae3f755afbef18c840ec5dae52 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/e27b4c2ae40681b2c2ec196cd7d853614b265abd-<main>-bug.py | b7e22bbd6cbf18bf9fd295b34e4f4275576b906b | [] | 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 | 6,373 | py | def main():
state_map = dict(present='install', absent='uninstall -y', latest='install -U', forcereinstall='install -U --force-reinstall')
module = AnsibleModule(argument_spec=dict(state=dict(default='present', choices=state_map.keys()), name=dict(type='list'), version=dict(type='str'), requirements=dict(), vir... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
e5c2442247427cec1a3951aa995099d60185b687 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/308/93222/submittedfiles/principal.py | 2e2b9bd7c56e2b637fb56a6e0c2b10a929045553 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*- coding: utf-8 -*-
from minha_bib import *
from random import randint
notas = []
for i in range(0, 5):
x = randint(0, 100)/10.0
notas.append(x)
print('Valor sorteado: %.1f' % x)
print (notas)
for i in range (len(notas), 0, -1):
print(notas[i-1])
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
40a782cbd11ac6b9d420ca5d39aea916b32437c7 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/domain/AlipayTradePageMergePayModel.py | 070e26792a14dd740369010833dd12f5d7db348d | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 2,684 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.OrderDetail import OrderDetail
class AlipayTradePageMergePayModel(object):
def __init__(self):
self._order_details = None
self._out_merge_no = None
se... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
a458a4a886e0d030318c0fd387a072c062b86fc0 | bd010b944cb658531fe1e3a4fda9e8dd2d4e2a15 | /runners/beginner/features/signal_to_noise_limit.py | 4ac17e0544fedb41e5bca2399961cb2294abc81d | [] | no_license | harshitjindal/autolens_workspace | f32132a51eff888c3b25098df09f514be2dd6422 | 47f85e6b7c2f5871055b9b88520c30d39fd91e2a | refs/heads/cern-submission | 2021-03-20T19:53:12.153296 | 2020-04-24T15:25:25 | 2020-04-24T15:25:25 | 247,228,818 | 0 | 0 | null | 2020-04-24T15:26:45 | 2020-03-14T07:04:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,779 | py | import os
# This pipeline runner demonstrates how to use the signal-to-noise limits in pipelines. Checkout the pipeline
# 'autolens_workspace/pipelines/beginner/features/signal_to_noise_limit.py' for a description binning up.
# I'll assume that you are familiar with how the beginner runners work, so if any code doesn... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
88e2b2e2b6a4072ebb10fc9315ec7f85230da990 | e2c0b31cf4e1611631658ac2bc2dd22e8d3607b0 | /webapp/common/logger.py | 6718fab11a845f77104cde6b48b96fa087f817bf | [
"MIT"
] | permissive | binary-butterfly/open-booking-connect | 2aef9ed443ed8096e4876a923cfb02e535494d99 | ed153dd191c75810cbd2d9b74aee2962380a54d0 | refs/heads/master | 2023-08-19T22:12:47.150414 | 2021-10-10T18:53:35 | 2021-10-10T18:53:35 | 355,625,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | # encoding: utf-8
"""
open booking connect
Copyright (c) 2021, binary butterfly GmbH
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
"""
import os
import logging
from logging.handlers import WatchedFileHandler
from ..config import Config
class Logger:... | [
"mail@ernestoruge.de"
] | mail@ernestoruge.de |
919f93e4e6bf935186a408a749c680b7cfb98e10 | d54b49fb7a899fa7c1b0bd5be02c9af43cb9cae0 | /accesspanel/extensions/lock_input.py | e551b8ba5094a45ef28355b950c2c7a16667ba3e | [
"BSD-3-Clause"
] | permissive | vincent-lg/accesspanel | 923a03f852aa96804abafe4c51833ded6e091427 | 42d27b7f12e9c3f9b5467a8ba4e973e2e9735796 | refs/heads/master | 2021-06-16T03:11:33.937714 | 2017-05-19T19:19:20 | 2017-05-19T19:19:20 | 71,724,440 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,986 | py | # Copyright (c) 2016, LE GOFF Vincent
# 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 must retain the above copyright notice, this
# list of conditions and th... | [
"vincent.legoff.srs@gmail.com"
] | vincent.legoff.srs@gmail.com |
bf34a703de23cc4f65a0f4660199b7563d9f3c42 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/peering/v20200101preview/registered_asn.py | 1b858c98471a749f3f06d915f00f04ec6173b3ae | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,592 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
379c4b9eceb06d3d37321197658f376170da04d7 | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /LearnPythontheHradWay/ex48/ex48/parser.py | 85e2fad7d534fc6e3c0c28fe74bf27d1a0b2d23c | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | #!/user/bin/python
#filename:parser.py
#-*-coding:utf-8 -*-
class ParseError(Exception):
pass
class Sentence(object):
def __init__(self, subject, verb, obj):
self.subject = subject[1]
self.verb = verb[1]
self.object = obj[1]
def peek(word_list):
if word_list:
word = word_l... | [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
d4c65b9241fb8af0e9e3ce0f0f5a8c6653b57571 | fc365e7d2a558bf819b8062fb5a452e8c4ad3ca8 | /library/Codon.py | 8898e8ca7433963a80232402bd67fbb3deb8b0a8 | [] | no_license | ajrichards/phylogenetic-models | 9e47f27ff46ce95dc365d45fcd11949be3b506cb | 783f9a6b6cea816d255fa23f2e62423d98059ad9 | refs/heads/master | 2021-01-01T19:39:41.550390 | 2015-08-19T13:59:58 | 2015-08-19T13:59:58 | 25,293,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,871 | py | #!/usr/bin/env python
"""
TODO
change aa2pp to aa2ppc
and use http://www.geneinfinity.org/sp/sp_aaprops.html
"""
__author__ = "Adam Richards"
class Codon(object):
"""
A class to handle codon related functions
Amino acids are handled using the single character id, with the exception of STOP.
"""
... | [
"adamricha@gmail.com"
] | adamricha@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.