blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
8e830639fc2ef0cc682f1d742ee537d47985f00f
a643c2ed78b48e4cacf140776fbedd0191881e18
/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py
0ea29561b94824f85ffa27f8c2c1bf9e99c5e0c7
[ "Apache-2.0" ]
permissive
padamstx/openapi-generator
5ae41f68a4f9349d76c1db81b9ff82e18e5b4b7c
00604aff594864447c134ddb1982565136e27857
refs/heads/master
2023-03-08T20:11:36.318959
2022-09-28T16:34:17
2022-09-28T16:34:17
160,528,958
0
1
Apache-2.0
2023-02-24T16:13:11
2018-12-05T14:17:50
Java
UTF-8
Python
false
false
5,206
py
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from unit_test_api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noq...
[ "noreply@github.com" ]
padamstx.noreply@github.com
1b1c02e75d0c463404a738766c2fe6e24d2476c7
ad849c40e75d098e38db897154c63054e6f89fca
/models_class/model.py
8ff2a80539b1abd9c6c4efeda44b6b17c4e7e9f6
[]
permissive
vietnamican/Pytorch_Retinaface
768a96eb7e48b002dc91cc97cc41473206903c59
8d69dd191e16421bb399f49c7706d6e154d4a80e
refs/heads/main
2023-06-18T08:23:25.860727
2021-06-24T10:48:18
2021-06-24T10:48:18
366,045,702
1
0
MIT
2021-05-10T13:06:47
2021-05-10T13:06:46
null
UTF-8
Python
false
false
2,929
py
import torch from torch import nn from torchmetrics import Accuracy from .base import ConvBatchNormRelu from .base import Base class Config(object): dataroot = 'data/mrleye' train_image_dir = '../LaPa_negpos_fusion/train/images' train_label_dir = '../LaPa_negpos_fusion/train/labels' val_ima...
[ "vietnamican@gmail.com" ]
vietnamican@gmail.com
213f42b8e3c626c96fdba83225479382cdd7034f
544cfadc742536618168fc80a5bd81a35a5f2c99
/tools/test/connectivity/acts/framework/acts/controllers/pdu_lib/synaccess/np02b.py
655328feb4bede2c154cc3f44e04463ee9f339ee
[]
no_license
ZYHGOD-1/Aosp11
0400619993b559bf4380db2da0addfa9cccd698d
78a61ca023cbf1a0cecfef8b97df2b274ac3a988
refs/heads/main
2023-04-21T20:13:54.629813
2021-05-22T05:28:21
2021-05-22T05:28:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,057
py
#!/usr/bin/env python3 # # Copyright 2019 - The Android Open Source Project # # 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 # # ...
[ "rick_tan@qq.com" ]
rick_tan@qq.com
61c90a5a68de5d9fddb0ef91c1c3666064a8f85e
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_22/models/pod_replica_link_lag_response.py
4b80aac36f529a563527baa650fb2b54f0d5839c
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
3,922
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.22 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
[ "noreply@github.com" ]
PureStorage-OpenConnect.noreply@github.com
a14cb2cae1fd69db8497611253f1cb936df5a192
23ec2d87fb96626992df44af73a7daa202be79a6
/src/examples/connectfour/vs.py
3810ad1a332014b09a368e147f4ae73e9ef179df
[]
no_license
ishikota/pymcts
5d560ec7d0dcdf881a52c607adfdd384ae23e0c2
2d1ba191cadbbaab0ab922a785478210cf0709f4
refs/heads/master
2021-01-01T19:31:00.932984
2015-07-28T14:45:23
2015-07-28T14:45:23
39,330,236
2
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
# add path to the src and test directory import os import sys PARENT_PATH = os.getenv('PYMCTS_ROOT') SRC_PATH = PARENT_PATH +"src/" sys.path.append(SRC_PATH+"algorithm") import mcts import connectfour_model import heuristic_model # Clear the shell os.system("clear") # Setup for MCTS model = heuristic_model.ConnectFo...
[ "ishikota086@gmail.com" ]
ishikota086@gmail.com
288b4bd41f49b1124f0b189c46fb7fc1cba2ea02
066f812b051afffbe1a05630a728d15bab9f02bc
/django_503/models.py
53c13d2c325313df137b454d59365c4a456316b9
[ "MIT" ]
permissive
soul4code/django-503
04714af1a72813d5f6f1691eada97773adbe9c30
48f30e176f334988dafb48dff7c604b7f72ab290
refs/heads/master
2021-12-14T00:08:07.899188
2015-07-16T18:31:09
2015-07-16T18:31:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
from django.db import models from django.utils.translation import ugettext as _ class Config(models.Model): key = models.CharField(_('Key'), max_length=100, unique=True) value = models.BooleanField(_('Value'))
[ "baryshev@gmail.com" ]
baryshev@gmail.com
bc47db2fbd5e552d18ef8b17070331d9bf86f0a9
595c69f717fc3ceb4e0701cc433f6d7f927b6fdb
/Hogworts/Page_Object/Pages/main.py
7f61ff32429f5e1477ac8b6a1941e7c335deb355
[ "MIT" ]
permissive
archerckk/PyTest
d6462ebf46c6dbd5bb3ce03666aad0c2665367cd
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
refs/heads/master
2022-03-26T21:09:25.891745
2021-06-14T01:39:36
2021-06-14T01:39:36
129,497,345
0
0
null
2020-01-14T10:57:49
2018-04-14T08:23:03
Python
UTF-8
Python
false
false
533
py
from Page_Object.Pages.base_page import Base_Page from Page_Object.Pages.login import Login from Page_Object.Pages.register import Register from selenium.webdriver.common.by import By class Main(Base_Page): _base_url='https://work.weixin.qq.com/' def goto_register(self): self.find(By.CSS_SELECTOR,'.i...
[ "archerckk@163.com" ]
archerckk@163.com
a66d33de13362abe85bb1eaea386c7fdb853db98
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/l5/work/app_20200705183534.py
b04a220ca1102f3467a3b5ad0e580157e43c7a65
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
357
py
from flask import Flask from flask import render_template app = Flask(__name__) scoreboard = [{"name": "Tester", "score": 10}, {"name": "Tester", "score": 11}] @app.route("/<name>") def hello(n): return render_template("index.html") @app.route("/game") def game(): return render_template("index.html") if ...
[ "yevheniira@intelink-ua.com" ]
yevheniira@intelink-ua.com
defc1b7d74de6d1d58c5993550f7e8e9ad068c89
0f0a7adfae45e07a896c5cd5648ae081d4ef7790
/python数据结构/python黑马数据结构/排序于搜索/桶排序.py
12d443dea83de14b64c2fafd0db8a034651882fd
[]
no_license
renlei-great/git_window-
e2c578544c7a8bdd97a7a9da7be0464d6955186f
8bff20a18d7bbeeaf714aa49bf15ab706153cc28
refs/heads/master
2021-07-19T13:09:01.075494
2020-06-13T06:14:37
2020-06-13T06:14:37
227,722,554
0
0
null
null
null
null
UTF-8
Python
false
false
2,463
py
lista = [12, 4, 5, 6, 22, 3, 43, 654, 765, 7, 234] # 桶排序 """ 桶排序就是找出最大值和最小值,在这个区间进行分桶,然后将数组中的数按区间装桶,然后在对每个桶进行排序 """ def pail_sort(alist): """桶排序""" n = len(alist) min_cur, max_cur = 0, 0 cur = 1 # 找出最大 while cur < n: if alist[min_cur] > alist[cur]: min_cur = cur cu...
[ "1415977534@qq.com" ]
1415977534@qq.com
a0485c4cb332ebd75e227c8399d966b35342cc60
623065fb8f2fec97c7a4e201bff7ff1d9578e457
/imgviz/data/kitti/__init__.py
afb8eb994cbe1b8a3520b78d531e100de2e1bc1e
[]
no_license
bigdatasciencegroup/imgviz
4759c4264a43e9d37429489cc63a8a00fbb489d5
cec9f1e3cc02cac46d11a99c63c696b8743ba6f1
refs/heads/master
2020-08-21T23:39:44.038394
2019-09-09T13:55:57
2019-09-09T13:55:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
import os.path as osp import numpy as np here = osp.dirname(osp.abspath(__file__)) def read_pose_file(filename): with open(filename, 'r') as f: transforms = [] for one_line in f: one_line = one_line.split(' ') Rt = [float(pose) for pose in one_line] + [0, 0, 0, 1] ...
[ "www.kentaro.wada@gmail.com" ]
www.kentaro.wada@gmail.com
3f2a7f8ca8c8b949eb087d6b60465bf94f7e9e90
ac01d8bdab2140eae6332613142b784484877b78
/main.py
c4d5cd5bb342e7b9329bf9ee51a5c37957b7ec15
[]
no_license
2020668/api_automation_course
eb19322485fdb7db4b9586597895c3ac97727e96
33da9f5f1f17de5a5892d28a9f6feea09e8c4adc
refs/heads/master
2022-12-29T22:32:02.321058
2020-10-15T03:24:32
2020-10-15T03:24:32
304,195,531
0
1
null
null
null
null
UTF-8
Python
false
false
1,271
py
# -*- coding: utf-8 -*- """ ================================= Author: keen Created on: 2019/9/2 E-mail:keen2020@outlook.com ================================= """ import unittest import os import time from library.HTMLTestRunnerNew import HTMLTestRunner from common.config import conf from common.constant import ...
[ "keen2020@outlook.com" ]
keen2020@outlook.com
41894e7590dde3aa44f8c38b7453e8c364d924f5
cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819
/Binary Tree Zigzag Level Order Traversal.py
5ffebb0274f92ac415a122c9c02b477d302ff3ff
[ "Apache-2.0" ]
permissive
sugia/leetcode
9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
refs/heads/master
2021-06-05T07:20:04.099488
2021-02-24T07:24:50
2021-02-24T07:24:50
29,124,136
1
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
''' Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 return its zigzag level order traversal as: [ [...
[ "noreply@github.com" ]
sugia.noreply@github.com
654c3bc950e7ddde3eaff1bddd8c9718702a2352
bfc2ba097b164af668efa29f883101673668456e
/nets/centernet_training.py
109a2e753890bf22328bb9efcd06e247931de674
[]
no_license
Sharpiless/Paddlepaddle-CenterNet
b4892e1ab85a65f655b44fc6699e61315f5a0274
b02bca6bff55054bdb29ba370ac52b9e8951045a
refs/heads/main
2023-06-17T17:22:35.265697
2021-07-17T02:46:33
2021-07-17T02:46:33
386,817,805
3
0
null
null
null
null
UTF-8
Python
false
false
2,313
py
import paddle import paddle.nn.functional as F def focal_loss(pred, target): pred = paddle.transpose(pred, [0,2,3,1]) # pred = pred.permute(0,2,3,1) #-------------------------------------------------------------------------# # 找到每张图片的正样本和负样本 # 一个真实框对应一个正样本 # 除去正样本的特征点,其余为负样本 #------...
[ "1691608003@qq.com" ]
1691608003@qq.com
9f2eaee40308723324858966dcd6932750b0241b
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/googlecloudsdk/command_lib/storage/tasks/task_buffer.py
dee39b0c1165d965f0fa3a433725b4686336f215
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
2,762
py
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
8534041473d28f92fb8db6079f28b29f4e1c7743
cae9ca1dda110cd6f65d5021c5891fdee76ec6fe
/day2/set/2.py
e7bb3bc3680e0158226f7a9475d6dce754b58602
[]
no_license
shobhit-nigam/yagami
fb33d6de76a698a160f9e8df9d7d9f5b836797d8
283e2a464f74ac07c21ae7095b9a45fa632aa38a
refs/heads/main
2023-07-04T09:46:51.057558
2021-08-10T05:13:27
2021-08-10T05:13:27
391,846,901
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
basket_a = {'apple', 'banana', 'pear', 'apple', 'kiwi', 'banana', 'avocado'} basket_b = {'orange', 'plum', 'grapes', 'apple', 'pear', 'raspberry'} print(type(basket_a)) print("basket_a =", basket_a) print("basket_b =", basket_b) print("basket_a[2] =", basket_a[2])
[ "noreply@github.com" ]
shobhit-nigam.noreply@github.com
74630a900649910f52610167dda5e5175c1009c7
e3d33f5d82a541d7491e079c394dcebf1568f078
/server/settings/migrations/0003_delete_tournamenttype.py
746daa2db4b9fb8720e479ddcbeaca42296afee0
[ "MIT" ]
permissive
MahjongRepository/mahjong-portal
51bd1300c3e6b8a341fbddb67a750b268950627e
20f01433858bed4610d60b27a98bafce5a810097
refs/heads/master
2023-07-09T09:05:23.155419
2023-07-08T10:47:14
2023-07-08T10:47:14
114,328,632
12
10
MIT
2022-07-29T01:29:59
2017-12-15T04:53:02
Python
UTF-8
Python
false
false
435
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-18 13:32 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tournament', '0005_remove_tournament_tournament_type'), ('settings', '0002_auto_20180117_064...
[ "lisikhin@gmail.com" ]
lisikhin@gmail.com
428b845f68e1d7c602aa7f74a604609708605c11
b35aea9f4411f5dc7942392d78dc31bb76c7ec73
/ARTIN/index/forms.py
145690526dcce52d9b06a9000dcf43e2949b4874
[]
no_license
ashkanusefi/rondshow
1079b81704fff55a1d54fa8dee2712ab61e92f4a
7e5a80fcc6e326b8b1737a54fb53becc4195e475
refs/heads/master
2023-09-01T18:45:33.170465
2021-09-18T11:24:52
2021-09-18T11:24:52
407,820,565
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
from django import forms from index.models import Contactform class Contact_Form(forms.ModelForm): class Meta: model = Contactform widgets = { 'name': forms.TextInput(attrs={'placeholder': 'نام و نام خوانوادگی'}), 'email': forms.TextInput(attrs={'placeholder': 'ایمیل'}), ...
[ "yousefi.ashkan96@gmail.com" ]
yousefi.ashkan96@gmail.com
165b320a0f937ccc6fd4ef9e6bae85487e84034d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/100/usersdata/199/49629/submittedfiles/prova1.py
6b7bd8a5436b67d150ae6be7d451d557c92d2016
[]
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
378
py
# -*- coding: utf-8 -*- import math #COMECE SEU CÓDIGO ABAIXO DESTA LINHA Carta1 =(int(input('Digite C1:')) Carta2 =(int(input('Digite C2:')) Carta3 =(int(input('Digite C3:')) Carta4 =(int(input('Digite C4:')) Carta5 =(int(input('Digite C5:')) if Carta1>Carta2>Carta3>Carta4>Carta5: print('D') elif Carta1<Carta2<Ca...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
b410d142b81c1ff46a841b791aac9e8f0c825de6
7c1b5af77fbfde1f4f2c698a489e07024c147edc
/docs/sphinxext/example.py
a3a898c3d74b35d6e48e079745f272267a2beaef
[]
no_license
migueldvb/pyasdf
e7812da935ee3e4fec6d3c61fb16425ac2e1bdc7
4a72952b0196ede261e07569fc4da2616fa5e4b3
refs/heads/master
2020-12-26T18:44:07.562442
2015-03-30T16:18:19
2015-03-30T16:18:19
29,930,850
0
0
null
2015-02-04T20:23:04
2015-01-27T19:29:17
Python
UTF-8
Python
false
false
3,764
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals, print_function import atexit import io import os import shutil import tempfile import textwrap from docutils.parsers.rst import Directive from docutils import no...
[ "mdboom@gmail.com" ]
mdboom@gmail.com
e2e3817a1e7ab097aac8071c3eb9fa89df0186b9
863509e794b069c9688f6263454c06d2c48868b2
/backend/backend/ml_model/client_server/ml_client.py
e892990daa897d7cb55cee5604a142de6051e99b
[ "MIT" ]
permissive
TheDuckWhisperer/tournesol
c6df38185963bbecc6109dac275075a3ceca857a
0fde7587e91a42e5a2218f2ffb70d4fc8cff7f73
refs/heads/master
2023-04-18T15:31:20.627952
2021-05-01T19:59:07
2021-05-01T19:59:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
from jsonrpcclient.clients.http_client import HTTPClient from multiprocessing import Process from backend.rating_fields import VIDEO_FIELDS import numpy as np import pickle from time import time def time_cache_wrapper(f, expire_sec=3600): """Decorator which caches results for some seconds.""" # format pickle(...
[ "sergei.volodin.ch@gmail.com" ]
sergei.volodin.ch@gmail.com
d10192ab95a1b46d604aa924f07a235b10ff2971
4fbd844113ec9d8c526d5f186274b40ad5502aa3
/algorithms/python3/number_of_digit_one.py
538d9b720619759dbae129533367a918a55ffec3
[]
no_license
capric8416/leetcode
51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1
503b2e303b10a455be9596c31975ee7973819a3c
refs/heads/master
2022-07-16T21:41:07.492706
2020-04-22T06:18:16
2020-04-22T06:18:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
# !/usr/bin/env python # -*- coding: utf-8 -*- """ Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. Example: Input: 13 Output: 6 Explanation: Digit 1 occurred in the following numbers: 1, 10, 11, 12, 13. """ """ ==================== body =======...
[ "capric8416@gmail.com" ]
capric8416@gmail.com
4afb6395738c94f6f3c5f69cd5aba31fac3f7ab9
23a56e0555d6b27aa444d8396ec32f9d2b678a39
/07_ur_online/shifted_frames_setup/compas/packages/compas_fabrication/fabrication/grasshopper/utilities/sets.py
0aa962839f412ffad8a96c1e5c3841c1df6bb963
[ "MIT" ]
permissive
dtbinh/T1_python-exercises
2ce1b01bc71f8032bbe8fb4ef8f71b648dcde1c5
f4710c3dc2ba8ddb3e3e9069ab8d65df674463ab
refs/heads/master
2020-04-04T20:00:52.191601
2018-01-09T08:14:36
2018-01-09T08:14:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
from Grasshopper import DataTree as Tree from Grasshopper.Kernel.Data import GH_Path as Path from System import Array def list_to_tree(alist, none_and_holes=False, base_path=[0]): """ Transforms nestings of lists or tuples to a Grasshopper DataTree Usage: mytree = [ [1,2], 3, [],[ 4,[5]] ] a = list...
[ "rusenova" ]
rusenova
18a6e21aeda01c6a19f315813bff0d01b04146e0
b66450f669095b0ad013ea82cb1ae575b83d74c3
/Interview Preparation 2/maze.py
eae0d33ab121c0679d4a9e3e440d6211bec9b2ad
[]
no_license
aulb/ToAsk
2649a3fad357820e3c8809816967dfb274704735
1e54c76ab9f7772316186db74496735ca1da65ce
refs/heads/master
2021-05-01T20:35:14.062678
2020-02-23T07:44:29
2020-02-23T07:44:29
33,289,737
0
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
Implement a function to generate a maze. from random import randint import enum class Condition(enum): CLEAR = 0 RIGHT = 1 BOTTOM = 2 class Direction(enum): RIGHT = 0 LEFT = 1 UP = 2 DOWN = 3 # Create maze from top left to bottom right def generate_maze(row, col): if row < 0 or col < 0: return [] # create...
[ "aalbertuntung@gmail.com" ]
aalbertuntung@gmail.com
742f8a6dd2aee367cca6f94262b5612485524064
868b90e85541f1f76e1805346f18c2cb7675ffc8
/cnn/02_introductory_cnn.py
1eac1abda98b5a9c829bc11f7f50f4ba5b7d7589
[]
no_license
WOW5678/tensorflow_study
a9a447c39c63a751046d4776eedc17589324634e
39e202b102cd2ebc1ba16f793acc8ebe9ea0e752
refs/heads/master
2020-03-19T15:49:24.729778
2018-10-19T06:45:26
2018-10-19T06:45:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,639
py
# Introductory CNN Model: MNIST Digits #--------------------------------------- # # In this example, we will download the MNIST handwritten # digits and create a simple CNN network to predict the # digit category (0-9) import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow.contrib.l...
[ "noreply@github.com" ]
WOW5678.noreply@github.com
86c22ca4ca7fe3b67919b54097bc9189805b71f3
e4066b34668bbf7fccd2ff20deb0d53392350982
/project_scrapy/spiders/grammarly.py
19c27a8c3349910b1bd4ad1227155e4b6ced0815
[]
no_license
sushma535/WebSites
24a688b86e1c6571110f20421533f0e7fdf6e1a8
16a3bfa44e6c7e22ae230f5b336a059817871a97
refs/heads/master
2023-08-18T09:09:16.052555
2021-10-11T00:41:50
2021-10-11T00:41:50
415,621,279
0
0
null
null
null
null
UTF-8
Python
false
false
2,541
py
import scrapy from scrapy.crawler import CrawlerProcess import os import csv from csv import reader import re total_data = {} class SimilarWeb(scrapy.Spider): name = 'SW' user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' start_url...
[ "sushmakusumareddy@gmail.com" ]
sushmakusumareddy@gmail.com
700a9fbcb89b1b66f52a940e26430e4a1f4c5494
c96d9a76fe28630fe1b4cd7efa22e12fdce0399f
/kaggle/Song_popularity/optimize.py
a81690bd13b858784678e25cf5a75a1761a95589
[]
no_license
tarunbhavnani/ml_diaries
858839e8ab8817caae3d56d3dad6d4ee9176ddbe
8d0700211a2881279df60ab2bea7095ef95ea8dc
refs/heads/master
2023-08-18T08:28:50.881356
2023-08-16T09:39:34
2023-08-16T09:39:34
157,958,911
0
1
null
2023-03-13T05:17:52
2018-11-17T06:52:34
Python
UTF-8
Python
false
false
1,620
py
#!/usr/bin/env python3 """ optimize.py """ import optuna import optuna.integration.lightgbm as lgb import pandas as pd from lightgbm import early_stopping, log_evaluation from sklearn.metrics import roc_auc_score from sklearn.model_selection import train_test_split def objective(trial: optuna.Trial): df = pd.rea...
[ "tarun.bhavnani@gmail.com" ]
tarun.bhavnani@gmail.com
f10cf0c87250140ac5312dc31eb6fb3097b38031
5983bf3f4cbd49e222a4448f6e738946c1012553
/aicall/apps/info/migrations/0002_auto_20210322_1329.py
eb91fe911bbbd8d6a9721e302847df2eb2ef5cea
[]
no_license
RympeR/aciall
7fa88eaf6799444aef84dba1ce9974de858ddfd4
ca238234160d93a1058f725121e1f3fbe71be33c
refs/heads/master
2023-04-04T14:45:39.390609
2021-04-05T10:02:00
2021-04-05T10:02:00
354,790,599
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
# Generated by Django 3.1.7 on 2021-03-22 11:29 from django.db import migrations import imagekit.models.fields class Migration(migrations.Migration): dependencies = [ ('info', '0001_initial'), ] operations = [ migrations.AlterField( model_name='talkthemes', name=...
[ "georg.rashkov@gmail.com" ]
georg.rashkov@gmail.com
cd70acfcb63726d43d38f161933d4473e020bcb4
416ea1127f3e3a1a8e64dd980e59c7bf585379a0
/read_favorite_number.py
13e6938ce6b8bf90c1ab89faddd39721b21296a8
[]
no_license
jocogum10/learning_python_crash_course
6cf826e4324f91a49da579fb1fcd3ca623c20306
c159d0b0de0be8e95eb8777a416e5010fbb9e2ca
refs/heads/master
2020-12-10T02:55:40.757363
2020-01-13T01:22:44
2020-01-13T01:22:44
233,486,206
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
import json filename = 'favorite_number.json' with open(filename) as file_object: message = json.load(file_object) print("I know your favorite number! It's " + message + "!")
[ "jocogum10@gmail.com" ]
jocogum10@gmail.com
3734e13259f4b245375820776dc260e0f60a01d5
2455062787d67535da8be051ac5e361a097cf66f
/Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_129.py
7569fce71cd2fd69603dc29210d1978acc440b9c
[]
no_license
kmtos/BBA-RecoLevel
6e153c08d5ef579a42800f6c11995ee55eb54846
367adaa745fbdb43e875e5ce837c613d288738ab
refs/heads/master
2021-01-10T08:33:45.509687
2015-12-04T09:20:14
2015-12-04T09:20:14
43,355,189
0
0
null
null
null
null
UTF-8
Python
false
false
3,360
py
import FWCore.ParameterSet.Config as cms process = cms.Process("PAT") #process.load("BBA/Analyzer/bbaanalyzer_cfi") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load('Configuration.EventContent.EventContent_cff') process.load("Configuration.Geometry.GeometryRecoDB_cff") process.load("Configuration.St...
[ "kmtos@ucdavis.edu" ]
kmtos@ucdavis.edu
50b38f5aa112634f69a1964367b345d28107fa78
62153e297ca84bf9d76eef56b28408f5337113f9
/tasks/migrations/0005_announcements_picture.py
470373d027006370d1516280f097642bee71c5a1
[]
no_license
zarif007/HRTaskManager
22b72c80d2cac99fa9d3f7f0cfd480cb832ff910
4c7e7f04b82f138a7177f659bb347c7e189c6220
refs/heads/main
2023-06-23T22:05:33.812024
2021-07-31T19:55:11
2021-07-31T19:55:11
373,304,992
2
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 3.2.4 on 2021-07-26 12:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tasks', '0004_announcements'), ] operations = [ migrations.AddField( model_name='announcements', name='picture', ...
[ "zarifhuq786@gmail.com" ]
zarifhuq786@gmail.com
fd0816dae9157631a8d5823e89d9650f7806a979
75ce5b7fee397fe4e67ed15a58f4cd42e0f8de9f
/PythonMasterclass/HelloWorld/Strings.py
3b45aebdb6a60836687406b37ebae58981f463c5
[]
no_license
lukbast/stuff
7fd03b7e035394802c307682a25621dfd667960b
160e1d77d1b592fac099b9c7139fb4e2f7f8dbbe
refs/heads/main
2023-08-06T21:39:55.334812
2021-09-23T17:37:47
2021-09-23T17:37:47
409,684,114
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
greeting = 'Hello' name = 'Bruce' # print(greeting+' ' + name) # sample comment # name2 = input('Please enter your name') # print(greeting + ' ' + name2) # splitString = 'This string has been\nsplit\nover\nseveral\nlines' # print(splitString) tabbedStrings = '1\t2\t3\t4\t5' print(tabbedStrings) print('The pet sho...
[ "jaimperator99@gmail.com" ]
jaimperator99@gmail.com
8380622bbde43b92e00ac4f96152d1afa7c46f30
bb4241ec40d0f3bc7484957a3aad2c7921f3ab5f
/src/tracewhack/log.py
c21fc7cf7481ebc5c882c0be2775dba2f2ae8ccc
[ "BSD-3-Clause" ]
permissive
wingu/tracewhack
a17b7e54cbe7cc74cc99511cdf490cd2f12e4184
a324705c23ddd8921ed829152f07fa9ff758de0f
refs/heads/master
2020-06-04T17:25:08.534182
2013-01-28T15:29:20
2013-01-28T15:29:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
""" Logging utilities. """ # LATER Right now these are just dumb placeholders. def warn(msg): """ Log a warning. """ print msg def verbose(msg, options): """ Log only if verbose mode """ if options and options.get('verbose', False): print msg def error(msg): """ Lo...
[ "tomheon@gmail.com" ]
tomheon@gmail.com
4d3e87116d6556c0d297a5c799aedc741f817923
1854841ff9de3391f1c858fcb9f5ccd7dc5488eb
/backend/aidin_27554/wsgi.py
989a9b46785cae5d98a29e68726486205737a9bf
[]
no_license
crowdbotics-apps/aidin-27554
84f8ddd4e63ebfa233fc8d4a2b617af399371b50
fd1e1768ee18919395a1740c70bbcd337360174e
refs/heads/master
2023-05-05T15:50:29.989821
2021-05-29T14:26:12
2021-05-29T14:26:12
371,992,096
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" WSGI config for aidin_27554 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('DJANGO_S...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
862e50035f6c13d3f48ac50c598fab378f1734e0
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/netex/models/timing_point_in_journey_pattern.py
22366d74aaa3b679bdbaf7bc59fc9c56bf9ca822
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
373
py
from dataclasses import dataclass from .timing_point_in_journey_pattern_versioned_child_structure import TimingPointInJourneyPatternVersionedChildStructure __NAMESPACE__ = "http://www.netex.org.uk/netex" @dataclass class TimingPointInJourneyPattern(TimingPointInJourneyPatternVersionedChildStructure): class Meta:...
[ "chris@komposta.net" ]
chris@komposta.net
2308fad2814b489f253f4b87ca63706bb82054c9
dfbd3e12a7a7ed28c13715b2fa0c964d0745c8cb
/python/day04/solve.py
a0ee63dd7b81c99836e716257b0c5ef859f13a1f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ijanos/advent2017
3a90c479bf4f1689264576fb2c4468883458b911
db7ba6c3f2abbe206e47f25480c24d2bade709bb
refs/heads/master
2021-08-31T23:20:35.637440
2017-12-23T12:09:55
2017-12-23T12:09:55
112,766,905
1
0
null
null
null
null
UTF-8
Python
false
false
324
py
#!/usr/bin/env python3 import fileinput p1 = 0 p2 = 0 for line in fileinput.input(): line = line.strip().split() if len(set(line)) == len(line): p1 += 1 line = [''.join(sorted(word)) for word in line] if len(set(line)) == len(line): p2 += 1 print(f"Part 1: {p1}") print(f"Part 2: {p2...
[ "ijanos@gmail.com" ]
ijanos@gmail.com
5b891f3d735e0b91211908f1f7706d84e34478f9
88906fbe13de27413a51da917ebe46b473bec1b9
/Part-I/Chapter 6 - Dictionaries/favourite_languages.py
6c94cb510f855c612346614864fa12fd8c159746
[]
no_license
lonewolfcub/Python-Crash-Course
0b127e40f5029d84ad036263fd9153f6c88c2420
322388dfb81f3335eeffabcdfb8f9c5a1db737a4
refs/heads/master
2021-01-01T16:45:50.617189
2017-10-27T14:23:58
2017-10-27T14:23:58
97,911,584
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
# A dictionary of similar objects favourite_languages = { 'jen': 'python', 'sarah': 'c', 'edward': 'ruby', 'phil': 'python', } print("Sarah's favourite language is " + favourite_languages['sarah'].title() + ".")
[ "lonewolfcub020@gmail.com" ]
lonewolfcub020@gmail.com
9896a8d751a0cc983347cfab70f1606a7af16e7d
fa2fdfcf180507344be8de71da75af2fe72101b2
/train_and_run_experiments_bc.py
771396e09f5607ebe7f7628cd776c4f2b3cc08e2
[]
no_license
sarahwie/AttentionExplanation
48b49c1769324fe40015b8a96f862753f559e329
919fe5c710be5d1721ef1803cd46c731e1953088
refs/heads/master
2020-05-16T12:46:31.184833
2019-04-23T16:39:04
2019-04-23T16:39:04
183,055,153
1
0
null
2019-04-23T16:31:19
2019-04-23T16:31:19
null
UTF-8
Python
false
false
1,163
py
import argparse parser = argparse.ArgumentParser(description='Run experiments on a dataset') parser.add_argument('--dataset', type=str, required=True) parser.add_argument("--data_dir", type=str, required=True) parser.add_argument("--output_dir", type=str) parser.add_argument('--encoder', type=str, choices=['cnn', 'lstm...
[ "successar@gmail.com" ]
successar@gmail.com
2ca58914081b89507b7e4b2db63b231eb16c13dc
5a113e0758da14ccf3e7f4b6b0eb3abddd4adf39
/tests/test_models/test_user.py
abb3c1ef9d5527f2de5cbc1764f4e25d0ee323bd
[]
no_license
Esteban1891/AirBnB_clone
22a64c45d1e0c997c842ae907ea216ab662639fd
5860cf7ae43afe6e2fee96be60fcfb0b67d1d2fc
refs/heads/master
2022-11-30T06:41:54.718592
2020-08-13T22:58:50
2020-08-13T22:58:50
275,320,501
5
7
null
null
null
null
UTF-8
Python
false
false
1,734
py
#!/usr/bin/python3 """Module for test User class""" import unittest import json import pep8 import datetime from models.user import User from models.base_model import BaseModel class TestUser(unittest.TestCase): """Test User class implementation""" def test_doc_module(self): """Module documentation""...
[ "esteban.delahoz15@gmail.com" ]
esteban.delahoz15@gmail.com
21922a99ad639c61627562fe098fa13350d8bffa
dc54a813f0e5d3b1ea44b38e10f8e5f8ef4764d4
/sciwing/api/api.py
22b7a61170cfdaa45f4dcf65700bbe3d6c5ec570
[ "MIT" ]
permissive
dragomirradev/sciwing
fc0a33b25d19ea0e11170e4930442eb0f8d05da4
b3f4e6831b2dadf20e3336821ca8d50db1248ee7
refs/heads/master
2022-04-18T14:03:31.275169
2020-04-13T04:48:44
2020-04-13T04:48:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
import sciwing.api.conf as config from fastapi import FastAPI from sciwing.api.routers import parscit from sciwing.api.routers import citation_intent_clf app = FastAPI() @app.get("/") def root(): return {"message": "Welcome To SciWING API"} # add the routers to the main app app.include_router(parscit.router) a...
[ "abhinav@comp.nus.edu.sg" ]
abhinav@comp.nus.edu.sg
b2192129c1bf5e2df3ed5fee141a2932e0af8440
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R2/benchmark/startQiskit335.py
99346e8c0d944fc6842431c4a000ef35f61d00ed
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
7,145
py
# qubit number=3 # total number=66 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
5da9e788a3db46e978e8273bd81283efdec746fe
b6b04c3bc6afe61e3c3128f552417091c451ba69
/flink-ml-python/pyflink/examples/ml/feature/elementwiseproduct_example.py
2dd8ffff654fb21c9023ca110ebb26cfa02623ee
[ "Apache-2.0" ]
permissive
apache/flink-ml
d15365e1b89b82eb451b99af0050d66dff279f0c
5619c3b8591b220e78a0a792c1f940e06149c8f0
refs/heads/master
2023-08-31T04:08:10.287875
2023-08-24T06:40:12
2023-08-24T06:40:12
351,617,021
288
85
Apache-2.0
2023-09-07T08:03:42
2021-03-26T00:42:03
Java
UTF-8
Python
false
false
2,548
py
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
[ "noreply@github.com" ]
apache.noreply@github.com
95dcb275b4a638f2ba8f0094654be362d6d3ae3f
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
095ca8346512b61fba41d3997f22f02f7c9433ae
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,652
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class KoubeiCateringPosDishcateTransferModel(object): def __init__(self): self._cate_id = None self._cook_id = None self._dish_ids = None self._shop_id = None @prop...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
da2db0a6d1935e5fd45ba13f2ae2e27b96afb0b0
090324db0c04d8c30ad6688547cfea47858bf3af
/soko/perception/policy.py
bb1cb833033df50bbc170434ebf153d81461f29b
[]
no_license
fidlej/sokobot
b82c4c36d73e224d0d0e1635021ca04485da589e
d3d04753a5043e6a22dafd132fa633d8bc66b9ea
refs/heads/master
2021-01-21T13:14:29.523501
2011-06-12T07:34:14
2011-06-12T07:34:14
32,650,745
1
0
null
null
null
null
UTF-8
Python
false
false
3,752
py
import logging from soko.solver.solver import Solver from soko.perception import perceiving, saving from libctw import factored, modeling class PerceptSolver(Solver): """A sokoban solver. It converts the seen states to a sequence of bits. It then predicts the next action to take. It is used to show...
[ "ivo@danihelka.net" ]
ivo@danihelka.net
75f7278194a9195bc7423d26c1cab9ce1d07c3a7
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/11_动态规划/dp优化/kitamasa法.py
38f9a2c16abdaad119175126f6cd40ebaaf09584
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,638
py
# 常系数线性递推 # https://tjkendev.github.io/procon-library/python/series/kitamasa.html # !O(k^2logn) 求线性递推式的第n项 (比矩阵快速幂快一个k) # 線形漸化式 dp[i+k] = c0*dp[i] + c1*dp[i+1] + ... + ci+k-1*dp[i+k-1] (i>=0) の第n項を求める # C: 系数 c0,c1,...,ci+k-1 # A: dp[0]-dp[k-1] 初始值 # n: 第n项 from typing import List MOD = int(1e9 + 7) ...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
307d7db79493210adf18a3116db90a72fbcf7642
1279908d488776ef1450492f0995e1bd48c99767
/.history/app_20210728170028.py
56fb63ebb031b38348b9cdfc6656f0a9ec0a72ab
[]
no_license
tritchlin/sqlalchemy-challenge
249ed221daab1e148209904aa1544a924ce6a344
5d9288b516a1ab68bd6af16c98ca5c1170d3b927
refs/heads/main
2023-06-25T23:27:10.175847
2021-07-29T06:35:04
2021-07-29T06:35:04
388,950,398
0
0
null
null
null
null
UTF-8
Python
false
false
2,024
py
from flask import Flask, jsonify from flask_sqlalchemy import SQLAlchemy import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func # import climate_flask_data.py as querydata app = Flask(__name__) app.config['Hawaii']='sqlite:///haw...
[ "annylin@gmail.com" ]
annylin@gmail.com
582acb3bcfdc0d636dfcd9571a7b4b463d749705
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r10p1/Gen/DecFiles/options/23123011.py
c22ed6aed9a114cbc62b3916ee36b83d4b2a3b8e
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/23123011.py generated: Wed, 25 Jan 2017 15:25:37 # # Event Type: 23123011 # # ASCII decay Descriptor: [D_s+ -> pi- e+ e+]cc # from Configurables import Generation Generation().EventType = 23123011 Generation().SampleGenerationTool = "SignalPlain" from ...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
d0cfda9b9e6f2e6f19df057e89736ab28b36d573
c1edf63a93d0a6d914256e848904c374db050ae0
/Python/黑客攻防/破解/dictionary.py
909018a1cd432c05322b59a1d4b38474cb25f02d
[]
no_license
clhiker/WPython
97b53dff7e5a2b480e1bf98d1b2bf2a1742cb1cd
b21cbfe9aa4356d0fe70d5a56c8b91d41f5588a1
refs/heads/master
2020-03-30T03:41:50.459769
2018-09-28T07:36:21
2018-09-28T07:36:21
150,703,520
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
import itertools as its import time def main(): a = time.time() word = "abcdefghijklmnopqrstuvwxyz" r = its.product(word, repeat=6) dic = open("dictionary.txt", "a") for i in r: dic.write("".join(i)) b = time.time() print(b-a) dic.close() main()
[ "1911618290@qq.com" ]
1911618290@qq.com
9d1d0d94f750d498a91dd81d6d464c609ac9368c
eb19f68b76ab16375a096c06bf98cf920c8e7a0c
/src/tracking1.py
ab06f2fc4b87671ddc02529d29cd626c4a85187b
[]
no_license
YerongLi/statistical-connectomes
a9869d918761b05bcd9980a0b4d36205673d582e
7519289c2f26314d88149e878125042021cea07d
refs/heads/master
2020-04-09T03:53:42.754095
2018-12-02T01:03:19
2018-12-02T01:03:19
160,001,525
0
0
null
null
null
null
UTF-8
Python
false
false
6,242
py
""" ==================== Tracking Quick Start ==================== This example shows how to perform fast fiber tracking using DIPY_ [Garyfallidis12]_. We will use Constrained Spherical Deconvolution (CSD) [Tournier07]_ for local reconstruction and then generate deterministic streamlines using the fiber directions (p...
[ "yerong.li@outlook.com" ]
yerong.li@outlook.com
549fcc281ee7b1ff3519de8b8882f35c1e72e4de
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_animations.py
02af88c871ee685813138b37592a71c92dd2f001
[ "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
234
py
#calss header class _ANIMATIONS(): def __init__(self,): self.name = "ANIMATIONS" self.definitions = animation self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['animation']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
1f0f22bcce72ff8ae6781b02b4e85005590893ab
15592893bd1871bfeb1cdb4741523894cf32cf67
/python_fundamentals/bubblesort.py
accec854cbab91b213adf4927d6494e188eeb934
[]
no_license
philmccormick23/Learning-Python
b07758d2bb310e617991a13230b257a71c3c2510
5a06c5155941816ce3e61d262ae5779ae2899196
refs/heads/master
2020-04-08T08:50:03.749946
2018-11-26T16:01:27
2018-11-26T16:01:27
159,195,744
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
arr=[8,3,5,1,2,0] def bubbleSort(arr): for j in range(len(arr)-1): for i in range(len(arr)-1-j): if(arr[i]>arr[i+1]): arr[i],arr[i+1]=arr[i+1],arr[i] return arr print(bubbleSort([8,3,5,1,2,0]))
[ "phillipmccormick@Phillips-MacBook-Pro.local" ]
phillipmccormick@Phillips-MacBook-Pro.local
71784b9871d44330a0d1df8c0e7409643afef6bf
4436277af74df812490a42f33deccfcf218e25f8
/backend/wallet/migrations/0001_initial.py
f2c922540416302dee4c799fa0921b7c911673d0
[]
no_license
crowdbotics-apps/lunchbox-25105
308c49dcc77383ee8f11b25207f4b94e452f618e
21de4ca0cbad83a09ec5e28a99ccc3dc1fc3dbeb
refs/heads/master
2023-03-15T09:50:00.100961
2021-03-18T18:53:30
2021-03-18T18:53:30
349,182,205
0
0
null
null
null
null
UTF-8
Python
false
false
6,258
py
# Generated by Django 2.2.19 on 2021-03-18 18:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ("task_profile", "0001_initial"), ("task", "0001_initial"), ] operations = [ mig...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
575352ef768eea3f97b304e28386e9a5188da6ef
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02258/s967893517.py
fef386565550a9bfb1823e41855b7904dda27051
[]
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
757
py
n = int(input()) R = [] for i in range(n): R.append(int(input())) kouho = set() diff_max = None for (i, rt) in enumerate(R): if i == 0: rt_min = rt else: if rt < rt_min and not (diff_max is None): kouho.add(diff_max) diff_max = None rt_min = rt ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f79ea22c3b37f1ac9e6301b576168361eecb66b3
7bead245354e233f76fff4608938bf956abb84cf
/test/test_page_conversion_result.py
79bca57ea61ab579fcc7be32e07b455a76551754
[ "Apache-2.0" ]
permissive
Cloudmersive/Cloudmersive.APIClient.Python.Convert
5ba499937b9664f37cb2700509a4ba93952e9d6c
dba2fe7257229ebdacd266531b3724552c651009
refs/heads/master
2021-10-28T23:12:42.698951
2021-10-18T03:44:49
2021-10-18T03:44:49
138,449,321
3
2
null
null
null
null
UTF-8
Python
false
false
1,011
py
# coding: utf-8 """ convertapi Convert API lets you effortlessly convert file formats and types. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import cloudmersive_convert_api_...
[ "35204726+Cloudmersive@users.noreply.github.com" ]
35204726+Cloudmersive@users.noreply.github.com
bc7ad62bc0617a78f8aefb15b880c4de8926bd23
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/171/usersdata/269/82030/submittedfiles/decimal2bin.py
685e2ff066c0cea09273c3191d603c291bc3306a
[]
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
245
py
# -*- coding: utf-8 -*- binario=int(input('digite the fucking binario: ')) a=0 b=binario while binario>0: binario=binario//10 a=a+1 c=1 d=0 for i in range(0,a,1): decimal=b//10**c d=decimal*(2**i)+d c=c+1 print(d)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8eea73a4817b583b59e9ae72e614c0630731fafb
dcddc234eea906c63553f6495e182e44f3e8431d
/forum/migrations/0001_initial.py
5ec4c7773023cc10c07b7d6d003e4cc6ea318831
[ "MIT" ]
permissive
Kromey/akwriters
53e648e1cc4c0970c843c9b426d0e7de21c9eabb
72812b5f7dca3ad21e6e9d082298872b7fa607b9
refs/heads/master
2022-03-08T00:57:42.232126
2021-07-21T15:23:33
2021-07-21T15:23:33
28,463,802
0
0
MIT
2022-02-10T08:06:49
2014-12-24T22:41:56
JavaScript
UTF-8
Python
false
false
2,238
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-01-20 01:11 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "travisvz@gmail.com" ]
travisvz@gmail.com
daa206411acf7dd63ef2ac0a7f67334f0de62493
6146d080087b21e36347408eea76598f4691ed67
/code/1112/2383.py
d2e70847a9ef9a11958d0d8c95a94edf7d85889f
[]
no_license
banggeut01/algorithm
682c4c6e90179b8100f0272bf559dbeb1bea5a1d
503b727134909f46e518c65f9a9aa58479a927e9
refs/heads/master
2020-06-27T14:07:51.927565
2019-12-19T03:48:30
2019-12-19T03:48:30
199,800,363
0
0
null
null
null
null
UTF-8
Python
false
false
1,576
py
# 2383.py [모의 SW 역량테스트] 점심 식사시간 import sys sys.stdin = open('2383input.txt', 'r') def getTime(t, l): # t: 사람-입구 거리 배열, l: 계단길이 for idx in range(len(t)): if idx < 3: t[idx] += l else: if t[idx - 3] > t[idx]: t[idx] = t[idx - 3] + l else: ...
[ "genie121110@gmail.com" ]
genie121110@gmail.com
b186151473ccd843ebb0867eb5d9584dbb5d852d
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/yosinski_deep-visualization-toolbox/deep-visualization-toolbox-master/misc.py
ed1ee755e93c924c466045c1232ccace4c7d6ee6
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
1,272
py
#! /usr/bin/env python import os import time import errno class WithTimer: def __init__(self, title = '', quiet = False): self.title = title self.quiet = quiet def elapsed(self): return time.time() - self.wall, time.clock() - self.proc def enter(self): '''Manual...
[ "659338505@qq.com" ]
659338505@qq.com
67122d17e933488f9e88e64701632d1088a4001e
31c9cd96667166ac4af15ce8b48753167da3084d
/sorting/bubble_sort.py
1c21807ac98a7e18e5e4c1b990067d0c11664874
[]
no_license
vitorponce/algorithms
a8e305e32e38bbb2f473dc07c0e93bdf6a10fde0
87d5f3e3110394d21844b7f3a17468e01a366e83
refs/heads/master
2022-06-17T04:04:18.757909
2020-05-04T03:03:09
2020-05-04T03:03:09
259,844,564
1
0
null
2020-05-04T03:04:54
2020-04-29T06:34:52
Python
UTF-8
Python
false
false
1,717
py
def bubble_sort(input_list): """ The smallest element bubbles to the correct position by comparing adjacent elements. For each iteration, every element is compared with its neighbor and swapped if they arent in the right order. Smallest elements 'bubble' to the beginning of the list. At ...
[ "johneshiver@gmail.com" ]
johneshiver@gmail.com
71581e2aa28a19aa508f908fff09ae9da3e41017
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_connoisseur.py
f2ebfdee7349c5f0eb2d9d637ed4b4d9b3670125
[ "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
419
py
#calss header class _CONNOISSEUR(): def __init__(self,): self.name = "CONNOISSEUR" self.definitions = [u'a person who knows a lot about and enjoys one of the arts, or food, drink, etc. and can judge quality and skill in that subject: '] self.parents = [] self.childen = [] self.properties = [] self.json...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4e9f69d87e835061a181778d25e5810c1fdb12f4
dccf1fea8d62764b8c51259671f9b61d36196d41
/quiz/tests/test_views.py
3206b640c985d6489348d1011b7e9a68160df405
[ "MIT" ]
permissive
Palombredun/django_quiz
e4594852c2709a9c6c58a96cc210f3f3dc1a282b
1565d251d54dfb54fdee83096b560876833275a2
refs/heads/master
2021-07-08T23:11:23.157677
2021-01-13T14:26:31
2021-01-13T14:26:31
224,863,683
0
0
null
2019-11-29T13:53:50
2019-11-29T13:53:50
null
UTF-8
Python
false
false
3,013
py
import datetime import pytest from pytest_django.asserts import assertTemplateUsed from django.contrib.auth.models import User from quiz.models import Category, SubCategory, Quiz, Statistic, Question, Grade ### FIXTURE ### @pytest.fixture def user_A(db): return User.objects.create_user( username="A",...
[ "baptiste.name" ]
baptiste.name
a3c84c720bb0bc8a3ec2921c600f975aaed6f1b8
20b4be7df5efeb8019356659c5d054f29f450aa1
/tools/indicators/build_indicators.py
16a8d1caeb8619580fb4836cc6c8c4cbb50269bb
[ "Apache-2.0" ]
permissive
kumars99/TradzQAI
75c4138e30796573d67a5f08d9674c1488feb8e4
1551321642b6749d9cf26caf2e822051a105b1a5
refs/heads/master
2020-03-29T20:14:45.562143
2018-09-25T16:07:21
2018-09-25T16:07:21
150,302,554
1
0
null
2018-09-25T17:17:54
2018-09-25T17:17:54
null
UTF-8
Python
false
false
3,553
py
import pandas as pd from tools.indicators.exponential_moving_average import exponential_moving_average as ema from tools.indicators.volatility import volatility as vol from tools.indicators.stochastic import percent_k as K from tools.indicators.stochastic import percent_d as D from tools.indicators.relative_strength_i...
[ "awakeproduction@hotmail.fr" ]
awakeproduction@hotmail.fr
6a77109c6aa14b0e717e99865a97ceffd8cda1c1
09e5ce9673590f7ca27c480da605199a6d054a63
/modules/highscore.py
3daff9734d8b6c7a31ec3c42d9c75b6f9f816fd8
[]
no_license
KirillMysnik/PySnake
781d7767cbb404033b608d15427e9e7996cc71d6
3fe1edc20248f20029413a31d88f673411374faf
refs/heads/master
2021-01-13T09:46:00.622694
2016-09-28T14:52:14
2016-09-28T14:52:14
69,473,624
1
1
null
null
null
null
UTF-8
Python
false
false
1,698
py
from modules.delays import Delay from modules.gui import TextLabel from internal_events import InternalEvent LABEL_COLOR = (255, 255, 255) HIGHSCORE_LABEL_CAPTION = "score: {score}" HIGHSCORE_LABEL_X = 64 HIGHSCORE_LABEL_Y = 64 TIME_LABEL_CAPTION = "elapsed: {seconds}s" TIME_LABEL_X = 64 TIME_LABEL_Y = 100 app_ = No...
[ "kirill@mysnik.com" ]
kirill@mysnik.com
fb58449531e8d4d38e17ea8628b285f48a6c86ad
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/153/153.find-minimum-in-rotated-sorted-array.250607228.Accepted.leetcode.py
86c48a645e1a8abbc02eb311cb58e81777442548
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
378
py
class Solution(object): def findMin(self, nums): if nums[0] <= nums[-1]: return nums[0] left, right = 0, len(nums) - 1 while left + 1 < right: mid = (left + right) // 2 if nums[left] >= nums[mid]: right = mid else: ...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
f7e66124cfb611cfdde05053e6b48a4ce7dff2fd
efd30b0ba0fd4d8c9e4ababe8113ba5be08319f2
/parkings/migrations/0015_fill_normalized_reg_nums.py
9f8b7a05457ba264cae61e627952374292b9a03d
[ "MIT" ]
permissive
City-of-Helsinki/parkkihubi
3f559ef047592c5321b69c52474fc23a5eae0603
24751065d6e6cd68b89cd2a4358d51bdfc77cae6
refs/heads/master
2023-07-20T12:52:43.278380
2023-05-10T07:46:38
2023-05-10T07:46:38
75,084,288
14
15
MIT
2023-07-20T12:52:08
2016-11-29T13:32:13
Python
UTF-8
Python
false
false
838
py
from __future__ import unicode_literals from django.db import migrations from django.db.models import Q from ..models import Parking def fill_normalized_reg_nums(apps, schema_editor): parking_model = apps.get_model('parkings', 'Parking') parkings_to_process = parking_model.objects.filter( Q(normaliz...
[ "tuomas.suutari@anders.fi" ]
tuomas.suutari@anders.fi
6c351742ccd9c3c58c9a7048ff2f0434e916f76c
04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29
/019/Solution.py
77b23c403e0c7749e27a5927c92d8dbf83f175dd
[]
no_license
zhangruochi/leetcode
6f739fde222c298bae1c68236d980bd29c33b1c6
cefa2f08667de4d2973274de3ff29a31a7d25eda
refs/heads/master
2022-07-16T23:40:20.458105
2022-06-02T18:25:35
2022-06-02T18:25:35
78,989,941
14
6
null
null
null
null
UTF-8
Python
false
false
2,040
py
""" Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Follow up: Could you do this in one pass? """ # Defini...
[ "zrc720@gmail.com" ]
zrc720@gmail.com
fb785b48dbc3883bf3983cf9a771dd2f9a6bb328
4a44d785d19f23033ec89775c8219a2f8275a4dd
/cride/circles/admin.py
a7031ba8c50be95f1f6624a720fbf3187af1f7ce
[ "MIT" ]
permissive
mdark1001/crideApiRest
d17989dfb650eb799c44c57d87f3e0cec8fc647b
228efec90d7f1ad8a6766b5a8085dd6bbf49fc8a
refs/heads/main
2023-04-09T23:27:09.931730
2021-04-19T13:46:44
2021-04-19T13:46:44
357,706,873
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
from django.contrib import admin # Register your models here. from .models import Circle @admin.register(Circle) class CircleAdmin(admin.ModelAdmin): list_display = ['name', 'is_verified', 'is_public', 'rides_taken', 'rides_offered'] list_filter = ['created', 'is_verified', 'is_public','is_limited']
[ "miguel.cabrera.app@gmail.com" ]
miguel.cabrera.app@gmail.com
2d8e282e4ff5217cf1139f3a412e41342844571a
278a000f8b40476b5d1473cc1b98d5872551cab2
/test_sphere_volume.py
cb30c89536569a7350adecec0fb65901984d43cd
[]
no_license
Kaliumerbol/kaliev_erbol_hw_2.6
172eb765a9cd5be8f8a9dc4f28e3fc258e5d92d9
5ea5fa98baf10d467a287da435f40e796c2594c3
refs/heads/main
2023-06-05T15:44:51.723761
2021-06-29T10:51:01
2021-06-29T10:51:01
381,329,097
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
import unittest import math from sphere_volume import calculate_sphere_volume pi = math.pi class TestSphereVolume(unittest.TestCase): def test_area(self): self.assertAlmostEqual(calculate_sphere_volume(5), 4/3*pi*5**3) self.assertAlmostEqual(calculate_sphere_volume(3.7), 4/3*pi*3.7**3) s...
[ "you@example.com" ]
you@example.com
924fcb51f482e997c837a79f2363ad5b113136aa
03195a6f98396fd27aedc3c06d81f1553fb1d16b
/pandas/tests/series/methods/test_rename.py
90c8f775586e6d8a3b4fbc61dfc9c8334d7b3417
[ "BSD-3-Clause" ]
permissive
huaxz1986/pandas
a08d80d27726fe141d449835b9a09265bca5b5e0
ba2473834fedcf571d3f8245b4b24796873f2736
refs/heads/master
2023-06-11T02:20:14.544220
2022-01-12T04:40:06
2022-01-12T04:40:06
131,370,494
3
4
BSD-3-Clause
2018-04-28T03:51:05
2018-04-28T03:51:05
null
UTF-8
Python
false
false
4,450
py
from datetime import datetime import numpy as np import pytest from pandas import ( Index, MultiIndex, Series, ) import pandas._testing as tm class TestRename: def test_rename(self, datetime_series): ts = datetime_series renamer = lambda x: x.strftime("%Y%m%d") renamed = ts.r...
[ "noreply@github.com" ]
huaxz1986.noreply@github.com
ab3e2eb43508d9f342a4113bbe93ea6f50279af2
63255cf9da84b5dd6aa4454dd50385d50c43aac9
/tencent/sort_and_search/search.py
7ed8bafa2fc87c9642650340c00b88a538a669e8
[ "MIT" ]
permissive
summer-vacation/AlgoExec
d37054e937b7e3cc4c0f76019cf996acb0fb5a34
55c6c3e7890b596b709b50cafa415b9594c03edd
refs/heads/master
2021-07-09T12:18:51.532581
2020-12-20T13:46:43
2020-12-20T13:46:43
223,929,183
1
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
# -*- coding: utf-8 -*- """ File Name: search Author : jing Date: 2020/3/19 https://leetcode-cn.com/explore/interview/card/tencent/224/sort-and-search/927/ 搜索旋转排序数组 O(log n) """ class Solution: def search(self, nums, target: int) -> int: if nums is None or len(nums...
[ "280806137@qq.com" ]
280806137@qq.com
2ad5fa16421f87f656519643af8a3217cfecc11c
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_145/223.py
c67f0e3c81cc4903f6cdce8da4043c6407e2bad7
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
#!/usr/bin/env pypy # -*- coding: utf-8 -*- # google code jam - c.durr - 2014 # Part Elf # https://code.google.com/codejam/contest/3004486/dashboard # # from math import * from sys import * from fractions import * def readint(): return int(stdin.readline()) def readarray(f): return map(f, stdin.read...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
385a5bafa117ea93e64ca3733a3337a00c47b93e
d24cef73100a0c5d5c275fd0f92493f86d113c62
/SRC/tutorials/adaptive.py
a1b03746e2aa8e81ec7c3f1153c3136a05f080a9
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
rlinder1/oof3d
813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee
1fb6764d9d61126bd8ad4025a2ce7487225d736e
refs/heads/master
2021-01-23T00:40:34.642449
2016-09-15T20:51:19
2016-09-15T20:51:19
92,832,740
1
0
null
null
null
null
UTF-8
Python
false
false
6,624
py
# -*- python -*- # $RCSfile: adaptive.py,v $ # $Revision: 1.14.2.6 $ # $Author: langer $ # $Date: 2014/09/27 22:34:44 $ # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities as...
[ "faical.congo@nist.gov" ]
faical.congo@nist.gov
0d66bfb2e2f61e6192594453d928317bed7f64d2
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/MAzBohC2PxchT3wqK_13.py
a37c09d7d848225a334c7b4bb512adb1efefa6cd
[]
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
360
py
def shadow_sentence(a, b): alist, blist = a.split(' '), b.split(' ') if len(alist) != len(blist): return False j = -1 for word in alist: j += 1 if len(word) != len(blist[j]): return False i = -1 for word in blist: i += 1 for letter in word: if letter in alist[i]: ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
01eb27b1efe1e94dc35839dd99988ef3512c19f4
6584124fee86f79ce0c9402194d961395583d6c3
/blog/migrations/0005_userprofile.py
741df13e8b0ed00bd33880271c9c54062c148c8f
[]
no_license
janusnic/webman
fdcffb7ed2f36d0951fd18bbaa55d0626cd271e1
2e5eaadec64314fddc19f27d9313317f7a236b9e
refs/heads/master
2018-12-28T18:21:00.291717
2015-06-05T11:49:00
2015-06-05T11:49:00
35,676,834
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0004_auto_20150522_1108'), ] ...
[ "janusnic@gmail.com" ]
janusnic@gmail.com
efb302e6899348b8a39d8588818d325e6a0f9ada
1d1a21b37e1591c5b825299de338d18917715fec
/Mathematics/Data science/Mathmatics/02/Exercise_2_4_5.py
4c1094e1a0624eace4209363bf4bc2727406716d
[]
no_license
brunoleej/study_git
46279c3521f090ebf63ee0e1852aa0b6bed11b01
0c5c9e490140144caf1149e2e1d9fe5f68cf6294
refs/heads/main
2023-08-19T01:07:42.236110
2021-08-29T16:20:59
2021-08-29T16:20:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
# 보스턴 집값 문제는 미국 보스턴내 각 지역(town)의 주택 가격을 그 지역의 범죄율이나 공기 오염도 등의 특징 # 을 사용하여 예측하는 문제다. Scikit-Learn 패키지에서 임포트할 수 있다. 보스턴 집값 문제를 선형 예측모형 # Ax = b_hat로 풀었을 때의 가중치 벡터 를 구하라. 행렬과 벡터 데이터는 다음과 같이 얻을 수 있다. 여기에서는 # 문제를 간단하게 하기 위해 입력 데이터를 범죄율(CRIM), 공기 오염도(NOX), 방의 개수(RM), 오래된 정도 # (AGE)의 4종류로 제한했고 데이터도 4개만 사용했다 import numpy ...
[ "jk04059@naver.com" ]
jk04059@naver.com
93dab5e033bf2be71722860d57e80346b770aa7b
3b1daac7c1f72b985da899770d98e5f0e8fb835c
/Configurations/VBS/2017CR_v7/variables.py
695bd91e5fdd8c45254bfdcdab37fb9d9235b46a
[]
no_license
freejiebao/PlotsConfigurations
7e10aa45aa3bf742f30d1e21dc565d59d2a025d8
cdfd3aff38d1ece9599a699997753bc8ba01b9b1
refs/heads/master
2020-06-18T19:22:00.561542
2019-09-02T12:52:28
2019-09-02T12:52:28
186,931,874
0
0
null
2019-05-16T01:58:07
2019-05-16T01:58:07
null
UTF-8
Python
false
false
5,363
py
# variables #variables = {} #'fold' : # 0 = not fold (default), 1 = fold underflowbin, 2 = fold overflow bin, 3 = fold underflow and overflow # variables['events'] = { 'name': '1', # 'range' : (1,0,2), # 'xaxis' : 'events', # 'fold' : 3 # } variables['nJet'] = { 'name': 'nJet', 'range...
[ "jiexiao@pku.edu.cn" ]
jiexiao@pku.edu.cn
4655a05a2e59738d661f9702526dbfdea1f20f57
ce083128fa87ca86c65059893aa8882d088461f5
/python/flask-webservices-labs/graphene/graphene/types/mutation.py
fe15f6a2daa5be2a7b09b6fd4419a7e2f2e88fd1
[ "MIT" ]
permissive
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
2,892
py
from collections import OrderedDict from ..utils.get_unbound_function import get_unbound_function from ..utils.props import props from .field import Field from .objecttype import ObjectType, ObjectTypeOptions from .utils import yank_fields_from_attrs from ..utils.deprecated import warn_deprecation # For static type ...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
d654571b75c42601d497f2010175e9d03db70f79
a9f38bb28ff9bd04b151d86c653cde9f46768c7c
/easy/guessNumberHigherLower.py
3d9a440d88b43dfb848527e6505af7060a690b0d
[]
no_license
Xynoclafe/leetcode
02388516b10b8ee6bec6ee1b91ab5681c3254d33
4a80f02683e7fc14cb49c07170651ea3eeb280ac
refs/heads/master
2020-12-01T21:05:44.656581
2020-02-02T09:05:32
2020-02-02T09:05:32
230,770,600
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
# The guess API is already defined for you. # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 # def guess(num: int) -> int: class Solution: def guessNumber(self, n: int) -> int: def binSearch(start, end): if start == end: start ...
[ "gokulprem.94@gmail.com" ]
gokulprem.94@gmail.com
a8972a430ffb07204980882f80982295def04f91
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02690/s260373583.py
683e4c44817819625608097b879fb92b1bb0fe95
[]
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
181
py
def get(n): for i in range(-1000,1001): for j in range(-1000,1001): if(i**5-j**5==n): print(i,j) return n=int(input()) get(n)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ee3ab7b304dcfd2627a23109f9e5a4af1e9cf3b9
02b6f852787c0f169c298090e412de84d9fffdfa
/src/dsrlib/ui/configuration.py
1f6bd8871dcf3223bf9723382947e5adbfa4f922
[ "MIT" ]
permissive
ca4ti/dsremap
f5ffa0d5f15e37af23ec5bd2c326a0dfa5e6f99c
ad0929adfe5fa8499515b3a6a80e94dfd8c1c0bc
refs/heads/master
2023-04-02T10:02:02.147173
2021-04-11T11:16:59
2021-04-11T11:16:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,439
py
#!/usr/bin/env python3 import os import shutil from PyQt5 import QtCore, QtGui, QtWidgets from dsrlib.domain import ConfigurationMixin, commands from dsrlib.meta import Meta from .actions import ActionWidgetBuilder from .mixins import MainWindowMixin from .utils import LayoutBuilder from .uicommands import AddActio...
[ "jerome@jeromelaheurte.net" ]
jerome@jeromelaheurte.net
8e48cdc36af358ce63b9cee3a6d9027cf929722e
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/deviceupdate/azure-iot-deviceupdate/setup.py
3b4d52e9e304da8944d2b8b5c37ac85830a070fd
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
2,815
py
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
[ "noreply@github.com" ]
scbedd.noreply@github.com
8e52e5124bb4d7475be9e1aba419b63c10e1da71
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/105/usersdata/188/50874/submittedfiles/av1_3.py
0328c1b58fec2bb6085db012bf78c1af432e4c52
[]
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
311
py
# -*- coding: utf-8 -*- import math N1=int(input('Digite o valor do número 1:')) N2=int(input('Digite o valor do número 2:')) N3=int(input('Digite o valor do número 3:')) n=1 b=0 while n>0: if(n%a)==0 and (n%b)==0 and (n%c)==0: b=b+n break else: n=n+1 print ('b')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
0c5b75952bd055ee2807574adfbafd0a1718e38e
ab670d6e59ebd4a0c23fa867fb77866d223163da
/Python/Problem243.py
4e68455830c3935144068fae503f0d467fa66e99
[]
no_license
JeromeLefebvre/ProjectEuler
18799e85947e378e18839704c349ba770af4a128
3f16e5f231e341a471ffde8b0529407090920b56
refs/heads/master
2020-07-05T02:42:44.844607
2014-07-26T01:04:38
2014-07-26T01:04:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,847
py
''' Problem 243 A positive fraction whose numerator is less than its denominator is called a proper fraction. For any denominator, d, there will be d−1 proper fractions; for example, with d = 12: 1/12 , 2/12 , 3/12 , 4/12 , 5/12 , 6/12 , 7/12 , 8/12 , 9/12 , 10/12 , 11/12 . We shall call a fraction that cannot be c...
[ "jerome.p.lefebvre@gmail.com" ]
jerome.p.lefebvre@gmail.com
06711799efc8419d428058ea3f7582f7a48c0a3e
284713c5e6ad6681d2c6c379efc96e5c42833321
/DB_SQLITE/04_sql_injection.py
ba90ecf3dcc02dcf9e5f32d856ff698089f5add3
[]
no_license
alexeysorok/Udemy_Python_2019_YouRa
ddfa1f620dcac44cc53958bb88169845072db38e
8ebd8483f7927892b346af209b4325c9ae0c7dab
refs/heads/master
2020-09-27T03:24:08.997040
2019-12-07T19:04:17
2019-12-07T19:04:17
226,417,119
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
import sqlite3 conn = sqlite3.connect('users.db') # cursor.execute('CREATE TABLE users (user_name TEXT,' # 'user_password TEXT)') users = [ ('jack123', 'asdasdasd'), ('kasdsa', 'asdsadasd'), ('Bio', 'asdasda') ] # insert_query = "INSERT INTO users VALUES (?, ?);" user_name = input('...
[ "alexe@W10SSD" ]
alexe@W10SSD
376d81f18957b729df1c5d3158ad6a37aa802021
a183a600e666b11331d9bd18bcfe1193ea328f23
/pdt/core/migrations/0032_case_revision.py
ff8909b6297a1b81d520bff33753bd05266aae58
[ "MIT" ]
permissive
AbdulRahmanAlHamali/pdt
abebc9cae04f4afa1fc31b87cbf4b981affdca62
5c32aab78e48b5249fd458d9c837596a75698968
refs/heads/master
2020-05-15T07:51:09.877614
2015-12-01T18:22:56
2015-12-01T18:22:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0031_auto_20150618_1116'), ] operations = [ migrations.AddField( model_name='case', name='re...
[ "bubenkoff@gmail.com" ]
bubenkoff@gmail.com
c7ef589bf879fb64a6c1ba7225ee9fec2cfe12bb
ccd30f827fb3bd4231c59d05e6d61c5963019291
/Practice/LeetCode/EverydayPrac/3.py
603f49bc17eca59b1792306e56056465b5c878af
[]
no_license
anthony20102101/Python_practice
d6709e7768baebaa248612e0795dd3e3fa0ae6ba
56bb1335c86feafe2d3d82efe68b207c6aa32129
refs/heads/master
2023-06-10T18:49:11.619624
2021-06-27T15:36:10
2021-06-27T15:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# 给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。 # # 在杨辉三角中,每个数是它左上方和右上方的数的和。 # # 示例: # 输入: 3 # 输出: [1,3,3,1] # 进阶: # 你可以优化你的算法到 O(k) 空间复杂度吗? # 优化: # 注意到对第 i+1 行的计算仅用到了第 i 行的数据,因此可以使用滚动数组的思想优化空间复杂度。 # 利用上述公式我们可以在线性时间计算出第 n 行的所有组合数。 # # 复杂度分析 # # 时间复杂度:O(rowIndex)。 # # 空间复杂度:O(1)。不考虑返回值的空间占用。
[ "492193947@qq.com" ]
492193947@qq.com
04003011021ed9b70a92bbdc33e87c7af6f9ad9e
6fa0c051f742c3f9c99ee2800cd132db5ffb28c7
/src/account/migrations/0008_auto_20200806_2318.py
03591749cf0b1a71c7d4f20b7e81927a0e349322
[]
no_license
MCN10/NXTLVL
9c37bf5782bfd8f24d0fb0431cb5885c585369b0
76d8818b7961e4f0362e0d5f41f48f53ce1bfdc5
refs/heads/main
2023-06-02T13:51:34.432668
2021-06-02T14:19:21
2021-06-02T14:19:21
328,625,042
1
0
null
2021-06-16T10:16:17
2021-01-11T10:19:44
Python
UTF-8
Python
false
false
611
py
# Generated by Django 3.0.8 on 2020-08-06 23:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0007_account_is_axisstaff'), ] operations = [ migrations.AlterField( model_name='account', name='phone', ...
[ "mcn10.foxx@gmail.com" ]
mcn10.foxx@gmail.com
3d0e54171f99c5973fdb441873c4d1302c56d070
86d499787fb35024db798b0c1dbfa7a6936854e9
/py_tools/example/TV.py
4ec42492467c2b2392e40b3209a8fa35afb1b711
[]
no_license
Tomtao626/python-note
afd1c82b74e2d3a488b65742547f75b49a11616e
e498e1e7398ff66a757e161a8b8c32c34c38e561
refs/heads/main
2023-04-28T08:47:54.525440
2023-04-21T17:27:25
2023-04-21T17:27:25
552,830,730
0
1
null
null
null
null
UTF-8
Python
false
false
1,095
py
class TV: def __init__(self): self.channel = 1 # Default channel is 1 self.volumeLevel = 1 # Default volume level is 1 self.on = False # By default TV is off def turnOn(self): self.on = True def turnOff(self): self.on = False def getChannel(self): re...
[ "gogs@fake.local" ]
gogs@fake.local
932c777e82f9b34d9552ecd5044100328cbcb95c
a140fe192fd643ce556fa34bf2f84ddbdb97f091
/.history/class스타크래프트프로젝트전반전_20200709105346.py
18786ac5676fbf66cb3c84a0ce24b862c00e37aa
[]
no_license
sangha0719/py-practice
826f13cb422ef43992a69f822b9f04c2cb6d4815
6d71ce64bf91cc3bccee81378577d84ba9d9c121
refs/heads/master
2023-03-13T04:40:55.883279
2021-02-25T12:02:04
2021-02-25T12:02:04
342,230,484
0
0
null
null
null
null
UTF-8
Python
false
false
4,135
py
# 일반 유닛 class Unit: def __init__(self, name, hp, speed): self.name = name self.hp = hp self.speed = speed print("{0} 유닛이 생성되었습니다.".format(name)) def move(self, location): print("[지상 유닛 이동]") print("{0} : {1} 방향으로 이동합니다. [속도 {2}]" .format(self.name, ...
[ "sangha0719@gmail.com" ]
sangha0719@gmail.com
cde9e8c41184ee204fbf4f603084f018c667ea9d
4cb81903c4d07cd85d9bb8d37eab8ab399a6e276
/Array Sequences/Practice Problems/uniquechar.py
ac9f2e97f4e67e22a89c814f8168cfb1ea4cb2ad
[]
no_license
JitenKumar/Python-for-Algorithms--Data-Structures
0011881c8c8558a2e21430afc1aa7d9232392b2c
7ee8a3ef287761b00be1907c5bbad35e75c5bfd6
refs/heads/master
2020-03-18T22:02:47.673814
2018-08-05T06:07:17
2018-08-05T06:07:17
135,320,756
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
''' Unique Characters in String Problem Given a string,determine if it is compreised of all unique characters. For example, the string 'abcde' has all unique characters and should return True. The string 'aabcde' contains duplicate characters and should return false. ''' # solution def unique_char(string): s = s...
[ "jitenderpalsra@gmail.com" ]
jitenderpalsra@gmail.com
92ec87d6a1f183a10a48e5bb65076fbca52c2d3c
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Lazymux/routersploit/tests/creds/routers/netcore/test_ssh_default_creds.py
2d81b6e62845318c12ca1f5a515d18860390ca6d
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:029aa8eb5f4144f599d8be14416b93b3a2e19b768949e76237a74d16a341aaf0 size 634
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
922539ebe02f2df53fc16aea241cff2fb0df5b23
795df757ef84073c3adaf552d5f4b79fcb111bad
/i4lib/i4vec_sorted_unique.py
eea4deabcf5c5276323c987e360cb3e95fd03a39
[]
no_license
tnakaicode/jburkardt-python
02cb2f9ba817abf158fc93203eb17bf1cb3a5008
1a63f7664e47d6b81c07f2261b44f472adc4274d
refs/heads/master
2022-05-21T04:41:37.611658
2022-04-09T03:31:00
2022-04-09T03:31:00
243,854,197
3
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
#! /usr/bin/env python # def i4vec_sorted_unique ( n, a ): #*****************************************************************************80 # ## I4VEC_SORTED_UNIQUE finds the unique elements in a sorted I4VEC. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 29 Februar...
[ "tnakaicode@gmail.com" ]
tnakaicode@gmail.com
827e8cc5f49718946538d832c5f3d61d6eebdca7
568345ee64e3e283a916af372a40b34b595d6ff3
/utils/lldb-dotest/lldb-dotest.in
cc6ea350654a205aae889195f9e92b114c284d36
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
enterstudio/swift-lldb
b16fb3f067da3933af0fb1024630f7066b38a7ef
af85d636d230da2460f91938b1ff734b0fb64b42
refs/heads/stable
2020-04-27T01:43:35.935989
2019-03-05T01:43:09
2019-03-05T01:43:09
173,973,645
2
0
Apache-2.0
2019-03-05T15:37:31
2019-03-05T15:37:26
null
UTF-8
Python
false
false
453
in
#!/usr/bin/env python import os import subprocess import sys dotest_path = '@LLDB_SOURCE_DIR@/test/dotest.py' dotest_args_str = '@LLDB_DOTEST_ARGS@' if __name__ == '__main__': wrapper_args = sys.argv[1:] dotest_args = dotest_args_str.split(';') # Build dotest.py command. cmd = [dotest_path, '-q'] ...
[ "jonas@devlieghere.com" ]
jonas@devlieghere.com
a93ec77494af1405eec2e4807036d13cb21449f5
a88e486c3be855554e8c9998766869a19a4e0635
/coursera/knapsack/greedy.py
9fcfd92a3a800c1f6cb2b685445bf70c2456db4b
[]
no_license
DXV-HUST-SoICT/Combinatorial-Optimization
03559786a36f66f10742e3a0c520a3369e96a065
67c326635bb4245e3dd9819ea9704c37bb9635d3
refs/heads/master
2021-03-17T12:59:51.141027
2020-06-09T17:42:41
2020-06-09T17:42:41
246,992,799
5
0
null
null
null
null
UTF-8
Python
false
false
412
py
def greedy_by_avarage_value(items, taken, capacity): def key(item): return item.value / item.weight items.sort(key=key, reverse=True) value = 0 weight = 0 for i in range(len(items)): item = items[i] if weight + item.weight <= capacity: value += item.weight ...
[ "vuong.1998@gmail.com" ]
vuong.1998@gmail.com
0a26c1cda5fed23e78e41221fca74d55a0da585f
1524720d6480ad0a51b6fd8ff709587455bf4c5d
/tums/trunk/source/plugins/DHCP.py
7af3eb81f2a7ce65771d5d72723a41f35579e175
[]
no_license
calston/tums
2bd6d3cac5232d2ccb7e9becfc649e302a310eab
b93e3e957ff1da5b020075574942913c8822d12a
refs/heads/master
2020-07-12T03:46:43.639800
2018-05-12T10:54:54
2018-05-12T10:54:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,247
py
import config, os from Core import Utils class Plugin(object): parameterHook = "--dhcp" parameterDescription = "Reconfigure DHCP" parameterArgs = "" autoRun = True configFiles = [ "/etc/dhcp/dhcpd.conf" ] def reloadServices(self): if config.General.get('services', {}).get(...
[ "junwin@gmail.com" ]
junwin@gmail.com
de495f8070a7258d450001eb321fe83c21087cd2
df601ac0a0dd618c75241ca050468cab5f580d3a
/kgb/calls.py
77111f43f0829d696bd0c66e7999af9890c67e7f
[]
no_license
mitchhentges/kgb
ff90d7e6c66417ba147ab3e32518d9e4facba256
4c7f4361a8050e5426cb23e4a84ee64df25a6c12
refs/heads/master
2022-12-12T14:50:18.838424
2020-09-04T06:57:34
2020-09-04T06:57:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,232
py
"""Call tracking and checks for spiess.""" from __future__ import unicode_literals from kgb.pycompat import iteritems, text_type from kgb.signature import FunctionSig class SpyCall(object): """Records arguments made to a spied function call. SpyCalls are created and stored by a FunctionSpy every time it is...
[ "christian@beanbaginc.com" ]
christian@beanbaginc.com
d59aaea52583e6a20a8bae86ba53ef71554cb62d
64f39ad662546e1f92df4dd2bf7b5ac2f748d39d
/octavia_f5/common/constants.py
0e1768c388d52b598ce6766ffe5f6d26eec24a41
[ "Apache-2.0" ]
permissive
zongzw/python-as3
2b5026bec3a2e1bba24d4fae7fc90b7f1f58523a
de51773fb2877f4a0988cc655cf4624a3129fd65
refs/heads/master
2022-11-24T07:58:04.738669
2020-07-28T01:12:25
2020-07-28T01:12:25
283,049,282
0
0
null
null
null
null
UTF-8
Python
false
false
2,640
py
# Copyright 2018 SAP SE # # 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 ...
[ "a.zong@f5.com" ]
a.zong@f5.com
034ac87ab3d44c8c5221b639dd2987db0f489445
4302fd10583ccff63ff5693bd2ae5903323cb769
/curate/migrations/0033_auto_20190224_0315.py
9e514c889504231d27382afd8b779b6510c0517c
[ "MIT" ]
permissive
ScienceCommons/curate_science
1faf742c8de1e9c9180e4d8ec6a7457ad95bb705
4e4072e8c000df0d2e80637016f8f0e667f4df54
refs/heads/master
2022-02-12T19:56:51.730534
2022-01-25T16:44:54
2022-01-25T16:44:54
149,122,317
14
7
MIT
2021-03-23T17:27:05
2018-09-17T12:32:25
HTML
UTF-8
Python
false
false
1,466
py
# Generated by Django 2.1.7 on 2019-02-24 03:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('curate', '0032_auto_20190224_0231'), ] operations = [ migrations.AddField( model_name='keyfigure', name='height', ...
[ "alex.kyllo@gmail.com" ]
alex.kyllo@gmail.com
46f088c66d64354d6e4a7ddddc6951a6a16cb979
7e4ee5b457ac9c85b64661eeedba0ba51b211c68
/entities/background.py
043381b99de005498e7cbc63c0fda1b10cbdf342
[]
no_license
iCodeIN/Maze-Game
180ae7dfb2ffc7b8f2868e450b186b41f3ab510a
9956bf10f12326307eccff668cbc9cc615c0fee9
refs/heads/master
2022-12-03T04:00:12.270692
2020-08-26T23:43:45
2020-08-26T23:43:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
import pygame import os import sys from easy_sdl.tools import * from easy_sdl.sprite import Sprite from easy_sdl.sprite import keyUp, keyDown class Background(Sprite): def __init__(self): super().__init__(0, 0, image=path("background.png"))
[ "noreply@github.com" ]
iCodeIN.noreply@github.com
3d1adc70cd541480ba5036a9efa4b5fee148a93d
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/YcqAY72nZNPtvofuJ_8.py
b8e97a2438ad8150983e02cf9849e462c2089ed7
[]
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
415
py
def quad_sequence(lst): #find pattern difference = [lst[len(lst)-2] - lst[len(lst)-3], lst[len(lst)-1] - lst[len(lst)-2]] difference_of_difference = difference[1] - difference[0] #workout last_num = lst[len(lst)-1] last_diff = difference[1] next_nums = [] for _ in range(len(lst)): last_diff+=differ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
595d87247e2461ae9ffc07c514269c1026c31b6b
d499057c555f2c9217cdfa5052207b67ea54b5cc
/server.py
d28eb56439d3b0a8e280d4903de84f66fd06cc9b
[ "Apache-2.0" ]
permissive
defnngj/movie-website
6fe1fcc2571c75dd7f423137833eb46c4ac7db1d
d1ffaf209b4c689cd5180b8a8bb1866ad6d0f0e8
refs/heads/main
2023-08-11T10:37:38.783093
2021-09-27T14:39:56
2021-09-27T14:39:56
410,204,122
0
0
null
null
null
null
UTF-8
Python
false
false
1,250
py
import os import sqlite3 from flask import g from flask import Flask from flask import render_template app = Flask(__name__) BASE_DIR = os.path.dirname(os.path.abspath(__file__)) DATABASE = os.path.join(BASE_DIR, "dev.db") def connect_db(): return sqlite3.connect(DATABASE) def get_db(): db = getattr(g, '...
[ "defnngj@gmail.com" ]
defnngj@gmail.com