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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
533149ed9a8326403f4b55c07064105b91edd0f3 | 11b503cd75f546465eb7d7e436f88587a0fa8596 | /calculating_area.py | 618867a889ea6bfff8a28d94fcf0c46859bf78f1 | [] | no_license | ibnahmadCoded/how_to_think_like_a_computer_scientist_Chapter_11 | d36074d71f5df92dfab864e827ba0968ee10d07e | e3fa08a5b64b62700a9590e2fff3c5c2d762a6f8 | refs/heads/master | 2022-04-17T01:30:57.788470 | 2020-04-15T20:08:11 | 2020-04-15T20:08:11 | 256,024,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from study import *
class Rectangle:
""" A class to manufacture rectangle objects """
def __init__(self, posn, w, h):
""" Initialize rectangle at posn, with width w, height h """
self.corner = posn
self.width = w
self.height = h
def __str__(self):
return "({0}, {1}... | [
"alegeaa@yahoo.com"
] | alegeaa@yahoo.com |
55d10f08476cafe3b6a8acb282b1442abec586be | f41471a3bff66c763b8d60f0280ac67235ecbb62 | /gewittergefahr/gg_utils/grids.py | 86d7c33b62c1998a09b3280b4341deb136f8433a | [
"MIT"
] | permissive | cil0834/GewitterGefahr | 0f43878ba40921881c077c2218446f5fab18ba9f | 699b995b1b90344022b1644d4b758e790402894e | refs/heads/master | 2020-06-23T15:59:22.718914 | 2019-07-24T03:59:31 | 2019-07-24T03:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,443 | py | """Processing methods for gridded data.
DEFINITIONS
"Grid point" = center of grid cell (as opposed to edges of the grid cell).
"""
import numpy
from gewittergefahr.gg_utils import general_utils
from gewittergefahr.gg_utils import longitude_conversion as lng_conversion
from gewittergefahr.gg_utils import projections
... | [
"ryan.lagerquist@ou.edu"
] | ryan.lagerquist@ou.edu |
24de53dffd739ed57c77fd62b1677df51626a41a | 29b6a856a81a47ebab7bfdba7fe8a7b845123c9e | /dingtalk/python/alibabacloud_dingtalk/storage_2_0/models.py | 2360bec5165bb4960cbddf11ed58797cd78577d6 | [
"Apache-2.0"
] | permissive | aliyun/dingtalk-sdk | f2362b6963c4dbacd82a83eeebc223c21f143beb | 586874df48466d968adf0441b3086a2841892935 | refs/heads/master | 2023-08-31T08:21:14.042410 | 2023-08-30T08:18:22 | 2023-08-30T08:18:22 | 290,671,707 | 22 | 9 | null | 2021-08-12T09:55:44 | 2020-08-27T04:05:39 | PHP | UTF-8 | Python | false | false | 89,290 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
from typing import Dict, List
class DentryAppPropertiesValue(TeaModel):
def __init__(
self,
name: str = None,
value: str = None,
visibility: str = None,
):
self.... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
5c330645e90f346492de9fffdb54c9a30ee92529 | e73f0bd1e15de5b8cb70f1d603ceedc18c42b39b | /Project Euler/018 - triangle path sum.py | e1bc49732e1df9a18b08e09522015fe6b956ba5e | [] | no_license | thran/the_code | cbfa3b8be86c3b31f76f6fbd1deb2013d3326a4a | ba73317ddc42e10791a829cc6e1a3460cc601c44 | refs/heads/master | 2023-01-05T14:39:16.708461 | 2022-12-25T08:37:39 | 2022-12-25T08:37:39 | 160,978,160 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | triangle = """75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47 32 37 16 94 29
53 71 44 65 25 43 91 52 97 51 14
70 11 33 28 77 73 17 78 39 68 17 57
91 71 52 38 17 14 91 43 58 50 27 29 48
63 66 04 68 89 53 67 30 73 16 69 ... | [
"thran@centrum.cz"
] | thran@centrum.cz |
dad79b226929c9b8fefe77d75b0102dbdc30556c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_197/ch37_2020_03_23_20_05_44_218037.py | 90428a35c7cf9ff017b68e78d1f501efd0391b52 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | senha="desisto"
Palavra=input("Qual é a senha?")
while Palavra!=senha:
print (Palavra)
else:
print ("Você acertou a senha!") | [
"you@example.com"
] | you@example.com |
a92ae45b4a061d52294fad8bc4060e948b413111 | c634846b4ae574ff265e1a2f140448a33655abb9 | /cluster_reviews.py | 938caa6c238548d0b037e722f8c125bec4d7c26d | [
"MIT"
] | permissive | Amoner/steam-reviews | ac498cb10bb9e50218d6a2aba247aab3e8038f38 | 7e13a71ac9c465f0ae0672843598d52910cbc775 | refs/heads/master | 2020-09-04T23:38:41.376742 | 2019-08-23T05:22:22 | 2019-08-23T05:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,609 | py | import sys
import numpy as np
import pandas as pd
from sklearn import metrics
from sklearn.cluster import AffinityPropagation
from sklearn.cluster import AgglomerativeClustering
from sklearn.cluster import Birch
from sklearn.cluster import DBSCAN
from sklearn.decomposition import PCA
from sklearn.neighbors import knei... | [
"woctezuma@users.noreply.github.com"
] | woctezuma@users.noreply.github.com |
178b791256772b51daf76b2092c025e4e218ef8b | 09aff11fe5ccac7548d49db3a92803675117eaf3 | /BackEnd/Semana3/Dia4/02-condicionales.py | 92c0a9f066e137b627daaad228c770f8130984cb | [] | no_license | jorgegarba/CodiGo8 | 4defe235a790ebc248f9278f18ca050fde6c195f | f22b2b405ad999e5b960ce5f52936cd4e472af35 | refs/heads/master | 2023-01-09T02:14:27.134870 | 2020-03-18T03:15:52 | 2020-03-18T03:15:52 | 211,871,983 | 4 | 1 | null | 2023-01-07T22:11:22 | 2019-09-30T13:54:52 | JavaScript | UTF-8 | Python | false | false | 1,638 | py | # condiciona if else elif
a = 3
b = 4
# print(a > b)
# if (a > b):
# print("a es mayor que b")
# else:
# print("b es mayor que a")
# elif -> verifica esta otra condicion a ver si
# es correcta, tiene que ir antes de el else
num = 8
# if(num>0):
# print("Es un numero positivo")
# elif (num==0):
# print("... | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
e6e492a0ce1247655b69757dedda44645ef50458 | 0fba29dd8bb4e8e6a5d12b54d8f09d5b5c835576 | /23_personal/test.py | 143a4fd013f75e1d07534c24c9c78ee0f8d1ff23 | [] | no_license | buxuele/100-days-of-code | 4d37ab955d0cd463a1dd40ca298dac710c84237d | 58c326aca1425911a6979b1a9e305e0a3ed1b0d4 | refs/heads/master | 2020-04-25T23:10:22.816754 | 2019-05-11T01:00:21 | 2019-05-11T01:00:21 | 173,136,028 | 0 | 0 | null | 2019-04-11T20:42:42 | 2019-02-28T15:22:08 | HTML | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/python3
# Time: 2019/04/24 10:19 PM
# \u7f8a\u7531\u5927\u4e95\592b\u5927\u4eba\u738b\u4e2d\u5de5
import codecs
gg = '\346\203\263\347\234\213\346\255\243\351\235\242\357\274\237\351\202\243\345\260\261\350\246\201\347\234\213\344\273\224\347\273\206\344\272\206\357\274\201'.encode("utf-8")
print(type(gg... | [
"baogebuxuele@163.com"
] | baogebuxuele@163.com |
d80766c27a44af916ff6ef4330c81821db07f418 | b9fdfa1ad9315f54f198ab7d918f59e2c45b95ed | /additional_pipelines_used_in_LIFE/preprocessing_ica_aroma/build/keepalive/keepalive/__init__.py | 65dd57b5cad491357173661182777a54bb457052 | [] | no_license | fBeyer89/LIFE_rs_ICA_preprocessing | 4829e8282b06918aa4e610b26e9e0f0c5545b8b5 | 4868bf2d734d0dab89fc21f876aca400e1de1a5f | refs/heads/master | 2021-01-10T12:09:04.050976 | 2019-04-18T13:05:47 | 2019-04-18T13:05:47 | 44,090,982 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # -*- coding: utf-8 -*-
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distribu... | [
"fbeyer@cbs.mpg.de"
] | fbeyer@cbs.mpg.de |
0e5e071104c431a893ca44a126aeda1409c77336 | a045055cb41f7d53e1b103c3655a17dc4cd18d40 | /python-master/kubernetes/test/test_v1_role_list.py | ce35aa97b1362b07e046028323570ffbd4a54b7c | [] | no_license | 18271693176/copy | 22f863b180e65c049e902de0327f1af491736e5a | ff2511441a2df03817627ba8abc6b0e213878023 | refs/heads/master | 2020-04-01T20:20:28.048995 | 2018-11-05T02:21:53 | 2018-11-05T02:21:53 | 153,599,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... | [
"906317366@qq.com"
] | 906317366@qq.com |
4bf1b976b01d1825146b5147af5e3ab534fd4d6c | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/nlp/data/token_classification/token_classification_utils.py | 94acd69d3b11374984fa4e13ef269755039d8c70 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 7,468 | py | # Copyright (c) 2020, NVIDIA CORPORATION. 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... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
ce764895f86745e70087150b9abf4c75d5737670 | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/6194556/snippet.py | b70124de919065b567273fb101936d8671b21e0e | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,312 | py | '''
SimpleHTTPServerSSL.py - simple HTTP server supporting SSL/TLS. I.e. HTTPS. For python 3.3
- replace CERT and KEY with the location of your .pem server file.
- the default port is 443.
usage: python SimpleHTTPServerSSL.py
based on http://code.activestate.com/recipes/442473-simple-http-server-supporting-ssl-secur... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
0e2625b5eeb8fad171f69a84170920695873a752 | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day18-model/day18/cms/cms/app01/models.py | 10494d9551d007fb7aaff17983302a15f712c02e | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.db import models
# Create your models here.
class Book(models.Model):
id=models.AutoField(primary_key=True)
title=models.CharField(max_length=32)
pubDate=models.DateField()
price=models.DecimalField(max_digits=6,decimal_places=2)
publish=models.CharField(max_length=32)
| [
"wxcr11@gmail.com"
] | wxcr11@gmail.com |
ed6332db56631c9ab5f726d3b84ed62bdbee475a | b12adda0b77dba851f1a09b92c4553da6333ffaf | /tools/ttn/ttn_constants.py | a98a422d1e567b66e82d1b1ed6ab5664371204a1 | [] | no_license | Vignesh2208/Titan | c9a86e236e150b1de80d5054b48b9bc482d2785b | 3366200b47c6f81fc8cafb449307325f7cf45da0 | refs/heads/master | 2021-06-22T01:58:10.836590 | 2021-04-14T22:31:33 | 2021-04-14T22:31:33 | 213,460,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | """Some constants used by ttn application."""
import os
TTN_FOLDER_NAME = '.ttn'
TTN_CONFIG_DIR = f'{os.path.expanduser("~")}/{TTN_FOLDER_NAME}'
PROJECT_NAME_KEY = 'PROJECT_NAME'
PROJECT_SRC_DIR_KEY = 'PROJECT_SRC_DIR'
PROJECT_CLANG_INIT_PARAMS_KEY = 'PROJECT_CLANG_INIT_PARAMS'
PROJECT_CLANG_LOCK_KEY = 'PROJECT_CLANG... | [
"vig2208@gmail.com"
] | vig2208@gmail.com |
7240b19f703621f84a9c3c19e6eaa79a91bd1429 | c29f7a8c6c9fae126bdef6c43bd1a1e2ebbaf556 | /day16/myarray.py | 4dfce1a910a5d5eaf8471d0c22ce2f43e850dad3 | [] | no_license | wnsgur5303/EducatedPython | 8c95746d821ea2842e624de3ee3e06f5d3ac6416 | bbd956807c3efcff8a4129a9eefa901475b49797 | refs/heads/master | 2023-04-06T18:17:40.914066 | 2021-04-15T07:31:12 | 2021-04-15T07:31:12 | 358,161,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | arr = [1,2,3,4,5]
print(arr[3:])
print(arr[:3]) | [
"wnsgur5303@gmail.com"
] | wnsgur5303@gmail.com |
d06972574b5df6446365a0de414d5d4a6a78d0d2 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/securitydevops/azure-mgmt-securitydevops/generated_samples/azure_dev_ops_org_get.py | 40d2f4d019e8bc017523654781724c90fb9e4c69 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,649 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
dbd811dd5df7010727684b4f4b84e20d4e19aec4 | 18430833920b3193d2f26ed526ca8f6d7e3df4c8 | /src/audit_trail/factories.py | 1c5f929866090df1f20621c64c05d9739653dd4a | [
"MIT"
] | permissive | providenz/phase | ed8b48ea51d4b359f8012e603b328adf13d5e535 | b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60 | refs/heads/master | 2021-01-17T06:56:07.842719 | 2016-06-28T11:17:53 | 2016-06-28T11:17:53 | 47,676,508 | 0 | 0 | null | 2015-12-09T07:45:19 | 2015-12-09T07:45:18 | null | UTF-8 | Python | false | false | 379 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import factory
from factory import fuzzy
from accounts.factories import UserFactory
from .models import Activity
class ActivityFactory(factory.DjangoModelFactory):
class Meta:
model = Activity
actor = factory.SubFactory(UserFactory)
... | [
"lp@providenz.fr"
] | lp@providenz.fr |
2d7a63594e9b6b12e395a0d8dcef370df874978a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03739/s362994379.py | 1519886d81b2b0628ca8e5ba81794a786daf66d9 | [] | 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 | 265 | py | n = int(input())
s = list(map(int, input().split()))
def cost(t):
res = 0
sum = 0
for y in s:
sum += y
if sum * t <= 0:
res += abs(sum - t)
sum = t
t *= -1
return res
print(min(cost(1), cost(-1)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
aca2d0c08f81edea01fb482800cfba161df2fc57 | 1a42c5a6e806deabb721c77619c9bc45bd01c78f | /lifegame.py | e271e25afc804ab32f5046372138895359d72099 | [] | no_license | nsakki55/smartinfo | 74f7ee2337518baef76812468b3f50785bcf4541 | 2777262a2c933d39bc35d1f9b674c8e374da63b7 | refs/heads/master | 2020-06-02T12:07:57.434869 | 2019-06-10T10:50:30 | 2019-06-10T10:50:30 | 191,149,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,751 | py | #!/usr/bin/env python
#coding:utf-8
import pygame
from pygame.locals import *
import random
import sys
import datetime
SCR_RECT = Rect(0, 0, 1440, 1080) # スクリーンサイズ
CS = 10 # セルのサイズ
NUM_ROW = int(SCR_RECT.height / CS) # フィールドの行数
NUM_COL = int(SCR_RECT.width / CS) # フィールドの列数
DEAD, ALIVE = 0, 1 # セルの生死定数
RAND_LIFE... | [
"n.sakki55@gmail.com"
] | n.sakki55@gmail.com |
804f8e56bedc2fc98d221bf2b9d493cdf526df9b | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /tweens/__init__.py | 084009a757dab8cd2babe574c3a960dc078fa601 | [
"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 | 1,512 | py | import unrealsdk # type: ignore
from Mods.ModMenu import Game, ModTypes, SDKMod
from .easing import (
back_in,
back_in_out,
back_out,
bounce_in,
bounce_in_out,
bounce_out,
circ_in,
circ_in_out,
circ_out,
cubic_in,
cubic_in_out,
cubic_out,
ease,
elastic_in,
... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
c18ae8bfe41026f2887bd16ea6477d010ae39f20 | e50ba4cc303d4165bef9e2917103c084cfbe0e07 | /virtual/bin/easy_install | 6b1f07b5d2a57699078d7cec02fd7d693960f2b8 | [
"MIT"
] | permissive | Antony-me/Ratemyapp | 09049fce54d3a3ed2b256970e7840d20942e8c84 | e547fea82439a3e4f83aa78bf16f93b1ea9ab00b | refs/heads/main | 2023-01-28T16:52:58.635646 | 2020-12-01T16:49:07 | 2020-12-01T16:49:07 | 316,425,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | #!/home/moringa/Documents/Moringa-Projects/CORE-PYTHON/Django/Ratemyapp/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"antonymunyasia993@gmail.com"
] | antonymunyasia993@gmail.com | |
fc45af2bfbe4e881ea148db06b773b6a76638522 | ea3e6b14fa345772d930478007deab2b7c5d1c13 | /opennsa/nsa.py | 29387fb4577282590416bbc5d1293a57bf64d927 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | b0urn3/opennsa | d4d0ef81d4ab8a9656e4831b806a9852169c84bd | 6189d21e9ce8885f937607d5d745722593d27d20 | refs/heads/master | 2021-01-22T08:47:22.103847 | 2015-10-01T07:05:01 | 2015-10-01T07:05:01 | 45,279,581 | 0 | 0 | null | 2015-10-30T22:24:12 | 2015-10-30T22:24:12 | null | UTF-8 | Python | false | false | 12,461 | py | """
Core abstractions used in OpenNSA.
In design pattern terms, these would be Data Transfer Objects (DTOs).
Though some of them do actually have some functionality methods.
Author: Henrik Thostrup Jensen <htj@nordu.net>
Copyright: NORDUnet (2011-2013)
"""
import uuid
import random
import urlparse
import itertools
... | [
"htj@nordu.net"
] | htj@nordu.net |
eff42d766d3d17fe406f91087dcce5791135b309 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /nemo_text_processing/inverse_text_normalization/de/verbalizers/decimal.py | ff3839533d7252c14f76c14c774dd3d78e9027a7 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 1,977 | py | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | ericharper.noreply@github.com |
11ba466d6dd826bfe33dce530a4def238f1d18da | e3ddee78a8f5fdc0260d6a5d8f3cbf459dd1aaa8 | /server/apps/places/serializers/ingredients.py | bb43262b935316b8fdb24505cd1d464f33fea434 | [] | no_license | AlAstroMoody/summer_practice | 91b6110f95436f2b91334a4d1626bf2f0a505a50 | 79629bcdcf230a395a53fad0b52e75ebd7385538 | refs/heads/master | 2023-01-15T19:32:22.814893 | 2020-11-23T10:17:46 | 2020-11-23T10:17:46 | 289,492,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from rest_framework.serializers import ModelSerializer
from apps.places.models import Ingredient
class IngredientSerializer(ModelSerializer):
class Meta:
model = Ingredient
fields = ('id', 'name', 'calories')
| [
"aastrotenko@mail.ru"
] | aastrotenko@mail.ru |
176e6e7d4985abd3fc24bc06efd3afa99b86fb8c | 318a2283e9fd8386e1e9b8b33393ec21892ff053 | /tests/formatters/setupapi.py | c64b826daffd96f218ace0517a038c9f956f7480 | [
"Apache-2.0"
] | permissive | ddm1004/plaso | 3a4590f9c7fb5d624938dd1caea703dc92118646 | 88d44561754c5f981d4ab96d53186d1fc5f97f98 | refs/heads/master | 2021-05-19T10:16:24.111136 | 2020-02-27T04:40:48 | 2020-02-27T04:40:48 | 251,647,179 | 0 | 0 | Apache-2.0 | 2020-03-31T15:31:29 | 2020-03-31T15:31:29 | null | UTF-8 | Python | false | false | 918 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Windows Setupapi log event formatter."""
from __future__ import unicode_literals
import unittest
from plaso.formatters import setupapi
from tests.formatters import test_lib
class SetupapiLogFormatterTest(test_lib.EventFormatterTestCase):
"""Tests f... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
d0df6dfa88db30e7f5491a7bae3c0a50bff9e42b | dd223d7f6c015c3484e795934bcce62be07e48e4 | /xkyy/apps/starry/migrations/0006_auto_20190524_2005.py | 1f06dadcbb386c125e90a590b9b97e6fa00801c3 | [] | no_license | hfxjd9527/xkyy | 84e696ba8c716dc7c0fb25bf71bb82f21ba314a6 | 61df8774dc63ec1b70cc6daad52da5aa51569076 | refs/heads/master | 2022-12-17T02:35:33.597919 | 2019-06-17T00:11:50 | 2019-06-17T00:11:50 | 190,134,676 | 0 | 0 | null | 2022-12-08T01:46:24 | 2019-06-04T05:22:34 | CSS | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2019-05-24 20:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('starry', '0005_auto_20190524_1915'),
]
operations = [
migrations.AlterMode... | [
"1725824530@qq.com"
] | 1725824530@qq.com |
c3fb12ce35d80f56662ff090d5961a5ed02cef2e | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gstoption.py | f9d47d30fe88753af428273e2f8939186162e8b2 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # encoding: utf-8
# module gstoption
# from /usr/lib64/python2.6/site-packages/gstoption.so
# by generator 1.136
# no doc
# no imports
# functions
def get_group(*args, **kwargs): # real signature unknown
pass
# no classes
| [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
66a428a3081b0a3c9ee9125ce6ad9ae55668965e | 85d80b4aa95dcd87ea435d9a582aa74eec2fc67b | /muddery/typeclasses/characters.py | cffd791685749f260728af2af9b7a82598184cbd | [
"BSD-3-Clause"
] | permissive | emanonviroo/muddery | 1ddc4f18bda5faeec05329a61b5927d1465f73f2 | a102afdf8d41faf75bafc20ec36d74a48d6240e3 | refs/heads/master | 2021-07-14T00:36:05.566679 | 2017-10-16T12:40:45 | 2017-10-16T12:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,027 | py | """
Characters
Characters are (by default) Objects setup to be puppeted by Players.
They are what you "see" in game. The Character class in this module
is setup to be the "default" character type created by the default
creation commands.
"""
from __future__ import print_function
import ast
from twisted.internet imp... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
e94835f09834dfba2a9778514efae815cf3f3c5f | a7d2135ca94722932a0a0edbaf1935055f5fe901 | /unsorted/governance-at-scale-account-factory/account-creation-shared/v4/src/handler.py | b297a00b7606e156a89ac6ee0088d6d0ef0068ed | [
"MIT-0"
] | permissive | awslabs/aws-service-catalog-products | b0a1c9d125758a87dd3913a00dfe029dffbb97ac | 69b295f887582b880f9af50318765f7540f34852 | refs/heads/main | 2023-08-18T06:22:11.366203 | 2022-05-12T20:34:14 | 2022-05-12T20:34:14 | 187,069,705 | 166 | 40 | MIT-0 | 2022-03-07T15:26:26 | 2019-05-16T17:07:08 | Python | UTF-8 | Python | false | false | 4,750 | py | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json, logging, time
from urllib.request import Request, urlopen
from betterboto import client as betterboto_client
import os
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def handler(e... | [
"noreply@github.com"
] | awslabs.noreply@github.com |
f67efaf69ea3e80eb7bb57a0057998fcec851809 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /etcmodel/layers/recompute_grad.py | 41025413c53c069640314b6ab09d728de3c40781 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 9,026 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
2dfdd58a22011e454872aacc7370f3e470afa40b | 7cec0bc03100c85ae0dc4f636b92ada46de06802 | /cdad/cdadmap/migrations/0032_auto_20150805_1132.py | 7df38e612401a9aaf367bbd84e02dd4c7db2eef7 | [
"MIT"
] | permissive | NiJeLorg/CDADMap | 200040b45510f7965fd1d772f7e9627561311e70 | 1f03dccf57951748155a0094a5aec3253183c412 | refs/heads/master | 2021-01-17T10:22:06.865934 | 2018-11-01T17:12:22 | 2018-11-01T17:12:22 | 27,398,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cdadmap', '0031_auto_20150805_1124'),
]
operations = [
migrations.AddField(
model_name='surveypanel',
... | [
"jd@nijel.org"
] | jd@nijel.org |
3fa45a0670a11d05a42e95d7cd0148e7b33ffd41 | 53c1eb6604f9e060bd6c9ce84395ab1a38d58f6f | /exercise/sorting.py | 94c49a421eddb34bd370dbeccbe9dbaebaa9a100 | [] | no_license | turo62/exercise | 543c684ef3dfe138a5f0d6976b7ff0d9c19553f0 | 3d8d8d8a12bb3885b3015eff0032cd977c02957e | refs/heads/master | 2020-04-14T18:10:31.224244 | 2019-01-03T18:10:55 | 2019-01-03T18:10:55 | 164,008,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # Sorting list of numbers entered by the user.
def get_input():
numbers = [int(x) for x in input("Type in series of numbers with whitespaces. Push enter when complete!:").split()]
N = len(numbers)
return N, numbers
def sort_nums(N, numbers):
for i in range(N):
j = 0
while j <= N - 2... | [
"turo62@gmail.com"
] | turo62@gmail.com |
37fe63054bc3e044a4ad349a1a55e8000c0e3c3c | 6a25d7f672c6276543d6d979b61337934557e702 | /test/imports.py | eda2d3118620601da931bf59b44aa1c63c7b5606 | [] | no_license | vsraptor/bi | bfc0bc436fb15d43dc303b948d376980085075b9 | 03b8ec4789592381c370a3c98114e4ba6f3d3fb6 | refs/heads/master | 2020-03-16T17:00:44.720209 | 2018-05-25T01:19:12 | 2018-05-25T01:19:12 | 132,814,076 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import sys, os
def import_lib() :
basedir = os.path.abspath(os.path.dirname(__file__))
for d in ['../lib/encoders', '../lib/cups', '../lib'] :
libdir = os.path.abspath(os.path.join(basedir, d));
sys.path.insert(0,libdir)
| [
"me@me.com"
] | me@me.com |
bbfd907f660bd78d2ae1a976c71f4132b01dc7b3 | 6d0b28f193bec15d979781740200d237fb13d3c1 | /apps/alertdb/migrations/0003_parameter.py | abd04a5853609f707f596f904a15937100cbf190 | [] | no_license | kelvinn/alerted-us-web | f612198c2cb59e79c2ab8386c4aa7c23861d203a | 8d0111b4ca4990cea94f6c96e88db2b1bb44a313 | refs/heads/master | 2021-09-27T00:45:49.630146 | 2020-11-19T19:46:17 | 2020-11-19T22:13:01 | 23,564,957 | 6 | 2 | null | 2021-09-22T17:38:37 | 2014-09-02T04:25:56 | Python | UTF-8 | Python | false | false | 836 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('alertdb', '0002_area'),
]
operations = [
migrations.CreateModel(
name='Parameter',
fields=[
... | [
"kelvin@kelvinism.com"
] | kelvin@kelvinism.com |
eec4eb6256b94dce846461034d55fa43389f032b | 905e7882e7bb870c7de056687578d91789f26b4d | /pre-benchmarks/mike/performance/bm_fannkuch.py | 64d83e661d5d63a8940ba0444191ee299856bd1e | [] | no_license | glennneiger/retic_performance | 091d1749c07496c57e64a6b0ba4fd58b0e52bc45 | 025732be3a426e9188781d0f182918b2ba946dea | refs/heads/master | 2020-04-20T08:33:18.440975 | 2017-03-20T00:12:51 | 2017-03-20T00:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | # The Computer Language Benchmarks Game
# http://shootout.alioth.debian.org/
#
# contributed by Sokolov Yura
# modified by Tupteq
import optparse
import time
import util
from compat import xrange
def fannkuch(n):
count = list(range(1, n+1))
max_flips = 0
m = n-1
r = n
check = 0
perm1 = list(... | [
"migeed.z@outlook.com"
] | migeed.z@outlook.com |
ce2b7d07311d2c3f5b17ab13e8c2c369c6c13a21 | 035e51eadfb4c391a380d4985f2b82716d5dade9 | /4-1.Seq2Seq/Seq2Seq.py | 874048450ccc3eeada3df47afbd7322a4d31e0be | [
"MIT"
] | permissive | bage79/nlp-tutorial | fa07336c6d0d4f28e5036fdf857702633912405b | 801305b9f6d62daa652a3c335009959f0f3d752f | refs/heads/master | 2021-07-05T19:23:39.933479 | 2020-12-11T11:12:26 | 2020-12-11T11:12:26 | 210,335,384 | 3 | 0 | MIT | 2019-09-23T11:13:58 | 2019-09-23T11:13:57 | null | UTF-8 | Python | false | false | 4,312 | py | # %%
# code by Tae Hwan Jung @graykode
import argparse
import numpy as np
import torch
import torch.nn as nn
# S: Symbol that shows starting of decoding input
# E: Symbol that shows starting of decoding output
# P: Symbol that will fill in blank sequence if current batch data size is short than time steps
def make_ba... | [
"nlkey2022@gmail.com"
] | nlkey2022@gmail.com |
c21487e95047e7209880aab4b11f9873f8316f2f | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/tutorial/control/battle/context.py | 60e1e8e996bdcfac10af60694026e7022c73417e | [] | no_license | wotmods/WOTDecompiled | 84b8e5d32ee73e1356b4d57318eb76dfac6b5220 | 45fd599666c55cb871f6b84b0ec977b9d4baf469 | refs/heads/master | 2020-12-25T21:34:26.096544 | 2014-11-05T13:58:39 | 2014-11-05T13:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,653 | py | # 2014.10.18 14:44:36 Central European Daylight Time
#Embedded file name: scripts/client/tutorial/control/battle/context.py
import BigWorld, FMOD
from collections import namedtuple
import struct
from constants import ARENA_GUI_TYPE
from tutorial.control import context
from tutorial.control.context import ClientC... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
d82aacb1766a56a6ec366a413244151cecbedd3f | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/reports/azext_reports/vendored_sdks/reports/aio/_reports_async.py | 1d9d705411e28f9c5eacf93474eb657f3973b795 | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
8bc2526d1210aaeeddc5332487c6db2726415489 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/proc/memhist5min.py | 0b28165a7e907ca15861ca5e0d33a7e10d87c977 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 10,846 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
f45a309ca55db005180c288b1341b2cd7fc07019 | 7b556e8c35668a336e381ca30c61110408abf69e | /HSTB/kluster/gui/kluster_projectview.py | 47e50d3ab1e6f3fd279ded5446d78fac100deb56 | [
"CC0-1.0"
] | permissive | OceanXplorer/kluster | 54775c3c4a93d9d51609248005271b1d7d7529c1 | bffddca5de7fd1a0eb8d5bf6b87252b84adc0636 | refs/heads/master | 2023-03-15T14:22:51.569255 | 2021-03-18T21:27:11 | 2021-03-18T21:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,560 | py | from datetime import datetime, timezone
from HSTB.kluster.gui.backends._qt import QtGui, QtCore, QtWidgets, Signal
from collections import OrderedDict
import os
from HSTB.kluster.fqpr_generation import Fqpr
from HSTB.kluster.fqpr_project import FqprProject
from HSTB.kluster.gui.common_widgets import CollapsibleWidget
... | [
"eyou102@gmail.com"
] | eyou102@gmail.com |
c5e5d2eb663a879d134533e2f810404fcb78ea02 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2560/60793/234058.py | e21cf4ae12c04d5d30fecf5c616f73a86565645e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print(2)
print(6) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2148a1ec86f693f6250a590af5dd963cab9d67ae | eb4dd92bb28d60b9e967dcf4d3b380a29169774f | /MDRSREID/Settings/parser_args/parser_args.py | 1c60704bbc187c0850cc4ab93193e9a881c82bf0 | [] | no_license | qianqiansbaby/HJL-re-id | b972c441e780fdb83c176405bc644be4a7d48779 | 337de9e06fc43de1388fd719c5dea9d2d71f0df6 | refs/heads/master | 2023-01-10T13:45:02.502919 | 2020-10-15T12:09:52 | 2020-10-15T12:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py | import argparse
def parser_args():
"""
:argument:
--exp_dir
--default_config_path
--ow_config_path
--ow_str
:return:
"""
parser = argparse.ArgumentParser()
parser.add_argument('--model_name',
type=str,
default='MDR... | [
"nickhuang1996@126.com"
] | nickhuang1996@126.com |
488c48e4070442e1eb23a92e3e1d6d21f7bb8281 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/1/PyGame/game_20200606102211.py | f4be514721bb31b6c5b2be71ebbace07010fe7cd | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,736 | py | # 1 - Import library
import pygame
from pygame.locals import *
import math
import random
# 2 - Initialize the game
pygame.init()
width, height = 640, 480
screen=pygame.display.set_mode((width, height))
keys = [False, False, False, False]
playerpos=[100,100]
acc=[0,0]
arrows=[]
badtimer=100
badtimer1=0
badguys=[[640,10... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
34344a8e8eeb096e794f7cd626ca3bc85ad0e7c6 | e14bc49af70260a891f56d2ce739ae005a32c360 | /hello.py | 3ece0382a9abf3407b7163d26cddf98bce84ad27 | [] | no_license | Marist-CMPT120-FA19/Anthony-Gandini-Lab-2 | 72512cd3b625313517bf68ac324e0b86e165c0b4 | 21e18284fbe5666faefe67b55c8373b44651f3f8 | refs/heads/master | 2020-07-20T10:33:40.575232 | 2019-09-05T17:57:28 | 2019-09-05T17:57:28 | 206,625,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | #Anthony Gandini
#CMPT-120 Lab 2
print("Hello World!");
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
3cda84b7006d285ed9ce4c722c48031cff326c35 | 31dfdbde18ea2844895e453e5ee4a854d1ec35e9 | /onlinejudge/_implementation/command/split_input.py | c89385542db4cdc82cf728a6486c97e278548a9c | [
"MIT"
] | permissive | uta8a/online-judge-tools | 1d848f91749c4661c71ec527b18ac79a0b1ca419 | d9f1209c4e986a881181476c039f5051cd42d75d | refs/heads/master | 2020-04-27T07:43:16.882820 | 2019-03-04T13:17:35 | 2019-03-04T13:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # Python Version: 3.x
import subprocess
import sys
import time
from typing import *
from typing.io import *
import onlinejudge
import onlinejudge._implementation.logging as log
import onlinejudge._implementation.utils as utils
if TYPE_CHECKING:
import argparse
def non_block_read(fh: IO[Any]) -> str:
# worka... | [
"kimiyuki95@gmail.com"
] | kimiyuki95@gmail.com |
de13c219187366afe4cc847fe551db4d7c1b2c32 | 505343f6ace00d22f8753c1a943a5794a619e698 | /katas/Python/6 kyu/Consecutive strings 56a5d994ac971f1ac500003e.py | 1a7200b1a4cf9cbb3c6987b8b4f5039a7fc9099c | [] | no_license | bullet1337/codewars | 7652e50bf768bc47976a9124dd98b93602d4d458 | ba7f13ddd766158b41e036dae5d6b15f7f08761a | refs/heads/master | 2020-03-27T05:04:03.751302 | 2019-04-30T17:45:39 | 2019-04-30T17:45:39 | 145,991,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # https://www.codewars.com/kata/56a5d994ac971f1ac500003e
def longest_consec(strarr, k):
if len(strarr) == 0 or not(0 < k <= len(strarr)):
return ''
res = ''.join(strarr[:k])
for i in range(1, len(strarr) - k + 1):
x = ''.join(strarr[i:i + k])
if len(x) > len(res):
re... | [
"alichek95@mail.ru"
] | alichek95@mail.ru |
a4f3c184786b0f88401bb53010992e6b905798c5 | 5cf71ff8714bf0568394717c6176f371f929555d | /mizql/evacuation/models.py | e0176faf3d9cd45055e5c14d034afab27c9b873e | [
"MIT"
] | permissive | StudioAquatan/mizql | 66a9b1a8117dcb1f8dd86c94bb8632e076eb7996 | 340e44266a97dda846fbc17ce0edf85cee586f51 | refs/heads/master | 2020-04-04T13:12:54.361363 | 2018-11-11T06:20:15 | 2018-11-11T06:20:15 | 155,953,069 | 0 | 0 | MIT | 2020-03-15T09:21:09 | 2018-11-03T05:23:07 | JavaScript | UTF-8 | Python | false | false | 4,607 | py | from django.db import models
from django.contrib.auth import get_user_model
from django.db.models.expressions import RawSQL
from django.utils import timezone
class NearbyShelterManager(models.Manager):
def with_distance(self, lat: float, lon: float):
"""
Shelterクエリセットに対してdistanceカラムを追加する
... | [
"s.kokuryo@gmail.com"
] | s.kokuryo@gmail.com |
93f6d14be8a72f664582b72967e13fe6d8809e82 | b32203aee03e22c29993b5c69ac263638927d550 | /tests/sentry/manager/tests.py | db652c22842af8804da57cfbb7ce710bd0c7fea8 | [
"BSD-2-Clause"
] | permissive | allanlei/sentry | 98d1d23b5827364a686ec0779e80e376bf81a57e | 888b8df0372d6d89dfe076bc025287785bcd1eee | refs/heads/master | 2020-12-25T01:30:29.651370 | 2013-01-04T19:41:50 | 2013-01-04T19:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,738 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import datetime
import mock
import pytest
from django.utils import timezone
from sentry.interfaces import Interface
from sentry.manager import get_checksum_from_event
from sentry.models import Event, Group, Project, MessageCountByMinute, ProjectCountByMi... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
4b4f8b16ed3a3451ce853106c6e8934456e04fb6 | 13c2639490aa8cc3ecf891ae3422f0e105dd886e | /order/migrations/0002_auto_20210317_0002.py | f7c72217f08e89a7ab5b6c86813708d6998f5039 | [] | no_license | maratovision/rest_api | d32fdfc8d5d8968d2c8ef77aaed05b25d6fa26a0 | b734f3cf1c626f4043dbaa0fa7a6f41ebf9cdcae | refs/heads/main | 2023-04-08T12:54:40.736337 | 2021-04-08T20:24:15 | 2021-04-08T20:24:15 | 356,038,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # Generated by Django 3.1.7 on 2021-03-16 18:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('order', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Table',
fie... | [
"maratovision@gmail.com"
] | maratovision@gmail.com |
aa8ca750eff2dc9bc48404571caa906b5e430e8d | ca259c70bd7e565fa45cf7e9597251e7bbd8f240 | /menus/Lighting/ImportRig.py | 8d7f775e12661b27003fe7a168840d311f8ef2ba | [] | no_license | gmolinart/blender_pipeline | 6ecd01e8efa02a2b9b8f68ece3e82a35d899c73c | 1a01d78a697c3fc70e6410b46b5138405d4b542c | refs/heads/master | 2023-04-10T04:17:44.349286 | 2021-04-20T11:14:26 | 2021-04-20T11:14:26 | 304,119,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | import bpy
# from cgl.plugins.blender import Alchemy as lm
class ImportRig(bpy.types.Operator):
"""
This class is required to register a button in blender.
"""
bl_idname = 'object.import_rig'
bl_label = 'Import Rig'
@classmethod
def poll(cls, context):
return context.active_object ... | [
"gmolinart@gmail.com"
] | gmolinart@gmail.com |
7daec122740e4dd33b266b8e1ae3a1bb2cf663de | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/minigame/DivingTreasure.py | fbb219a4caf3e31d142fc374c0c2f6bb0918ff6b | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 1,336 | py | from direct.showbase.DirectObject import DirectObject
from toontown.toonbase.ToontownGlobals import *
from direct.directnotify import DirectNotifyGlobal
from direct.interval.IntervalGlobal import *
import DivingGameGlobals
class DivingTreasure(DirectObject):
def __init__(self, i):
self.treasureNode = rend... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
7fb4bde6fd28390cdae70c8247ed6a32b2200435 | a4da4b0bee0a6ff500283964f506b578de3701c6 | /mva/scripts/dnn_resweights.py | 0a023e653d56d116acf1b45904cba9b5fafd4fea | [] | no_license | kondratyevd/H2MuPurdue | 4ac012562c02acad6751a1e1ecb6fa1c46d832f5 | 2c0632ecf083840743ee6d652bb31e4ddde101e2 | refs/heads/master | 2020-05-14T19:16:46.489982 | 2019-08-25T21:03:17 | 2019-08-25T21:03:17 | 181,926,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | import os, sys
sys.path.append( os.path.dirname( os.path.dirname( os.path.abspath(__file__) ) ) )
import argparse
from classifier import Framework
from samples.ntuples import *
parser = argparse.ArgumentParser(description='')
parser.add_argument('--out_path', action='store', dest='output_path', help='Output path')
ar... | [
"kondratyev.d.95@gmail.com"
] | kondratyev.d.95@gmail.com |
df5831a71a391f87980328438fe5f86926e0ab15 | 878eecba2d3c6be9df9df0e3d1efb305eb2d7bf5 | /manage.py | 8fe753e6b0606bce8e97835f42364119c428cc9e | [] | no_license | tarunkarmakardev/ModernTools-landing-page | dfa7e3beb162a774495d3483754861ba656a5d50 | ddc811fcb6dcf63ec81d065da2a4e041b94868c0 | refs/heads/master | 2023-01-27T16:02:24.272707 | 2020-12-16T05:18:18 | 2020-12-16T05:18:18 | 321,691,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'moderntools_proj.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"tarun.karmakar.dev@gmail.com"
] | tarun.karmakar.dev@gmail.com |
34a44453130cb2d95cedae4a983ee5c515790b86 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-1-2.py | 715b946fa5159fb0b19af0b0861cf6fa438d9072 | [
"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 | 527 | py | from output.models.nist_data.list_pkg.positive_integer.schema_instance.nistschema_sv_iv_list_positive_integer_min_length_1_xsd.nistschema_sv_iv_list_positive_integer_min_length_1 import NistschemaSvIvListPositiveIntegerMinLength1
obj = NistschemaSvIvListPositiveIntegerMinLength1(
value=[
95545636334833145... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
1c9a374e93179c7fbd847ad7da7bc482836d3182 | 08e2ed7fb3a3080c8cdc46cf7e4cbb2a6e60f90a | /src/game_object/components/glow_component.py | c9dcce079c5157b55879ec2957c6c94e19314bc1 | [] | no_license | thydungeonsean/_rainbowmancer | 1630b60983719dde77cd1dea267dd15dde855c38 | cebaf66f5c69f60f8b6c38492f19b8f1e32f73fe | refs/heads/master | 2021-04-28T07:35:06.183408 | 2018-03-19T19:55:47 | 2018-03-19T19:55:47 | 122,226,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | from game_object_component import GameObjectComponent
from src.enum.hues import *
class GlowComponent(GameObjectComponent):
CYCLE = 24
HALF_CYCLE = CYCLE / 2
def __init__(self, owner, color):
GameObjectComponent.__init__(self, owner)
self.color_component = color
self.pol = 1
... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
42daabc1053796acc91a604a7c3bee3508786c64 | 15302e92957f4824aa37b9ae524f36ca99f74b2e | /accounts/views.py | 7db5acd621b1455666a8b8c2ea6a045899d6faab | [] | no_license | extremesystems/Shakal-NG | 4bc76893d1fd486681b6364d4bb306b02e348ce4 | 40b4f5e70feb3f0f5ef4432b273eb09387232d3d | refs/heads/master | 2020-12-25T10:36:34.227509 | 2013-09-22T12:52:34 | 2013-09-22T12:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from time import mktime
from auth_remember import remember_user
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required
from django.contrib.auth.signals import user_logged_in
from dja... | [
"miroslav.bendik@gmail.com"
] | miroslav.bendik@gmail.com |
8c52eb808bb173ab14c7a1d035b74b057d83996a | 0e0f90024d09ff67bcc1b6608a52b0f9ea11fcc4 | /1st_100_questions/LargestperimeterTriangle.py | bcd386f5321df704e8c85a7f5374c0c33b6f7ca0 | [] | no_license | newbieeashish/LeetCode_Algo | ffd7122018ad38b890bf96ceb40c75506fb3d3e1 | 3afaaec3c54787e4646d1472d3f6e7188fb6aec5 | refs/heads/master | 2022-12-14T22:38:04.433700 | 2020-09-17T16:42:03 | 2020-09-17T16:42:03 | 288,243,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | '''
Given an array A of positive lengths, return the largest perimeter of a
triangle with non-zero area, formed from 3 of these lengths.
If it is impossible to form any triangle of non-zero area, return 0.
Example 1:
Input: [2,1,2]
Output: 5
Example 2:
Input: [1,2,1]
Output: 0
Example 3:
Input: [3,2... | [
"noreply@github.com"
] | newbieeashish.noreply@github.com |
04bf71b28a823eca83b966aba030e7c3bbab0727 | 14373275670c1f3065ce9ae195df142146e2c1a4 | /stubs/influxdb-client/influxdb_client/domain/measurement_schema_list.pyi | c040b8274502414bdf54a289a3329e40f92554ca | [
"Apache-2.0",
"MIT"
] | permissive | sobolevn/typeshed | eb7af17c06a9722f23c337e6b9a4726223155d58 | d63a82640390a9c130e0fe7d409e8b0b836b7c31 | refs/heads/master | 2023-08-04T05:59:29.447015 | 2023-06-14T21:27:53 | 2023-06-14T21:27:53 | 216,265,622 | 2 | 0 | Apache-2.0 | 2022-02-08T10:40:53 | 2019-10-19T20:21:25 | Python | UTF-8 | Python | false | false | 508 | pyi | from _typeshed import Incomplete
class MeasurementSchemaList:
openapi_types: Incomplete
attribute_map: Incomplete
discriminator: Incomplete
def __init__(self, measurement_schemas: Incomplete | None = None) -> None: ...
@property
def measurement_schemas(self): ...
@measurement_schemas.setter... | [
"noreply@github.com"
] | sobolevn.noreply@github.com |
e4c391d3b6e866523a631ef0612b77f9ee83c8f0 | eefff1251b2807a2a96748f9369336d5cff5622f | /website/apps/cms/plugins/flash/cms_plugins.py | 3a7842ed1e8bb1293ab68e7fb6c85860be311a89 | [] | no_license | tximikel/pinax-satchmo-buildout | 8d669280c5da47315bbfb96d2797a8c7a1d682b5 | 1e2b8d77fdfc538bd3cb483aa0e549af4e952aa1 | refs/heads/master | 2021-01-16T01:27:09.320052 | 2009-09-15T23:36:33 | 2009-09-15T23:36:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from cms.plugin_pool import plugin_pool
from cms.plugin_base import CMSPluginBase
from django.utils.translation import ugettext_lazy as _
from models import Flash
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from cms.plugins.flash.forms import FlashForm
clas... | [
"harley@harley-desktop.(none)"
] | harley@harley-desktop.(none) |
5dfadd0ce45da68215a76c87b5ea34b22ff7c046 | 449da7b08bb82654028967aa0fa8efce8b2b10d2 | /adapter/sites/open/blueking/tests/test_utils.py | cb3cafb4a70dfb7eafbd0a1c3739411cac218684 | [] | no_license | sdgdsffdsfff/bk-dop | f1ae15f858f6236405e50e9453554026d2bcfd21 | 97cfac2ba94d67980d837f0b541caae70b68a595 | refs/heads/master | 2023-08-31T22:24:30.616269 | 2021-10-19T17:56:36 | 2021-10-19T17:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # -*- coding: utf-8 -*-
from django.test import TestCase
from blueking.component.utils import get_signature
class TestUtils(TestCase):
def test_get_signature(self):
params = {
'method': 'GET',
'path': '/blueking/component/',
'app_secret': 'test',
'params': ... | [
"1297650644@qq.com"
] | 1297650644@qq.com |
14ef745c146208d2df666127b33858c6be7b7e28 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/initial_9549.py | 45f1b9acca999586745f601672e163547da344a4 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
9148c4700e17b1eaf522d5d491ca64143dd99ec5 | 4382c60f18aba351a2e7cdab7ce2793c2d27717c | /Algorithm 190821 holefly/maze.py | 12f18e9fb2494b562c1a9664481cda999c37fabd | [] | no_license | vxda7/pycharm | e550b1db4cabe1a0fa03e140f33b028ef08bd4cb | ce29f682a923875b62a8c7c0102790eef11ab156 | refs/heads/master | 2020-07-03T11:27:27.807096 | 2019-11-15T08:50:32 | 2019-11-15T08:50:32 | 201,891,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | import sys
sys.stdin = open("sample_input.txt", "r")
def find(scol, srow):
global maze
global N
dl = [0, 1, 0, -1]
dr = [1, 0, -1, 0]
queue = []
visited = [[0] * N for _ in range(N)]
queue.append([scol, srow])
visited[scol][srow] = 1
while len(queue) != 0:
n = queue.pop(0)
... | [
"vxda77@gmail.com"
] | vxda77@gmail.com |
a7ef82ec99d2dabda3ce6ccfe98cbfd0a087bfa6 | 61f9553eedc2ec936ea87f06da5b986091e3b8ff | /workspace/buildout-cache/eggs/plone.scale-1.3.2-py2.7.egg/plone/scale/tests/test_storage.py | 21725c874ed3e430c1fe7398bda865efc9f11528 | [] | no_license | gruhter/gso | 47880b055455cc99d63eec72498048c857e7831b | c0eb949f8a06aab6b97329d51a6d046e2fc0a653 | refs/heads/master | 2016-09-01T18:28:05.589620 | 2015-05-14T19:38:18 | 2015-05-14T19:38:18 | 35,579,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,910 | py | from unittest import TestCase
from operator import itemgetter, setitem, delitem
class AnnotationStorageTests(TestCase):
@property
def storage(self):
from plone.scale.storage import AnnotationStorage
storage = AnnotationStorage(None)
storage.modified = lambda: 42
storage.storag... | [
"gso@abv.bg"
] | gso@abv.bg |
1e69296fbfffb99ccc5b1dbd9d7b72ffe89f647c | 0c1cf007f9d5d00ceefaf7be57e3f81c1c49fb11 | /lightning_asr/vocabs/vocab.py | 17fabbd392c30c01608d1d345c8c6597f8a21c1f | [
"MIT"
] | permissive | sooftware/lightning-asr | f345f34dce132a6ccdb393b74c1f9bf0e1ccaac8 | 3b4d8222fad15c90a8c9b44ecacd67f309b34124 | refs/heads/main | 2023-04-30T17:46:21.737471 | 2021-05-19T11:56:33 | 2021-05-19T11:56:33 | 357,467,261 | 16 | 5 | MIT | 2021-05-12T14:22:05 | 2021-04-13T07:46:44 | Python | UTF-8 | Python | false | false | 1,539 | py | # MIT License
#
# Copyright (c) 2021 Soohwan Kim
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, ... | [
"sooftware@Soohwanui-MacBookPro.local"
] | sooftware@Soohwanui-MacBookPro.local |
79fef1c980fcdf38f5a02fdcb06e729cab57c0de | e5baa5ba65c5cb80b38203b28c064a475aa63693 | /WebContent/mod/topic/new_topic.py | 4897608329e28377dddb01bf792972cf897abd83 | [] | no_license | yxxcrtd/jitar2012 | bbe00b1eb2e505400dcfec396201752c3888199c | ccae07ff44a3cb9dc3d0b75673cbca699fa66b80 | refs/heads/master | 2020-05-31T15:26:40.107486 | 2019-06-05T08:05:22 | 2019-06-05T08:05:22 | 190,352,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | #encoding=utf-8
from java.util import Date
from java.util import HashMap
from java.lang import String
from common_data import CommonData
from cn.edustar.jitar.pojos import PlugInTopic
class new_topic(CommonData):
def __init__(self):
CommonData.__init__(self)
def execute(self... | [
"yxxcrtd@gmail.com"
] | yxxcrtd@gmail.com |
21330b565fa24100c359cf64c8463de47eb289ee | 0bc0db1edc610c9f08261c777d06cb1be4b7a524 | /lgp/pythonSpider/ch1/2sequence.py | 456331e43c37d521807a7df0690c84becd95827e | [] | no_license | danpianji/python3.7 | 9bc7f9a765ec76d7d4c5fb413dcdada4f9e8f510 | f66bc7139f9441583b1043d3da11597987e3fbc0 | refs/heads/master | 2020-12-28T14:49:41.410708 | 2019-05-19T10:13:32 | 2019-05-19T10:13:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: UTF-8 -*-
#序列化操作
try:
import cPickle as pickle
except:
import pickle
dict = {"name":"lgp", "age":20, "sex":'M'}
str = pickle.dumps(dict)
print str
dict2 = pickle.loads(str)
print dict2
#也可以将序列化的字符串写入文件存储 | [
"liguangpei1@163.com"
] | liguangpei1@163.com |
bcb656a6cc79492be26ef9deb258a8808e3aa15d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /58DYAThA2dxnAsMpL_16.py | 61ef3bf2cf1af1f68ed181455ccc260b229bfe59 | [] | 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 | 564 | py | """
Create a function which returns a list of _booleans_ , from a given number.
Iterating through the number one digit at a time, append `True` if the digit
is 1 and `False` if it is 0.
### Examples
integer_boolean("100101") ➞ [True, False, False, True, False, True]
integer_boolean("10") ➞ [True, Fals... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a01572aa4eb23712a34425bf2c293005f7247ea3 | 304e75224229786ba64c6ef2124007c305019b23 | /src/easy/test_make_two_arrays_equal_by_reversing_sub_arrays.py | 00f2070eb7ce459d4e058cc5a5255feacc815c15 | [] | no_license | Takuma-Ikeda/other-LeetCode | 9179a8100e07d56138fd3f3f626951195e285da2 | 499616d07011bee730b9967e9861e341e62d606d | refs/heads/master | 2023-04-14T06:09:35.341039 | 2023-04-10T02:29:18 | 2023-04-10T02:29:18 | 226,260,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | import unittest
from answer.make_two_arrays_equal_by_reversing_sub_arrays import Solution
class TestSolution(unittest.TestCase):
def setUp(self):
self.target = [
[1, 2, 3, 4],
[7],
[1, 12],
[3, 7, 9],
[1, 1, 1, 1, 1],
]
self.arr ... | [
"el.programdear@gmail.com"
] | el.programdear@gmail.com |
d0d9bc0c393953fc4d66a087de4a0606ec41154a | 558cc75ea0e093f0b27197654bd0162cce688e03 | /social_network/migrations/0026_auto_20200421_1257.py | f3eb7084107ea6ba18e1d6df8806d5a2e038e20b | [] | no_license | seniordev0425/Python-Rafflee | 89766de8bad96ca919a34df2f0820d24b9258808 | 37da2e7a37a0b0b5332ff036f80814598ed57c0b | refs/heads/master | 2022-11-26T20:46:32.082517 | 2020-08-07T03:01:21 | 2020-08-07T03:01:21 | 285,723,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 2.2.12 on 2020-04-21 12:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('social_network', '0025_auto_20200421_1249'),
]
operations = [
migrations.AlterField(
model_name='socialaction',
nam... | [
"seniordev0425@gmail.com"
] | seniordev0425@gmail.com |
1966df5213bd6122c4be02f75e2f4bcc6599ffe1 | 21962ae2b724f4679683dab3f30306f59e6da834 | /pylastests/test_header.py | 49e238a807790d4374c6b55a4018de7aed87d511 | [
"BSD-3-Clause"
] | permissive | GeolearnAI/pylas | 7b54178809ee6f7a60525f6ad85ad58385b99310 | 7a5bbada702d927e4f78d5c2883dcc98f808d831 | refs/heads/master | 2022-09-18T11:28:45.593005 | 2020-06-06T12:23:58 | 2020-06-06T12:23:58 | 278,429,549 | 0 | 0 | null | 2020-07-09T17:32:31 | 2020-07-09T17:32:31 | null | UTF-8 | Python | false | false | 3,146 | py | import pylas
from pylastests import test_common
all_las_but_1_4 = test_common.all_las_but_1_4
def test_number_of_points_return_is_updated(all_las_but_1_4):
las = all_las_but_1_4
nb_points = len(las.points_data)
nb_slice = 3
r = las.return_number
for i in reversed(range(nb_slice)):
r[i ... | [
"thomas.montaigu@laposte.net"
] | thomas.montaigu@laposte.net |
172fd6a6f6a7e501a7de91d45c12f74794c95b5f | 9afbb6993450d1e0c3bae68e86844bd06d4419ee | /gui/help1.py | e002f49a08124bc75ba58494211b2b47d2e5ac89 | [] | no_license | Jigar710/Python_Programs | 6f331caac30878655d4cca4ad97d4214c0262088 | 714a6306487eb6712f32ccb51b6a2407a81873fa | refs/heads/main | 2023-02-25T12:24:44.874199 | 2021-01-28T15:43:24 | 2021-01-28T15:43:24 | 332,869,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | import tkinter
help(tkinter) | [
"jigar.shekhat.777@gmail.com"
] | jigar.shekhat.777@gmail.com |
905af0071c737e9ee131d302fd623eb668532ec3 | ef3a7391b0a5c5d8e276355e97cbe4de621d500c | /venv/Lib/site-packages/spacy/tests/lang/en/test_text.py | a7ebde9898add7b47514cf89f800b00e9f28a74b | [
"Apache-2.0"
] | permissive | countBMB/BenjiRepo | 143f6da5d198ea6f06404b4559e1f4528b71b3eb | 79d882263baaf2a11654ca67d2e5593074d36dfa | refs/heads/master | 2022-12-11T07:37:04.807143 | 2019-12-25T11:26:29 | 2019-12-25T11:26:29 | 230,090,428 | 1 | 1 | Apache-2.0 | 2022-12-08T03:21:09 | 2019-12-25T11:05:59 | Python | UTF-8 | Python | false | false | 1,898 | py | # coding: utf-8
from __future__ import unicode_literals
import pytest
from spacy.lang.en.lex_attrs import like_num
def test_en_tokenizer_handles_long_text(en_tokenizer):
text = """Tributes pour in for late British Labour Party leader
Tributes poured in from around the world Thursday
to the late Labour Party lea... | [
"bengmen92@gmail.com"
] | bengmen92@gmail.com |
834f1bf7004dbffd444b639a44a6dd308b70ec95 | 796b8a166edc28dd04d23244b698742a607bc23f | /Leetcode/140. Word Break II.py | f899b9fa0812e2d472653987c6dc2e7d94fa7583 | [] | no_license | brlala/Educative-Grokking-Coding-Exercise | 54f18309d89784fbf9452b5b609cd30e54378c46 | e50dc0642f087f37ab3234390be3d8a0ed48fe62 | refs/heads/master | 2023-04-22T07:34:37.360508 | 2021-05-02T11:16:47 | 2021-05-02T11:16:47 | 299,006,488 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | class Solution:
def wordBreak(self, s: str, wordDict: list[str]) -> list[str]:
"""
https://leetcode.com/problems/word-break-ii/discuss/44368/Python-easy-to-understand-solutions-(memorization%2BDFS-DP%2BDFS)
"""
memo = {}
return self.dfs(s, set(wordDict), memo)
def dfs(se... | [
"liheng@pand.ai"
] | liheng@pand.ai |
e2c433cdf668923a5392e033234ce436dff666cc | 5c05a9a520ddd07f92759fe4220ddec5ffe01ab2 | /python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/电商项目集合/my_flask_server/buyiju_spider.py | 67cb1e2fe1f41bb1b263d3bde71ec90ed078215e | [] | no_license | sdpku/python | c005970827377615b3f9f1ec2bfb752972bc5e99 | 0363316911aa2ed89e5499b5a6dd2928867ee3bd | refs/heads/master | 2020-06-26T06:57:44.171835 | 2019-07-29T09:27:17 | 2019-07-29T09:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,536 | py | # coding:utf-8
'''
@author = super_fazai
@File : buyiju_spider.py
@connect : superonesfazai@gmail.com
'''
"""
卜易居 spider(https://m.buyiju.com)
"""
from settings import (
MY_SPIDER_LOGS_PATH,
IP_POOL_TYPE,)
from article_spider import (
modify_body_p_typesetting,
modify_body_img_centering,)
from fzu... | [
"superonesfazai@gmail.com"
] | superonesfazai@gmail.com |
a9d4ac0dc4600aad5c813e4f10bbfc32474689da | 5c099927aedc6fdbc515f40ff543c65b3bf4ec67 | /algorithms/reach-a-number/src/Solution.py | d0db1844032445cbf8a4d7b18d9dca9e6ff0fe52 | [] | no_license | bingzhong-project/leetcode | 7a99cb6af1adfbd9bb1996a7f66a65679053c478 | ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505 | refs/heads/master | 2020-04-15T09:27:33.979519 | 2020-03-10T03:43:07 | 2020-03-10T03:43:07 | 164,550,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | class Solution:
def reachNumber(self, target: int) -> int:
target = abs(target)
res = 0
sum = 0
while sum < target or (sum - target) % 2 == 1:
res += 1
sum += res
return res
| [
"zhongyongbin@foxmail.com"
] | zhongyongbin@foxmail.com |
149ae6b89e08984c8892fd21814a9ce971fb68fc | cad9c13ad5864317d7687b44f39db42a402f36f0 | /lec03_function/memory_model.py | e0d53d8b99bd2f5313bda8b0570513bc336febf0 | [] | no_license | handaeho/lab_python | 12b686eb0d57358509f2d0cd607064deced5b25d | da068ea62682ffa70c7d23dde4ef132c49a81364 | refs/heads/master | 2020-11-26T08:22:27.656109 | 2020-04-13T02:28:47 | 2020-04-13T02:28:47 | 229,013,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | """
파이썬 메모리 모델 - 파이썬이 변수들의 메모리 공간을 관리하는 방법.
"""
n1 = 1
print(f'주소 : {id(n1)}, 저장된 값 : {n1}') # 주소 : 140719357063440, 저장된 값 : 1
n2 = n1
print(f'주소 = {id(n2)}, 저장된 값 = {n2}') # 주소 = 140719357063440, 저장된 값 = 1
n2 = 2
print(f'주소 = {id(n2)}, 저장된 값 = {n2}') # 주소 = 140719357063472, 저장된 값 = 2
n3 = 1
print(f'주소 = {id(n3)}, 저... | [
"mrdh94@naver.com"
] | mrdh94@naver.com |
dd9bf12890563e9f4e394367ee17592436c4db4e | c2210b7012d2cd608ba1c350169107fe79584568 | /helmet_seatbelt/src/python3/websocket-test0.py | 05cf8c319d37e16fb10b6e2696f67f4e190b8d93 | [] | no_license | ISCAS007/demo | 9165eb2765f35a93abf790977358b55a39cb5d7d | 92addff2e4a09f58ac405b9ce155f79604ac8169 | refs/heads/master | 2023-05-09T18:14:38.153027 | 2019-12-03T03:22:38 | 2019-12-03T03:22:38 | 375,907,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | #!/usr/bin/env python3
import asyncio
import websockets
import sys
@asyncio.coroutine
def hello():
websocket = yield from websockets.connect('ws://t.qdrise.com.cn:1234/')
try:
name=sys.argv[1]
yield from websocket.send(name)
print("> {}".format(name))
greeting = yield from we... | [
"youdaoyzbx@163.com"
] | youdaoyzbx@163.com |
2450876daff5dc84c0f6342726ad96dfe41cf71b | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/testenv/toc.py | 1f7ec6b068f1921a13817e828cb530ce4eb4d2ec | [] | 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 | 15,417 | py | ############################################
# Py-TOC 2.4
#
# Jamie Turner <jamwt@jamwt.com>
#
_VERSION = "2.4"
import socket
# import select
import re
import struct
import random
import sys
import time
import thread
import threading
TOC_SERV_AUTH = ("login.oscar.aol.com", 5159 )
TOC_SERV = ( "toc.oscar.aol.com", ... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
c3d423561ba81e648124b4013b007394c0427eff | e665fe109ce9823d965e303ca8677b5a065ad9df | /mission/runner.py | d1907d30f805a18b3e0801c7c0ac9525481d2f53 | [
"BSD-3-Clause"
] | permissive | deciament/software | 822a704dfaab84f5260a284271cdec1b3664b94f | 06ad1d9ea239d116252510beed248bc6031cd622 | refs/heads/master | 2021-01-14T12:40:04.946245 | 2015-12-31T02:28:33 | 2015-12-31T02:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | #!/usr/bin/env python3.4
import time, argparse, traceback, sys, datetime, os, shm
# Note: this is a hack; will only function if your PYTHONPATH is solely the standard software one (~/cuauv/software; i.e. the root directory of the repo)
pythonpath = os.environ.get('PYTHONPATH')
sys.path.append(pythonpath + '/mission')... | [
"software@cuauv.org"
] | software@cuauv.org |
c1fd20c4eea3537d21b0008d159d2b0bd475ec74 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res_bw/scripts/common/lib/trace.py | d37d013782ea519e0ad3801b919f72486f9fd5b1 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 24,614 | py | # 2016.05.01 15:28:28 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/trace.py
"""program/module to trace Python program or function execution
Sample use, command line:
trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs
trace.py -t --ignore-dir '$prefix' spam.py eggs
trace.py --trackca... | [
"info@webium.sk"
] | info@webium.sk |
c26fd50d1c7bcce85657403551fdc8dcd43b54cd | c3614e4bc024f4c0f619eaa05ce3f2e068d2e82d | /cutting_game.py | e4236f6016472df8e83d460246c1aa1bf42ee696 | [] | no_license | yukikawana/aoj | 68b2853b52975d4d066cd91b8cc6ee57c7c7d5c1 | cf53dc9957f02185e8b83b9c2ee28079ba88b2a5 | refs/heads/master | 2020-04-01T17:55:29.259738 | 2018-10-17T09:15:44 | 2018-10-17T09:15:44 | 153,459,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from utils import input_int
mem = {}
def grundy(H, W):
key = (H, W)
if key in mem:
return mem[key]
s = []
for h in range(2, H - 1):
s.append(grundy(h, W) ^ grundy(H - h, W))
for w in range(2, W - 1):
s.append(grundy(H, w) ^ grundy(H, W - w))
cnt = 0
while cnt in s:
... | [
"kojirou.tensou@gmail.com"
] | kojirou.tensou@gmail.com |
e10e9064f3dc573fd39344ceefbdf8c3bcd548cf | b2b1e16968474ed573ebbebc1ee84bca59adbae1 | /ExcelParser/CountRows.py | f2759fce4c40fa1930aaef464718571aec7d2c72 | [] | no_license | shahpriyesh/PracticeCode | a03979d92a092bdbb5d0c7cfc1cfebc3f82e1c91 | 2afc3d0b3cd58d80ceb825a3ff0d190893e729fa | refs/heads/master | 2022-11-29T12:37:01.719792 | 2020-07-27T18:02:51 | 2020-07-27T18:02:51 | 257,656,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | import xlrd
from openpyxl import *
def countEqualEntries(excel_file, sheet_name):
wb = xlrd.open_workbook(excel_file)
sheet = wb.sheet_by_name(sheet_name)
counter = {}
for i in range(1, sheet.nrows):
row = sheet.row_values(i)
if row[0] in counter:
counter[row[0]][0] += 1
... | [
"priyesh.shah@hitachivantara.com"
] | priyesh.shah@hitachivantara.com |
bbc0777dcd645f87565fccb02a0a3c22c08f6d20 | ae9fc81dd2a93a614c8e579b570ac3f4d2962392 | /Application/ReclamaCaicoProject/ReclamaCaicoApp/migrations/0001_initial.py | b020c4f1719f8084cc01a6631931c51963a8fdd4 | [
"MIT"
] | permissive | WesleyVitor/ReclamaCaico | c3743d40771a808c8238a93513ef54829413d314 | df67997821fc00236f1d9c77e8685ed8e4a6934b | refs/heads/master | 2022-12-10T21:43:23.615702 | 2020-09-17T17:18:34 | 2020-09-17T17:18:34 | 260,520,207 | 0 | 0 | MIT | 2020-09-17T17:18:35 | 2020-05-01T17:38:45 | Python | UTF-8 | Python | false | false | 1,912 | py | # Generated by Django 2.2.2 on 2019-09-02 11:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"wesleydemorais@outlook.com.br"
] | wesleydemorais@outlook.com.br |
f3eaff00fba343a8a4a7f1ceb74a608f98fca37c | 99ba551645dc9beed36f0478b396977c50c3e7ef | /leetcode-vscode/438.找到字符串中所有字母异位词.py | da5c5fdcfc35c7bed066617bb31112a2426144bb | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | #
# @lc app=leetcode.cn id=438 lang=python3
#
# [438] 找到字符串中所有字母异位词
#
# https://leetcode-cn.com/problems/find-all-anagrams-in-a-string/description/
#
# algorithms
# Medium (41.20%)
# Likes: 247
# Dislikes: 0
# Total Accepted: 21.8K
# Total Submissions: 51.4K
# Testcase Example: '"cbaebabacd"\n"abc"'
#
# 给定一个字符串 ... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
8cda640d958088ed52e602287e97730545bd2a62 | a99a44aee5cfc5e080f6d83d2bcc1c3d273a3426 | /scripts/iemre/init_hourly.py | 4876319dfe3c2b9cd95b3aa45e88caad6deaf8c6 | [
"MIT"
] | permissive | ragesah/iem | 1513929c8bc7f254048271d61b4c4cf27a5731d7 | 8ed970d426bddeaa3e7ded593665d22f0f9f6e87 | refs/heads/main | 2023-08-20T20:01:15.480833 | 2021-10-12T15:44:52 | 2021-10-12T15:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,467 | py | """Generate the IEMRE hourly analysis file for a year"""
import datetime
import sys
import os
import geopandas as gpd
import numpy as np
from pyiem import iemre
from pyiem.grid.zs import CachingZonalStats
from pyiem.util import get_dbconn, ncopen, logger
LOG = logger()
def init_year(ts):
"""
Create a new Ne... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
805e26a503b1e54e65411035aebfd19197d9f38b | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/enums/types/ad_group_criterion_approval_status.py | 76072e9401b3ddc6e578d95c993b65b3da5a7ca1 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,262 | py | # -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
e6c20e95b44435203bda1ee5f8f97dcf0b45d0bb | affdb1186825486d40c1140314cc04fe63b153b7 | /_old/tgs-salt-identification-challenge/single_models.py | 0b9213b95b7f44783979bdccf19a605f666c740d | [] | no_license | Yagami360/kaggle_exercises | 2f9a8a12c48a6e55ded6c626ceef5fb0cfca935b | 17b731bb6f1ce0b81254047ffc56371f4c485df0 | refs/heads/master | 2022-11-22T23:00:27.176123 | 2020-07-23T05:05:00 | 2020-07-23T05:05:00 | 252,343,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,479 | py | import os
import argparse
import numpy as np
import pandas as pd
import random
from tqdm import tqdm
import warnings
import json
import yaml
from matplotlib import pyplot as plt
import seaborn as sns
from PIL import Image
import cv2
#from skimage.transform import resize
from kaggle.api.kaggle_api_extended import Kaggle... | [
"y034112@gmail.com"
] | y034112@gmail.com |
baab7d0a2eeef70ff34b1be7b72ce3daea803683 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/word-count/fe23ec94d69343a3a5a10f713adfd463.py | d52d5cd350e7bed379f1fefa4f8f22ad9bfdec49 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 251 | py | # -*-coding: utf-8-*-
#! /usr/bin/env python3
def word_count(string):
string = string.split()
dico = {}
for word in string:
if word not in dico:
dico[word] = 1
else:
dico[word] += 1
return dico
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
95eaf4108b1e03703c58036d4c2bf1b66f4e0539 | e8a48749014f372633de65d79bfa26a3ad743d89 | /examples/tensorflow/language-modeling/run_clm.py | 46c8d339d970c3d2396d5e090afc7a15e4ea339d | [
"Apache-2.0"
] | permissive | pvcastro/pytorch-pretrained-BERT | 183b7291972c8d8c66c995647df66c1fe439a763 | 49cd736a288a315d741e5c337790effa4c9fa689 | refs/heads/master | 2022-08-19T08:55:16.332585 | 2022-06-30T16:11:08 | 2022-06-30T16:11:08 | 168,367,637 | 1 | 0 | Apache-2.0 | 2019-01-30T15:39:42 | 2019-01-30T15:39:41 | null | UTF-8 | Python | false | false | 23,558 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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/LI... | [
"noreply@github.com"
] | pvcastro.noreply@github.com |
4a90b353d28203a2b13dd7f10e419572b1551633 | 784eca4391204e2352f320d632e29d37ea136f32 | /PracticeCodes/whatsApp.py | b766433acc83e68763c1dd13d356cee6d98734c7 | [] | no_license | JT4life/PythonCodes | e9d7156cff7b58ad6e1fd253cd645e707be6a5d5 | 148229c14b21dc2a34b7f1446b148b1040a84dad | refs/heads/master | 2022-11-07T03:58:07.850557 | 2020-06-15T22:13:10 | 2020-06-15T22:13:10 | 272,554,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from selenium import webdriver
#Download Chrome driver and paste in script folder in python !
driver = webdriver.Chrome()
driver.get('https://web.whatsapp.com/')
name = input('Enter the name of user or group : ')
msg = input('Enter your message : ')
count = int(input('Enter the count : '))
input('Enter anything af... | [
"joshua_4_life@hotmail.com"
] | joshua_4_life@hotmail.com |
0cf32f19f7a7f9aa59508484ced33b621773e946 | 074421d31af92ae29c7c78bdb7e50f199a38eb9b | /weixin/code/rfid_oss/event_manager/command_code.py | 4db7933b49755753bde7e285fbe6ec665b1b3e52 | [] | no_license | allenforrest/wxbiz | 3f49ce66b37e281fc375f548610aa54a0f73268f | e78df71fbc5d73dd93ba9452d4b54183fe1e7e1f | refs/heads/master | 2016-09-06T15:17:49.420934 | 2013-08-05T13:13:40 | 2013-08-05T13:13:40 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 2,184 | py | #coding=gbk
"""
Copyright (C), 2012-2015, Anything Connected Possibilities
Author: ACP2013
Version: 1.0
Date: 2012-11-22
Description: event manager命令码定义文件
Others:
Key Class&Method List:
1. ....
History:
1. Date:2012-11-22
Author:ACP2013
Modification:新建文件
"""
#OSS 命令码
OSS_BASE = 0x02000000
... | [
"allenxu@gmail.com"
] | allenxu@gmail.com |
ec593b0300c2aa722f382c36dbd9335956e4a56d | dfcb65de02953afaac24cc926ee32fcdede1ac21 | /src/pyrin/processor/mimetype/enumerations.py | 8547e4fb1a4820fa3604c5a82da52f2bd920b44c | [
"BSD-3-Clause"
] | permissive | mononobi/pyrin | 031d0c38da945b76b07ea100554ffc7f8081b05e | 9d4776498225de4f3d16a4600b5b19212abe8562 | refs/heads/master | 2023-08-31T03:56:44.700142 | 2023-08-20T22:20:06 | 2023-08-20T22:20:06 | 185,481,041 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # -*- coding: utf-8 -*-
"""
mimetype enumerations module.
"""
from pyrin.core.enumerations import CoreEnum
class MIMETypeEnum(CoreEnum):
"""
mimetype enum.
"""
TEXT = 'text/plain'
HTML = 'text/html'
JAVASCRIPT = 'text/javascript'
OCTET_STREAM = 'application/octet-stream'
JSON = 'appl... | [
"mohamadnobakht@gmail.com"
] | mohamadnobakht@gmail.com |
6b5c8c1161631de22919ca67fea10198953e24c0 | 60f1981f8fb7717a92921c0b7404f6eac06b100b | /Pwn/flag/random_rope.py | 680882cfec123c4fd91d1ae75f50f36746659b1c | [] | no_license | MidnightFlag/CTF2021 | 765d73d227c23cea1df2bbf61a95b2c915be41ee | 5b477472b1491ec7351f75b68f3d8883760e4280 | refs/heads/main | 2023-04-08T13:57:29.767417 | 2021-04-19T18:13:29 | 2021-04-19T18:13:29 | 310,705,849 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,680 | py | #!/usr/bin/env python3
from pwn import *
proc = remote("172.17.0.6", 8888)
libc = ELF("./libc-2.28.so")
#proc = process("/home/kali/Documents/SB/MidnightCTF/PWN/pwn/infra/5_random_rope/random_rope")
#libc = ELF("/lib/i386-linux-gnu/libc.so.6")
leak = proc.recvuntil(b":\n\n").decode()
log.info(leak)
log.info("Parsin... | [
"a@example.com"
] | a@example.com |
6e5ba839aad177f589f4dc24bb5b707e6d35e625 | 89f0df65abe01e273fd7cf0606727c777352ba47 | /Python/code_comp/Programmeringsolympiaden/Kalas/bool mash.py | 310e301ab3cd4f230aa659a223e41781f3dcbaca | [] | no_license | cqann/PRGM | 486122601b959cfbf7d9d2dc2a37caa858cf15a8 | 7387dafb65895528c042a3f1ab605fa5325056ce | refs/heads/master | 2022-02-16T00:59:32.342327 | 2022-01-27T16:55:46 | 2022-01-27T16:55:46 | 226,111,892 | 0 | 1 | null | 2020-11-16T17:41:44 | 2019-12-05T13:45:21 | Python | UTF-8 | Python | false | false | 665 | py | import sys
import time
n_kalas, k = [int(x) for x in sys.stdin.readline().split(" ")]
s_w_h = [int(x) for x in sys.stdin.readline().split(" ")]
w_s = [0]
afford = 0
las = -1
hours = 0
list_w_hours = []
list_w_time = []
for i in range(n_kalas):
cur_kalas = [int(x) for x in sys.stdin.readline().split(" ")]
m_... | [
"cqann.lindberg@gmail.com"
] | cqann.lindberg@gmail.com |
1da24edb58c87a6f4a8613ad31c9849e3494deae | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/103/usersdata/158/50598/submittedfiles/av1_3.py | d2648f5498338309230c4b00a56edb940359b628 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite a:'))
b=int(input('digite b:'))
cont=0
i=1
for i in range(1,b+1,1):
if a%2==0:
cont=cont+1
i=i+1
if cont==0:
print(i)
else:
print('Nao existe')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
62bd663ff66daf8ad4c15a4551a219a9bfa76552 | afa456bb3792e433d84684260cdce1dbc6302cde | /authors/apps/article/renderer.py | 0941a3177f37f34445aeaec6aa777ad01913eddf | [
"BSD-3-Clause"
] | permissive | andela/ah-backend-poseidon | 23ac16e9fcdce49f78df04126f9f486b8c39ebd4 | d2b561e83ed1e9a585853f4a4e2e37805e86c35c | refs/heads/develop | 2022-12-09T07:38:04.843476 | 2019-07-19T13:44:13 | 2019-07-19T13:44:13 | 158,799,017 | 1 | 4 | BSD-3-Clause | 2022-12-08T01:19:16 | 2018-11-23T07:55:00 | Python | UTF-8 | Python | false | false | 753 | py | """
Renderer classes go here
"""
import json
from rest_framework.renderers import JSONRenderer
class ArticleJSONRenderer(JSONRenderer):
"""
Override default renderer to customise output
"""
charset = 'utf-8'
def render(self, data, accepted_media_type=None, renderer_context=None):
"""
... | [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
f39c8bd81c9f14438fcaf68af7acdfe08b6002a1 | 30227ff573bcec32644fca1cca42ef4cdd612c3e | /leetcode/binary_tree/tests/test_levelorder_traversal.py | 04f4e411c877f489a2031650a1adce5140460d2b | [] | no_license | saurabh-pandey/AlgoAndDS | bc55864422c93e6c93b8432e483394f286ce8ef2 | dad11dedea9ceb4904d6c2dea801ce0172abfc81 | refs/heads/master | 2023-07-01T09:12:57.951949 | 2023-06-15T12:16:36 | 2023-06-15T12:16:36 | 88,239,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import pytest
import binary_tree.levelorder_traversal as prob
import binary_tree.operations as bTree
class TestPostorderTraversal:
def test_example1_1(self):
root = [3,9,20,None,None,15,7]
res = [[3],[9,20],[15,7]]
rootNode = bTree.createUsingCompleteList(root)
assert prob.levelOrder(rootNode) == re... | [
"saurabhpandey85@gmail.com"
] | saurabhpandey85@gmail.com |
c56e5bd714efca6e91bff4a72bd13e7dbd1a954a | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5688567749672960_1/Python/frigidrain/A.py | db7c051b27a5e302d31af53d0b46fc3b0d29e195 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import fileinput
import math
from collections import deque
def flip(n):
res = 0
while(n > 0):
digit = n%10
res = res * 10 + digit
n /= 10
return res
def solve(n):
res = 0
while n > 19:
# print n
if n % 10 == 0:
n -= 1
res += 1
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
05f027a2c1c5070d461991e8ee1248b0e5a93a37 | 5aeab8f41edf0ccb92e76b2dce06b693e0635dd6 | /neutron/neutron/tests/unit/agent/linux/test_iptables_firewall.py | acb6666126c2b224ced2b69281235d4c5d2813eb | [
"Apache-2.0"
] | permissive | xjforfuture/openstack | 113e75b0d92e96caf715d4ac258f3c683b8a9894 | 913dbc266ed818519485b2302387e8f0ae198e70 | refs/heads/master | 2022-11-27T04:06:41.982869 | 2017-11-20T08:15:38 | 2017-11-20T08:15:38 | 111,380,539 | 0 | 1 | null | 2020-07-22T22:11:30 | 2017-11-20T08:11:03 | Python | UTF-8 | Python | false | false | 95,094 | py | # Copyright 2012, Nachi Ueno, NTT MCL, 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
#
# Unles... | [
"xjforfuture@163.com"
] | xjforfuture@163.com |
62434b8a6735fc1a9f7355464680ab37f69140cc | 4ac687bc28b9f5cf7f822e9d4c0db8b46fe363b3 | /88-Merge_Sorted_Array.py | 648b3e7fbf941c1b8741ec21892efe0d755d71da | [
"MIT"
] | permissive | QuenLo/LeetCode-share | b1e75e02e1dfe85be44ddb0ae1f4345353b0b569 | ce861103949510dc54fd5cb336bd992c40748de2 | refs/heads/master | 2021-12-23T11:23:09.111711 | 2021-11-15T18:54:46 | 2021-11-15T18:54:46 | 131,681,273 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | # Time complexity : O(n + m)
# Space: O(m)
class Solution:
def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None:
"""
Do not return anything, modify nums1 in-place instead.
"""
if n < 1:
return
if (m) < 1:
nums1[... | [
"noreply@github.com"
] | QuenLo.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.