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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9fea3d155012b6af9e4d7879b888a09a41598709 | 1b496449867e60fcec110d1f0d6b7bc0bc8cddf6 | /mydeploy/myapp/setup.py | 35cc2459c6856afa68137edf4f9b170e088b2e91 | [] | no_license | sebbekarlsson/tarship | f4cca6dc27174fc0d31ee3ceb8ba2a8864070e42 | c7b57472a3e0146d38260c3607473914750e1ffd | refs/heads/master | 2020-03-28T21:37:40.004937 | 2018-12-06T12:02:33 | 2018-12-06T12:02:33 | 149,170,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from setuptools import setup, find_packages
setup(
name='myapp',
version='1.0',
install_requires=[
'flask'
],
packages=find_packages()
)
| [
"sebbekarlsson97@gmail.com"
] | sebbekarlsson97@gmail.com |
fe79ba37dfe75f6ff0503aad5ac0e6a96ee458f1 | 68c29e7a17d87e34b1d6613c3e2e70a36fd2adcc | /easy/485_max_consecutive_ones.py | 67224cb9e68d8e2bbf47be570831d8cff6dfae9b | [
"MIT"
] | permissive | Sukhrobjon/leetcode | 284242fbfded3e47a57ce9230f9bc1175685cd7a | 547c200b627c774535bc22880b16d5390183aeba | refs/heads/master | 2022-02-26T20:56:57.347119 | 2022-02-05T01:58:49 | 2022-02-05T01:58:49 | 192,158,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | """
Given a binary array, find the maximum number of consecutive 1s in this array.
Example 1:
Input: [1,1,0,1,1,1]
Output: 3
Explanation: The first two digits or the last three digits are consecutive 1s.
The maximum number of consecutive 1s is 3.
NOTE:
The input array will only contain 0 and 1.
The length of inpu... | [
"sgolibbo@mail.ccsf.edu"
] | sgolibbo@mail.ccsf.edu |
ae3069ea5b56ee41d89ee8c8e24a57ba2f5ca18e | 675c5e97a84cfda399ca74c1804e0218c43b7c70 | /xTool/contextmanagers/temp.py | 78739d83c8720635e0978184092eabe4db5c3ca6 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"Python-2.0"
] | permissive | fengzhongzhu1621/xTool | 37a232e5ea220c8e5cb48aaf6868bc9cf24181e8 | 57d745ce6be531c000a3b477c38bfdd4c2ac74e3 | refs/heads/master | 2023-07-20T22:31:50.278926 | 2023-07-18T02:29:21 | 2023-07-18T02:29:21 | 88,688,127 | 3 | 4 | Apache-2.0 | 2023-05-09T21:53:19 | 2017-04-19T01:49:20 | Python | UTF-8 | Python | false | false | 304 | py | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from pathlib import Path
from tempfile import TemporaryDirectory
@contextmanager
def temp_path(name):
""" a simple cross platform replacement for NamedTemporaryFile """
with TemporaryDirectory() as td:
yield Path(td, name)
| [
"jinyinqiao@gmail.com"
] | jinyinqiao@gmail.com |
f73b54bc15fb86b8360de52a82dabc4c873ff957 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/tensor_forest/proto/fertile_stats_pb2.py | 584ce5ba078ba2067643a2757cab80357484b93a | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4ad07e1cfb048ba607c58cfdff9fbfc290deaa4051df70b3ef39683a1fe3896b
size 20881
| [
"github@cuba12345"
] | github@cuba12345 |
5fa61eb6f1f27f9cd58eebdfa987ab4e30cc3809 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options.py | 9e1d2f87d101b4f926d8a7a1660b409e667bd8eb | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 3,052 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
74f2b12334b2c53165e62947970d47f48a275f4c | a7f459bcc3da31e4cce7c838e716e089a31cb662 | /tables.py | fc44e3abdad6c6227d08dbff3ea4f18197e6433a | [] | no_license | ravenusmc/myDB | 3d5246a2ad2ffc367d5a540eaa3e71322ed55ace | 09aa1d88e4cdc7fb19a01807d3d678bf9e3d777a | refs/heads/master | 2020-03-23T13:49:29.450115 | 2018-10-08T23:49:18 | 2018-10-08T23:49:18 | 141,639,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #This file only create the database name for each user.
#importing needed files
import mysql.connector
class Tables():
def __init__(self):
self.conn = mysql.connector.connect(user='ted',
password='pass',
host='localhost',
... | [
"mcuddy77@gmail.com"
] | mcuddy77@gmail.com |
9505f1bdb5def62407913d377071ecfcf1f5306b | 226e8d309e978240fbd6d4b31238daa357f51042 | /core.py | 77f3c9d7a2c130bdeda4fcc7d9b7f9f9a0167e06 | [] | no_license | zokis/Zy | e183f9ffb2fdfbe2b253666d5a17093b4929658d | 9a4959661d8a221cb359e119945febd6573b5165 | refs/heads/master | 2021-01-01T19:30:18.393976 | 2015-04-30T21:46:21 | 2015-04-30T21:46:21 | 33,011,032 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,501 | py | # coding: utf-8
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
import re
ESC_STR = r'#[!]#'
class Symbol(str):
pass
class Lambda(object):
def __init__(self, parms, body, env):
self.parms, self.body, self.env = parms, body, env
... | [
"marcelo.zokis@gmail.com"
] | marcelo.zokis@gmail.com |
50c7c5264c127c5133745ffb614f121b6f470cc6 | 78316ffc5c14d6c0c6a144c25be0ba695ae6f4db | /svgout/manipulator.py | 82dab696782ef31e1663d4413bd0b01725d1065e | [] | no_license | meyt/svgout | 235fad9ee59b05f6caddde8ad5b67823c3f8916b | 21770144dade3c22314143291030a3bc24a5b248 | refs/heads/master | 2023-02-02T08:55:14.760035 | 2020-12-07T09:28:15 | 2020-12-07T09:28:15 | 319,265,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | import re
import yaml
import logging
import cssutils
from os.path import join
from bs4 import BeautifulSoup
cssutils.log.setLevel(logging.CRITICAL)
class ElementStyle:
def __init__(self, bs_element):
self.el = bs_element
self.style = cssutils.parseStyle(self.el["style"])
def __getitem__(se... | [
"pasd3000@gmail.com"
] | pasd3000@gmail.com |
6fa3c5bb33d1e17219f01a2c7a0ac9688776ac2a | 35e892b01d2dfeea6f66a29fa336b2478e06bcea | /src/mcedit2/widgets/mcedockwidget.py | 8bb08d93090fa2ac5f3d094f99e0e8efe57bc3a2 | [
"BSD-3-Clause"
] | permissive | theomission/mcedit2 | bf1d0b7e00eaf3523b386b5909b3e3796e73dc2f | 39a717b3cab5dd8366ed8542a070e4120386eb92 | refs/heads/master | 2020-12-31T02:00:52.356814 | 2015-11-09T21:43:44 | 2015-11-09T21:44:52 | 46,336,522 | 1 | 0 | null | 2015-11-17T09:26:11 | 2015-11-17T09:26:11 | null | UTF-8 | Python | false | false | 1,294 | py | """
mcedockwidget
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from PySide import QtGui, QtCore
import logging
log = logging.getLogger(__name__)
class MCEDockWidget(QtGui.QDockWidget):
def __init__(self, *a, **kw):
super(MCEDockWidget, self).__init__(*a, **kw... | [
"codewarrior@hawaii.rr.com"
] | codewarrior@hawaii.rr.com |
c0e5d3a39d855c37ca27c9e9df1c27e7e57350ab | 7b667511748ded171b66bf313d1dffe6f875289e | /tests/matrix_add_global_addr_offset/matrix_add_global_addr_offset.py | 82fa1a80ab86e72ea6ffc595134fafa0757fd3f2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | herosugi/nngen | 3b94301ba43ba0684be31c42c4977e1f72a081de | ce09cd1dba55d815163adfe901c7cca65dc0709f | refs/heads/master | 2020-09-09T02:14:04.746559 | 2019-11-12T09:11:33 | 2019-11-12T09:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,536 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
import functools
import math
import numpy as np
if sys.version_info.major < 3:
from itertools import izip_longest as zip_longest
else:
from itertools import zip_longest
# the next line can be removed after insta... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
25aaf0c09cf04ff7e328393bfd3aac3c91ea28c4 | bc2327d2bce695bb4881be63b1912f550857fd14 | /comps_and_gens/avoid_injecting_data.py | c40913be675650a5917f6c9caa4c0590c0adef57 | [] | no_license | mentalclear/fluent-in-python | 1a1d9ad30e949e72d8633156091b84b6d52b85bc | 243cff274861abc853b4ba5d03090191df5cd7db | refs/heads/master | 2023-08-05T19:26:48.787996 | 2021-10-06T13:04:14 | 2021-10-06T13:04:14 | 402,944,060 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | import math
def wave(amplitude, steps):
step_size = 2 * math.pi / steps
for step in range(steps):
radians = step * step_size
fraction = math.sin(radians)
output = amplitude * fraction
yield output
def transmit(output):
if output is None:
print(f'Output is None')
else:
... | [
"mentalclear@gmail.com"
] | mentalclear@gmail.com |
4e9afc0ee7bcec1dc84aa50b3eca0655bcedea07 | 66c6df450753acc7c41db5afe66abd35d5018c8c | /cliente Rujel/bin33.py | b8af2ff866744ea341d41bab5428a230e2eef354 | [] | no_license | hanmiton/CodigoCompletoEncriptacion | a33807d9470b538842751071031c9ce60951260f | efb7898af5d39025e98c82f1f71c8e9633cce186 | refs/heads/master | 2020-03-24T02:03:08.242655 | 2018-07-25T22:41:05 | 2018-07-25T22:41:05 | 142,360,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | import sys
import math
import random
import openpyxl
LAMBDA = 16 #security parameter
N = LAMBDA
P = LAMBDA ** 2
Q = LAMBDA ** 5
def principal(m1,m2):
doc = openpyxl.load_workbook('cifrado.xlsx')
doc.get_sheet_names()
hoja = doc.get_sheet_by_name('Hoja1')
m1 = int(hoja['A7'].value)
boln1 = bin(m1)
boln2 = bin(... | [
"hanmilton_12@outlook.com"
] | hanmilton_12@outlook.com |
1ec4d6b7f1ee5824542f78212d28e4851ad938e3 | eac22714038e840028cc5abb72bc750004626ebb | /mct_camera_calibrator/src/mct_camera_calibrator/calibrator_service.py | 825e733d2ae04f8e770576b619f5196ebe8297e9 | [
"Apache-2.0"
] | permissive | iorodeo/mct | 79b19f6dab9f6567452df7274d67245bf64b1801 | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | refs/heads/master | 2022-11-11T18:03:18.178182 | 2014-08-20T19:21:27 | 2014-08-20T19:21:27 | 273,790,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from __future__ import print_function
import roslib
roslib.load_manifest('mct_camera_calibrator')
import rospy
from mct_msg_and_srv.srv import GetBool
from mct_msg_and_srv.srv import GetString
def good_enough(calibrator):
"""
Wraper for the good_enough service provided by the cameracalibrator nodes.
Gi... | [
"will@iorodeo.com"
] | will@iorodeo.com |
6ed74c82e53f1e6b15c7c46353e105569c667bb2 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Learning Concurrency in Python/Chapter 08/mapPool.py | ba7352deaa660b0e307545fa085edce324923c64 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 202 | py | # ____ m.. ______ P..
# ______ ti..
#
# ___ myTask n
# t__.s.. ?+2
# r_ ?+2
#
# ___ main
# w__ P.. 4 __ p
# ___ iter __ ?.i_u.. ? |1,3,2,1
# print ?
#
# __ _________ __ ________
# ?
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f90ab8530e28474c7c8a23196d0f20aabcc1e379 | bdc45798b67c0d12b78845c3c31e690564b40ed5 | /projects/bbs/bb/views.py | 4ac49069fe6e4eca8557f9ce4126a9d9156b3771 | [
"MIT"
] | permissive | mozillazg/django-simple-projects | c16d8105985707ef572fcb1fb53f76d7e3ed0362 | 6ccd1232cb76595f6dbafa282cef2c20edbb1148 | refs/heads/master | 2023-08-23T20:23:59.139601 | 2015-09-25T23:28:56 | 2015-09-25T23:28:56 | 7,768,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,055 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.contrib.auth import login
from django.contrib.auth import logout
fr... | [
"opensource.mozillazg@gmail.com"
] | opensource.mozillazg@gmail.com |
90d9af82c6f7b23981f29ff3435d608517689b8f | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Geron17Hands/B_PartI/G_Chapter7/D_RandomForests/index.py | 8ff8d66c8fd6f9f178763d49d57ebff430e40833 | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
d87ca8f97309bfa2251a3beb33d65a0fc9ba27bc | 21bbc3fbeb7a1616dbd6993b66dc44d9b30df3e7 | /PycharmProjects/samp_proj1/assignment1.py | 9f586fef9c106afcc8bd0ec1f73adb8da96936b9 | [] | no_license | PoornimaDevii/python_training | 6124640608d8bf14289ae61b2b28e0db3b473b6f | 42b535590a6a244a91bd48b4451b74a29c1aaa80 | refs/heads/master | 2020-04-05T19:55:49.723114 | 2018-12-04T11:49:59 | 2018-12-04T11:49:59 | 157,157,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # Adapter Pattern (client:projector vga, dell lap hdmi mac usb)
# format() similar to __repr__
class Projector:
def __init__(self,n):
self.name = n
def __str__(self):
return 'the {} projector'.format(self.name)
def vga(self):
return 'has VGA'
# c1 = Computer('mycomp')
# print(c1... | [
"poornimadevi.rama@gmail.com"
] | poornimadevi.rama@gmail.com |
e54bffad4d3b08796d2abad7fabdf8706e5308f7 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/minigame/PatternGameGlobals.py | 23901749a7104eb5c1e9373c735e47592d0219e8 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # PatternGameGlobals.py: contains pattern game stuff
# used by AI and client
import MinigameGlobals
# pattern constants
INITIAL_ROUND_LENGTH = 2
ROUND_LENGTH_INCREMENT = 2
NUM_ROUNDS = 4
TOONTOWN_WORK = 1
# how long the players have to input the pattern
InputTime = 10
# this is how long the AI server will wait for... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
11413c5a57372ae3eadb0c9d39eba7ac4f30600f | b79e567b9709c50588b77174a20bb3bf2a5ae210 | /fan_tools/django/models.py | 118c5c1ebe689fd845df0889f88de5497a1f22b4 | [
"MIT"
] | permissive | micro-fan/fan_tools | 325d05f46fece9fe6e49a12b7a7c8d2259d42e1f | 2a6455b206158f471295b1e4d17e35ab5f98f754 | refs/heads/master | 2023-07-25T03:40:14.963178 | 2023-07-24T18:56:21 | 2023-07-24T18:56:45 | 224,145,427 | 2 | 0 | MIT | 2022-01-16T18:33:24 | 2019-11-26T08:53:55 | Python | UTF-8 | Python | false | false | 750 | py | import os
import uuid
class UploadNameGenerator(object):
def __init__(self, model_name, field_name):
self.model_name = model_name
self.field_name = field_name
def deconstruct(self):
return (
'fan_tools.django.UploadNameGenerator',
(),
{
... | [
"cybergrind@gmail.com"
] | cybergrind@gmail.com |
10c23c7085652bbb944fd917a4f62fe73419cc4f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bulkheads.py | b62773592aff3e1d3625faee7a8c8744150fbac0 | [
"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 | 252 | py |
from xai.brain.wordbase.nouns._bulkhead import _BULKHEAD
#calss header
class _BULKHEADS(_BULKHEAD, ):
def __init__(self,):
_BULKHEAD.__init__(self)
self.name = "BULKHEADS"
self.specie = 'nouns'
self.basic = "bulkhead"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7f0bca0bd4ab5c6fd530aa522500b9670194e8ad | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc024/B/4328471.py | 422d6eb2f88b6b69cd1a961089ef14ecba94644a | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | n=int(input())
P=[int(input()) for _ in range(n)]
Q=[0]*n
for i,j in enumerate(P):
Q[j-1]=i
cresc=1
cnt=1
for i in range(1,n):
if Q[i-1]<Q[i]:
cnt+=1
else:
cresc=max(cresc,cnt)
cnt=1
cresc=max(cresc,cnt)
print(n-cresc) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
a07ca542fe9a301a620158b1438fc385225f567c | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/21ffbcb3d32e0ee52eb1/snippet.py | 5cff930ed25c3e97206a7417a8478b8a596eec8c | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 796 | py | import hashlib
import itertools
import string
import time
import console
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
def encrypt(data):
return hashlib.md5(data).hexdigest()
password = encrypt('pass')
def crack(hash, charset, maxlength):
attempts = 0
for attempt in (''.join(candidate) for candidate... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
35fc48a9512d4e2a4b7468acb42ffaee49821ba9 | f0b5917fe0cb6c263e892d2dda6a541094123a16 | /grammar-generator/Elements/STG/Visible/VisibleSpecifiedColumnElementForStg.py | d89df6da48734e55f3d76ab47b53d77f40784dad | [
"MIT"
] | permissive | afronski/grammar-generator | 61a7de686ecc65dfa73f29a000bfed8b699de9ae | 231bf88e28dd02b2cd2a79e0d42cb0613a90501a | refs/heads/master | 2016-09-05T10:16:33.228488 | 2014-04-27T20:09:29 | 2014-04-27T20:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from Elements.STG.Base.IElementForStg import IElementForStg
class VisibleSpecifiedColumnElementForStg(IElementForStg):
def __init__(self, templates, settingsObject):
self.typeName = "Specified"
self.templateName = "SpecifiedVisibledColumn"
super(VisibleSpecifiedColumnElementForStg, self).__init__(templates, se... | [
"afronski@gmail.com"
] | afronski@gmail.com |
d92db4bf193ecaffa5187a3dbaf23ac6086d60f2 | 1070490055b5c981d936038959731134b01ce272 | /apps/utils/mixin_utils.py | 96866fa06ec2322ff13ee3b096fd4b88d85d9128 | [] | no_license | ljingen/MxOnline | 401d5be37e11cb866dc8eb78acc9b6de053c5708 | 1b471dd6b4968f79dd6866bb5e3e6413b760c8a1 | refs/heads/master | 2021-10-11T08:57:05.304124 | 2018-02-11T06:59:32 | 2018-02-11T06:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
class LoginRequiredMixin(object):
@method_decorator(login_required(login_url='/login/'))
def dispatch(self, request, *args, **kwars):
return super(LoginRequiredMixin, ... | [
"luojingen@aliyun.com"
] | luojingen@aliyun.com |
3318351747613ba0bee934e6538ceda331bda98c | b53c6ec03b24ad21f3ee395d085c07cd302c3402 | /tests/chainer_tests/datasets_tests/test_image_dataset.py | 1f36e27c0a68509843c447a77daf65914c659b48 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pyotr777/chainer | c0799791f85f499e32ea68636df5ecbe2c0f5675 | 8532edbd921ab0ea98c9447957565777e4601662 | refs/heads/master | 2021-04-28T05:00:16.181948 | 2018-02-20T06:41:21 | 2018-02-20T06:41:21 | 122,169,206 | 0 | 0 | MIT | 2018-02-20T07:50:22 | 2018-02-20T07:50:21 | null | UTF-8 | Python | false | false | 2,565 | py | import os
import unittest
import numpy
from chainer import datasets
from chainer.datasets import image_dataset
from chainer import testing
@testing.parameterize(*testing.product({
'dtype': [numpy.float32, numpy.int32],
}))
@unittest.skipUnless(image_dataset.available, 'image_dataset is not available')
class Tes... | [
"unnonouno@gmail.com"
] | unnonouno@gmail.com |
63fb29a944d3dcc789050d4e71e9af3eb41d5f1c | fa9bae32c203323dfb345d9a415d4eaecb27a931 | /859. Buddy Strings.py | 2195a1fcd904a6ecbd11d94049d250458faa4dc6 | [] | no_license | IUIUN/The-Best-Time-Is-Now | 48a0c2e9d449aa2f4b6e565868a227b6d555bf29 | fab660f98bd36715d1ee613c4de5c7fd2b69369e | refs/heads/master | 2020-09-14T12:06:24.074973 | 2020-02-15T06:55:08 | 2020-02-15T06:55:08 | 223,123,743 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | class Solution:
def buddyStrings(self, A: str, B: str) -> bool:
if len(A) != len(B): return False
if A == B and len(set(A)) < len(A): return True
dif = [(a, b) for a, b in zip(A, B) if a != b]
return len(dif) == 2 and dif[0] == dif[1][::-1] | [
"liuyijun0621@hotmail.com"
] | liuyijun0621@hotmail.com |
ff1207d7894df22fdaa96e181578ed8ce57c263f | 3edb81366059a3dcb767b7b15476f264fad788e8 | /submit.py | c394ced46f734942c3ba9b60ee354f0c8650cf22 | [] | no_license | enucatl-phd/sinogram_batch_jobs | 91179c1a1ec3cc7869b0e0010977ce8b95d14517 | a5c06b8992b1ad2ed651277c1f54229847b7cc44 | refs/heads/master | 2023-08-07T20:32:58.236996 | 2017-11-23T13:17:48 | 2017-11-23T13:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | import subprocess
import os.path
folders = [
"KO202_LL_control_1",
"KO202_LL_control_2",
"KO202_LL_control_3",
"KO203_LL_control_1",
"KO203_LL_control_2",
"KO203_LL_control_3",
"ko373_LL_smoke_1",
"ko373_LL_smoke_2",
"ko373_LL_smoke_3",
"WT223_LL_control_1",
"WT223_LL_contro... | [
"gmatteo..abis@gmail.com"
] | gmatteo..abis@gmail.com |
652d7a8d6ec191c18ef763835a9eb827497e9673 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_r_ldos1.py | 5f1ad0f6631db49e3f0ee25cbced343e39d89476 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from xcp2k.inputsection import InputSection
class _r_ldos1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.List = []
self.Xrange = None
self.Yrange = None
self.Zrange = None
self.Erange = None
self._name = "R_LDOS"
self._keywords ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
16faddad943bf0bc84ce7a1e8f6aabb41a63554c | 45fdc51cf264bbd50e59655440eefc91451c50ea | /urlib.parse/urllib_parse_unquote.py | 51e2760854007cbf12352e7d1838aee4ad0eea3b | [] | no_license | blindij/python3_stl | 2163043f3a9113eac21a48a35685a4a01987e926 | ea138e25f8b5bbf7d8f78e4b1b7e2ae413de4735 | refs/heads/master | 2021-12-24T20:37:54.055116 | 2021-09-29T13:37:38 | 2021-09-29T13:37:38 | 191,508,648 | 0 | 0 | null | 2019-08-27T15:45:53 | 2019-06-12T06:10:30 | Python | UTF-8 | Python | false | false | 176 | py | from urllib.parse import unquote, unquote_plus
print(unquote('http%3A//localhost%3A8080/%7Ehellmann/'))
print(unquote_plus('http%3A%2F%2Flocalhost%3A8080%2F%7Ehellmann%2F'
))
| [
"blindij@users.noreply.github.com"
] | blindij@users.noreply.github.com |
a219f316ee477f4840ce21fdc1d506deb1f5a87a | a12c090eb57da4c8e1f543a1a9d497abad763ccd | /django-stubs/contrib/staticfiles/management/commands/runserver.pyi | 9542443c2c7afc7adf315bec00bc6da4dd914096 | [
"BSD-3-Clause"
] | permissive | debuggerpk/django-stubs | be12eb6b43354a18675de3f70c491e534d065b78 | bbdaebb244bd82544553f4547157e4f694f7ae99 | refs/heads/master | 2020-04-04T08:33:52.358704 | 2018-09-26T19:32:19 | 2018-09-26T19:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | pyi | from typing import Any, Optional
from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.core.management.base import CommandParser
from django.core.management.commands.runserver import \
Command as RunserverCommand
class Command(RunserverCommand):
stderr: django.core.management.base.Ou... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
697a3885eff485ce7088da0fb99a37de47a132fb | 3e5b0278bb8f7c221c5d3478c0c54cae81123799 | /database/ingestFiesResults.py | 987ae5355dae68d3b9457d1671382a5f75d3ee99 | [] | no_license | jmccormac01/NOT | 717e8ecc7c157eedf320d87b796010f2cad97dd9 | 3463accce62848142dede0026fa27aba4366f45b | refs/heads/master | 2021-01-18T23:52:22.899766 | 2017-05-03T09:08:42 | 2017-05-03T09:08:42 | 54,653,166 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Script to ingest the results files from fiespipe.py
This is a copy of the ingestCafeResults.py script
Results file has the following structure:
0- Object name
1- MBJD
2- RV
3- error in RV
4- Bisector span
5- error in bisector span
6- instrument
7- pipeline
8- resolving ... | [
"jmccormac001@gmail.com"
] | jmccormac001@gmail.com |
9c1c35fa401ea152589015a7a13ebf1c10fc1825 | 628ab6e412e7c4c755bc42d8137acd3da2d4be0e | /tests/type/test_type_util.py | 75c136b72074efd78daecd55cfe6045a1eecb8c4 | [
"MIT",
"CC-BY-4.0"
] | permissive | TrendingTechnology/apysc | ffd7d9b558707b934c5df127eca817d4f12d619b | 5c6a4674e2e9684cb2cb1325dc9b070879d4d355 | refs/heads/main | 2023-06-01T20:19:20.835539 | 2021-06-20T03:53:33 | 2021-06-20T03:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | from apysc import Boolean
from apysc import Int
from apysc import Number
from apysc.type import type_util
def test_is_same_class_instance() -> None:
result: bool = type_util.is_same_class_instance(class_=bool, instance=1)
assert not result
result = type_util.is_same_class_instance(class_=int, i... | [
"antisocial.sid2@gmail.com"
] | antisocial.sid2@gmail.com |
da350f298931965ee5690a173c730b6e1f634548 | 5407d32363d4806176c768ef7db65c8f7c9e7f72 | /main.py | 307959cadf45e33557f44f8dc1bf3447330b65d3 | [] | no_license | krishpranav/pyide | 173efa96d8c7b50b2505c65a0562a4af64ab303f | 587628367b0ab6535ad3ebd00850c56c33b5fcbf | refs/heads/master | 2023-04-16T09:11:13.381777 | 2021-04-20T12:29:33 | 2021-04-20T12:29:33 | 359,804,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | #!/usr/bin/env/python3
#imports
from tkinter import *
from tkinter.filedialog import asksaveasfilename, askopenfilename
import subprocess
compiler = Tk()
compiler.title("IDE")
file_path = ''
def set_file_path(path):
global file_path
file_path = path
def open_file():
path = askopenfilename(filetypes=[('P... | [
"krisna.pranav@gmail.com"
] | krisna.pranav@gmail.com |
7b8818be9be235aca64718b52aeb09dd41aa1a45 | 8b060d38c63993a3259a80b072768206b558772b | /BlogApp/migrations/0016_user.py | cd8e9e162cda9e83045bd02588187a077f03409b | [] | no_license | mortadagzar/Simple-Python-feedingTable | d8b0a2a06c1b3d78167241a6f60a2bb00fa9c4ce | 716c68e6b9c55bd2dc8299ca14ccf39431cf0efb | refs/heads/master | 2020-03-30T19:07:16.027807 | 2018-10-14T15:05:28 | 2018-10-14T15:05:28 | 151,529,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Generated by Django 2.1.1 on 2018-09-24 22:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('BlogApp', '0015_auto_20180922_1833'),
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"mortadagzar@gmail.com"
] | mortadagzar@gmail.com |
94406b4c0a5f5a0b725f7359720d14ae01e6dc47 | 7bb34b9837b6304ceac6ab45ce482b570526ed3c | /external/webkit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py | 79e4cf4a97b601f70dcf60ea9438ce8a379e69d8 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.1-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | ghsecuritylab/android_platform_sony_nicki | 7533bca5c13d32a8d2a42696344cc10249bd2fd8 | 526381be7808e5202d7865aa10303cb5d249388a | refs/heads/master | 2021-02-28T20:27:31.390188 | 2013-10-15T07:57:51 | 2013-10-15T07:57:51 | 245,730,217 | 0 | 0 | Apache-2.0 | 2020-03-08T00:59:27 | 2020-03-08T00:59:26 | null | UTF-8 | Python | false | false | 2,325 | py | # Copyright (C) 2010 Google 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 code must retain the above copyright
# notice, this list of conditions and the f... | [
"gahlotpercy@gmail.com"
] | gahlotpercy@gmail.com |
53d010f5a09590ee0504499dddb723f69908eed7 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/com/link/successfactors.py | d9a5a27fd52a841ade57881fa9b838d7cd797500 | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | import re, urlparse, mechanize
from neekanee.jobscrapers.jobscraper import JobScraper
from neekanee.htmlparse.soupify import soupify, get_all_text
from neekanee_solr.models import *
COMPANY = {
'name': 'SuccessFactors',
'hq': 'San Francisco, CA',
'home_page_url': 'http://www.successfactors.com',
'jo... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
480d955400267885fb5c52823d2d84eaa53fffa3 | 25427cf7ac5ae9f8e5d421e953750a46fb2d1ebc | /OldBoy/Day68/django_model_form/django_model_form/settings.py | 6fb83e2edb64e357b4d4491ed8d44ad40dd0a810 | [] | no_license | povillechan/Python | d48e2e25c9961acef45162ca882b547e5b9d0b77 | 67e88d6d7bdbe49b0c5165d9b35f37dccf638877 | refs/heads/master | 2020-03-22T08:43:44.606336 | 2019-09-01T15:25:57 | 2019-09-01T15:25:57 | 139,786,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | """
Django settings for django_model_form project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | [
"poville@yeah.net"
] | poville@yeah.net |
3b34c7ebcbedf568257311ee2f077aeaf90dd3a0 | cccfb7be281ca89f8682c144eac0d5d5559b2deb | /tools/perf/page_sets/desktop_ui/desktop_ui_shared_state.py | 0e9637b9690d4687b2cadd3870ee616d2e07c556 | [
"LGPL-2.0-or-later",
"MPL-1.1",
"BSD-3-Clause",
"APSL-2.0",
"MIT",
"Zlib",
"GPL-2.0-only",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | SREERAGI18/chromium | 172b23d07568a4e3873983bf49b37adc92453dd0 | fd8a8914ca0183f0add65ae55f04e287543c7d4a | refs/heads/master | 2023-08-27T17:45:48.928019 | 2021-11-11T22:24:28 | 2021-11-11T22:24:28 | 428,659,250 | 1 | 0 | BSD-3-Clause | 2021-11-16T13:08:14 | 2021-11-16T13:08:14 | null | UTF-8 | Python | false | false | 415 | py | # Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import shared_page_state
class DesktopUISharedState(shared_page_state.SharedPageState):
""" Ensures the browser is restarted for each... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
0c49b5725258db042a42850d57bee23969d2e342 | 7bdb0e12359162c5dd2bddc58d2ca1d234fb29d2 | /trunk/playground/intern/2009/Pakito/pakito/gui/pspecWidget/dialogs/comarDialog.py | caece273e400a41ea31a7a0ae7e6d7bb1d1ad9c1 | [] | no_license | hitaf/Pardus-2011-Svn- | f40776b0bba87d473aac45001c4b946211cbc7bc | 16df30ab9c6ce6c4896826814e34cfeadad1be09 | refs/heads/master | 2021-01-10T19:48:33.836038 | 2012-08-13T22:57:37 | 2012-08-13T22:57:37 | 5,401,998 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from qt import *
from kdecore import KGlobal, KIcon, i18n
from kfile import KFileDialog
import kdedesigner
import os
from pakito.gui.pspecWidget.dialogs.comarDialogUI import COMARDialogUI
class COMARDialog(COMARDialogUI):
def __init__(self, parent = None, comar = None, ... | [
"fatih@dhcppc1.(none)"
] | fatih@dhcppc1.(none) |
717d84fd828878b75823d79be5f00d7fa9321862 | 1bdaf97709a1d885e473c15d5b1ef26f8d086c44 | /pipeline_02_geocode_addresses.py | 4992b58fa3233241ce374dffddb79489e0a6c677 | [] | no_license | austinlwheat/lab-04-pipelines-and-web-services | 773924564552203d3efa59a9c808cf1646f1ccec | faa6d6a611e2da8c6a33ef0ab6d98cdcbebf12f9 | refs/heads/main | 2023-09-01T07:35:40.870284 | 2021-10-13T14:01:00 | 2021-10-13T14:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """
Extract Process #2
Use the Census Geocoding API to geocode the addresses in the file that was
extracted in step one. The documentation for the API is available at:
https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.pdf
I encourage you to read it for details, but the gist is:
- You can geocode a bat... | [
"mjumbewu@gmail.com"
] | mjumbewu@gmail.com |
fba8b0cb1fe9b1aef56fa39569578536094bec5b | d85043257d93d35ac5d20fdb784656a83e141350 | /old/stm312_test/dummy_import.py | 5a533c4fc4f6b8b716042fce16cce40ea9be03c4 | [] | no_license | CINF/cinfdata_test | ca7ae74c93afb2860c2fa24d6589e25ed5c7d38a | 159c5e7f4727318a6b7b78dcce8f0ea57353abdb | refs/heads/master | 2021-01-01T04:26:36.569960 | 2016-05-13T11:10:43 | 2016-05-13T11:10:43 | 58,448,151 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/python
import sys
sys.path.insert(0, '/var/www/cinfdata/')
print "I'm the import testing script"
print 'Start'
import numpy
print 'Succes'
| [
"k.nielsen81@gmail.com"
] | k.nielsen81@gmail.com |
c728f18221747be09cb4d7bc0f4d5c4588ee119b | bc899480ea50049929e6ba7a2836e39a51d0faa3 | /leetcode/misc/linked_list/remove_nth_node_from_end_ll.py | 4e70dab6e0f371566bbe615b5bd76d412292f0f1 | [] | no_license | grewy/practice_py | 605a88f40eb54f7ac0fd54a1ab2d6bfdfae57b49 | b00f649598a6e57af30b517baa304f3094345f6d | refs/heads/master | 2021-07-09T01:33:07.158778 | 2020-10-15T12:33:06 | 2020-10-15T12:33:06 | 199,878,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def removeNthFromEnd(self, head, n):
"""
:type head: ListNode
:type n: int
:rtype: ListNode
"""
if n=... | [
"mgatuiet@gmail.com"
] | mgatuiet@gmail.com |
5b3cf730f6e87e9912fba8136bfe75c1322b09af | 205407e7259fe8ffc42ca653cebdece2f63fe1dc | /config.py.tmp | b37cc1ea816751caf2cc643a7dbd5c2afa47f800 | [] | no_license | namuyan/nem-tip-bot-peg-system | 720f805ff93e45d0e2ee3bb5ca48c6cdabff4288 | aad038f6ee68523c5e8e5cdfbfb63ff0854b2ba3 | refs/heads/master | 2021-09-03T01:03:13.350492 | 2018-01-04T11:57:23 | 2018-01-04T11:57:23 | 109,551,023 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | tmp | #!/user/env python3
# -*- coding: utf-8 -*-
class EmptyObject:
pass
class Config:
def __init__(self, test=True):
self.test = test
self.stop_signal = False
self.stop_ok = []
self.stop_need_obj = ("incoming",)
if test:
self.node = [("127.0.0.1", 8293), ("nuk... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
dbdf5de27d352c1c45e3e5eee6df6fcab3a46460 | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_udyr/na_udyr_bot.py | 09e8372d3859fd0e92e3fdb2bcd92f97ec80262b | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | from getratings.models.ratings import Ratings
class NA_Udyr_Bot_Aatrox(Ratings):
pass
class NA_Udyr_Bot_Ahri(Ratings):
pass
class NA_Udyr_Bot_Akali(Ratings):
pass
class NA_Udyr_Bot_Alistar(Ratings):
pass
class NA_Udyr_Bot_Amumu(Ratings):
pass
class NA_Udyr_Bot_Anivia(Ratings):
pass
clas... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
0bc290dafa4233a31706966fbaf2ce4ea89bf3fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03148/s093100517.py | ebad2fec8979471f0c0c14cb03557cc80fe50113 | [] | 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 | 759 | py | n, m = [int(i) for i in input().split()]
td = [[int(i) for i in input().split()] for n in range(n)]
td.sort(key=lambda x:-x[1])
memo = set()
a = []
for t, d in td:
if t in memo:
a.append((d, 0))
else:
a.append((d, 1))
memo.add(t)
a = [(-x, x, d) for x, d in a]
import heapq
heapq.heapify(a)
val = 0
kind = ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bdd58b6d01c70e104c0b4911a2c42ed7714b4725 | f71175700ba405e606eeab58d2b3ad97474bf9f5 | /link/models.py | b5e6c8526fdbdb9674a67616f4a1bf6871d27a73 | [] | no_license | Shirhussain/link_scraper | 76018965718887b71247e917babfb009d534d126 | f5e9a70160edc408fc005bc4d5c16a56834d93c7 | refs/heads/main | 2023-01-10T05:53:17.296704 | 2020-11-05T20:22:29 | 2020-11-05T20:22:29 | 310,549,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from django.db import models
class Link(models.Model):
name = models.CharField(max_length=2000, blank=True, null=True)
address = models.CharField(max_length=2000)
def __str__(self):
return self.name
| [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
0f22f542e80fab1255b87f8e1fc553feb6bd3b7d | caf71b6a4374a30a51e6dff4deefd9122ae7980d | /contest_python/tallestInClass_DWITE.py | 2e5540d8b419a15e72b7001183dcff93db427fe9 | [] | no_license | PMiskew/DP_CS_Code_PMiskew | fba73779e78bc4eb0bfafac05168e28ec11561b1 | 93d366a1dae3cc8f55acc7dd9cfdb2b224dbf539 | refs/heads/master | 2023-03-28T08:46:15.118189 | 2021-03-24T15:49:57 | 2021-03-24T15:49:57 | 294,153,175 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | '''
Recommendation:
This problem can be daunting, however, if you break it apart to some components and tackle those
it falls apart nicely.
1. Start by managing the input. Assuming you store the data as a list of strings, create three
new lists and copy in the data. The first two elements in this parallel list s... | [
"pmiskew@C1MWP4S2J1WL.local"
] | pmiskew@C1MWP4S2J1WL.local |
7eca7055328d8ca5c90cf66a600c1cb07862346e | 1498148e5d0af365cd7fd16197174174a7fa9800 | /leetcode/t000840.py | f81a88fb38895df4b807234bcc9a0768a92e933b | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | # 解:
# 暴力法,注意严格看提议条件
#
# ```
from typing import List
class Solution:
def numMagicSquaresInside(self, grid: List[List[int]]) -> int:
count = 0
l1 = len(grid)
if l1 >= 3:
l2 = len(grid[0])
if l2 >= 3:
for i in range(l1 - 2):
... | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
526293e66ff54ad466476cfb1a777b846734c8af | 082474f6f6301c561ee9598843adaf1a37bcdf96 | /page_object/common/sendmail.py | 5f2e87c0ef3ac33e463697786390ed2ff90df098 | [] | no_license | guocheng45/Projects | 69e2b79e93f6a4697d1adb3a025f2c04943f37cf | df16943fcbc34341b9a0934b830da0860e2bb5ff | refs/heads/master | 2023-01-23T20:27:06.327650 | 2020-07-12T07:19:14 | 2020-07-12T07:19:14 | 197,792,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | # coding=utf-8
import smtplib
from email.mime.text import MIMEText
from email.header import Header
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
class SendMail():
def sendMail(self,msg1,pic,receiver):
# 声明用来登录的邮箱和口令
password = 'sdjxhqksmlfsbghd' # 发信授权码
... | [
"467563369@qq.com"
] | 467563369@qq.com |
644a5a3de788bd0b147de0a44fea79aee008cf69 | da5ef82554c6c0413193b7c99192edd70fed58dd | /core/lib/tests/free_ip.py | 7e2f686c2bc963208f481a2adf46fbdf94a1207b | [] | no_license | rtucker-mozilla/mozilla_inventory | d643c7713c65aa870e732e18aaf19ce677e277b7 | bf9154b0d77705d8c0fe1a9a35ce9c1bd60fcbea | refs/heads/master | 2020-12-24T17:17:37.621418 | 2013-04-11T10:39:41 | 2013-04-11T10:39:41 | 2,709,399 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | from django.test import TestCase
from core.vlan.models import Vlan
from core.site.models import Site
from core.range.models import Range
from core.network.models import Network
from core.interface.static_intr.models import StaticInterface
from core.lib.utils import calc_free_ips_str, create_ipv4_intr_from_range
from ... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
ed1af0217a26c41db25af4fb2cbaf6824e514d91 | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/flask-restful-swagger-master/setup.py | b93a88d336feff6f68a96d4730a9222aae80d2f5 | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("README") as file:
long_description = file.read()
setup(
name="flask-restful-swagger",
version="0.20.2",
url="https://github.com/rantav/flask-restful-swagger",
zip_safe=False,
packages=["fl... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
dce9c69be6f76f03da43a245de0a9184f4969bd0 | 70d39e4ee19154a62e8c82467ef75b601e584738 | /pyth3/birb_scraper.py | fb9b94b174fd01de555cd135edd1d03093b3209a | [] | no_license | babywyrm/sysadmin | 6f2724be13ae7e5b9372278856a8c072073beffb | 2a5f3d29c7529bc917d4ff9be03af30ec23948a5 | refs/heads/master | 2023-08-16T03:50:38.717442 | 2023-08-16T03:05:55 | 2023-08-16T03:05:55 | 210,228,940 | 10 | 5 | null | 2023-05-01T23:15:31 | 2019-09-22T23:42:50 | PowerShell | UTF-8 | Python | false | false | 1,590 | py | #!/usr/bin/python3
##################
##
##
import click
import requests
import re,os,sys
from bs4 import BeautifulSoup
#############################
#############################
def get_html_of(url):
resp = requests.get(url)
if resp.status_code != 200:
print(f'HTTP status code of {resp.status_cod... | [
"noreply@github.com"
] | babywyrm.noreply@github.com |
83413238c8fee2649daebd589b1fed30ede470b5 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/test/test_UserLiteProfileResponse.py | ca0997dce4fae8c872697809ac1d3e612d3b77dc | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 985 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
da9be17b5af888677c2e663ed919a2370d0183b0 | 764ce53fd708bb3f81d67cc9a2366265c9a685b9 | /accounts_django/views.py | a9377b5f321014743f8f2900bb49fe562dc80934 | [] | no_license | Vaishnavi-Gajinkar/Bridgelabz | 3d17b8399432ac5643059e822ccad9a90f919e9f | e51551ab675dbb5444ba222cc88ac05fbeab49d2 | refs/heads/master | 2020-12-28T02:45:18.517627 | 2020-03-09T13:42:37 | 2020-03-09T13:42:37 | 238,153,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.decorators import login_required
# Create your views here.
def indexView(request):
return render(request, 'accountsIndex.html')
@login_required
def dashboardView(request):
return render(request,... | [
"vaishnavi.gajinkar@gmail.com"
] | vaishnavi.gajinkar@gmail.com |
794bb82367e77038068f0618a2f04881891f6d67 | 752116ef4b69a3049fef0cfe9b3d212548cc81b1 | /sources/scripting/wrappers/session.py | 82d27208c07181752417a4872c0c94524d3e9985 | [] | no_license | VDOMBoxGroup/runtime2.0 | e54af4af7a642f34b0e07b5d4096320494fb9ae8 | cb9932f5f75d5c6d7889f26d58aee079b4127299 | refs/heads/develop | 2023-07-07T11:06:10.817093 | 2023-07-03T06:11:55 | 2023-07-03T06:11:55 | 62,622,255 | 0 | 12 | null | 2023-05-23T02:55:00 | 2016-07-05T09:09:48 | Python | UTF-8 | Python | false | false | 1,056 | py |
import managers
class VDOM_session(object):
def _get_id(self):
return managers.request_manager.current.session().id()
def __getitem__(self, name):
if name == "response": # temporary solution for backward compability of Whole
return managers.request_manager.current.wholeAnswer
... | [
"nikolay.grishkov@vdombox.ru"
] | nikolay.grishkov@vdombox.ru |
a299aa68059723e3132438cc91d76f150d1c8463 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/bkj123/yrs_of_educ_by_country.py | f3b9f31c458c9e8d9cd5f725423f5700f75502e0 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import scraperwiki
html = scraperwiki.scrape("http://web.archive.org/web/20110514112442/http://unstats.un.org/unsd/demographic/products/socind/education.htm")
# print html
import lxml.html
root = lxml.html.fromstring(html)
for tr in root.cssselect("div[align='left'] tr"):
tds = tr.cssselect("td")
if len(tds)==1... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
97f2bc4b372ec60b32bf11ae749b8cbabc6a3842 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GL/KHR/context_flush_control.py | 3afcc413f9667fef3a1d01df0028809210531e33 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 876 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
5a8e8d819963505695e442f8feb3dc849404db3d | f03bd5bd7873c5cc33b4ef5199f219539f3a340e | /CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/plotting/maps.py | 34c95944a5b48c35565bf382c7f5185c18db72ec | [
"GPL-1.0-or-later",
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-philippe-de-muyter",
"MIT"
] | permissive | Stargrazer82301/CAAPR | 5f8a7033b16792f23abd5d07021b53b9228a5db4 | 62b2339beb2eb956565e1605d44d92f934361ad7 | refs/heads/master | 2022-08-29T02:53:33.658022 | 2022-08-05T19:06:46 | 2022-08-05T19:06:46 | 49,977,601 | 8 | 1 | MIT | 2022-08-05T19:06:47 | 2016-01-19T19:32:42 | Python | UTF-8 | Python | false | false | 3,449 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | [
"cjrc88@gmail.com"
] | cjrc88@gmail.com |
c2aa9abcfa5c036633a093ef2a54e4933f52f65f | d820c8efb25c9adb77015650a0f7dc6f1e983bfe | /abc/abc050_c.py | 2ee42d95bfc181d741d4eb9244b9dd97dde8f042 | [] | no_license | toshikish/atcoder | 73fdaa2310f23f846279f9f7466bdb969448371f | 33676630d6820dd92ccf0931425b8906b065bedd | refs/heads/master | 2022-05-16T20:00:52.665762 | 2022-04-02T11:55:44 | 2022-04-02T11:55:44 | 173,099,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from collections import defaultdict
N = int(input())
A = list(map(int, input().split()))
c = defaultdict(int)
for a in A:
c[a] += 1
if N % 2 == 0:
probable = True
for i in range(1, N, 2):
if c[i] != 2:
probable = False
ans = 2 ** (N // 2) % (10 ** 9 + 7) if probable else 0
else:
... | [
"toshiki@nanshika.com"
] | toshiki@nanshika.com |
372c60c9ffa1d43f6ea24aa8501c2db618e5bbce | f3e51466d00510f1dae58f1cb87dd53244ce4e70 | /LeetCodes/272. Closest Binary Search Tree Value II.py | d1d13fab5f033ce4abb1ae9ab45dffa36d528771 | [] | no_license | chutianwen/LeetCodes | 40d18e7aa270f8235342f0485bfda2bd1ed960e1 | 11d6bf2ba7b50c07e048df37c4e05c8f46b92241 | refs/heads/master | 2022-08-27T10:28:16.594258 | 2022-07-24T21:23:56 | 2022-07-24T21:23:56 | 96,836,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,395 | py | '''
272. Closest Binary Search Tree Value II
Hard
277
13
Favorite
Share
Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target.
Note:
Given target value is a floating point.
You may assume k is always valid, that is: k ≤ total nodes.
You are guaranteed to ... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
269c20a755b2e945ab30e91074fb5b1c3c6610fc | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/data/data_20191019130008.py | 488e9d3809c5c14aace59c9e423def076851d17e | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,144 | py | import pandas as pd
from typing import Union
from pathlib import Path
from nameparser import HumanName
class ExtractData:
def __init__(self, filename: Union[str, Path], drop_columns=None):
# """Extract Training Data from file or Path
# Arguments:
# filename {[str]} -- Filename of CSV... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
30e15a1b111b3db9ba288c9d3dc8e0e6c1a8ff63 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /load_balancer_fuzzer_mcs/intermcs_19_/interactive_replay_config.py | c579a012fb2bdbbe402547c7e4eedc9f0915ee81 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"jefflai2@gmail.com"
] | jefflai2@gmail.com |
85696669f20f3e9e72ae887dfea4980d60f2d30c | cf7c928d6066da1ce15d2793dcf04315dda9b9ed | /Jungol/Lv1_LCoder_Python/pyc0_리스트3/Main_JO_924_리스트3_자가진단4.py | 5d2a061396cfe3ecaa9addc21c493d77e9562c33 | [] | no_license | refresh6724/APS | a261b3da8f53de7ff5ed687f21bb1392046c98e5 | 945e0af114033d05d571011e9dbf18f2e9375166 | refs/heads/master | 2022-02-01T23:31:42.679631 | 2021-12-31T14:16:04 | 2021-12-31T14:16:04 | 251,617,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # 100 이하의 자연수를 입력받아
# 첫 번째 항은 100으로 두 번째 항은 입력받은 수로 초기화하고
# 다음 항부터는 전전항에서 전항을 뺀 수로 채워나가는 수열을 작성하여
# 그 수가 음수가 나올 때까지 출력하는 프로그램을 작성하시오.
a = 100
b = int(input())
list = [a, b]
c = a - b
while c >= 0:
list.append(c)
a = b
b = c
c = a - b
list.append(c)
print(*list, sep=" ")
| [
"refresh6724@gmail.com"
] | refresh6724@gmail.com |
c4a06e2b61bcf307acb87e92eaa2c9ff5afa4e5a | ed12e1905d71e2ff8ff01f39e8d2ebd2e8ccda1f | /Chapter 18/spiralDraw.py | 7f3bdce70ef5205cb0a9f9c14537bcdd93946f70 | [] | no_license | afettouhi/AutomatetheBoringStuffwithPython-py38 | ac18c28a78c0fe9b4b3afd900f668a50a92203db | f8cfc1761257983280039246d3fa3ebe65ec84cb | refs/heads/master | 2022-12-01T00:44:09.828472 | 2020-08-01T04:47:46 | 2020-08-01T04:47:46 | 281,289,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import pyautogui
import time
print('5 second til it starts')
pyautogui.LOG_SCREENSHOTS = True
pyautogui.LOG_SCREENSHOTS_LIMIT = 100
time.sleep(5)
pyautogui.click() # click to put drawing program in focus
distance = 300
shrink = 20
while distance > 0:
pyautogui.dragRel(distance, 0, duration=0.1) # move right
... | [
"A.Fettouhi@gmail.com"
] | A.Fettouhi@gmail.com |
36106fd4f837ef5a89f665a1d2bd3c2438f6df1f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_nighties.py | f7282804ffcdbc15e6ef297e404c1b07eea351a2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _NIGHTIES():
def __init__(self,):
self.name = "NIGHTIES"
self.definitions = nightie
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['nightie']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
57e2a50254badcb57543d4facb1a0485fdcb2a11 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/generated_clients/apis/tpu/v1beta1/resources.py | a1b11eb5bd917f4daa240b150019a41f2041e4d1 | [
"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 | 1,722 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 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 |
ca76d2d1c807f66ca7556dc77a4ddb73eab2cd23 | f8360e6eef89f9b78365a73e7abacf87db1d880a | /models/hospitality/ambulance.py | bdf8c525a7757a874f200ac727dccadb8dc04407 | [] | no_license | Trilokan/sivappu | 022c6b5997213db8c8994429bf5e482f42b8464d | 110c95851a970f051a50bed6ee72be542ca91efe | refs/heads/master | 2020-05-04T20:44:42.555829 | 2019-04-29T12:34:08 | 2019-04-29T12:34:08 | 179,449,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from datetime import datetime
PROGRESS_INFO = [("draft", "Draft"),
("confirmed", "Confirmed"),
("driver_intimated", "Driver to Intimated"),
("done", "Done"),
("cancel", "Cancel")]
CANCEL_IN... | [
"ram@hk.com"
] | ram@hk.com |
e76e790450bcd46e5b5dcd70d7a0b61000286552 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /examples/campaign_management/validate_text_ad.py | c417044271af2550cbaf807dc27cd05064965c41 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 4,625 | py | #!/usr/bin/env python
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
0fba4f05eb71350e2e99e4e969652cb301f906c5 | ae002b7c03eacb4081c9234fa07c5201ec703941 | /tasklock/tests.py | c58ea9334ed9a1e9d4effe8b6fd9aa83638aeaf1 | [] | no_license | zbyte64/django-tasklock | 53ea4ab4454bcece54ec1835166fb2bb5998c7ae | 75f848fde78f488457be54304027f82d12f48c25 | refs/heads/master | 2021-01-18T17:25:24.749657 | 2011-10-15T05:09:15 | 2011-10-15T05:09:15 | 2,580,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from django.test import TestCase
from models import TaskLock
import tasks
class TaskLockTest(TestCase):
def testPing(self):
task_lock = TaskLock.objects.schedule_task('thekey', 'celery.ping')
self.assertEqual(TaskLock.objects.all().count(), 1)
task_lock.ready()
def testCleanup(self... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
1c7dc028dc165fd5bc7b49df4beb82a4a9f66004 | 9ecfa2dfa544dc77c8adc92f414f506846823e23 | /scripts/roficalc/roficalc | 350faf4ad31b9a22935d23c2cee0fb2102ef0e4a | [
"MIT"
] | permissive | grimpy/rofi-scripts | 164eab6de2174acf33eec2d2410fd6d43df22900 | 5cee30e9b0ad5fddcd0c5cea12ce6eb14bd86bdc | refs/heads/master | 2021-04-06T11:11:13.828931 | 2018-03-10T20:22:04 | 2018-03-10T20:22:04 | 124,650,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | #!/usr/bin/env python3
import sys
from sys import argv
# allow users to use math function like sqrt sin and so on easily
from math import *
if len(argv) == 1: # scriptname
print("Enter math expression to evaluate")
else:
expr = ("".join(argv[1:])).strip()
try:
result = str(eval(expr))
except:
... | [
"deboeck.jo@gmail.com"
] | deboeck.jo@gmail.com | |
b299b2e5a9e1daa9ba514883cc28f69082507351 | 694559acfaf08a145989ca1a4fa95e6a94b2abaa | /流量分析与处理/Scapy/TCP_Rest.py | 04d38e6aa528bb611c60cd4c57eb8c75fef718d1 | [] | no_license | Founderbn2014/Python_Network | 64d01e19aca84986eca48b85a222c62a338e1dff | e89bbbd54bdee5b13c9ffca8d2ea128ee4ecac6a | refs/heads/master | 2023-05-19T06:46:52.559372 | 2020-11-23T14:01:16 | 2020-11-23T14:01:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | #!/usr/bin/env python3
# -*- encoding = utf-8 -*-
# 该代码由本人学习时编写,仅供自娱自乐!
# 本人QQ:1945962391
# 欢迎留言讨论,共同学习进步!
from scapy.all import *
from Tools.Scapy_IFACE import scapy_iface
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # 清除报错
def tcp_monitor_callback(pkt):
# 本代码主要任务: 对传入的数据包,发送TCP Re... | [
"15148365776@163.com"
] | 15148365776@163.com |
aa8e32b68deea78cb2fba849a9d3e19ff132cca3 | e45cf89071f4c625fca52dd8e549d243a79da6a5 | /tests/multithread/ctrl_thread_0.py | 3ceaa17030418dd537e258633a5afa07dca9300a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | EddieBurning/PyCoRAM | cb78f6cebcca001a5a8ed3e868d87b11cdfb7af4 | 8eaa9a2d417a57611d78058b732ebcd86ee09759 | refs/heads/master | 2020-03-07T18:06:13.877471 | 2016-11-21T09:03:46 | 2016-11-21T09:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | def ctrl_thread():
print("thread 0")
ram = CoramMemory(0, 32, 128)
channel = CoramChannel(0, 32)
addr = 0
sum = 0
for i in range(4):
ram.write(0, addr, 128)
channel.write(addr)
sum = channel.read()
addr += 512
print('thread0 sum=', sum)
ctrl_thread()
| [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
82a1e89adc5a862bba569ee647f117869509b4ea | 82f3c228f1b913ed4f37d6ab651eb2c0a9ce7221 | /Configurations/UserConfigs/2018_MCOnly/EWKZNuNuConfig.py | a9b99a9014f6db73b747f831a3d4fc3d243ac35d | [] | no_license | samhiggie/ReweightScheme | 7f388f639d02753e19eca30c8b0920ca6addb6e0 | b2e4449e8d77d244048047a79e7dd8df6b2e35f7 | refs/heads/master | 2020-09-11T19:35:53.094218 | 2019-11-12T22:42:32 | 2019-11-12T22:42:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | import ROOT
from Configurations.Weights.CrossSectionWeightingModule.CrossSectionWeight import crossSectionWeight
from Configurations.Weights.MuIDIsoReweightingModule.MuIDIsoWeight import muIDIsoWeight_2018 as muIDIsoWeight
from Configurations.Weights.MuTrackingWeightModule.MuTrackingWeight import muTrackingWeight_201... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
af8953741c5d9fb31421e8d4289a5a1c21177f09 | 45758bad12c09ead188ee1cb7f121dab4dd5eeca | /sandbox/urls.py | 8eb5830f3f7270427a8d6f13d16ec3d99fe39019 | [
"MIT"
] | permissive | sveetch/django-icomoon | 35dd55962a4423b8930dbcb884ed2a8aa2d4ef67 | 327b70e5509811db7b46f2baa8d301a49e626167 | refs/heads/master | 2021-12-28T21:55:05.563118 | 2021-12-22T00:17:53 | 2021-12-22T00:17:53 | 42,755,203 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | """
Sandbox URL Configuration
"""
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path
urlpatterns = [
path("admin/", admin.site.urls),
path('', inc... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
9113b4f9227eef4b96bbe40c1c53de88cfa930b6 | 95267d92a6438665cf7848de229bea691d537f81 | /EGE_27/dosroc2.py | 8c5c6833ef5acd30d1a39dd7040ab57e4f8b5fdc | [
"MIT"
] | permissive | webkadiz/olympiad-problems | 2874eb1846c59778e70bcdc9550b3484bc3aa9cc | b3a8a3e83d0930947a89ec42e86e3058f464ea40 | refs/heads/master | 2022-11-15T23:48:39.854546 | 2022-11-04T12:55:48 | 2022-11-04T12:55:48 | 228,297,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | n = int(input())
m1 = m2 = m171 = m172 = 0
L = R = 0
for i in range(n):
x = int(input())
if x % 17 == 0 and x % 2 == 0 and x + m2 > L + R:
L = x; R = m2
if x % 17 == 0 and x % 2 == 1 and x + m1 > L + R:
L = x; R = m1
if x % 2 == 0 and x + m172 > L + R:
L = x; R = m172
if x ... | [
"webkadiz@gmail.com"
] | webkadiz@gmail.com |
14bf2f67d2e6064de9cf34ea6f8fee72bf41afdf | 9b5cbd04b771b6fc4c3a6a1715622d7a0d579f0f | /src/app/main.py | 6a11dd25c388335e9288137d16e89f922ce7b0a1 | [] | no_license | OneTesseractInMultiverse/fuzzy-guacamole | 7b091661b09de7859a7620dfb74e9cf371b5e223 | 141bef131c25684e48670ede76f4404291f42f9a | refs/heads/main | 2023-03-09T21:52:44.325106 | 2021-02-25T02:03:02 | 2021-02-25T02:03:02 | 342,083,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | from fastapi import FastAPI
from .routers import sample, application
from starlette.middleware.cors import CORSMiddleware
from .database import SessionLocal, engine
from starlette.requests import Request
from starlette.responses import Response
from . import models
models.Base.metadata.create_all(bind=engine)
# ---... | [
"pedro@subvertic.com"
] | pedro@subvertic.com |
67f7b7355c99f3dcd4073f6246ec09ea455407a3 | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/VanderPlas17Python/D_Chapter3/A_Installingand/index.py | 5764989f53230bdcbd9f37fd9ad573b50f12c66f | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
c5a37467b8d6e7b6fd1b0eddf40d765701fd7025 | 10e19b5cfd59208c1b754fea38c34cc1fb14fdbe | /desktop/core/ext-py/Babel-0.9.6/babel/messages/tests/data/project/file1.py | 7f592a8354bb01e56e129eb05907aa597c5a3c21 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | sarvex/hue | 780d28d032edd810d04e83f588617d1630ec2bef | 6e75f0c4da2f3231e19c57bdedd57fb5a935670d | refs/heads/master | 2023-08-15T21:39:16.171556 | 2023-05-01T08:37:43 | 2023-05-01T08:37:43 | 32,574,366 | 0 | 0 | Apache-2.0 | 2023-09-14T16:55:28 | 2015-03-20T09:18:18 | Python | UTF-8 | Python | false | false | 207 | py | # -*- coding: utf-8 -*-
# file1.py for tests
from gettext import gettext as _
def foo():
# TRANSLATOR: This will be a translator coment,
# that will include several lines
print _('bar')
| [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
436fadf058f83c73cbe9654035f8c721ee01dd1e | ee70ae3bc47a885b5c372f3de0077c7f7b61ad41 | /application/machinelearning/demo/demo_tree.py | bb45527540f31f4e878927a6c029ca86d486b79a | [] | no_license | plutoese/mars | e2518631c36772812c70af4aa52de10dd5f1d6a7 | 28f6ded1275e47c83f2f3bad5d0c7063d51c779f | refs/heads/master | 2021-01-10T04:37:18.245424 | 2016-01-27T02:48:25 | 2016-01-27T02:48:25 | 47,901,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | # coding=UTF-8
from sklearn import tree
from sklearn.datasets import load_iris
from sklearn.externals.six import StringIO
from graphviz import Source
iris = load_iris()
clf = tree.DecisionTreeClassifier()
print(iris.data)
print(iris.target)
clf = clf.fit(iris.data, iris.target)
dot_data = StringIO()
tree.export_graph... | [
"glen.zhang7@gmail.com"
] | glen.zhang7@gmail.com |
c475df4a12601af3051abf2c9415ab99487f6153 | 2d96050f870d26703d7e1ff8f1c472592c70ecf7 | /accounts/models.py | 9c1e1d0ee1b76ddb440d56310587d76850cbe521 | [] | no_license | Pythonian/tweetme | 92b211028fc683f515b98df8a29afe61e25bd9d6 | 5858b5977ff1bfbf8ee4de03d059f90defa1e3d1 | refs/heads/master | 2023-08-05T05:28:28.796794 | 2020-07-03T07:42:02 | 2020-07-03T07:42:02 | 276,833,816 | 0 | 0 | null | 2021-09-22T19:21:14 | 2020-07-03T07:14:34 | Python | UTF-8 | Python | false | false | 2,826 | py | from django.conf import settings
from django.db import models
from django.db.models.signals import post_save
from django.urls import reverse_lazy
class UserProfileManager(models.Manager):
use_for_related_fields = True
def all(self):
qs = self.get_queryset().all()
try:
if self.inst... | [
"prontomaster@gmail.com"
] | prontomaster@gmail.com |
fbf85905651a6049958aa7abf3d844158023081a | 2ec97b62d7edf0f2e257622e0027f12bfdb3651a | /custom_components/covid19_nswhealth_tests/sensor.py | 72a601647fc62554cd94058c27c79948cacd0602 | [
"Unlicense"
] | permissive | Mirec511/HomeAssistantConfig | 6837ed67ef73600410b6e07b82ef641930762429 | 200bca51e91ef3c844f6f2ddc004a7e82da3a04e | refs/heads/master | 2023-02-08T00:03:38.825829 | 2021-01-02T00:42:42 | 2021-01-02T00:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | """Sensor platform for NSW Air Quality"""
import datetime
import logging
from datetime import timedelta
import homeassistant.helpers.config_validation as cv
import pandas as pd
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import ATTR_ATTRIBUTION, CONF_NA... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
b42d07f5043047e9017805411b5a44416a02059c | 115022e4e1e2e78e99a73a87e8172efb16faecd7 | /accounts/admin.py | 85fa978e83658b9d3797c78642601e6e407a2d7a | [] | no_license | navill/toy_project | a043865c3c40c3ceb3e07c7662347df225f62203 | 7d2ea837cfc4543d219c2096ab8f156f77d118b7 | refs/heads/master | 2022-12-11T04:09:39.845515 | 2020-02-14T02:56:40 | 2020-02-14T02:56:40 | 228,669,658 | 1 | 0 | null | 2022-12-08T03:19:23 | 2019-12-17T17:38:48 | Python | UTF-8 | Python | false | false | 437 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
# from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import User
#
# class CustomUserAdmin(UserAdmin):
# add_form = CustomUserCreationForm
# form = CustomUserChangeForm
# model = User
# list_disp... | [
"blue_jihoon@naver.com"
] | blue_jihoon@naver.com |
f70949e09e7699a52a5ae572af19486fb8b2dc86 | b5ca0a2ce47fdb4306bbdffcb995eb7e6eac1b23 | /Python/Strings/Alphabet Rangoli/Alphabet_Rangoli.py | 26cb874f6a5802822cd69e78986885dcdb2c30df | [] | no_license | rsoemardja/HackerRank | ac257a66c3649534197b223b8ab55011d84fb9e1 | 97d28d648a85a16fbe6a5d6ae72ff6503a063ffc | refs/heads/master | 2022-04-14T22:46:03.412359 | 2020-04-03T07:44:04 | 2020-04-03T07:44:04 | 217,687,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import string
size = int(input())
alphabet = string.ascii_lowercase
for i in range(size - 1,0, -1):
row = ["-"] * (size * 2 - 1)
for j in range(0, size - i):
row[size - 1 - j] = alphabet[j + i]
row[size - 1 + j] = alphabet[j + i]
print("-".join(row))
for i in range(0, size):
row = ["-... | [
"rsoemardja@gmail.com"
] | rsoemardja@gmail.com |
5d796f0381a5ebddca1568879724619b4be56403 | 573a2fa5094d510a9d44a361366a67efda5a3e8a | /blender/arm/logicnode/variable_scene.py | 2aa08fdf4e4328d2cf637bf86b1a6abf32e6ccd9 | [
"GPL-2.0-only",
"Zlib"
] | permissive | kirumon/armory | ca7126a47172abe676da9e36ff13052a008bc812 | 4df19ef970ba76d6f99d0b07b44048e2e148e4ff | refs/heads/master | 2020-04-19T22:51:41.810157 | 2019-01-30T16:45:54 | 2019-01-30T16:45:54 | 168,481,317 | 1 | 0 | Zlib | 2019-01-31T07:21:29 | 2019-01-31T07:21:28 | null | UTF-8 | Python | false | false | 569 | py | import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class SceneNode(Node, ArmLogicTreeNode):
'''Scene node'''
bl_idname = 'LNSceneNode'
bl_label = 'Scene'
bl_icon = 'QUESTION'
property0: StringProperty(name='', default='')
def in... | [
"lubos.lenco@gmail.com"
] | lubos.lenco@gmail.com |
9e94ec20208d9e3ca2e8fc55036b9d896fa09936 | 206c10808b6224f7d8236e27cc555e723af695d9 | /tomodachi/envelope/protobuf_base.py | 8a43ed27bf914590e789c8bd1487d3173828be56 | [
"MIT"
] | permissive | xdmiodz/tomodachi | 3280209ae49100ec902e3b15c323b38e7480cdd3 | 7ca998a421dd724df5967d5baa0cf79f5112b79b | refs/heads/master | 2023-03-15T19:22:16.381212 | 2023-01-20T07:34:48 | 2023-01-20T07:34:48 | 200,020,833 | 0 | 2 | MIT | 2023-03-08T00:00:01 | 2019-08-01T09:30:22 | Python | UTF-8 | Python | false | false | 3,768 | py | import base64
import logging
import time
import uuid
import zlib
from typing import Any, Dict, Tuple, Union
from tomodachi.envelope.proto_build.protobuf.sns_sqs_message_pb2 import SNSSQSMessage
PROTOCOL_VERSION = "tomodachi-protobuf-base--1.0.0"
class ProtobufBase(object):
@classmethod
def validate(cls, **k... | [
"hello@carloscar.com"
] | hello@carloscar.com |
8153fbc21d01a5e302697a944d2f268e1cb21908 | 41a4eeaf62a36d7c57ad55393996787bb55ba6b7 | /venv/lib/python3.7/site-packages/kubernetes/client/models/v1_env_var.py | b756905e43471ee3b9b8e089d217f9efdd3b5ef4 | [] | no_license | jicowan/group-operator | c7a20ff03584da9ace19489bc3d27b9fb22a066c | bac6e51aef0d9836679621e3ce7e55f4c1ead402 | refs/heads/master | 2021-07-14T11:45:30.062219 | 2019-09-26T15:26:52 | 2019-09-26T15:26:52 | 209,454,861 | 10 | 4 | null | 2021-07-01T17:23:07 | 2019-09-19T03:29:54 | Python | UTF-8 | Python | false | false | 5,399 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"jicowan@f0189801a302.ant.amazon.com"
] | jicowan@f0189801a302.ant.amazon.com |
33abb6dd9defeaef05ef48f283b9bbc6035dd8e9 | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /examples/inheritance1.py | 70ebab52d7eed62adfcc64973549ae62dd19fed5 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 1,766 | py | ##############################################################################
#
# Example of how to subclass the Workbook and Worksheet objects. We also
# override the default worksheet.write() method to show how that is done.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright 2013-2022, John McNamara, jmcnamara@cp... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
db6569501a941b99f6394e71bd64953e8ddb415a | 993cf64df4795e7912a7f9157bd8bf02aa985506 | /past_work/SWEA_D2/1946 docdecode.py | 99fd7ef2d7f3d2cd0488565545486aecda7eebfd | [] | no_license | jiwonjulietyoon/Algorithm | b541e630c5b01b47cc05b538970d2b73d452baf5 | a11be16f4700e7e55382d4dcfd88d534a232f024 | refs/heads/master | 2020-04-24T01:54:05.200538 | 2019-11-09T03:56:47 | 2019-11-09T03:56:47 | 171,616,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # 1946. 간단한 압축 풀기
# for T in range(int(input())):
# doc = {}
# N = int(input())
# for _ in N:
# k, v = input().split()
# v = int(v)
# doc[k] = v
# print(f"#{T+1}")
# for k in doc:
# for
for T in range(int(input())):
N = int(input())
print(f"#{T+1}")
cnt... | [
"jiwonjulietyoon@gmail.com"
] | jiwonjulietyoon@gmail.com |
d09335d99fce5581c09dbb4944074926cd84937b | 74983098c5de53007bde6052a631845c781b5ba8 | /camelback/camelback15/camelback.py | 6809a547ce3f5ca4a2973a8aad74b2abcb3e8e5e | [] | no_license | numairmansur/Experiments | 94ccdd60f4c2cf538fab41556ac72405656c9d77 | 592f39916461c7a9f7d400fa26f849043d1377ed | refs/heads/master | 2021-04-29T12:39:16.845074 | 2017-02-15T07:36:47 | 2017-02-15T07:36:47 | 78,043,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import numpy as np
import sys
import math
import time
import csv
from hpolib.benchmarks.synthetic_functions import Camelback # Change this
from time import gmtime, strftime
def main(job_id, params):
print '!!! Entered Main !!!'
print 'Anything printed here will end up in the output directory for job #:', str(job_i... | [
"numair.mansur@gmail.com"
] | numair.mansur@gmail.com |
31ff8aaa5ba4c0ea5c9cd51140a9cb65ed640375 | 78ed228ff9262eaca44fe5badab05f512433eea8 | /transcrypt/development/automated_tests/transcrypt/iterators_and_generators/__init__.py | 9da8cb24e88386f5ae95b46235edb89a0fc66840 | [
"Apache-2.0"
] | permissive | khlumzeemee/Transcrypt | 74af14f3175d1ce1d4debdfc5b346214d2597105 | 6a8abee3648daa0f36b509993ba54e14e8e9cf9b | refs/heads/master | 2021-01-12T16:57:15.609336 | 2016-10-14T17:22:29 | 2016-10-14T17:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | class Iterable:
def __init__ (self, i):
self.aList = range (0, 50, i)
def __iter__ (self):
return Iterator (self)
class Iterator:
def __init__ (self, iterable):
self.iterable = iterable
self.index = -1
def __next__ (self): # Should be auto-wrapped in a next (self) by the compiler
sel... | [
"info@qquick.org"
] | info@qquick.org |
3a2bb166b63a640f43091117e69e7b8199f98ea0 | 3be86a9093167acf4cb92a0b70c7087996f8f8e1 | /0013_roman_to_integer.py | 1322ef20494da2c1ea575461524a1a41cf40a8cd | [] | no_license | zimingding/leetcode | 28d25fc1e62612752c511b52af9ff77f7b7a7da7 | c43b22146465a78a58e3cc3945228431ed94388a | refs/heads/master | 2020-05-24T00:10:59.893207 | 2019-11-11T20:21:38 | 2019-11-11T20:21:38 | 187,010,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | class Solution:
def romanToInt(self, s: str) -> int:
r = 0
i = 0
while i < len(s):
c = s[i]
if c == 'I':
if i+1 < len(s) and s[i+1] == 'V':
r += 4
i += 1
elif i+1 < len(s) and s[i+1] == 'X':
... | [
"uowzd01@hotmail.com"
] | uowzd01@hotmail.com |
a0ca7b7d5578f7ed4c1ad33fdabb84e8158a0362 | 98b9e0a180d65bde6e799a0ef503409ce09ad9bd | /PythonFun/pyFun/Type_List.py | 912a66f52b9aff6b8a3e6b5674fcb68014099e35 | [] | no_license | LizhangX/DojoAssignments | 7fae9ed3098d1a131f2a2b093ded95a4de70a5cb | b56ccdf41fe5d43a4d5f340e4f21aaf632d7b7d6 | refs/heads/master | 2023-02-04T14:27:09.234685 | 2019-08-23T22:18:04 | 2019-08-23T22:18:04 | 94,444,518 | 0 | 1 | null | 2023-01-31T21:55:04 | 2017-06-15T13:55:14 | TSQL | UTF-8 | Python | false | false | 948 | py | # Write a program that takes a list and prints a message for each element in the list, based on that element's data type.
def TypeList(arr):
string = ""
sum = 0
for i in arr:
if type(i) == str:
string = string + " " + i
elif type(i) == float or type(i) == int:
sum +... | [
"lizhang.xie@gmail.com"
] | lizhang.xie@gmail.com |
c02e9b9aafa6aeabec084409401e9a732d8f1f9a | edfd1db2b48d4d225bc58be32fbe372a43415112 | /team-task/airflow1.9/dags/redtuxedo/rwidjojo2_5.py | fda6c03c2023cabe0f8455728727512ee85cda92 | [] | no_license | rwidjojo/airflow-training | ed83cb9e97ca85ef06de1426f2f41014881a1f22 | ac82040d8ddc3859df5576eee08d397e824016f1 | refs/heads/main | 2023-08-12T21:01:17.672059 | 2021-01-04T09:17:48 | 2021-01-04T09:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | # Instructions
# Define a function that uses the python logger to log
# parameter from PythonOperator
import datetime
import logging
from airflow import DAG
from airflow.operators.python_operator import PythonOperator
from airflow.utils.dates import days_ago
owner = 'rwidjojo' # Replace with your short name
defa... | [
"nurcahyopujo@gmail.com"
] | nurcahyopujo@gmail.com |
73df0c0ec8d34d04112fe3dd73871d6063d5dc44 | 172e5fcd35072b576380c4258f0ca3e0d8883b35 | /datasets/helmet/filter.py | 7d5e9c7548d9e929d3180d46f8d3e6a3c965bfe2 | [] | no_license | fanqie03/classifier_pytorch | e1951578fb0eeab8983bf80be710d250be64b8f9 | 21bb2e3c2ca01333080668dce928b48d4e0e6d59 | refs/heads/master | 2023-05-14T13:36:08.211691 | 2020-01-03T08:02:09 | 2020-01-03T08:02:09 | 202,356,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import shutil
import os
import argparse
from pathlib import Path
from PIL import Image
from tqdm import tqdm
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('--source_dir', default='/home/cmf/datasets/extract_data/gongdi/person')
parser.add_argument('--target_dir', default='/home/cm... | [
"1242733702@qq.com"
] | 1242733702@qq.com |
f1f1b0a578bbed74ac77a1c88f51c2b536e74150 | d6150d04ec161dbdac33e9be23648ad4f258a1a7 | /tensorflow/examples/saved_model/integration_tests/use_mnist_cnn.py | 9e1ca33029a928e8f6a8bad1f068d9e56e71be54 | [
"Apache-2.0"
] | permissive | aweers/tensorflow | bf0f5c6c6a6384a044a5c081dd1e8efe89c0349e | 640726310112e1ad708faef66f751fe5d70ec102 | refs/heads/master | 2020-04-24T23:56:25.910880 | 2019-03-09T15:12:37 | 2019-03-09T15:12:37 | 172,361,635 | 0 | 0 | Apache-2.0 | 2019-03-09T15:12:38 | 2019-02-24T16:31:37 | C++ | UTF-8 | Python | false | false | 4,964 | py | # Copyright 2019 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
2429e6f4e1bf8f3af9f8ad79ed51e9307b1be38e | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ_16_2/16_2_1_kieronb_digits.py | 88aa02a8dfc600e147bcbfb888a04aa403e5cd60 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,483 | py | #!/usr/bin/python
import sys
#import logging
#logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
nums = ['ZERO', 'ONE', 'TWO', 'THREE', 'FOUR', 'FIVE', 'SIX', 'SEVEN', 'EIGHT', 'NINE'];
def solve(s):
digits = []
while 'Z' in s:
digits.append(0)
s = remove_word(s, nums[0])
whil... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
420215bd2efecae47efd82097ef50ae4aeb87a1c | b3084604bb27ff87149bfc49c16a8a5e6ea5582c | /flsp-mrp/models/Productionmsg.py | 7cf757957caa793f22d4c429c2a337555ca17ede | [] | no_license | odoo-smg/firstlight | 9fe308fb876e80a11ebfda40a442983c9a85ae3e | 4a82cd5cfd1898c6da860cb68dff3a14e037bbad | refs/heads/master | 2022-10-09T10:10:36.108190 | 2022-09-28T16:06:30 | 2022-09-28T16:06:30 | 235,829,864 | 3 | 2 | null | 2022-03-17T19:26:27 | 2020-01-23T15:56:48 | JavaScript | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class Produtionflspmsg(models.TransientModel):
_name = 'flspmrp.productionflspmsg'
_description = "Wizard: Message on Production"
@api.model
def default_get(self, fields):
res = super(Produtionflspmsg, self).default_get(fields)
... | [
"alexandresousa@smartrend.com"
] | alexandresousa@smartrend.com |
fadfcdfc5a65325f9e65158cb8d2183527c560d5 | 4380a4029bac26f205ed925026914dce9e96fff0 | /slyr/parser/object.py | 7edcb40861627e48a2518d8bf6be2b450d2eba7e | [] | no_license | deepVector/slyr | 6b327f835994c8f20f0614eb6c772b90aa2d8536 | 5d532ac3eec0e00c5883bf873d30c6b18a4edf30 | refs/heads/master | 2020-12-03T10:24:39.660904 | 2019-04-08T00:48:03 | 2019-04-08T00:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | #!/usr/bin/env python
"""
Base class for persistent objects
"""
from typing import List
class Object:
"""
Base class for objects which can be read from a stream
"""
@staticmethod
def guid() -> str:
"""
Returns the object's GUID
"""
return ''
@staticmethod
... | [
"nyall.dawson@gmail.com"
] | nyall.dawson@gmail.com |
6c61a8655ed737b3ded276848231cfa8a07a9bb0 | 2bf56904829ab9d5e5aa49a50aeceaef620df643 | /tests/test_collector.py | 41a03d3fd613b6b8f6b685f983d856ad12323a3e | [
"MIT"
] | permissive | OCHA-DAP/hdx-scraper-unosat-flood-portal | 501f53d43ead4fc46312fc46229c43c034787ed0 | 80b0bcd404993e4bd1dae442f794c9f86b6d5328 | refs/heads/master | 2021-12-25T06:00:02.327571 | 2021-12-22T20:07:36 | 2021-12-22T20:07:36 | 37,866,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# system
import os
import sys
dir = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
sys.path.append(os.path.join(dir, 'scripts'))
# testing
import mock
import unittest
from mock import patch
# program
import config.load as Config
import config.database as DB
i... | [
"luiscape@gmail.com"
] | luiscape@gmail.com |
8178cc34b56a6a03048dac573f71a04c78628aa0 | 7cc9cb8bfa749cb011170299ca780f8e8d140b54 | /api/endpoints/login.py | 11e94f14912aefe873931f2ae736874d028c5596 | [
"Apache-2.0"
] | permissive | AssiaHalloul/FRDP | 75ef66168782d854494a79ef220f60d3792784b7 | e799b7e9d858c613ee7d7cce992dddee2eafca5f | refs/heads/main | 2023-07-28T04:09:27.358335 | 2021-09-17T03:11:13 | 2021-09-17T03:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | from datetime import timedelta
from typing import Any
from fastapi import APIRouter, Body, Depends, HTTPException
from fastapi.security import OAuth2PasswordRequestForm
from sqlalchemy.orm import Session
import crud
import models
from api import deps
from core import security
from core.config import settings
from cor... | [
"yasserth19@gmail.com"
] | yasserth19@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.