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
99fc264e361c08fda18f058be8e53b400b61379e
6ecf40c771874f31fa19f9534677c95c731352e9
/DRTransmitter.py
d60163c5eddb41d056a1880c6cf332dfa9d71c5b
[]
no_license
fstakem/OptNetFilt
1c86e82629352ee8ee9eb270aa3be01c6202696d
c862f3d1dd09ad9cdd146871761cb1f814e82de9
refs/heads/master
2016-09-11T03:06:06.466206
2014-06-07T02:03:04
2014-06-07T02:03:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,700
py
# .------------------------------------------------------------------------------. # | | # | D E A D R E C K O N I N G T R A N S M I T T E R | # | ...
de83a23717434f077f88e113fd01c3bab8a6fea2
4a41223e8c8ab33d83c6f213692c6097bb96540d
/eelbrain/_experiment/parc.py
9fc979de7443ed56f4acb4c9f91f8447365c11b2
[ "BSD-3-Clause" ]
permissive
rbaehr/Eelbrain
33ceeee24533581ab3e7569c31e0f6a6c6dfcda1
6301dc256e351fdbb58bbe13ab48fde7bfcf192a
refs/heads/master
2021-07-05T19:19:20.573231
2017-10-03T04:35:23
2017-10-03T04:35:23
104,907,464
0
0
null
2017-09-26T16:03:20
2017-09-26T16:03:20
null
UTF-8
Python
false
false
2,196
py
import re COMBINATION_PARC = 'combination' FS_PARC = 'subject_parc' # Parcellation that come with every MRI-subject FSA_PARC = 'fsaverage_parc' # Parcellation that comes with fsaverage SEEDED_PARC = 'seeded' SEEDED_PARC_RE = re.compile('(\w+)-(\d+)$') class Parcellation(object): make = False morph_from_fs...
69e27cea29749aeb55b8285ea5472f561685d74c
fd9ce5afe2d1160e04071e0645eb823e90ed66bb
/tredis/__init__.py
f38a49bae5e190831d83b61c48569bf1f710f587
[]
no_license
haoxuu/tredis
b5efb1728ba94e7799547288623241706c9bd9f9
506c9a8e3d63b4a654e022f5d8127c8de4c82faf
refs/heads/master
2021-01-18T16:04:36.292451
2017-04-13T12:58:48
2017-04-13T12:58:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
""" TRedis ====== An asynchronous Redis client for Tornado """ from tredis.client import Client, RedisClient from tredis.exceptions import * from tredis.strings import BITOP_AND, BITOP_OR, BITOP_XOR, BITOP_NOT __version__ = '0.7.2'
066775eea5a9fc755660f1f1b211a6359a9d39b9
eb82022c0cfc7c8747661cff9624ad2099fa1c3f
/accounting_report_xls/wizard/requisition_report.py
b8a86af9ecb7b11cf815777cb5903909435929ab
[]
no_license
dadysuarsa/Odoo
8d026a066c390cc8f72805d2672212e61260c1cb
c9becd0c192fa239520ad3e1a11d81f70832eddf
refs/heads/master
2023-03-11T06:02:06.011575
2021-02-26T02:17:37
2021-02-26T02:17:37
276,346,540
0
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # # Please note that these reports are not multi-currency !!! # from odoo import api, fields, models, tools class RequisitionReport(models.Model): _name = "requisition.report" _description = "Requisition Repor...
2571969d76af0f76eb9cf4d6518aa2ee3cb716ed
4c207b2dd10db5598ccf5d04ccbf5b272bb1a3ae
/app/services/healthcheck.py
d01f5b6cb3836e30f9e6bcdb524a2b45be854c81
[ "MIT" ]
permissive
sina-e/bot
44ede51f498bae10bae59c705dbe42e2d78921cc
5d892a24724b3cd9b50928f1f5753e8b38d537c4
refs/heads/master
2022-03-22T12:32:30.890950
2019-11-10T09:53:10
2019-11-10T09:53:10
244,046,558
1
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
from aiogram import Dispatcher from aiogram.utils.executor import Executor from aiohttp_healthcheck import HealthCheck from loguru import logger from app import config health = HealthCheck() def setup(executor: Executor): executor.on_startup(on_startup, webhook=True, polling=False) async def on_startup(dispat...
64aaae03c3ab90f3f0225cbf42dc6b88da545cbb
8bdce915174678a90a6be811ea91b50930b9d26a
/coding/Algorithm_exercise/Leetcode/0051-N-Queens.py
feda3efdc7bdf33d817beb02ebc76b87d12dbe3e
[]
no_license
CharlesBird/Resources
daefffef8fb3735e656cd0a3bf400d5e2ff85cc0
517ac7b7992a686fa5370b6fda8b62663735853c
refs/heads/master
2022-12-15T02:54:56.530940
2020-02-29T14:33:43
2020-02-29T14:33:43
109,668,108
1
1
null
2022-12-08T05:04:25
2017-11-06T08:34:30
Jupyter Notebook
UTF-8
Python
false
false
1,247
py
""" The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.' both indicate a queen...
d39d55626150a5f216c292e0bd94792f134a3b53
3670f2ca6f5609e14cce8c31cb1348052d0b6358
/xacro/image_pipeline/camera_calibration/src/camera_calibration/calibrator.py
48ffaee50b851449e5fbccc9f254a8649ec5cd16
[]
no_license
jincheng-ai/ros-melodic-python3-opencv4
b0f4d3860ab7ae3d683ade8aa03e74341eff7fcf
47c74188560c2274b8304647722d0c9763299a4b
refs/heads/main
2023-05-28T17:37:34.345164
2021-06-17T09:59:25
2021-06-17T09:59:25
377,856,153
5
0
null
null
null
null
UTF-8
Python
false
false
53,581
py
#!/usr/bin/env python # # Software License Agreement (BSD License) # # Copyright (c) 2009, Willow Garage, Inc. # 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 co...
02d805ec2da1c542813f48e2d36487ea8c3282fd
54a18823b019112c53fc62766da10cbe5f879615
/pkg/codegen/internal/test/testdata/output-funcs/py_tests/funcWithConstInput.py
d3ba8492d878603b3f22f3f1d551e00dbb14a2fe
[ "Apache-2.0" ]
permissive
TrendingTechnology/pulumi
01904487b2560244c3588004b562571f85cf2e51
1a4f36e97b15e6a25d92a8ebbabd5238c6c5be54
refs/heads/master
2023-07-27T19:38:17.162679
2021-09-16T04:12:49
2021-09-16T04:12:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
# coding=utf-8 # *** WARNING: this file was generated by . *** # *** 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, overload from . import _utilities __all__ = [ 'func_with_c...
be9142c193081f1a1035d6f272c22cc11c1b0e9d
2bc8f66fd34ba1b93de82c67954a10f8b300b07e
/general_backbone/layers/global_context.py
0c80d60097c862eb96f2e9085a77dbbde1fa354a
[]
no_license
DoDucNhan/general_backbone
7dabffed5a74e622ba23bf275358ca2d09faddc1
686c92ab811221d594816207d86a0b97c9b4bc73
refs/heads/main
2023-08-31T14:59:23.873555
2021-10-23T06:34:14
2021-10-23T06:34:14
420,419,141
1
0
null
null
null
null
UTF-8
Python
false
false
2,449
py
# Copyright (c) general_backbone. All rights reserved. """ Global Context Attention Block Paper: `GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyond` - https://arxiv.org/abs/1904.11492 Official code consulted as reference: https://github.com/xvjiarui/GCNet """ from torch import nn as nn import ...
162e921c3a9621f4f8e877078a58211b9278b0a5
f6bba50fccc6fb0dae2f046193434cfb4b9d32d5
/121/A.py
9289baf98b8a4ddbe3c1fee1117da72c3e424709
[]
no_license
seven320/AtCoder
4c26723d20004fe46ce118b882faabc05066841c
45e301e330e817f1ace4be4088d3babe18588170
refs/heads/master
2021-11-22T22:57:32.290504
2021-10-24T09:15:12
2021-10-24T09:15:12
162,827,473
2
0
null
null
null
null
UTF-8
Python
false
false
177
py
# encoding:utf-8 import copy import numpy as np import random H,W = map(int,input().split()) h,w = map(int,input().split()) ans = H*W ans -= (h*W+H*w) ans += h*w print(ans)
d39063fe831b550fc02fc674df6797f6774dc2af
2b4af8810511b5f1ed47fdf5662753b9b4af76b8
/custom/enikshay/private_sector_datamigration/migrations/0003_auto_20170513_1805.py
fbfb08937806346ac17af7cf5bbc2706612319a5
[]
no_license
DeckOfPandas/commcare-wddcp
55bde89197ec5bc4a4b53d327ec6a811aec0d752
810d2e09d3890e3d0d70178745da5924c1db767b
refs/heads/dimagi
2020-12-02T19:19:53.992796
2017-06-30T15:18:16
2017-07-05T12:23:26
96,325,707
1
0
null
2017-07-05T14:02:49
2017-07-05T14:02:49
null
UTF-8
Python
false
false
477
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-13 18:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('private_sector_datamigration', '0002_auto_20170512_1919'), ] operations = [ ...
a8900822d7304576a7b117aea8738776f84b8cfc
ae7c6bf729fc4527cfbb7b29bd4dee77b01584c4
/chicago/zip_codes.py
13725efc7dab3c1d18c9c420fa3d06d984a02a04
[]
no_license
ghing/python-chicago
61fd2639160bf1092d7bcfbc1101dc8428764042
4fefb221bca83d55e6c6eb7bae4b90149acf7c57
refs/heads/master
2021-01-13T04:33:02.289631
2017-01-20T22:13:53
2017-01-20T22:13:53
79,591,829
0
0
null
2017-01-20T19:44:17
2017-01-20T19:44:17
null
UTF-8
Python
false
false
998
py
import os.path import six from .base import Model, Collection, DATA_DIRECTORY ZIP_CODE_GEOJSON_PATH = os.path.join(DATA_DIRECTORY, 'chicago_zip_codes.geojson') class ZipCode(Model): fields = [ 'zip', ] def __str__(self): return self.zip def __repr__(self): return "ZipCode(...
3192468b3d6d4a4e049545f1a74508b86d451062
aa0270b351402e421631ebc8b51e528448302fab
/sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/fqdn_list_local_rulestack_create_or_update_maximum_set_gen.py
755d0412200bb3a98af329c57e98ac8474ced4c4
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
2,048
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 ...
ffc913ac274984b687fba1e23716572ced7bbd7b
fc861233f2ae31f3cdf312e5ca8d68029e811f69
/arrays/SuperWashingMachine_HARD.py
d07ff21678abb6b5f9300ede6cf7a6089d3f2b78
[]
no_license
QuentinDuval/PythonExperiments
20fc54d98ff6e4131975809c32cf8844ff2a8ecb
3ffcfee5cedf421d5de6d0dec4ba53b0eecbbff8
refs/heads/master
2021-07-26T21:24:18.324350
2020-05-02T08:11:58
2020-05-02T08:11:58
163,210,028
3
0
null
null
null
null
UTF-8
Python
false
false
2,749
py
""" https://leetcode.com/problems/super-washing-machines/ You have n super washing machines on a line. Initially, each washing machine has some dresses or is empty. For each move, you could choose any m (1 ≤ m ≤ n) washing machines, and pass one dress of each washing machine to one of its adjacent washing machines at...
ffcaeac98202cabcc7de9239e976408589ad2a24
b7bf93fc21ba8eec04d6f24e79689dd7bb989770
/test/functional/p2p_node_network_limited.py
84d7213b4cad926cabd2f4fcbe678d02664e31d6
[ "MIT" ]
permissive
onuratakan/bitracoin
cd3ab809af1ce9e245b2fecf59e1421e1e427f90
1d73e0b6352d29066706ac4033dc7b4711246883
refs/heads/main
2023-04-09T03:10:58.075426
2021-04-16T22:06:06
2021-04-16T22:06:06
358,728,118
0
0
MIT
2021-04-16T22:06:07
2021-04-16T21:54:02
null
UTF-8
Python
false
false
5,030
py
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests NODE_NETWORK_LIMITED. Tests that a node configured with -prune=550 signals NODE_NETWORK_LI...
84f0f8092f81b651d958dbf77cda36576cc605bd
605c10db2f950a506af60d57a2074f97ebcf89ab
/code/PROJECT/data_collection/tools/tool_clip_text.py
8e05a495532ed234d8027f39ebae50d4b03c5f0e
[]
no_license
MulongXie/Research-ReverselyGeneratingWebCode
928f90d6b4f80ebff40a9a3a48f8b564277a0987
2c1598a765166f30786b0e6a22c485358ca2e98d
refs/heads/master
2020-05-17T18:14:02.241209
2020-04-10T00:19:16
2020-04-10T00:19:16
183,857,077
0
3
null
2020-02-03T04:31:34
2019-04-28T04:51:24
Python
UTF-8
Python
false
false
2,437
py
import pytesseract as pyt import cv2 import numpy as np import glob from os.path import join as pjoin ROOT_CLEAN_IMG = 'E:\Mulong\Datasets\dataset_webpage\page10000\ip_img_clean' ROOT_OUTPUT = "E:/Mulong/Datasets/dataset_webpage/elements/text" def clipping(img, corners, output_root=ROOT_OUTPUT, pad=False, show_clip=...
bbf636e5ca3a130e3de7564001791c09bed132d0
d3a204a438d7f2d439b3f18be9cf1271f5ab475f
/project3/my_model_using_bert23.py
dd43fed3a6bf8f332956534b15c48b9f1a5062f3
[]
no_license
saga9017/laboratory
f2f0d07fb691bd89e6f614cca7e377e82da5f656
77c53c36a99c0da17f23df235edacbcf83469b42
refs/heads/master
2021-05-16T19:32:23.477377
2020-03-27T06:44:16
2020-03-27T06:44:16
250,438,442
1
0
null
null
null
null
UTF-8
Python
false
false
34,191
py
""""""""""""""""""""""""""" using pre-trained bert, using cls for prediction, fine-tuning, using text + location + knowledge """"""""""""""""""""""""""" import sys, os from datetime import datetime import numpy as np import random import copy import time import torch import torch.nn as nn from torch.autograd import Va...
c74f7972df03e772c45471dfc507ca6f5efa0d51
e0c8662a56d89730043146ddc340e9e0b9f7de72
/plugin/118a320c-1596.py
3205edb6500e7b3aae3542131bb1317f8a8cac3c
[]
no_license
izj007/bugscan_poc
f2ef5903b30b15c230b292a1ff2dc6cea6836940
4490f3c36d4033bdef380577333722deed7bc758
refs/heads/master
2020-09-22T17:20:50.408078
2019-01-18T09:42:47
2019-01-18T09:42:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,609
py
#coding:utf-8 from lib.curl import * # -*- coding: utf-8 -*- #__Author__ = treeoph import re,urlparse def assign(service, arg): if service=='strongsoft': return True,arg def audit(arg): p=urlparse.urlparse(arg) raw='''POST /SysManage/AjaxHandler/UploadHandler.ashx HTTP/1.1 Host: {netloc} Content-Le...
6ae7560c7fe931a9cb233dbb80213d11ee6f4c7f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04001/s207133170.py
880c6edc03d8bb2cff7f1a58a4507040bed759aa
[]
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
701
py
S = input() # TODO: 再帰関数でリストを作成 [s1, "+", s2, s3, "+", s4]とか result = [] def dfs(i, list): if i == len(S): result.append(list) return else: if i == len(S) - 1: return dfs(i+1, list+[S[i]]) else: return dfs(i+1, list+[S[i]]), dfs(i+1, list+[S[i], "+"]) # ...
58c0b95d752a1cb35fe77a104190da67ab2925e7
f6ea25823706fe7db053b69639c57431ffc7c8be
/Datacademy/venv/bin/pip
5c7c8fd81e8f939cc5339c0a391c385f819336c4
[]
no_license
BobbyJoeSmith3/Week10Hacks
6f57d34a16a01c6a019730539257910b878eef11
43aba9b979bc26ec118eb4af4b0d0149ee87461c
refs/heads/master
2021-01-18T13:42:34.055202
2014-06-26T15:36:50
2014-06-26T15:36:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
#!/home/bobbyjoesmith/Training/Week10/Week10Hacks/Datacademy/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
709eb35365d3a06bd9f24087e46777e7a7b37dee
2b255d07420114c40f6c8aeb0fb25228588282ed
/sitecomber/apps/config/management/commands/crawl_page.py
f50bc927ac3a48312f85620262611ccad9a81b10
[]
no_license
ninapavlich/sitecomber
b48b3ee055dac1f419c98f08fffe5e9dc44bd6e3
6f34e5bb96ca4c119f98ee90c88881e8ca3f6f06
refs/heads/master
2022-12-11T20:55:07.215804
2020-03-13T07:58:28
2020-03-13T07:58:28
197,045,165
1
0
null
2022-12-08T01:47:52
2019-07-15T17:42:31
JavaScript
UTF-8
Python
false
false
1,015
py
import logging from django.core.management.base import BaseCommand from django.core.exceptions import ObjectDoesNotExist from sitecomber.apps.results.models import PageResult logger = logging.getLogger('django') class Command(BaseCommand): """ Example Usage: Load and parse page result with primary key...
626a4d10d7b29271ed92d511a73c67b98affecb1
bf8f377422db9954b81cc44259f0450f7799541d
/pawn_stars/wsgi.py
7db541520d3b5221158eb09ea6282ea4bf8a8fdb
[ "MIT" ]
permissive
team-pawn-stars/PawnStars-Backend
c7acaaa10fa2f40f77822e5a99af0a9890797471
b1ea9d29adea65b3004555386b51e488460d1b30
refs/heads/master
2020-05-04T13:55:34.080903
2019-06-13T12:59:55
2019-06-13T12:59:55
179,179,127
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for pawn_stars 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
e8dd6a42a1f6eb6d94cefb986c43a7cd569be71b
48e08c7d5856c35492500b6b01d3d72a31f58ffc
/Leetcode/0051-0100/0086-partition-list.py
74ffde18be275050ee72f79c301933fb36d60ee1
[ "MIT" ]
permissive
MiKueen/Data-Structures-and-Algorithms
8d8730e539e1c112cbd4a51beae9e1c3e2184e63
8788bde5349f326aac0267531f39ac7a2a708ee6
refs/heads/master
2021-07-18T17:16:39.948239
2020-09-13T15:44:37
2020-09-13T15:44:37
212,309,543
0
1
MIT
2019-10-06T16:24:43
2019-10-02T10:19:07
Python
UTF-8
Python
false
false
1,079
py
''' Author : MiKueen Level : Medium Problem Statement : Partition List Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of the two partitions. Example: Input: head = 1->4->...
684022b71ef0d7261d8e43295a62ebc0b0fd84be
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/BichenWuUCB_squeezeDet/squeezeDet-master/src/nets/resnet50_convDet.py
b1d4cde60ed5f428dd7949a8c1ad08f053b0b4cf
[]
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
6,835
py
# Author: Bichen Wu ([email protected]) 08/25/2016 """ResNet50+ConvDet model.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import joblib from utils import util from easydict import EasyDict as edict import numpy as np import t...
7fa896bdd5e866fa37b79413b77428eca5f260da
8a1144dd38388992c7e35a4cc84002e381f2cf1f
/python/django_fundamentals/main3/apps/third_app/models.py
ef165f7feabe4f6b980f5a16ea9002f10e11ff54
[]
no_license
vin792/dojo_assignments
18472e868610bacbd0b5141a5322628f4afefb5b
449b752f92df224285bfd5d03901a3692a98562e
refs/heads/master
2021-01-20T00:20:09.896742
2017-05-26T17:37:09
2017-05-26T17:37:09
82,735,702
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
from __future__ import unicode_literals from django.db import models # Create your models here. class People(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length= 30) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=Tru...
ba298290ffb40d5dda804815a82833564aff7427
73036231277447340ce6ac8cf08fa5aab9772778
/libreria/libreria/static/img/django-cities-light-2.0.7/django-cities-light-2.0.7/cities_light/migrations/0012_set_display_name.py
e74659676bac3c57ec48aeec83ee56f96928836b
[ "MIT" ]
permissive
jesusmaherrera/books_library
68f23e2352644df66f92d9e37baf274486984bed
c621f86aa2f8000c13371aea2b000a9bd8965fa1
refs/heads/master
2021-01-13T02:06:24.579310
2013-02-06T03:21:16
2013-02-06T03:21:16
5,944,653
0
1
null
null
null
null
UTF-8
Python
false
false
4,926
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): for region in orm['cities_light.Region'].objects.all(): region.display_name = u'%s, %s' % ( r...
7aaaf55396fa42efe3b6ca2c9c2de6dd06a030d0
95a6555114011d7ba9b0a842dd348dc4a18a56fc
/utils/register_user.py
f825ea8fd83e3071a42ff655b47e64950ed36251
[ "Unlicense" ]
permissive
battyone/ParaBankSeleniumAutomation
c96dfdcb11591dd12db31b7ddd373326ce4284f7
e28a886adba89b82a60831ad96a3a8f00f863116
refs/heads/master
2023-05-04T19:58:13.067568
2020-03-15T17:19:09
2020-03-15T17:19:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,214
py
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ import time import allure from utils.open_web_browser import open_web_browser from page_object_models.register_page_model import RegisterPageModel from expected_results.page_content.register_page_con...
28ee36dd6ff812fe4e277bd07efe81507c608c41
836d5f7190f6b4503e758c87c71598f18fdfce14
/5-Döngüler/While-Döngüsü.py
1ac3301b95952b419549dd7879fcf6fe5c4abac3
[]
no_license
S-Oktay-Bicici/PYTHON-PROGRAMMING
cf452723fd3e7e8ec2aadc7980208d747c502e9a
22e864f89544249d6309d6f4570a4104bf47346b
refs/heads/main
2021-11-30T00:19:21.158084
2021-11-16T15:44:29
2021-11-16T15:44:29
316,716,147
1
0
null
null
null
null
UTF-8
Python
false
false
425
py
############################################################ x = 0 while x <= 0: print("doğru") x += 1 print("x in değeri: ",x) ############################################################ a = 0 while a < 100: a += 1 if a % 2 == 0: print(a) ############################################################# tr...
561ae3faab88aca8acbdbe2023956a6b79a78cee
d40c743378c754b822bc42cfa7ede73792a31ede
/sales_by_march.py
a56fafb7ead4dc2b25d6515180e7eb7d8368db7d
[]
no_license
ShanjinurIslam/HackerRank
85127527be319c3f1822c359a5831e4bcce25e8f
38d77f2d0f56a6cec4bd544b347ee53d829dc715
refs/heads/master
2023-02-05T04:28:11.285169
2020-12-27T11:21:09
2020-12-27T11:21:09
320,749,069
2
0
null
null
null
null
UTF-8
Python
false
false
627
py
#!/bin/python3 import math import os import random import re import sys from collections import defaultdict # Complete the sockMerchant function below. def sockMerchant(n, ar): hash_map = defaultdict(int) for each in ar: hash_map[each] += 1 total = 0 for each in hash_map.keys():...
a8b5085e4e8dbff770b58197257f4b8f7f0cdc50
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-apigee-registry/samples/generated_samples/apigeeregistry_v1_generated_registry_get_artifact_sync.py
0dbb7b9b471b59e7bc0cd633cdcb3a7389126fc1
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,845
py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # 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...
b4d9ec0b78a5f819546da52b89aaac8c78b7f8a7
21c1edbdb863158ed812031c6d63a40ba3bea31f
/simple/1_player/deep_crossentropy.py
bc72f2f610a42d5a302bebe5698aba4cc9692484
[]
no_license
Ollitros/Tic-tac-toe
22ebe26bc709f3c16210783b7411ee77c4df8aa7
b551e1f60d8cbfc7167c057553dff897e34c7093
refs/heads/master
2020-03-29T22:00:53.037694
2019-05-01T17:02:09
2019-05-01T17:02:09
150,398,894
0
0
null
null
null
null
UTF-8
Python
false
false
4,173
py
from sklearn.neural_network import MLPClassifier import numpy as np import matplotlib.pyplot as plt from tic_tac_toe.simple_tic_tac_toe import TicTacToe def show_progress(batch_rewards, log, percentile, reward_range=[-990, +100]): """ A convenience function that displays training progress. No cool math he...
2f13a478783bf8420e554f05869dea7277b04405
44fc88370e7dd01aab918aa797983c5051f4147e
/Controllers/TestThread.py
eb4dc07460106b86c8a16d0ffce941059358f7c6
[]
no_license
Sispheor/PiHomeAlone
1f1a9aa619b97483a61972b58094c6cec961161a
7356adddc0e936b8c8f6bd45813ec012196edefd
refs/heads/master
2021-01-15T16:57:20.813213
2016-08-31T20:14:02
2016-08-31T20:14:02
64,602,755
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
import threading class TestThread(threading.Thread): def __init__(self, shared_queue): super(TestThread, self).__init__() self.shared_queue = shared_queue def run(self): print "Run test thread" while True: if not self.shared_queue.empty(): val = s...
fa320868ae9bf5f750b0b8459e690b5b188e5164
82c4d0e905bf28fecbad33274cc5aac9c1bdde99
/thinger.py
813ac23fd871fce607528cb066dc481b2a5a7e83
[]
no_license
dansgithubuser/py-rpc-host
aac578d9410a056a7751c6eae648d924fa4a3a2d
e4d19e02e427784e21cf267692539523f034d8f9
refs/heads/master
2020-05-18T03:03:52.661094
2020-02-07T23:30:51
2020-02-07T23:36:22
184,135,584
0
0
null
null
null
null
UTF-8
Python
false
false
13
py
blinger = 24
a3e1e62573d08a5efcf9b3c114322ce3211071fb
4e23ff457c737886d3f1280162b90987bbc12211
/main/apps/carts/migrations/0003_auto_20190120_0337.py
bd278830f6b8cdc994bdb5beb3c617c35c70510e
[]
no_license
ehoversten/Ecommerce_Django
8ab1edeb1b7ed2a0e9f33920ecccc2d6b1996cd9
b109b62e2fd318c4feb37c448898cbeada722968
refs/heads/master
2022-12-21T09:42:53.317891
2019-02-14T16:24:00
2019-02-14T16:24:00
143,313,907
6
2
null
2022-11-22T02:34:42
2018-08-02T15:34:32
Python
UTF-8
Python
false
false
660
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-01-20 03:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('carts', '0002_cart_subtotal'), ] operations = [ migrations.AlterField( ...
c40022197521b3fda780acbc6aeb293021154248
fa1eb33b885bd03a56a542720c4f823654457bd5
/tests/test_image_search.py
b4169a9b82cd7fb74be11c9f5050def5e6b7800c
[]
no_license
jhoover4/fcc-api-projects
16753435017518c0594db9ead3606691280fadc4
b21f830c0f1047e0cb28f71387de4581cd4be523
refs/heads/master
2022-12-11T03:44:22.103645
2018-12-26T19:24:13
2018-12-26T19:25:52
118,831,587
0
0
null
2022-12-08T01:26:31
2018-01-24T22:44:09
Python
UTF-8
Python
false
false
2,433
py
import datetime import json import unittest from test_app import BaseTestCase import models class TestImageSearchView(BaseTestCase, unittest.TestCase): def test_check_table(self): assert models.ImageSearch.table_exists() def test_index(self): """Test that the description view for this api i...
c253640dbc26eb41517006f2f80be5e9f19b2aaf
2e9748e6dc278a5a84184216d94ab2c841ec8482
/image_process/opencv/noise_remove_inpaint/main.py
17a39c66a3aa56f6b191aaa81377d6ade7690a95
[ "MIT" ]
permissive
ybdesire/machinelearning
fa2bc20240e88513475358c761d067108e1eadf8
0224746332e1085336e0b02e0ca3b11d74bd9a91
refs/heads/master
2021-12-08T04:46:56.344543
2021-11-19T07:57:47
2021-11-19T07:57:47
54,877,464
30
19
null
2021-08-13T01:23:08
2016-03-28T08:16:06
Jupyter Notebook
UTF-8
Python
false
false
208
py
import numpy as np import cv2 as cv img = cv.imread('messi.png') mask = cv.imread('mask.png',0) dst = cv.inpaint(img,mask,3,cv.INPAINT_TELEA) cv.imshow('dst',dst) cv.waitKey(0) cv.destroyAllWindows()
129f9191f2f84ac88110b03e3dcf1e00a852b049
3c92c3f633b613a62fb67476fd617e1140133880
/leetcode/605. Can Place Flowers.py
db797a8c9e9dcebc16f5082e85a622b0163ba516
[]
no_license
cuiy0006/Algorithms
2787f36f8164ded5252a006f723b570c9091bee9
00fd1397b65c68a303fcf963db3e28cd35c1c003
refs/heads/master
2023-03-31T13:55:59.191857
2023-03-31T03:39:42
2023-03-31T03:39:42
75,001,651
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
class Solution: def canPlaceFlowers(self, flowerbed: List[int], n: int) -> bool: if n == 0: return True for i, plot in enumerate(flowerbed): if plot == 1: continue if (i == 0 or flowerbed[i - 1] == 0) and (i == len(flowerbed) - 1 or flowerbed[i + 1...
757c41f50ce3426d0abb28b4e32a9f738da56736
6573a45c4389688666821621c26a5a95a0765e4d
/archived_envs/20190625_100746/bin/iptest2
6e74f0fe49439610cf8c38536be2e444eeba223e
[]
no_license
ilhmndn/Warehouse-Management-System-With-Frappe
66a41be2286dbdb556ab51a4788fc42987d6ed2e
bd9864c5a04a6e2f2f625a8755fba3df4b6409be
refs/heads/master
2022-10-23T11:13:57.810948
2019-07-02T05:18:19
2019-07-02T05:18:19
194,467,571
2
2
null
2022-10-15T16:16:10
2019-06-30T02:40:05
Python
UTF-8
Python
false
false
262
#!/home/ilhmndn/frappe-training/env/bin/python # -*- coding: utf-8 -*- import re import sys from IPython.testing.iptestcontroller import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
f68d2ca23b8e9660445df4f664adf81a10a1b580
dd6a3615d54ca825051f1c9f81bcd206eb9cfd10
/setup.py
91bcc6ec95068bd0fb034196004e350c1d121a19
[ "MIT" ]
permissive
cherakhan/mps
82e06aea229b2047bf1be68c4430fad621189abf
2ba818c361e467841f6bbe0ef47a1e833ef315d3
refs/heads/master
2022-02-01T20:40:07.327357
2019-06-10T03:43:49
2019-06-10T03:43:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
#!/usr/bin/env python import os from setuptools import find_packages with open('README.md', 'r') as f: LONG_DESCRIPTION = f.read() from numpy.distutils.core import setup, Extension setup_options = dict( name='doe-mps', version="0.1.1", long_description=LONG_DESCRIPTION, long_description_content_...
d2fb24dfd527c8ee0ac66cd54930611e44b3d5c6
34652a47355a8dbe9200db229a1bbc62619de364
/Maths/diff_eqns/Runge_Kutta_method_2.py
98e189db514dbf1126d73f217e5d7515b190d817
[]
no_license
btrif/Python_dev_repo
df34ab7066eab662a5c11467d390e067ab5bf0f8
b4c81010a1476721cabc2621b17d92fead9314b4
refs/heads/master
2020-04-02T13:34:11.655162
2019-11-10T11:08:23
2019-11-10T11:08:23
154,487,015
0
1
null
null
null
null
UTF-8
Python
false
false
1,722
py
def rKN(x, fx, n, hs): k1 = [] k2 = [] k3 = [] k4 = [] xk = [] for i in range(n): k1.append(fx[i](x)*hs) for i in range(n): xk.append(x[i] + k1[i]*0.5) for i in range(n): k2.append(fx[i](xk)*hs) for i in range(n): xk[i] = x[i] + k2[i]*0.5 for i in ...
ce033b921042d603ac116dcbe76a4c8e40f95ad7
a227947112fe8a3fd8078bcdfee22b82385f5490
/aat/config/enums.py
25fa292208b39967d8415ad9fd63dbece71a9fc3
[ "Apache-2.0" ]
permissive
Sahanduiuc/aat-1
43465f6060d084a5442af8685266e0cd009a8626
0aee0f9943b5e16f29ec69faea5f9e5a937c5e5d
refs/heads/master
2022-11-15T21:16:28.580803
2020-06-14T22:14:37
2020-06-14T22:14:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
from enum import Enum class BaseEnum(Enum): def __str__(self): return f'{self.value}' class Side(BaseEnum): BUY = 'BUY' SELL = 'SELL' class EventType(BaseEnum): # Trade events TRADE = 'TRADE' # Order events OPEN = 'OPEN' CANCEL = 'CANCEL' CHANGE = 'CHANGE' FILL = '...
a41229319392a641d67d38fb9bac9372fa60c208
731951e8b75b45f427d44ecbae7b1a3445dcce33
/unit_tests/test_designate_handlers.py
b93acf70ae1ddbce0ffd2204016a2eb333959926
[ "Apache-2.0" ]
permissive
falfaro/charm-designate
096eccce95d2d2f360afd7ee92f9b33cef990fbb
385e4cf8cd1da1a02df5f6e8981b41c0c8e9a2bb
refs/heads/master
2020-12-31T00:30:33.345747
2017-03-29T07:20:31
2017-03-29T07:20:31
86,549,157
0
0
null
2017-03-29T07:02:16
2017-03-29T07:02:16
null
UTF-8
Python
false
false
9,051
py
from __future__ import absolute_import from __future__ import print_function import unittest import mock import reactive.designate_handlers as handlers _when_args = {} _when_not_args = {} def mock_hook_factory(d): def mock_hook(*args, **kwargs): def inner(f): # remember what we were pas...
39c5d3e06b0fad48616e9688fc70e2af251dee01
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/c65b7eb52e3f1999292f845bce19d7f541645f76-<get_vars>-bug.py
57b28261fcc6bd7b9b54383cb83a1463a1812690
[]
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
9,662
py
def get_vars(self, play=None, host=None, task=None, include_hostvars=True, include_delegate_to=True, use_cache=True): '\n Returns the variables, with optional "context" given via the parameters\n for the play, host, and task (which could possibly result in different\n sets of variables being re...
9b58eff7ed3daf3e244f4bf1236dffbbb10d87fc
a222e2999251ba7f0d62c428ba8cc170b6d0b3b7
/AtC_Beg_Con_111-120/ABC111/B-AtCoder_Beginner_Contest_111.py
81b7210ed85e1fae5ea424f1edba455792a672aa
[ "MIT" ]
permissive
yosho-18/AtCoder
3e1f3070c5eb44f154c8104fbd5449f47446ce14
50f6d5c92a01792552c31ac912ce1cd557b06fb0
refs/heads/master
2020-06-02T10:21:29.458365
2020-05-29T12:40:48
2020-05-29T12:40:48
188,795,239
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
n = int(input()) if n <= 111: print(111) if n > 111 and n <= 222: print(222) if n > 222 and n <= 333: print(333) if n > 333 and n <= 444: print(444) if n > 444 and n <= 555: print(555) if n > 555 and n <= 666: print(666) if n > 666 and n <= 777: print(777) if n > 777 and n <= 888: print...
7ea4bcf5409fe244dc0f83e9747b2ac105b38bb1
1b05b6f4d96a14ba2beea7ff43bdaae124bbe41b
/Gdt/algorithm/algorithm/dxregulation.py
f4f402d65a63ddd6ec0dcb3c4fc66b74c731761b
[]
no_license
shmilyrj126/NetWork
27fcbde777c6ee25abfdd09a381c1a7a743d742a
957f0679f01d2a09d217516518ddd9693c0b2a80
refs/heads/master
2022-12-13T00:19:04.208089
2020-09-17T12:59:29
2020-09-17T12:59:29
296,340,198
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
# -*- coding: utf-8 -*- """ Created on Fri Nov 22 09:11:21 2019 @author: hsc """ import numpy as np import pandas as pd #导入pandas包 data1= pd.read_csv("C:\\Users\\hsc\\Desktop\\w4.csv") data2= pd.read_csv("C:\\Users\\hsc\\Desktop\\w5.csv") print(data1) print(data2) n=len(data1)...
7586f72297b50d92a4df016f506943d913a98140
3a891a79be468621aae43defd9a5516f9763f36e
/desktop/core/ext-py/Django-1.11/tests/admin_docs/test_views.py
bd483007c7553bfdb214341ed689c51dc66bb467
[ "BSD-3-Clause", "Python-2.0", "Apache-2.0" ]
permissive
oyorooms/hue
b53eb87f805063a90f957fd2e1733f21406269aa
4082346ef8d5e6a8365b05752be41186840dc868
refs/heads/master
2020-04-15T20:31:56.931218
2019-01-09T19:02:21
2019-01-09T19:05:36
164,998,117
4
2
Apache-2.0
2019-01-10T05:47:36
2019-01-10T05:47:36
null
UTF-8
Python
false
false
14,953
py
from __future__ import unicode_literals import sys import unittest from django.conf import settings from django.contrib.admindocs import utils, views from django.contrib.admindocs.views import get_return_data_type, simplify_regex from django.contrib.sites.models import Site from django.db import models from django.db...
a5cbd4174a07e88112f6ff2349b897cace44db22
581c041a0a32f051508f3b0a167656cb6169c2fe
/project_management/notifications/.svn/text-base/urls.py.svn-base
86d4d6a3ade25ed394867f009ed21fd231ac89d5
[]
no_license
raveena17/ILASM
da38258b6739e823b973c2bede2a21dd04e0941e
7a337e0e3a20180b9564de68ab22620dc9aa1a36
refs/heads/master
2022-12-05T14:34:45.929663
2019-06-25T14:18:47
2019-06-25T14:18:47
193,101,540
0
0
null
2022-12-03T15:11:35
2019-06-21T13:20:47
JavaScript
UTF-8
Python
false
false
325
""" urls for event application """ from django.conf.urls.defaults import patterns urlpatterns = patterns('project_management.notifications', (r'^create/$', 'views.manage_event'), (r'^update/(?P<id>\d+)/$', 'views.manage_event'), (r'^list/$', 'views.event_list'), (r'^delete/$', 'views.delete_event')...
76a97aedfd25a25ec5052821f9d86f5d50382bcd
aa0366a8632f334fb35e6bdc78717f3456202eb7
/old/bdApiGetCom_v02.py
676422673aa737b8010d9f1ed60f43dc04226cfb
[]
no_license
Mortaciunea/bdScripts
0891478096f3a5876655896c9649c0a7204d5ee8
4f6e9d2b181bb4a90c1ccfcaca64c22ecbe0dd59
refs/heads/master
2020-12-24T13:36:57.930038
2015-09-03T16:03:46
2015-09-03T16:03:46
41,869,547
1
0
null
null
null
null
UTF-8
Python
false
false
2,026
py
import maya.cmds as cmds import maya.OpenMaya as om def bdGetCentroid(vectorArray): center = ((vectorArray[0] - pointInsideVec) + (vectorArray[1] - pointInsideVec) + (vectorArray[2] - pointInsideVec))/4 return center def bdGetComMain(): mDagObject = om.MDagPath() mSelList = om.MSelectionLi...
550be29c5bc9d3a289d807df0b4515fa7991f024
196cd24f0dcd927779a42a39a5395baa3e3ad9dc
/groups/migrations/0004_auto_20200726_1934.py
0379bc6dc5af9c21d553711693e9195ceabf0c65
[ "MIT" ]
permissive
Hedera-Lang-Learn/hedera
d38ac067ebcfa774eb8a916e20144d5e2a079c57
f44773bcf7695f4f73f0cd71daed7767902bcfd4
refs/heads/dev
2023-06-23T01:41:02.429563
2023-06-13T20:17:24
2023-06-13T20:17:24
154,722,012
9
3
MIT
2023-06-13T20:17:25
2018-10-25T18:53:59
Python
UTF-8
Python
false
false
844
py
# Generated by Django 2.2.13 on 2020-07-26 19:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
114f7b56097b295584afe4163441cf97202ab66e
377bc20bb72234f0095eedba83ddbfaad79c50bb
/django05_static/django05_static/urls.py
9450e495dbe52787cbdc2b33ee89311953865a69
[]
no_license
choicoding1026/Django
56fcf9932095829b26037ab5c506882ea31f7f33
4bbdf0e0f79175e10f8f75a29c2bc8f0ebd5328c
refs/heads/master
2022-12-19T20:07:22.904082
2020-09-28T08:46:58
2020-09-28T08:46:58
298,218,997
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
"""django05_static URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
da278ac32c41ed3843c40753b8dcdc5c5ea6c64f
272a078b59a1a780ab7cccf4e2741fcd447ca37c
/examples/streaming/wordCount/reducer.py
39ec1edf7accec778833f3e52b165c3600a8bfbd
[]
no_license
casunlight/hadoop-tutorial
12dd2594b0990ad452bee01de0a2b6ceabe92501
6d45091fc92d39fe495f3f1a69acc493e2fe0c60
refs/heads/master
2020-03-26T22:11:56.028574
2018-11-26T00:20:41
2018-11-26T00:20:41
145,439,797
2
2
null
2018-09-11T18:26:26
2018-08-20T15:59:39
Shell
UTF-8
Python
false
false
1,076
py
#!/usr/bin/python from __future__ import print_function import sys #variable initialization current_word = None current_count = 0 word = None # takes input stdin for line in sys.stdin: # trim any leading and trailing spaces line = line.strip() # split the input from mapper.py and take the word and its co...
8706dd9534d6b4516529a80ef067267221875e06
aca65ed6f3c7e347adb9923fa78da77497624930
/ex11.py
03b2cc71ce6a496f5d1cdcbe77ee9e375f4c850b
[]
no_license
bunnybryna/Learn_Python_The_Hard_Way
516bb76ced2569ea27d9ce50c5d5bc00eeb5740d
c4aeece3b819a228acb2fb77f29551a8683331c4
refs/heads/master
2021-01-11T18:04:41.477498
2017-01-23T17:42:28
2017-01-23T17:42:28
79,486,036
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
print "How old are you? (year)", age = raw_input() print "How tall are you? (centimeter)", height = raw_input() print "How much do you weigh? (kilogram)", weight = raw_input() print "So ,you're %s years old, %s centimeters tall and %s kilograms heavy." % ( age, height, weight)
79fecc2c9c41f461be00ccb461bdb9cef9e811f3
6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff
/advanced_functionality/scikit_learn_bring_your_own_model/code/inference.py
586143a9c2d8e619fe940d1c6006ddefc83d208a
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
aws/amazon-sagemaker-examples
8359afe544e873662bda5b8d2b07399c437213c9
43dae4b28531cde167598f104f582168b0a4141f
refs/heads/main
2023-08-26T04:42:52.342776
2023-08-25T14:37:19
2023-08-25T14:37:19
107,937,815
4,797
3,519
Apache-2.0
2023-09-14T19:47:03
2017-10-23T05:55:22
Jupyter Notebook
UTF-8
Python
false
false
487
py
import os import joblib def predict_fn(input_object, model): ########################################### # Do your custom preprocessing logic here # ########################################### print("calling model") predictions = model.predict(input_object) return predictions def model_fn(mo...
fdd337731c2630cb780993a60ce66945c2781153
17554c4666f40759074dbe204aca6f9b5373d207
/tensorflow/python/keras/_impl/keras/model_subclassing_test.py
3d71a620fcb34d21c41f920eed99b1fe22668899
[ "Apache-2.0" ]
permissive
PACELab/tensorflow-1
ef92f70c5e5ff4cb3bda9254b8ef66b45f124566
fff95ee576e266eae9ccf23688849303aa146a3d
refs/heads/master
2021-01-25T14:34:10.574775
2018-03-03T18:14:50
2018-03-03T18:14:50
123,713,012
0
1
Apache-2.0
2018-03-03T17:03:35
2018-03-03T17:03:35
null
UTF-8
Python
false
false
20,297
py
# Copyright 2018 The TensorFlow Authors. 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 required by applica...
6975e4ae224d2fc47695bcd05ebae6980ef10880
41fd80f9ccc72a17c2db16b7019312a87d3181e8
/zhang_local/pdep/network1235_1.py
c8099e96137017a0b095a2519e6f5c6d3a2fd58a
[]
no_license
aberdeendinius/n-heptane
1510e6704d87283043357aec36317fdb4a2a0c34
1806622607f74495477ef3fd772908d94cff04d9
refs/heads/master
2020-05-26T02:06:49.084015
2019-07-01T15:12:44
2019-07-01T15:12:44
188,069,618
0
0
null
null
null
null
UTF-8
Python
false
false
72,209
py
species( label = 'C[CH]OC[C]([O])OO(3631)', structure = SMILES('C[CH]OC[C]([O])OO'), E0 = (49.4811,'kJ/mol'), modes = [ HarmonicOscillator(frequencies=([3025,407.5,1350,352.5,3615,1310,387.5,850,1000,360,370,350,2750,2800,2850,1350,1500,750,1050,1375,1000,2750,2850,1437.5,1250,1305,750,350,200,8...
c1064e3cb0f46ad7adf774bda864f9f66f8de8ed
9beb6276f17e5d174b7827ee73974d65bf302c60
/scrumate/core/migrations/0009_auto_20190520_2336.py
6272f5158163f4f19adf7687aa847632d70b4dee
[ "MIT" ]
permissive
nahidsaikat/scrumate
8a3bec242b5b6ff02f1a5b8309e777f154e7c338
11a63f1cc361261a7023eceafc2a27e29561dca0
refs/heads/master
2022-01-11T09:20:58.599693
2019-07-10T16:57:56
2019-07-10T16:57:56
169,908,944
1
0
MIT
2019-06-02T04:21:56
2019-02-09T20:12:45
HTML
UTF-8
Python
false
false
477
py
# Generated by Django 2.2.1 on 2019-05-20 23:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0008_auto_20190519_1902'), ] operations = [ migrations.AlterField( model_name='projectm...
92b8fbf42cdd9d76c411d6d3cdb66b67393a07a1
02024d0d05428da2a1b53862e31fe5bf0d667ba3
/qiskit/qasm/_node/_indexedid.py
fc87aadf35a174a409d35e133d3f3e49acc07abc
[ "Apache-2.0" ]
permissive
nonhermitian/arrogant_seahorse
488dd22a200f45f068821ce93422d92dd6bae38c
2be1ff60857c75fcbbb0c23aa594f41e1a33c89c
refs/heads/master
2020-03-12T01:02:59.369571
2018-08-08T17:55:13
2018-08-08T17:55:13
130,365,670
0
0
Apache-2.0
2018-05-24T13:43:13
2018-04-20T13:26:27
Python
UTF-8
Python
false
false
1,565
py
# -*- coding: utf-8 -*- # pylint: disable=invalid-name # Copyright 2017 IBM RESEARCH. 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/licen...
b98564429effdf73626a3ffe5b14362282c0ce78
d5f75adf5603927396bdecf3e4afae292143ddf9
/python/paddle/fluid/tests/unittests/distributed_passes/test_dist_fuse_adam_pass.py
85c3bf321a3b1b100f593ba527698605a85570af
[ "Apache-2.0" ]
permissive
jiweibo/Paddle
8faaaa1ff0beaf97ef7fb367f6c9fcc065f42fc4
605a2f0052e0ffb2fab3a4cf4f3bf1965aa7eb74
refs/heads/develop
2023-07-21T03:36:05.367977
2022-06-24T02:31:11
2022-06-24T02:31:11
196,316,126
3
2
Apache-2.0
2023-04-04T02:42:53
2019-07-11T03:51:12
Python
UTF-8
Python
false
false
3,358
py
# Copyright (c) 2022 PaddlePaddle Authors. 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 required by appli...
37818cd5fcee6a28165e777da8c232aab06642b5
7740adda52651a443e5141b331d4eaadbd0d0d2c
/chap11/11-5.py
a1ff82139212f7ae8500386e95508159daeca5f9
[]
no_license
wucy/pythonhomework
f55b24e6e702718243f8cd534dc7d3c2eb9f9fce
1cfcac532a229ce71982ed3cfef9f75a531ffa64
refs/heads/master
2016-09-10T20:30:37.367056
2013-11-28T14:20:03
2013-11-28T14:20:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
#!/usr/bin/env python def invert_dict(hist): ret = dict() for key in hist: ret.setdefault(hist[key], []).append(key) return ret print invert_dict({'a':1, 'b':2, 'c':2})
a648cbdbf5a1d98beba96b3483ee9e97504bb830
fcf91774105f020482c3c07632c0ee462a6d1394
/uwiki/web.py
57dd594e358c2811ee30d858e2da8fbd0247f7c4
[]
no_license
mikeboers/uWiki
fcac466e82d16b2ed219d06b834b766e7a9de43e
3c9b0a7ab07a550f52f5d5d38105df901d5a3801
refs/heads/master
2023-06-08T05:53:50.066814
2018-03-05T18:03:45
2018-03-05T18:03:45
15,181,192
4
0
null
null
null
null
UTF-8
Python
false
false
179
py
import logging logging.basicConfig() from .core import app from .errors import setup_errors setup_errors(app) # Finally register controllers here. from . import controllers
5d90971c9ca58a4817368468e0ff0c99c19b099e
14438f8c8bb4250a7fa8da0ecd40c5a4902bdfcd
/Player/set-17/165.py
9a3d792ecbd4593b145a5f3556d0c0b9183b56ef
[]
no_license
nikhilvarshney2/GUVI
c51b1fa3bd1026eb74fc536e938a14c2e92089b2
79717ae5b26540101169e512204fb7236f7c839f
refs/heads/master
2020-04-01T00:40:27.699963
2019-04-30T13:46:46
2019-04-30T13:46:46
152,707,542
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
n,u = map(int,input().split()) kl = list(map(int,input().split())) found = 100000 for i in kl: if i>u and i<found: found = i print(found)
dcea0c4504571f5421b69c4668bf5db388913504
c4e05230949efbd1ef858839850520ee94a87a58
/musicbingo/server/api.py
144686857d8e7df1892b59575b3618336128dc15
[]
no_license
asrashley/music-bingo
bd33b883da9b6f88df506860475861daea63c6fb
f49d26900a10593a6f993b82d8d782b2e7367f84
refs/heads/main
2023-07-20T11:15:47.696132
2023-06-29T09:59:51
2023-07-05T16:48:41
125,717,777
1
1
null
2023-08-28T17:28:04
2018-03-18T11:26:17
Python
UTF-8
Python
false
false
51,061
py
# pylint: disable=unused-argument """ HTTP REST API for accessing the database """ import datetime from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import json from pathlib import Path import random import secrets import smtplib import ssl import time from typing import Any, Dict, L...
d7e812f6c4172330edf6c5665208f768736883fb
89f4284d0b5b2359c5121626e1575f95fc08a160
/HeavyIonsAnalysis/JetAnalysis/python/jets/ak1PFJetSequence_pponPbPb_jec_cff.py
1566b9cba8fbfa5028007b4a3d4b3932de46e4ab
[]
no_license
geun-woo/Comparing-collections-in-AOD-and-in-miniAOD
e11eb48cc8ab15a07f02a08a8a46dfd9d5a4e418
7b6e2118b9ce733b2ebb6f26516cbc107e37b285
refs/heads/main
2023-01-27T21:18:37.980241
2020-12-04T08:24:01
2020-12-04T08:24:01
318,445,108
0
0
null
null
null
null
UTF-8
Python
false
false
10,268
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import patJetGenJetMatch, patJetPartonMatch from PhysicsTools.PatAlgos.recoLayer0.jetCorrFactors_cfi import patJetCorrFactors from PhysicsTools.PatAlgos.producersLayer1.jetProducer_cfi import patJets from HeavyIonsAnalysis....
5a9d027ff8cc18ecab56ba138f3d711c9d7f3eff
64a673e2e84c962ae4ab312b7f011e13f7d2df55
/lib/panda.py
516fb243713e658ac807e6c24b5e57f96070de17
[ "MIT" ]
permissive
ScienceXChina/panda
c00960901246627d643cdf33ee81066988a15fdb
efca3f70939d4c2d3c8c0901536e9d89a5bbcbd6
refs/heads/master
2021-01-19T20:50:57.597486
2017-04-18T01:17:34
2017-04-18T01:17:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,274
py
# python library to interface with panda import struct import usb1 from usb1 import USBErrorIO, USBErrorOverflow class Panda(object): def __init__(self, serial=None, claim=True): context = usb1.USBContext() self.handle = None for device in context.getDeviceList(skip_on_error=True): if device.getV...
2224a59c364b7d23fe7e1fda9e1c4882185ad1a2
7c8bff784568691c516833ac81afc967857d24e2
/jacc/migrations/0013_auto_20180329_1052.py
416bb15ffddf4f84db0de59def8ab08f641d0a94
[ "MIT" ]
permissive
kajala/django-jacc
b71f2c3df1321b9bb31e1e648895931b735949a6
4acb8ca2d32b11fd5afa3b5316b13be223b20ec6
refs/heads/develop
2023-08-18T14:12:38.196880
2023-08-11T15:18:57
2023-08-11T15:18:57
121,229,896
11
5
MIT
2021-07-12T15:02:36
2018-02-12T10:02:20
Python
UTF-8
Python
false
false
458
py
# Generated by Django 2.0.2 on 2018-03-29 10:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("jacc", "0012_auto_20180218_0638"), ] operations = [ migrations.AlterField( model_name="invoice", name="number", ...
6ba866c5effbeeecf9d64d9022e00310d5b49761
564d6a4d305a8ac6a7e01c761831fb2081c02d0f
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/operations/_express_route_ports_operations.py
c4af97d395be72cb5207f65765cddeee106487ae
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
paultaiton/azure-sdk-for-python
69af4d889bac8012b38f5b7e8108707be679b472
d435a1a25fd6097454b7fdfbbdefd53e05029160
refs/heads/master
2023-01-30T16:15:10.647335
2020-11-14T01:09:50
2020-11-14T01:09:50
283,343,691
0
0
MIT
2020-07-28T22:43:43
2020-07-28T22:43:43
null
UTF-8
Python
false
false
28,861
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 ...
832aa0d3c90861062ce69cb90cf22a074676b793
0e2994b2b6ffe318081274eff6425573f1ab953e
/argus-freesound-master/stacking_kernel_template.py
5872f6d63621c45783150d2611f315b29cf299b0
[ "MIT" ]
permissive
Ramstein/castme-transform-prediction-via-adversarial-network
4f6b1f3c953c9686ca2a77aef27891089e9a687e
361369fcb75f7c90b3e276d88e547cbba3402ea6
refs/heads/master
2023-07-15T14:12:18.842595
2021-09-07T18:08:01
2021-09-07T18:08:01
404,077,475
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
import gzip import base64 import os from pathlib import Path from typing import Dict KERNEL_MODE = "predict" # this is base64 encoded source code file_data: Dict = {file_data} for path, encoded in file_data.items(): print(path) path = Path(path) path.parent.mkdir(parents=True, exist_ok=True) path.wri...
68ae86fec143f3d1ab7439e4b15616b2622f4aff
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/automation/v20190601/get_watcher.py
3f148594cb31117a933d696388865eb5b54a5b0e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,247
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...
2f1de19f501102cdfb600897d1579f3d81ec4fa5
e376eb34db5eaf17608f2ebf22ecd796b836a7b1
/HW2/test-svm.py
8d0329207c8d1943a577aa163eee04f3156d8646
[]
no_license
yshsu0918/MachineLearning2020
5b8babad41d9d377d0ccf33b4b4a1c4e6e572bfa
f953492ae85941d81f675eaa21daf8fadfa227b3
refs/heads/master
2023-02-11T18:44:11.319760
2020-12-25T03:53:49
2020-12-25T03:53:49
324,283,077
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
from sklearn import svm import numpy as np import struct import time def decode_idx3_ubyte(idx3_ubyte_file,dataset_size): f = open(idx3_ubyte_file, 'rb').read() mem_offset = 16 images = [] for i in range(dataset_size): if (i+1) % (dataset_size/100) == 0: print('#', end='') im...
e2b0b5ef7fb05b0a4d43e6017bc2c9ecf30e1916
999879f8d18e041d7fa313132408b252aded47f8
/01-codes/tensorflow-master/tensorflow/models/image/mnist/convolutional.py
d6155ad11efb1506a56e91e926a91ac6ac296029
[ "Apache-2.0", "MIT" ]
permissive
QPanProjects/Surrogate-Model
ebcaf05728e82dcbcd924c2edca1b490ab085173
848c7128201218b0819c9665e2cec72e3b1d29ac
refs/heads/master
2022-10-11T19:03:55.224257
2020-06-09T14:37:35
2020-06-09T14:37:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,852
py
# Copyright 2015 Google 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.0 # # Unless required by applicable law or a...
94c91fe04ff2fb9e620aad0f6abe11b5811ef1f6
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4163/codes/1638_652.py
e5d5e8c43e0924df933804cc45da791a860f0cfb
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
122
py
a= int(input("insira um numero de 3 dgts: ")) b = a//100 c = a%100 x = (a%c) if x==0: print("SIM") else: print("NAO")
6b04c699eb03528f3243f106a6d49ded0dc8d86a
cda0f7f4e9e19aeb03148b71b9e4ac924a4b4814
/onspark_generate_feature_user.py
ca86b74cb9b58f4ddeff0f30aece89b7ac8ba727
[]
no_license
00fq00/competition_tianchi
32a4f59340d96955d8056daa5fe67d6079c36f8e
fb45aaa412ddba5b69555ecfd75c3aa462fe2489
refs/heads/master
2021-01-19T21:12:41.887958
2017-03-03T09:00:27
2017-03-03T09:00:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,331
py
# -*- coding: utf-8 -*- import sys from operator import add from pyspark import SparkConf from pyspark import SparkContext from sklearn.svm import SVC from sklearn.svm import LinearSVC from sklearn.pipeline import Pipeline from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier ##############...
479a840a61ac23a2b6d04a1d92edc8556addd410
f5ca706ea5fd000ebdd230b4c828d98540009b85
/Problem Solving/Strings/Funny String.py
14b5568074ebb390445b514074806155920e1755
[]
no_license
xtanmaygarg/HackerRankSolutions
a6fc72dcd165197c268d28d3f41bd022b5983b8b
ce973b9b1f90e7e39092ecc988333904afb0cda5
refs/heads/master
2021-01-01T08:57:24.586457
2020-07-12T21:04:57
2020-07-12T21:04:57
239,206,459
4
1
null
null
null
null
UTF-8
Python
false
false
801
py
#!/bin/python3 import math import os import random import re import sys # Complete the funnyString function below. def funnyString(s): t = s[::-1] s = list(s) t = list(t) sl = [] tl = [] fl = [] gl = [] for i in s: sl.append(ord(i)) for i in t: tl.append(ord(i)) ...
484bf5dda2028166bea56ebc6a0cb7774075e627
b3d52ed0675b464881312526a3b55a9ab4c0e6d8
/hello_exercise/manage.py
fcdf8057cb0121a939222de5acf21e0ac8b11023
[]
no_license
Alchemy2011/django_rest_framework20171030
339117f681a26c31cd80245ce80c0e1816e6c12d
fdc88412faf8d27ddaaa05bef611cfd235bee54e
refs/heads/master
2021-07-25T21:38:37.706973
2017-11-08T14:02:08
2017-11-08T14:02:08
108,797,561
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hello_exercise.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure th...
48ff9ba9d3dbeab6f4e525a151aa67190e43cc72
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/double/Schema+Instance/NISTXML-SV-IV-atomic-double-enumeration-2-3.py
9d0ef3892cc0f445eb1ee3592e91bca8ebbf63df
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
534
py
from output.models.nist_data.atomic.double.schema_instance.nistschema_sv_iv_atomic_double_enumeration_2_xsd.nistschema_sv_iv_atomic_double_enumeration_2 import NistschemaSvIvAtomicDoubleEnumeration2 from output.models.nist_data.atomic.double.schema_instance.nistschema_sv_iv_atomic_double_enumeration_2_xsd.nistschema_sv...
ff2cada24b0e31d5d867122eea1da07532fd6a5a
c5347d37f7d8018c2e6161de265ed5ced7deab51
/budget/tests/test_views.py
192c634a250860c534d8ef233e33ce3c6a002e91
[ "MIT" ]
permissive
davidlares/budget-webapp-django-testing
db3f1d5f6f90ccc357271cbe02becf31d4d38355
330039ba8a34e14afc96050a5cb9494380edbe84
refs/heads/master
2022-01-12T15:50:53.638288
2019-05-10T14:27:05
2019-05-10T14:27:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,607
py
from django.test import TestCase, Client from django.urls import reverse from budget.models import Project, Category, Expense import json class TestViews(TestCase): # runs before any test here def setUp(self): self.client = Client() # creating a client self.list_url = reverse('list') s...
[ "=" ]
=
39880a9d9db55971218551a7facfbd7b50fc34e2
2e5936c3877e96d39f52045a403b658be41b2e1e
/meanmax/stats/test.py
5debe41403987fe96ba9687a5b7bddd067501f6a
[ "MIT" ]
permissive
castorini/meanmax
32b71c36b39a30107ae288ba9ae815d630c1b4db
0ea124105eda04a00677c077b591a94c2e2b2936
refs/heads/master
2022-05-17T03:31:00.320904
2020-04-29T02:27:15
2020-04-29T02:27:15
258,859,401
11
0
null
null
null
null
UTF-8
Python
false
false
5,951
py
from dataclasses import dataclass, field from typing import Any, Dict from scipy import stats import numpy as np from .estimator import QuantileEstimator from .utils import compute_pr_x_ge_y from .tables import MANN_WHITNEY_UP010 @dataclass(frozen=True) class TwoSampleHypothesisTest(object): options: Dict[str, ...
2a1f653f3c6aa17decf8fe6281e94268b31d7d45
588f4991cad99f517ca5028e0e41c5b4d5252543
/contest/abc146/A.py
6dd0b6d5935a91706c75eddb86e2fa19ed8bb293
[ "MIT" ]
permissive
mola1129/atcoder
3002ff38cabf0ccb5142bd576ed90419fccde02e
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
refs/heads/master
2020-06-16T12:24:49.609707
2020-03-14T15:58:42
2020-03-14T15:58:42
195,571,664
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
s = input() week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'] for i in range(7): if s == week[i]: print(7 - i) break
e87eb74666e87fd06b949a6ae8bb772a467b3364
ba0cbdae81c171bd4be7b12c0594de72bd6d625a
/MyToontown/py2/toontown/cogdominium/CogdoFlyingLevelQuadrant.pyc.py
cc4db2f44140d0abe915edf689c163e5055699a6
[]
no_license
sweep41/Toontown-2016
65985f198fa32a832e762fa9c59e59606d6a40a3
7732fb2c27001264e6dd652c057b3dc41f9c8a7d
refs/heads/master
2021-01-23T16:04:45.264205
2017-06-04T02:47:34
2017-06-04T02:47:34
93,279,679
0
0
null
null
null
null
UTF-8
Python
false
false
11,537
py
# 2013.08.22 22:17:38 Pacific Daylight Time # Embedded file name: toontown.cogdominium.CogdoFlyingLevelQuadrant import math from direct.directutil import Mopath from pandac.PandaModules import NodePath, Point3, Vec4 from CogdoFlyingObjects import CogdoFlyingPlatform import CogdoFlyingGameGlobals as Globals cla...
c66f88b67107e67c470860ea50ec688511ea496a
0010b3d8b8f806d6065e1bb1aa3c18f9714001a7
/tests/fits_files/check_pyast_sip.py
6bc939935357f3d53094597d1955dba3e9bf7d27
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-public-domain" ]
permissive
GalSim-developers/GalSim
bfd2d5e57f20874ad81bc735195c5c62efad63eb
f1c0319600cc713373f1cea7459171fbf388848e
refs/heads/main
2023-08-17T07:30:44.583679
2023-08-15T02:52:00
2023-08-15T02:52:00
3,510,804
194
104
NOASSERTION
2023-09-12T04:03:38
2012-02-22T02:51:45
Python
UTF-8
Python
false
false
2,663
py
# Copyright (c) 2012-2022 by the GalSim developers team on GitHub # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # https://github.com/GalSim-developers/GalSim # # GalSim is free software: redistribution and use in source and binary forms, # with or w...
59c1f2b45d421f9c798635691acd2b8b721d41ce
359f3d8a1a2b5524490c314a44d60cec1d06f658
/whoweb/search/migrations/0016_remove_searchexportpage_limit.py
a6429e3520d3cf0c0d99c344ac8bb8c2cec16767
[]
no_license
sivasuriyangithub/Merket_Intellect-s3.route
ec9d9aa7d4575d5ff8006e1454f69e4033193fc0
71a9ab642f9a31f4a318cebec7fe6a075870a83c
refs/heads/master
2023-08-25T13:51:02.116705
2021-10-19T01:06:49
2021-10-19T01:06:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
# Generated by Django 2.2.8 on 2020-02-10 02:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("search", "0015_auto_20200210_0233"), ] operations = [ migrations.RemoveField(model_name="searchexportpage", name="limit",), ]
9ab4170d522046aa76f5bf39f8cae94eaa54c710
dd87109f806b31ddd065b51162e4e3ddc167151f
/select_sqlalchemy.py
1ef7bac6df4eff93502b857a0cf97d7e3f2c2689
[]
no_license
articuly/operation_practice
9776caeb9a039a72d008fc312b1134f7e2c18394
d4d4452e4174e6b8d7cc834f29452c08f304c719
refs/heads/master
2021-05-26T04:03:12.489849
2021-01-26T12:24:35
2021-01-26T12:24:35
254,045,242
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
from sqlalchemy import create_engine, Column, Integer, String, Enum from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base # 创建数据库引擎,连接mqsql数据库,用pymysql方式 engine = create_engine('mysql+pymysql://root:123456@localhost/mycms') # 创建会话对象,根据不同的数据库引擎创建对应的会话对象 Session = sessionmaker(...
3fcd3ecb6a4ec8ef84a4547a9ff3b96cc2bc5142
88bd71afeb581578c9c0d29c08b38a9ed1c00ffb
/house/views.py
7e22d0ac99a0b75f5279554ee7e962e5af0bfc86
[]
no_license
lopezjronald/DjangoRealEstateInvestmentProject
019b5c763a5839b920a9abf823c9feb1e9fde0f8
6347e2a60e48915333700c182bb4143166cfb8f1
refs/heads/master
2022-12-04T18:38:17.609092
2020-08-28T00:50:23
2020-08-28T00:50:23
290,914,869
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from django.shortcuts import render from .models import Project def house(request): projects = Project.objects.all() return render(request, 'house/home.html', {'projects': projects})
fa284df700e5a99c1ad7f73156e6a6cfb14a4ef6
c61802907bb274c999a6815a072336de977e65e9
/opennsa/backends/brocade.py
2e9860ec78d9b0f606ca23ee5b8ca96a718d3e9f
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NORDUnet/opennsa
2f8039fa4702a8126e2e0cdc4bc6b56b4389c494
9d47b29037e5f9a159e7984eb17b4d3aeaf1708c
refs/heads/master
2023-07-22T22:36:44.864169
2022-10-06T13:18:08
2022-10-06T13:18:08
10,215,733
16
24
BSD-3-Clause
2022-10-06T13:08:44
2013-05-22T08:50:54
Python
UTF-8
Python
false
false
8,035
py
""" Brocade backend. Contributed by Balasubramania Pillai from MAX Gigapop. Ported to OpenNSA NSIv2 by Henrik Thostrup Jensen (summer 2013) Further contributions/fixes from Jeronimo Aguiar from AMPATH. Further contributions by John Hess from CENIC. Notes: configure terminal vlan $vlan_id name $name tagged $source_por...
fdd4638884d947455012f888f979014d61edaff5
8e328e186da6c5bb12c35c72a967ab73be97d6c5
/CSMWeb/models.py
50a3d4cb6e83c4946df1b2340bafec3794e70140
[]
no_license
PaloAltoCSM/CSM
48bef57a7db0e623deec60d66e3e5dc4470354e9
dd4aaeada040df8e199e9efcea779bef45bbbdb1
refs/heads/master
2021-01-01T16:30:04.794114
2015-08-15T01:46:29
2015-08-15T01:46:29
40,500,511
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
from django.db import models from django.contrib.auth.models import User from django.conf import settings class Tag(models.Model): text = models.CharField(max_length=100, primary_key=True) def __str__(self): return "Tag #%s" % (self.text) class Project(models.Model): name = models.CharField(max_l...
5a7783237e226747e5fbd25cac84df4b45ef3159
4a74875c7366a19b7189fcb89fa0fa27abc4309e
/data_pipeline/processor/processor.py
b6493e1c2048911a74ea00ba33661a7c5fd2dae6
[ "Apache-2.0" ]
permissive
saubury-iag/data_pipeline
d865d66d25eeb4ea6c6a655ae934bfe83c0efa06
4ad04198ed48c643045113c6e2c3e0848adbdec6
refs/heads/master
2021-07-23T08:43:46.754162
2017-11-01T05:05:23
2017-11-01T05:05:23
108,808,749
0
0
null
2017-10-30T06:06:41
2017-10-30T06:06:41
null
UTF-8
Python
false
false
1,726
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
244537803eabece33bf150b7a3e93cf37db117cb
b0eef0efd10556a4b054574fdd2d43124cb0856b
/npbench/benchmarks/azimint_hist/azimint_hist_numba_np.py
a59941dc12823543eda3a331f4260532d55b9226
[ "BSD-3-Clause" ]
permissive
learning-chip/npbench
140d38be2095b54393de6e0008264b54b7cf686b
f2f545afe3603d5c8f1771f26d660f25ce4a3cda
refs/heads/main
2023-05-10T09:54:52.719759
2021-05-31T12:09:48
2021-05-31T12:09:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,291
py
# Copyright 2014 Jérôme Kieffer et al. # This is an open-access article distributed under the terms of the # Creative Commons Attribution License, which permits unrestricted use, # distribution, and reproduction in any medium, provided the original author # and source are credited. # http://creativecommons.org/licenses...
b07b16db3d774aac0bbdc84ffbfe276598532c9b
fc353b0433348ff58841cf32bf1f5e594e037513
/leetcode/414.Third Maximum Number.py
ca03468944b1979e12857f95f61398921bb8c3d2
[]
no_license
TrellixVulnTeam/Demo_933I
ce759ec52dd191f99b998862f4aba7971878ba37
ab662060eb07a88a48c9832e09bf268517c1a3fa
refs/heads/master
2023-04-27T16:55:29.627491
2021-05-07T05:38:58
2021-05-07T05:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,215
py
# Given a non-empty array of integers, return the third maximum number in this a # rray. If it does not exist, return the maximum number. The time complexity must # be in O(n). # # Example 1: # # Input: [3, 2, 1] # # Output: 1 # # Explanation: The third maximum is 1. # # # # Example 2: # # Input: [1, ...
7516852dd574508330178cbc13a9ed763a228644
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/MtktG9Dz7z9vBCFYM_1.py
b19055d28322e4de6c3ee44a3d7684ed9c0daf4d
[]
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
472
py
""" Write a function that takes an IP address and returns the domain name using PTR DNS records. ### Example get_domain("8.8.8.8") ➞ "dns.google" get_domain("8.8.4.4") ➞ "dns.google" ### Notes * You may want to import `socket`. * Don't cheat and just print the domain name, you need to make a rea...
95e1625f25d743050cb651088f93e69da0459865
e0d404675839dc10bc1e995be4c35a69ab9133a5
/api_client/python/grr_api_client/config.py
18fe1aba06e22f8e98221caa6d7e3312da7a36a9
[ "Apache-2.0" ]
permissive
feitianyiren/grr
4afebc4a1912d46b4df4f1b4b0d25500505d05e5
9cc014f44ea9b21166e3b6815eb218d39f37fa07
refs/heads/master
2020-04-09T02:53:22.199635
2018-11-28T10:54:52
2018-11-28T10:54:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
#!/usr/bin/env python """Functions and objects to access config-related GRR API methods.""" from __future__ import absolute_import from __future__ import unicode_literals from grr_api_client import utils from grr_response_proto.api import config_pb2 class GrrBinaryBase(object): """Base class for GrrBinary referenc...
384f2c32d83751bbaee4e8bf82c84cbdb8560799
db1592ee9ba472d2a2f94056ac32b255deb69ecd
/hog/api/migrations/0007_auto_20190618_1648.py
03bfdfd56703771d235c0fe8b69f4fc89eb337bf
[]
no_license
tech4nature/hogapp
3fadcad8353dd2cecdc97eff87d0f196e144a2f5
24d50c9756853534e1dafdccbf3609fd512f253a
refs/heads/main
2023-03-07T00:45:53.100651
2022-07-09T13:00:16
2022-07-09T13:00:16
175,845,744
1
0
null
2023-02-15T19:58:09
2019-03-15T15:27:33
Python
UTF-8
Python
false
false
1,182
py
# Generated by Django 2.1.7 on 2019-06-18 16:48 import django.core.validators from django.db import migrations, models import re class Migration(migrations.Migration): dependencies = [ ('api', '0006_location_coords'), ] operations = [ migrations.AddField( model_name='measure...
ed2d8e730e1f68799c443568132b6b04df8ed6f2
9f884a3584eef771f8c010e296c5d763098be243
/povary/apps/recipes/urls.py
8e69a1a748b52fe7ca90910cd8edfb48e5a05e85
[ "BSD-3-Clause" ]
permissive
TorinAsakura/cooking
fc8658ce2ac21c2e00dc307399a5fa24971a20c1
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
refs/heads/master
2023-01-24T13:07:38.529811
2020-12-08T22:14:33
2020-12-08T22:14:33
319,773,012
0
0
BSD-3-Clause
2020-12-08T22:14:34
2020-12-08T22:08:34
null
UTF-8
Python
false
false
1,408
py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from recipes.views import RecipeWizard from recipes.forms import RecipeFormStep1, RecipeFormStep2, RecipeFormStep3, IngredientForm from django.forms.formsets import formset_factory FORMS = [("first", RecipeFormStep1), ("second", formset_fac...
9068990897aab8e31bc3528c0d1e5e71e9ac3716
ded13e921c8365c6113911a5834969ec3d33f989
/190/Reverse Bits.py
daf8020e90da61121938b47c386e6a71c42cebc4
[]
no_license
ArrayZoneYour/LeetCode
b7b785ef0907640623e5ab8eec1b8b0a9d0024d8
d09f56d4fef859ca4749dc753d869828f5de901f
refs/heads/master
2021-04-26T23:03:10.026205
2018-05-09T15:49:08
2018-05-09T15:49:08
123,922,098
0
1
null
null
null
null
UTF-8
Python
false
false
542
py
# /usr/bin/python # coding: utf-8 class Solution: # @param n, an integer # @return an integer def reverseBits(self, n): bit_list = [] for i in range(32): if n == 0: bit_list.append(0) else: bit_list.append(n % 2) n //=...
f88454fa9aec4c56926c2ca6e93a4e29b4d5ed11
2c32cf726e111b8625265c458feeaea436652e83
/pramp-condility-3month/mid-ll-03.py
1e8be57a8c2ad51d2eaf8186bda15d8dd284e8ed
[]
no_license
minhthe/practice-algorithms-and-data-structures
6fa3bf98e8e2fe98f4e32419fb797b1df4400364
488a82dd3a0c797859a6c9e1195d6d579d676073
refs/heads/master
2021-05-16T23:01:20.026475
2020-09-23T04:17:13
2020-09-23T04:17:13
250,505,610
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
'''https://leetcode.com/problems/middle-of-the-linked-list/''' class Solution: def middleNode(self, head: ListNode) -> ListNode: slow = head fast = head while slow.next : slow = slow.next fast = fast.next.next if not fast or not fast.next: return slow return slow
1bfe256e98b3819a009084e61cbab623b1b98742
2a68b03c923119cc747c4ffcc244477be35134bb
/Algorithm/BFS/cutOffTreesForGolf.py
2a98a13b8ff88d702b43e4e35845dcc69aa477f3
[]
no_license
QitaoXu/Lintcode
0bce9ae15fdd4af1cac376c0bea4465ae5ea6747
fe411a0590ada6a1a6ae1166c86c585416ac8cda
refs/heads/master
2020-04-24T20:53:27.258876
2019-09-24T23:54:59
2019-09-24T23:54:59
172,259,064
1
0
null
null
null
null
UTF-8
Python
false
false
2,554
py
from collections import deque DIRECTIONS = [(-1, 0), (1, 0), (0, 1), (0, - 1)] class Node: def __init__(self, x, y, h): self.x = x self.y = y self.h = h def __lt__(self, other): return self.h < other.h class Solution: """ @param fo...
c0a3e051bbc2c684475bd3bf28a5112cb6f2f3d3
4ccd7bab3b9491426300d9714330ad58f65fab68
/Train/train.py
f9f4c923c120389b2dc08391d660292b893e70f9
[]
no_license
jcn16/nert
48ebcb3fb64bb2913ab20f85f9b8ab3ae00f4731
3b6e9d85e77077d1ad3b669fe88799d6a19e6d99
refs/heads/main
2023-06-06T11:31:21.520886
2021-06-20T08:33:36
2021-06-20T08:33:36
378,593,994
0
0
null
null
null
null
UTF-8
Python
false
false
8,813
py
import os, sys from opt import get_opts from tqdm import tqdm from torch.utils.data import DataLoader from datasets import dataset_dict # models from models.nerf import Embedding, NeRF,NeRF_sigma,NeRF_albedo from models.rendering_part import render_rays from losses import MSELoss from collections import defaultdict #...
bb66bf071a75efcfd3911bfff82f02abb6f859f3
d8183ea32f7e041dc4094cb955c075586bf66b73
/subscriptions/api/urls.py
b63a5e68b48dfb2f6ec1e280cb64cdad63d00b63
[ "BSD-2-Clause" ]
permissive
mjumbewu/django-subscriptions
e8426ff510f06268c3f4151e7d71ffad59fa115b
78a35742ec5062380aded053b64fd96cba677dac
refs/heads/master
2016-09-05T18:03:22.761915
2013-04-01T18:05:08
2013-04-01T18:05:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
from django.conf.urls.defaults import patterns, include, url from subscriptions.api.views import SubscriptionIndex, ContentFeedRecordIndex urlpatterns = patterns('', url('^subscriptions/$', SubscriptionIndex.as_view()), url('^feed_records/$', ContentFeedRecordIndex.as_view()), )
9cdaad47d5357ac4e8efec69e5a276d9740b076e
c77a40408bc40dc88c466c99ab0f3522e6897b6a
/Python_fundamentals/Lists_basics/InvertValues.py
4f376e4458c8f0257c55551b39bf912e393e5243
[]
no_license
vbukovska/SoftUni
3fe566d8e9959d390a61a4845381831929f7d6a3
9efd0101ae496290313a7d3b9773fd5111c5c9df
refs/heads/main
2023-03-09T17:47:20.642393
2020-12-12T22:14:27
2021-02-16T22:14:37
328,805,705
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
string = input() list_of_string = string.split(' ') reverse_list = [] for i in range(len(list_of_string)): reverse_list.append(int(list_of_string[i]) * -1) print(reverse_list)
508adf8642b9920d2152095cd5a761b3ab2e54c0
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/recoveryservices/v20210201/get_protection_policy.py
ecf4c141423f4c2b9f265781df528fc03ccf1e76
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,829
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, overload from ... import _utilities fro...
be11b741bfcdd7a38ab0381a2686283f96a1864b
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/PCUBE-SMI.py
057c4bae47ebfa759260a8448e4e0cd9d353529d
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
3,457
py
# # PySNMP MIB module PCUBE-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PCUBE-SMI # Produced by pysmi-0.3.4 at Wed May 1 12:11:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...