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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5990e4c3f88e31bd3a32933bf93fa28cc14435e8 | 747f759311d404af31c0f80029e88098193f6269 | /addons/etl/lib/demo/test5.py | be8749a5d528e100044200838c549ad4e59a270e | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | /home/openerp/production/extra-addons/etl/lib/demo/test5.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
51daceebf1a5cea63d5aca5332e4ff01a45c5c4f | 87934817185afcea62bf92979e912e3665c58858 | /core/helpers/common_functions.py | 2db1f6a4cea1e50b330c26ba3dde8b9effdeb5df | [] | no_license | omago/cost_tracking | 6cb02fae6f58e7662e964878d676c3e8e96ee0bc | a70985278109a8f74778359ea786525ccb6b0a8b | refs/heads/master | 2020-05-20T02:06:39.376511 | 2017-06-01T17:29:27 | 2017-06-01T17:29:27 | 30,844,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | __author__ = 'domagoj'
class CommonFunctions:
@staticmethod
def trunc(num, digits):
sp = str(num).split('.')
# return "" '.'.join(sp[0], sp[:digits])
return str(sp[0]) + "." + str(sp[1][:digits]) | [
"doctorkovac@gmail.com"
] | doctorkovac@gmail.com |
f528e134b7fc26687d8e705b9f0fe8fd27e5924b | a6e2bef6184f57a94ebb205526004156df7cdbb4 | /CS5330 Randomized Algorithms/code/plot.py | 575ef42d6332e75d1a1f38b7c858db671173aca8 | [] | no_license | manosm2/Awsome-Project | 7e2d8446a8ace0e1fecfad92f765bd64465c8ba0 | 595780abd1407c8f0835ff05ddf2bf617ba53c59 | refs/heads/master | 2022-12-14T22:53:29.107924 | 2020-09-17T09:56:28 | 2020-09-17T09:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | import os,sys
import shelve
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
def restore_shelve(filename):
''' restore the workspace '''
f_shelf = shelve.open(filename)
for key in f_shelf:
try:
globals()[key] = f_shelf[key]
... | [
"weizhiliu2009@gmail.com"
] | weizhiliu2009@gmail.com |
378acc8e743f8ba23ebcce8096cf26c9528a1ae7 | c2b8adb8b4062a14bfc7d8c8fa2938359530e028 | /solnml/components/models/object_detection/nn_utils/yolov3.py | e2d93d9946fd80e37f29ee1c317aa9f8758b029e | [] | no_license | thomas-young-2013/hp-tuner | 1e7d277f3c0135b9032884e3f20b050f19012918 | e606569719a14d8445633e42aedc8296a63a577a | refs/heads/master | 2023-04-15T08:41:02.514912 | 2020-09-14T13:23:55 | 2020-09-14T13:23:55 | 225,173,361 | 0 | 2 | null | 2023-03-24T22:31:25 | 2019-12-01T14:17:29 | Python | UTF-8 | Python | false | false | 14,985 | py | """
Yolov3 code borrowed from
https://github.com/eriklindernoren/PyTorch-YOLOv3/blob/master/models.py
"""
from __future__ import division
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from .yolov3_utils import *
backbone_path = 'https://pjreddie.com/media/files/darknet53.conv... | [
"459240868@qq.com"
] | 459240868@qq.com |
56f5995fc7f439a2a4d9e8bcee6d9880b6981f45 | 53eee7eb899cb518983008532257037fb89def13 | /2535.difference-between-element-sum-and-digit-sum-of-an-array.py | 7b4b83de351723bb5c2e34633a12778ff0974914 | [] | no_license | chenxu0602/LeetCode | 0deb3041a66cb15e12ed4585bbe0fefce5dc6b26 | 3dc5af2bc870fcc8f2142130fcd2b7cab8733151 | refs/heads/master | 2023-07-05T19:26:21.608123 | 2023-07-02T08:35:35 | 2023-07-02T08:35:35 | 233,351,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #
# @lc app=leetcode id=2535 lang=python3
#
# [2535] Difference Between Element Sum and Digit Sum of an Array
#
# @lc code=start
class Solution:
def differenceOfSum(self, nums: List[int]) -> int:
digitSum = sum(map(int, list(''.join(map(str, nums)))))
return sum(nums) - digitSum
# @lc cod... | [
"chenxu@MacBook-Pro.local"
] | chenxu@MacBook-Pro.local |
a2079f88598d3b6d9ec2d69186c4d14ed5fa10f9 | d589c8637283150d5117d56814801c1605061067 | /examples/006_impedance_instability/004_some_checks.py | c5a07b975c7595b2998514c78f15525ae4de0ebd | [] | no_license | PyCOMPLETE/PyPARIS_sim_class | 484c7469798c9aa71e12486a2880f9aecda43f88 | e300c078e58dba4a22309141745d14911b7a7f79 | refs/heads/master | 2021-07-17T19:46:40.666332 | 2020-05-14T17:11:06 | 2020-05-14T17:11:06 | 156,742,764 | 1 | 4 | null | 2020-03-25T14:56:37 | 2018-11-08T17:19:23 | Python | UTF-8 | Python | false | false | 2,596 | py | import sys, os
sys.path.append('../../../')
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import PyPARIS.myfilemanager as mfm
import PyECLOUD.mystyle as ms
tag = 'noecloud'
flag_check_damp_time = False
tau_damp_x = 50.
tau_damp_y = 100.
flag_check_Qs = True
Q_s = np... | [
"giovanni.iadarola@cern.ch"
] | giovanni.iadarola@cern.ch |
39c7bafbb6743431fa610ea9de9063854e3147de | e714dfd95cb74f4e357af8d085e4dcaf8b7ecdf3 | /0x01-python-if_else_loops_functions/6-print_comb3.py | 1815d869e8ec3d5dd857f74b7f295677696776a9 | [] | no_license | MCavigli/holbertonschool-higher_level_programming_classic | 2cea769dc1fd39e90f6ef74cdb3191e2472b0282 | 870548f964a3deac4a41918e9c3d0bad6cd732b4 | refs/heads/master | 2022-03-06T09:33:56.839118 | 2019-09-27T06:04:34 | 2019-09-27T06:04:34 | 184,122,977 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/python3
for i in range(0, 10):
for j in range(0, 10):
if i >= j:
continue
elif i == 8 and j == 9:
print("{}{}".format(i, j))
else:
print("{}{}, ".format(i, j), end='')
| [
"mcavigli@gmail.com"
] | mcavigli@gmail.com |
a5952c581fa236d4cd1f5fb2e1e6cd98142209f6 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binary_20200524134301.py | 2d712945a0d96095a964b068fcf13480893e5dec | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | def solution(N):
print(N)
maximumCount = 0
binaryNumber = []
while( N > 0):
N = int(N / 2)
if N % 2 == 0 :
binaryNumber.append(0)
else:
binaryNumber.append(1)
# then reverse the number
number = list(reversed(binaryNumber))
s = [str(i) for i i... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a353a354e1b4924959ca3db69a2b85cfd874a4bb | 21dfcc44840cb94058bcd014946f2a38fbf30c54 | /scripts/EmuContextShare.py | c2759000ab9876c303ef2abeae06c00a43226fed | [
"SGI-B-2.0",
"MIT",
"Libpng",
"BSD-3-Clause",
"LicenseRef-scancode-glut",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense"
] | permissive | nigels-com/regal | 819a74deeeac00860bcb6f21c3e59ccad1b78448 | 3f1a06d5c098339d30221c9e999640e4c5437a0b | refs/heads/master | 2020-12-14T16:19:29.701418 | 2015-10-18T08:57:48 | 2015-10-18T08:58:56 | 9,986,650 | 2 | 3 | null | 2014-07-12T07:28:49 | 2013-05-10T17:35:20 | C++ | UTF-8 | Python | false | false | 983 | py | #!/usr/bin/python -B
formulae = {
# GLX
'glXCreateNewContext' : {
'entries' : [ 'glXCreateNewContext' ],
'suffix' : [
'if (ret && share_list)',
' Init::shareContext(ret,share_list);'
]
},
'glXCreateContext' : {
'entries' : [ 'glXCreateContext' ],
'suffix' : [
'if (ret... | [
"nigels@users.sourceforge.net"
] | nigels@users.sourceforge.net |
1655b29b5809d7256dc06dcf3576c3cf9947e5af | c5be6a92f216957d340474b58507606a38c10f5f | /course-files/projects/project_02/option2_data_display/samples/spotify/01_spotify.py | 1b53cccb5096b78277b930598227c782d53af67f | [] | no_license | eecs110/winter2019 | 0b314c35e886b8099368ed7dfd51b707ab73c0c2 | f4107207ca1c9c10b78bdbb74fd82410b00ee363 | refs/heads/master | 2020-04-11T10:09:28.100445 | 2019-03-21T18:00:25 | 2019-03-21T18:00:25 | 161,705,160 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from helpers import spotify
import helpers
import pprint
import json
def write_to_file(results):
file_path = helpers.get_file_path('spotify_tracks.json', subdirectory='results')
f = open(file_path, 'w')
f.write(json.dumps(results))
f.close()
urls = []
search_term = input('\nSearch songs for which ar... | [
"vanwars@gmail.com"
] | vanwars@gmail.com |
90f019fddd3cf3d20ba4015a56a9a1b8281be748 | fc845e6b5fde3d7f8defd705db013578e039486f | /spark/twitter_api.py | 1b4c407e31abc8018e4e492dd70dd5c01ec1740b | [
"MIT"
] | permissive | epu-ntua/PSYMBIOSYS-Influencial | 8eef5bbe0bc31db974ffe11e54fa36566d0d4fb5 | 25b23ca22ff54f97410ad007df2faad1fe2b89ff | refs/heads/master | 2016-08-11T07:57:07.389625 | 2016-03-22T11:05:22 | 2016-03-22T11:05:22 | 52,870,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import twitter
import time
api = twitter.Api(consumer_key='GDWyb1WBb0yJwYBwQ9g3m2nFx',
consumer_secret='BK78W93LakpOwPL84otIl2dVZQ0gNjAYPiFWQbCfdFO6UiF0lF',
access_token_key='95257276-aptBPzbJCDqJWKKZ65RwgtJehNiOTEgoyASzaIPqQ',
access_token_secret='0qHt... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
d64339cf2bdbebdebe845c719e52eb4545106b01 | d45e3f01fe74d34fcbeb53d1aa88546621c1f21a | /src/orders/forms.py | 7c6868b1181a59f19d129eb8d7360ee1ef482106 | [] | no_license | SheraramPrajapat1998/hospital_management | d0ff66f6f3bfaab1e24f8ac032a68761557ef3f6 | 5119f37136837428d03d095f861edec7320a2006 | refs/heads/master | 2023-04-15T03:16:12.125089 | 2021-04-30T11:24:34 | 2021-04-30T11:24:34 | 340,707,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | from django import forms
from django.forms.models import inlineformset_factory
from .models import Bill, BillItem
class BillCreateForm(forms.ModelForm):
first_name = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'First name...'}))
last_name = forms.CharField(widget=forms.TextInput(attrs={'pla... | [
"sheraramprajapat1998@gmail.com"
] | sheraramprajapat1998@gmail.com |
54802271b7a398dc6e291f875046a51771bf14e5 | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/history/factories/core.py | 997d6ac50438478694c8e2904ff076d8d1c267a0 | [
"MIT"
] | permissive | uktrade/market-access-api | 6b4680e6455eb5c25480ccd3e3d9445654269f36 | 4da26d1be53843d22411577409d9489010bdda09 | refs/heads/master | 2023-08-30T14:47:10.373148 | 2023-08-29T13:58:08 | 2023-08-29T13:58:08 | 131,856,014 | 2 | 3 | MIT | 2023-09-14T08:04:42 | 2018-05-02T13:38:37 | Python | UTF-8 | Python | false | false | 2,338 | py | from ..exceptions import HistoryFactoryNotFound
from ..utils import get_model_name
from .assessments.economic import EconomicAssessmentHistoryFactory
from .assessments.economic_impact import EconomicImpactAssessmentHistoryFactory
from .assessments.resolvability import ResolvabilityAssessmentHistoryFactory
from .assessm... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
58e63749daad7e4fa57271dff50e1309b4c5bd3b | b15e763c56df4da1e9c5a5d6e0024ba44cf5e990 | /DataExtractor.py | 38225262f5086dfe24c3ccc760689b2790d7e38f | [] | no_license | AkunWin/DataExtractor | b8cb3ed858fe2ed31d498b1c9ce215ac16404e79 | 7a523d9634677aa3b42a18439dc1c21a06d9c4db | refs/heads/main | 2023-09-05T20:27:56.550431 | 2021-10-25T13:16:44 | 2021-10-25T13:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,068 | py | #
# DataExtractor - Find datas within (almost) ALL files.
# Copyright (c) 2021 Gwendal Le Coguic
#
# Based on: BurpLinkFinder - Find links within JS files. https://github.com/InitRoot/BurpJSLinkFinder
# Credit to https://github.com/PortSwigger/js-link-finder/blob/master/FransLinkfinder.py for the original extension
# C... | [
"g@10degres.net"
] | g@10degres.net |
5235bffbec7ad019aa0e14a5b162e814a7f81200 | 2c398c071f28d95c6b6a7ea9e61c05f0208450c4 | /build/c_module_toc.py | 5d16f8fc850084cf7eeddc0c1cd677e4f2166ffc | [
"Apache-2.0"
] | permissive | techscientist/oil | 930c1d8f121b0ef5fb0dde3ba0409d0ecc8e58e4 | 8fd4a6669092719c413cb9ebb30e7cec42b0443c | refs/heads/master | 2021-01-23T00:39:33.108192 | 2017-05-29T03:23:34 | 2017-05-29T03:23:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | #!/usr/bin/python
"""
c_module_toc.py
"""
import glob
import re
import sys
PURE_C_RE = re.compile(r'.*/(.*)module\.c$')
HELPER_C_RE = re.compile(r'.*/(.*)\.c$')
def main(argv):
# module name -> list of paths to include
c_module_srcs = {}
for c_path in glob.glob('Modules/*.c') + glob.glob('Modules/_io/*.c'):... | [
"andy@oilshell.org"
] | andy@oilshell.org |
bddcf9f7eae372bee83a9fff3fd22e44e5f06f2a | 1670dca534ef4fd7e8d9ca9e6d55b5885e4071f9 | /CodeChef/CodeChef44.py | b6b54019c4cc021602d87ac810de66f55b516148 | [] | no_license | Tejas1510/Pythonary | 24512a6c5abfee17457397aa37849f3a5a739002 | 55c11f74d9f540bf696acecaa78febecd14d8422 | refs/heads/master | 2022-11-23T23:27:32.219513 | 2020-08-02T17:22:17 | 2020-08-02T17:22:17 | 264,151,076 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """"""""""""""""""""""""""""""""""""""
Name of Question:Count Subaray
Link of Question:https://www.codechef.com/problems/SUBINC
"""""""""""""""""""""""""""""""""""""""
t=int(input())
for i in range(t):
n=int(input())
a=list(map(int,input().split()))
t=[0]*n
for i in range(1,len(a)):
if... | [
"noreply@github.com"
] | Tejas1510.noreply@github.com |
e82b2ff19f8e174dc294a49d016f1b785736b22d | 14d8418ca5990217be67aee89fdaa310db03fbba | /test_interf_bandwidth_report.py | d3e6d9d4871659fae26aee1b6f46dcd49f70f573 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
c3121ab122474b2cd10efef8e78cc8f09b637b74 | 611939aa96af11f5774e9bbcf257eb9949829318 | /selfdrive/manager/test/test_manager.py | e19311f0b77afa8f4c134c3730ea2a4d7924b3f5 | [
"MIT"
] | permissive | Tundergit/tunderpilot | bee3a84160abbe1579d6bd8cbf3761d7a8f1ae16 | 4cba9af9aa225d4c5e5bac46470f1c043c09dd7c | refs/heads/main | 2023-07-18T20:51:23.112780 | 2021-04-02T21:24:21 | 2021-04-02T21:24:21 | 353,823,981 | 3 | 1 | MIT | 2021-09-11T00:29:40 | 2021-04-01T20:52:52 | C | UTF-8 | Python | false | false | 1,824 | py | #!/usr/bin/env python3
import os
import signal
import time
import unittest
import selfdrive.manager.manager as manager
from selfdrive.hardware import EON
from selfdrive.manager.process import DaemonProcess
from selfdrive.manager.process_config import managed_processes
os.environ['FAKEUPLOAD'] = "1"
# TODO: make eon ... | [
"user@comma.ai"
] | user@comma.ai |
db6f588cc416c133fc25807cd2e9a8d1672a4d5f | 49af46c092ee0ed160656ca56cd5f1ce037c6bc6 | /django_maker/migrations/0002_remove_play_project_port_id.py | fe0580c7bdb779892efeb9a12fbc5c47dc728742 | [] | no_license | tomaccosheep/django_restricted_play_001 | b08fe31f014f604acf776f50b3c740a51340759d | 5f84c8b5dbbaca40afd12bb67f3a1ad2976b3aad | refs/heads/master | 2021-05-13T19:04:56.228947 | 2018-01-24T09:21:14 | 2018-01-24T09:21:14 | 116,882,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 2.0.1 on 2018-01-24 07:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_maker', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='play_project',
name='port_id',
... | [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
5f79485ae12823204f5df48879e04b18821b5f0a | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/Turtle/Visualizing Recursion.py | 87227258b8789357a8991b16a982b69d8fe179a3 | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py |
'''At the end of ActiveCode 1 you will notice that we call the function myWin.exitonclick(),
this is a handy little method of the window that puts the turtle into a wait mode until you click inside the window,
after which the program cleans up and exits.'''
import turtle
myTurtle = turtle.Turtle()
myWin = turtle.Scre... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
705fd31e2f2f0d3139e14f5c032c6be001a6f634 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/notification/migrations/0030_auto_20190319_1428.py | a16226f19325b69b80de5f78899378853c9ab852 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | # Generated by Django 2.0.5 on 2019-03-19 08:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notification', '0029_merge_20190319_1423'),
]
operations = [
migrations.AlterField(
model_name='appnotification',
na... | [
"sonamsinha@policybazaar.com"
] | sonamsinha@policybazaar.com |
406573375de2155ffdbddff280dac20ad597848f | f99e70029925ead6fcd1a4d81873ebd3303ec32a | /recipe/tests/test_recipe_api.py | 231b8ee420d05760d574e9b9773a53d29f958661 | [
"MIT"
] | permissive | luccasPh/recipe-app-api | 0e174e40ab5e41d4b4a8a61062491b6efe3ecffc | a88f9832ac520d8df968f1d0fecf7b21abe82e4b | refs/heads/main | 2023-04-30T17:36:18.986147 | 2021-05-10T12:14:02 | 2021-05-10T12:14:02 | 362,460,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,535 | py | import tempfile
import os
from PIL import Image
from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Recipe, Tag, Ingredient
from recipe.serializers import R... | [
"lucas4pinheiro@gmail.com"
] | lucas4pinheiro@gmail.com |
12a69b16b2b1e1db5f36da1800b1da75fc264c63 | ab79f8297105a7d412303a8b33eaa25038f38c0b | /vit_print_shipment/__openerp__.py | 8dc8a27746765cb58397b70df9782503a0f5da2c | [] | no_license | adahra/addons | 41a23cbea1e35079f7a9864ade3c32851ee2fb09 | c5a5678379649ccdf57a9d55b09b30436428b430 | refs/heads/master | 2022-06-17T21:22:22.306787 | 2020-05-15T10:51:14 | 2020-05-15T10:51:14 | 264,167,002 | 1 | 0 | null | 2020-05-15T10:39:26 | 2020-05-15T10:39:26 | null | UTF-8 | Python | false | false | 309 | py | {
'name': 'Print Out Incoming Shipment with Signature',
'version':'0.1',
'depends': ['stock'],
'author' :'vitraining.com',
'category': 'Purchase',
'description': """
Print Out Incoming Shipment With Signature
""",
'installable':True,
'data': ['report/incoming_shipment.xml'],
}
| [
"prog1@381544ba-743e-41a5-bf0d-221725b9d5af"
] | prog1@381544ba-743e-41a5-bf0d-221725b9d5af |
f091de8c959d3b19a5487f22e935e22398a36a13 | 1b845de8123c750e8735ccf4297bf1e5861cbb4b | /katas/7kyu/kata2.py | c12c369f6e168837aaf54e68a7797da73c2f0397 | [] | no_license | jorgemira/codewars | 3ef2b05fa90722cdd48bb8afb0f7536627bcfec9 | 701a756f3d466dbfe93f228b2e294cf49a7af2ae | refs/heads/master | 2020-12-19T19:07:51.485286 | 2020-01-23T15:54:52 | 2020-01-23T15:54:52 | 235,824,468 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | """
Codewars 7 kyu kata: Find the odd int
URL: https://www.codewars.com/kata/54da5a58ea159efa38000836/python
"""
from collections import Counter
def find_it(seq):
return [k for k, v in Counter(seq).items() if v % 2][0]
| [
"jorge.mira.yague@gmail.com"
] | jorge.mira.yague@gmail.com |
2ac488dd5c40a042e72c7a8952e8b5ca81325ae3 | 83e18f5d4fcd7084defb32981337a8f9b646c4c7 | /python/792.number-of-matching-subsequences.py | 0cad7f67348c54d7058121a251dbcdfcd82302b7 | [
"MIT"
] | permissive | Zhenye-Na/leetcode | 709037a318e1be7e6ab92751f8695d888900591a | 18d91a6ba813f91531b04632563212dfde2cceb9 | refs/heads/master | 2023-04-10T07:06:06.502224 | 2023-04-01T00:18:44 | 2023-04-01T00:18:44 | 145,656,854 | 19 | 9 | MIT | 2022-05-16T03:14:02 | 2018-08-22T04:39:25 | Python | UTF-8 | Python | false | false | 2,257 | py | #
# @lc app=leetcode id=792 lang=python3
#
# [792] Number of Matching Subsequences
#
# https://leetcode.com/problems/number-of-matching-subsequences/description/
#
# algorithms
# Medium (48.70%)
# Likes: 1848
# Dislikes: 106
# Total Accepted: 81K
# Total Submissions: 166K
# Testcase Example: '"abcde"\n["a","bb",... | [
"nazhenye@gmail.com"
] | nazhenye@gmail.com |
d99a4ecb7d9b1271f6887372359d7097c836ce69 | ba3f170332f5ebc1b289df197dc7efeef6ae1329 | /scripts/translate.py | e5254eb80ff1b5fca9fd9f8ec14b85ff29ff5f6d | [
"MIT"
] | permissive | covid2019memories/covid2019-pipeline | c6820f8ffb5ca11250c6778e1aa5dbd5eeec001c | 2fc743a3d2ec482632e44b9e5153ce441101187f | refs/heads/master | 2021-05-19T11:51:49.105943 | 2020-04-05T17:11:01 | 2020-04-05T17:11:01 | 251,684,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,198 | py | # -*- coding: utf-8 -*-
import requests
import json
import codecs
import os
import os.path as path
import re
import glob
import time
import sys
import spacy
from pathlib import Path
from hanziconv import HanziConv
from pypinyin import slug
SOURCE = '../covid2019-sources'
TARGET = '../covid2019-memories'
nlp = spa... | [
"mingli.yuan@gmail.com"
] | mingli.yuan@gmail.com |
e9beabdf8586914d469a2e6a5ef7e80c54e3efe9 | ff5cf96a9a6b57c2d5636345b1478db4cb61e046 | /MeasureDetector/create_joint_dataset_annotations.py | c5c562691cb4b41d505d582346b1de0f8a274de9 | [
"MIT",
"Apache-2.0"
] | permissive | OMR-Research/MeasureDetector | 6b6676ea537166f04e9b7282a6576abbe9ef4dc4 | 5058df0eeccc2608db106464e8a70df9702cd775 | refs/heads/master | 2023-07-19T18:36:21.352828 | 2022-06-21T21:54:05 | 2022-07-14T20:18:54 | 155,849,310 | 31 | 11 | NOASSERTION | 2023-07-06T21:55:00 | 2018-11-02T10:15:17 | Python | UTF-8 | Python | false | false | 7,452 | py | import argparse
import json
import os
import random
from glob import glob
from tqdm import tqdm
from typing import Dict, List
from MeasureDetector.create_dataset_statistics import compute_number_of_system_on_page
engraving_type_mapping = {"print": "typeset",
"printed": "typeset",
... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
f316d833d97faa9154e4d2e54b205ab2d2252ac9 | 3fef91a7856105428a04c26e70434039c5d74ded | /83.ๅ ้คๆๅบ้พ่กจไธญ็้ๅคๅ
็ด .py | a3d393ad66cbc8e2634a8ff6fb6e70f68b7989cf | [] | no_license | vivid-k/Leetcode | 77b1a13795cc1a337b680e43ca29660edcbd1688 | 5d666b55f65368a2458742da70de429498dbb16c | refs/heads/master | 2022-11-16T02:03:17.178858 | 2020-07-14T01:49:35 | 2020-07-14T01:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | #
# @lc app=leetcode.cn id=83 lang=python3
#
# [83] ๅ ้คๆๅบ้พ่กจไธญ็้ๅคๅ
็ด
#
# @lc code=start
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteDuplicates(self, head: ListNode) -> ListNode:
if not head or n... | [
"luzhangxd@outlook.com"
] | luzhangxd@outlook.com |
4b1a29d2aa94f0dc0c16097092dc199015ece95d | ac2b3f97b4f2423a3724fbf9af69e362183f7f3a | /crimtech_final_project/crimsononline/admin_cust/pipeline.py | f3ee17789c7ce6b518f893329fc539d378f84a2f | [] | no_license | cindyz8735/crimtechcomp | e4109855dd9a87fc11dd29fdf6bb81400c9ce97b | a9045ea79c73c7b864a391039799c2f22234fed3 | refs/heads/master | 2021-01-24T10:06:03.386553 | 2018-04-14T04:24:57 | 2018-04-14T04:24:57 | 123,037,281 | 0 | 0 | null | 2018-02-26T22:08:57 | 2018-02-26T22:08:56 | null | UTF-8 | Python | false | false | 801 | py | from django.conf import settings
from django.contrib.auth.models import Group
from social.exceptions import AuthFailed
def force_new_user(backend, user=None, *args, **kwargs):
"""
Prevent social auth from associating multiple social accounts with
the same crimsononline account.
"""
if user:
... | [
"cindyz8735@gmail.com"
] | cindyz8735@gmail.com |
5fbaa1a3eba6da4299a4f0d3eb1f213cf33231d4 | eb4b1a3e88f40e6cfa86be7baa10881664a7e8a3 | /python/lsst/obs/base/gen3/__init__.py | f2dcd2792162564f3f04e0e98d87d1fc70ca5a6b | [] | no_license | provingground-moe/obs_base | 5b43f8f1285676852e2ef4ea6aaf6b354c2e136b | bbf99654e597feffc34574a78f8c4403ee2f9513 | refs/heads/master | 2020-06-10T20:44:25.460957 | 2019-06-21T20:02:33 | 2019-06-21T20:02:33 | 136,348,756 | 0 | 0 | null | 2018-06-06T15:28:02 | 2018-06-06T15:28:01 | null | UTF-8 | Python | false | false | 1,061 | py | # This file is part of obs_base.
#
# Developed for the LSST Data Management System.
# This product includes software developed by the LSST Project
# (http://www.lsst.org).
# See the COPYRIGHT file at the top-level directory of this distribution
# for details of code ownership.
#
# This program is free software: you can... | [
"jbosch@astro.princeton.edu"
] | jbosch@astro.princeton.edu |
0380bfcf2cbf5f6981b12e0225b5b78201e412f8 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/datastore/v1/datastore-v1-py/google/cloud/datastore_v1/services/datastore/client.py | 25166f6fb3768770980a3338165e3cc4cfa5bb8c | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,650 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
4b9d956bc5e55407179e100d4a258353a7c9de29 | 8bab205ba2df43d71d5dc042722d95b5f7360584 | /oops/polymorphism/studentprog.py | 7c19ea3ddb98c2a7b3d1c533916b79f3b72c8689 | [] | no_license | arunthankachan07/PythonFiles | 740c2e050051053f7c7762b324229d83ede5988d | 4b329893e0a07944ec628dd4d02587265fe79f6b | refs/heads/master | 2023-03-18T11:02:44.709754 | 2021-03-05T12:41:18 | 2021-03-05T12:41:18 | 333,663,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | class Student:
def __init__(self,rol,name,course,total):
self.rol=rol
self.name=name
self.course=course
self.marks=total
def __str__(self):
return self.name
st=Student(100,"arun","mca",400)
st1=Student(101,"aby","bca",340)
st2=Student(102,"joel","bca",300)
st3=Student(103... | [
"arunkaripuzha07@gmail.com"
] | arunkaripuzha07@gmail.com |
c1227245b1fd8dca10e440895563f6a729419f9a | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/inbound_nat_pool.py | a9e3f8c32c331b481d130e6244b6cf829b1853f7 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 4,745 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
529aabf335da4e2dbfa7ba80f2178beb8270052b | c2316db483bcc73b7643f90d27cdab47ae7d73fa | /python/tink/secret_key_access_test.py | 06386d72cf6b9c713ac8b908cda8e4856c29355e | [
"Apache-2.0"
] | permissive | EricBioInf/tink | 360534a4effcd7b731ac66171559235ab82edd91 | 9753ffddd4d04aa56e0605ff4a0db46f2fb80529 | refs/heads/master | 2023-09-05T06:26:18.342483 | 2021-11-09T16:14:43 | 2021-11-09T16:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # Copyright 2021 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 agreed to in writing,... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
16671b417f48dcc76f8dcaee110f24cb09751b07 | 55c552b03a07dcfa2d621b198aa8664d6ba76b9a | /Algorithm/BOJ/1978_์์ ์ฐพ๊ธฐ_s4/1978.py | a9a8690a4c0cf62722c03a5c4d7fcfb327f20dd9 | [] | no_license | LastCow9000/Algorithms | 5874f1523202c10864bdd8bb26960953e80bb5c0 | 738d7e1b37f95c6a1b88c99eaf2bc663b5f1cf71 | refs/heads/master | 2023-08-31T12:18:45.533380 | 2021-11-07T13:24:32 | 2021-11-07T13:24:32 | 338,107,899 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # boj 1978 ์์ ์ฐพ๊ธฐ s4
# noj.am/1978
_ = int(input())
nums = set(map(int, input().split()))
prime = set()
maxVal = max(nums)
flag = [False, False] + [True] * (maxVal - 1)
# ์๋ผํ ์คํ
๋ค์ค์ ์ฒด
for num in range(2, maxVal + 1):
if flag[num]:
prime.add(num)
for i in range(num, maxVal + 1, num):
flag[... | [
"sys19912002@hanmail.net"
] | sys19912002@hanmail.net |
c28e4ff9798c9464f1c80ffe5092a92edf90ac21 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/vg2.py | 8496834eac52e08550918507fbdb52bea008e7c0 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
491a2a156e31ae326ae3e56612137972ec502256 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200609191827.py | 999f76752823847d747af9fec5c9e12b60e5d271 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import json
def Strings(str):
# dictionary--> key value pairs
values = {}
newArray = []
keys = []
for i in str:
newArray.append(i.split(":"))
for j in range(0,len(newArray)):
key = newArray[j][0]
if newArray[j][0] in values:
values[j][0] += in... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c75d86d4ec348f6c5abab2b1a1dfdd452c313c09 | b378782e071d09f7da943879ef9e9b907c177fcc | /apps/leads/views.py | 368e92a77497b7d29a65a5b07f730ced99cfd3b0 | [] | no_license | alex1the1great/dj-crm | e9d19c98c6c3c180b831968857410b3f790bf33a | 0f61b13e38f311e4f18a972fbff5aad73858b91a | refs/heads/main | 2023-05-31T07:39:08.926608 | 2021-06-22T05:59:41 | 2021-06-22T05:59:41 | 378,391,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | from django.core.mail import send_mail
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views import generic
from django.urls import reverse
from .models import Lead
from .forms import LeadForm
class LeadListView(LoginRequiredMixin, generic.ListView):
template_name = 'leads/lead_list.html'
... | [
"asimshrestha608@gmail.com"
] | asimshrestha608@gmail.com |
3c6636b0b14c75715f3f74ddc51134a0ce93fc5d | 5a1e1756025bacae88b619d388ebf61b330001ab | /1.Class/Language_Python-master/Language_Python-master/LC29_4_FunctionClosureExample.py | 3dc74e55c9d83ccf3befbb6cada9b564e7e64b3b | [] | no_license | reshmaladi/Python | d1953497703aa15e163cd8ac27be23e3e5c3e947 | 8e9092af63476fef35d221e20acf418983957e53 | refs/heads/master | 2021-10-15T00:55:08.136039 | 2021-10-01T14:32:16 | 2021-10-01T14:32:16 | 165,836,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def addout(num):
def addin(numb):
return num+numb
return addin
def main():
add10 = addout(10)
add100 = addout(100)
print(type(add10))
print(type(add100))
print(add10(90))
print(add100(90))
if __name__=="__main__":
main() | [
"reshma.ladi@gmail.com"
] | reshma.ladi@gmail.com |
a252a4091fab3bca399f8bf5f86f89c582e8118f | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /scramble_string.py | 4a63ec6eb09bab4365ae51f5c003f00c392167c1 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 1,585 | py | '''
We can scramble a string s to get a string t using the following algorithm:
If the length of the string is 1, stop.
If the length of the string is > 1, do the following:
Split the string into two non-empty substrings at a random index, i.e., if the string is s, divide it to x and y where s = x + y.
Randomly decide... | [
"noreply@github.com"
] | erjan.noreply@github.com |
457c5f3a5f3af73288ab6631bf4d8a5df6e80e9a | 69096ca0d67b3d6809a2fe05af51341df62ebc60 | /tibiapy/builders/__init__.py | f020245c850533ae98f703cafbe30149b6b7e612 | [
"Apache-2.0"
] | permissive | Galarzaa90/tibia.py | 6f648aff8b6fbac7be4886435711f7ff08420402 | f8c145dd597c558398bac50e035711e34863b571 | refs/heads/main | 2023-08-17T15:50:31.354488 | 2023-08-17T14:00:07 | 2023-08-17T14:00:07 | 143,892,750 | 30 | 12 | Apache-2.0 | 2023-08-24T17:24:19 | 2018-08-07T15:25:23 | Python | UTF-8 | Python | false | false | 509 | py | from tibiapy.builders.bazaar import *
from tibiapy.builders.character import *
from tibiapy.builders.creature import *
from tibiapy.builders.event import *
from tibiapy.builders.forum import *
from tibiapy.builders.guild import *
from tibiapy.builders.highscores import *
from tibiapy.builders.house import *
from tibiap... | [
"allan.galarza@gmail.com"
] | allan.galarza@gmail.com |
836d62c59a86f5bb42594db62ed3ced82942e2e2 | c65b9c78142c8497a3bd8b450e36519261f5ee97 | /10-17/1182.py | 133c0b845800066abb7a26ae12241e6eb646dc6f | [] | no_license | yonghyun98/yonghyun_backjoon | 4291fe39e573cbdc415a6c77ca8a6f8696f844c7 | 376d9da734f967e56191086f46635cd4dedb89b9 | refs/heads/master | 2022-12-29T18:24:37.902835 | 2020-10-24T02:26:48 | 2020-10-24T02:26:48 | 306,790,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import sys
count = 0
def calc(sum, i):
global count
if N == i:
return
if sum + data[i] == S:
count += 1
calc(sum+data[i],[i+1])
calc(sum, i+1)
f = sys.stdin # ์ฝ๋ฉ๋ฐ์คํธ ์ฉ๋
#f = open('data.txt', 'r') #PC์ฉ ํ
์คํธ์ฉ๋
N, S = map(int, f.readline().split())
data = list(map(int, f.readline().spli... | [
"you@example.com"
] | you@example.com |
e2f76438821b2b5c87eb19631de8e6ceb0d506c7 | 5928747f4c4f848d959d4daf61a3f1f3078ff0c0 | /text26.py | fcb0e14cd26d7668fc963d652c0078f5fd67606e | [] | no_license | wangzeming666/Class-Exercise-For-Learning | 3227a1231325f21ca195315cccfb5d8f022d5e2d | d7b69774fe94c73b604c154d057432e3f02fe12e | refs/heads/master | 2021-01-22T00:51:34.274101 | 2017-09-02T12:27:35 | 2017-09-02T12:27:35 | 102,194,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | list1 = []
num = input("Please enter a number of list:")
while num:
list1.append(num)
num = input("Please enter a number of list(enter a Enter to quit):")
list2 = set()
numSet = set()
for i in list1:
if i in list2:
pass
else:
list2.add(i)
print(list2)
| [
"wangzeming666@icloud.com"
] | wangzeming666@icloud.com |
16878e4a944f66047ad93b4d67a8aedb0c28e901 | 8450d62c7f98a67ce347c198bad2a2754c3fcf53 | /src/top_sites_check/backend.py | 7d6bd98a7b93f7d66ba3f64513dcc6f5cc08fca3 | [
"Apache-2.0"
] | permissive | deeso/top-sites-check | 27933db74982d564bf362a2cb9acce5fb094b673 | f128c68476a6366f4155a05140fda04ec60e0204 | refs/heads/master | 2021-05-13T20:14:03.777833 | 2018-01-13T00:09:13 | 2018-01-13T00:09:17 | 116,907,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,376 | py | from werkzeug.serving import make_server
from flask import Flask
from threading import Thread
import os
import toml
import json
from .interface import ServiceInterface
from .logger import debug
from .consts import DATA_SOURCES, NAME
HOST = '127.0.0.1'
PORT = 9006
class FlaskServer(object):
def __init__(self, ... | [
"adam.pridgen@thecoverofnight.com"
] | adam.pridgen@thecoverofnight.com |
06ec26081929bacf8a4a3e63c4652e897d99eb91 | 34f94a194ed7f704d6d7b9ea9537452c17674379 | /list3.py | 87713425bb8bc4727e59d489dfb0c83640c05110 | [] | no_license | hasnatosman/python_telusko | 8a9e5b1cfdd8a04e0e167ecdbf410e1161de6f38 | 2b4e39e1463a16f68a4b361dc82add6be3b58056 | refs/heads/main | 2023-03-04T07:07:14.713224 | 2021-02-14T06:41:14 | 2021-02-14T06:41:14 | 331,800,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
print(len(fruits)) | [
"noreply@github.com"
] | hasnatosman.noreply@github.com |
7d6158bfcbb4fb5ef3ed3852ba575488d1243446 | 356922f38a460a929ed71b5a8081025dffadfdb0 | /A. Presents.py | f614e49f2d088b1605393d927d29732349986a70 | [] | no_license | AdamBures/CODEFORCES-PYTHON | 45b309f87c559a5309db74aed89dad609e9b5b44 | f615e6c39dc0d98367c63cb46dff56efbe9e247d | refs/heads/master | 2022-04-26T01:39:10.423169 | 2020-04-27T16:55:36 | 2020-04-27T16:55:36 | 259,395,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | n = int(input())
l = list(map(int,input().split()))
lt = [0]*n
for i in range(n):
lt[l[i]-1] = i+1
for i in lt:
print(i)
| [
"noreply@github.com"
] | AdamBures.noreply@github.com |
56369a9565b1b8ffec70973f7f938787307d0046 | 348ea2fb7362239efa67da3998ed2c55698bff2d | /GMSB-ANALYSIS-TOOLS/SetLimits/UALimit/LimitSetting/tprime/tprime_plots.py | b1885b2ca35ce645fc9dbf35dbd9a3ba3510b9eb | [] | no_license | TENorbert/SUSY-TOOLS | 22055436176b266206ac398d254ea12211bdf067 | 454cba32f4177217e28eab7ea7997989493e3344 | refs/heads/master | 2021-01-23T11:01:22.805569 | 2015-07-16T06:25:45 | 2015-07-16T06:25:45 | 22,824,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124,705 | py | #!/usr/bin/env python
################################################
#
# This script plots limits for the t't'bar
# semileptonic analysis with CMS
#
# - input data from ASCII files
#
# 1,2,3 - nominal limit plots
# 33 - POWHEG syst for the AN
# 26,24 - expected syst plots for AN
#
# Gena Kukartsev, 2011
#
#####... | [
"delsubdue@gmail.com"
] | delsubdue@gmail.com |
91394d0672b3f83f7469b9f47dfcbb07b6f42e04 | b70f00927b9ed862252ad7345ca39f9d44ae87a2 | /exec -l /bin/bash/google-cloud-sdk/lib/googlecloudsdk/calliope/concepts/deps.py | e5183d30e4e2e272324948bbb97e9394bd00716a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sparramore/Art-Roulette | 7654dedad6e9423dfc31bd0f807570b07a17a8fc | c897c9ec66c27ccab16f1a12213d09fe982d4a95 | refs/heads/master | 2021-07-06T13:04:22.141681 | 2018-07-12T23:30:13 | 2018-07-12T23:30:13 | 139,061,941 | 0 | 2 | null | 2020-07-25T11:32:11 | 2018-06-28T19:49:24 | Python | UTF-8 | Python | false | false | 11,395 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"djinnie24@gmail.com"
] | djinnie24@gmail.com |
fb14d320d16e960dfff04f22292e063fb440cc2e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/idolat.py | cde531460f2f854a8f282f1953f4a3e2e905b172 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 277 | py | ii = [('CookGHP3.py', 1), ('MarrFDI3.py', 3), ('CoolWHM.py', 6), ('LandWPA.py', 1), ('WadeJEB.py', 1), ('NewmJLP.py', 1), ('MedwTAI2.py', 1), ('LyttELD3.py', 1), ('RoscTTI.py', 1), ('AinsWRR2.py', 1), ('FitzRNS2.py', 1), ('BowrJMM3.py', 2), ('TaylIF.py', 4), ('KeigTSS.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
c2c1e41d0fb5144ff4039f48f23091fa1f04f13b | d0d3697b723e11c33837b8de2d572a44b84a26db | /get_positions_for_times_in_file.py | 33a252483bf50938c4ca4a3293f430ca76fd2bc0 | [
"MIT"
] | permissive | Swiss-Polar-Institute/science-data-utils | dc77e86a1cca0d7642daf97fa3e9045919efd867 | 6a85570ee586fa1ba1644ba2b1c9dea3a5257eae | refs/heads/master | 2022-08-09T10:02:13.678635 | 2021-11-29T20:03:47 | 2021-12-02T07:39:29 | 145,117,181 | 0 | 0 | MIT | 2022-06-21T21:37:22 | 2018-08-17T12:20:58 | Python | UTF-8 | Python | false | false | 2,167 | py | import argparse
import csv
from datetime_to_position import DatetimeToPosition
from datetime import datetime
def text_to_datetime(dt):
"""Convert text date and time to datetime format then put in ISO8601 format."""
converted = datetime.strptime(dt, "%Y-%m-%d %H:%M:%S")
reformat_iso = datetime.strftime(c... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
e52507bfc288559510e5e82882ef86a108ba7716 | 26013c9c591e14882dc2e6fea5425d1072ad185e | /library_management_system/app/common/observer.py | 759859dd98ad7fa28542654e93988ed70cf3ec35 | [] | no_license | EricMontague/Object-Oriented-Design-in-Python | 9c7c97af244b6608eb4f7b5e2812179d9063fc4a | 3f1fd1df118903b7abce5e7a338233512a4b542f | refs/heads/master | 2023-06-19T05:36:19.325261 | 2021-07-20T02:28:31 | 2021-07-20T02:28:31 | 298,938,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from abc import ABC, abstractmethod
class IObserver(ABC):
@abstractmethod
def receive_notification(self, notification):
pass
| [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
783e962493981276ed398b373d41fababa385b70 | ddc5b8760d761484bfec6ca5000110a4d49cdbe5 | /experiments/exploratory/2020-11-12-context-sig/analysis/aggregate.py | d92aed2b5011772abc21770793c74b767ee9a09f | [
"MIT"
] | permissive | amlalejini/Tag-based-Genetic-Regulation-for-LinearGP | 4c0776e5f360dee83c8c277d0e8a36de36c75629 | 270e3cb97dce9021f20e0b3e44817d68bdd38b8e | refs/heads/master | 2023-04-10T01:15:21.198772 | 2021-08-19T02:29:46 | 2021-08-19T02:29:46 | 268,869,271 | 2 | 2 | MIT | 2021-08-13T16:26:27 | 2020-06-02T17:44:46 | HTML | UTF-8 | Python | false | false | 8,783 | py | '''
Script: aggMaxFit.py
For each run, grab the maximum fitness organism at end of run.
'''
import argparse, os, copy, errno, csv, re, sys
import json
csv.field_size_limit(sys.maxsize)
run_dir_identifier = "RUN_" # all legit run directories will have this substring in their name
config_exclude = {
"STOP_ON_SOL... | [
"amlalejini@gmail.com"
] | amlalejini@gmail.com |
43fae631b77adcfbd35e0544b12571ae46fc976f | 889a421b5def64bc4da81d2feea66e48b6644ca3 | /3. Python_course/H.Following_car/1.Tracking/Tracking.py | 5848d63894f1166588816ecd72ece156c1c5e83b | [] | no_license | YahboomTechnology/Building-bit-starter-kit | ce466a944f2667393b75f33b2cbbcd3d95268fe9 | bb9588cfa15f261b56580266267ab8b05231f6c2 | refs/heads/master | 2021-08-03T19:38:35.761745 | 2021-07-19T10:20:32 | 2021-07-19T10:20:32 | 206,061,346 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # -*- coding: utf-8-*-# Encoding cookie added by Mu Editor
from microbit import display, Image
import buildingbit
display.show(Image.HAPPY)
while True:
sensorL = buildingbit.traking_sensor_L()
sensorR = buildingbit.traking_sensor_R()
if sensorL is False and sensorR is False:
buildingbit.car_run(10... | [
"2448532184@qq.com"
] | 2448532184@qq.com |
5ce0680a227c3211baf3d3b08ccbed50b7dec2c2 | 0c61ad063424ffd3d507c44a82db3ef74598f10f | /trunk/facebook.py | f4bab437b4f6ee4ec69614f6ca6a194d4a8faa90 | [] | no_license | BGCX067/facebook-tray-client-svn-to-git | 87dfaf8b77a1d4245ea0ee83162bbdeb892d8e8f | bdfcc03dfff4a78bd0f62a16275c9ca2f494483e | refs/heads/master | 2016-09-01T08:54:16.616984 | 2015-12-28T14:06:20 | 2015-12-28T14:06:20 | 48,834,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,815 | py | #!/usr/bin/env python
#Facebook Tray Application - A simple gnome applet for displaying/accessing facebook notifications
#Copyright (C) 2009 Matt Katzenberger (mattkatzen+facebook@gmail.com)
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as ... | [
"you@example.com"
] | you@example.com |
ac4897482888f459aab59153425d11e036318a59 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/noodl.py | bdf3c8635a1bc7b3cc05291e1c054f202eceda2c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 43 | py | ii = [('BailJD2.py', 2), ('BailJD3.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
832cf7d4d8ef00b4dcc98cece448354f387821a0 | 0a0205b391ab04cbb921fbfa08db27d289fc9bf4 | /trm/subs/deriv/__init__.py | 28619d19b7315a040c54db52d88e9c8c28c1866b | [] | no_license | trmrsh/trm-subs | 12870c2fcccf586cf59860b0a86b7f93e5947635 | 3efc7fec6e47cd8491781cfd1200ef19f149ac0d | refs/heads/master | 2022-05-05T16:22:00.257501 | 2022-03-03T19:53:33 | 2022-03-03T19:53:33 | 11,351,275 | 0 | 1 | null | 2015-10-04T17:43:12 | 2013-07-11T19:41:16 | Python | UTF-8 | Python | false | false | 1,511 | py | """
Pure Python module to parse formulae
Needs much more work.
"""
class Formula(object):
def __init__(self, form):
"""
Initialises a formula from an input string.
"""
pass
class Fnode(object):
"""
Defines a node used to represent formulae.
opvarnum -- operator... | [
"t.r.marsh@warwick.ac.uk"
] | t.r.marsh@warwick.ac.uk |
fb1062d5d998a406064ae1b3dd2030e7b660a1f3 | fcc3597b373ab790f18b142d004f131555744bec | /py/hash_list.py | 8b96bcf62fa067b603d79e7922c8d42933a636e4 | [] | no_license | brittainhard/exp | 8a7049c7472634bbf04ee2cc2adf01f29fe57dae | f81cfc3ddd35bc3f1f41708fed3ef0f110d978d7 | refs/heads/master | 2020-04-16T05:05:52.300975 | 2019-01-30T22:05:26 | 2019-01-30T22:05:26 | 165,292,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import pytest
class HashList(list):
def __hash__(self):
return 1
@pytest.fixture
def hash_list():
return HashList([1, 2, 3])
def test_hash(hash_list):
assert hash(hash_list) == 1
| [
"brittainhard@gmail.com"
] | brittainhard@gmail.com |
1637059e92799c65f00512d7fc2bf63f669012e6 | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/messenger/storage/usersstorage.py | 365b2d328f61300bdd9892db17e6d847ea3c72c7 | [] | 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 | 3,762 | py | # 2014.10.18 14:44:23 Central European Daylight Time
#Embedded file name: scripts/client/messenger/storage/UsersStorage.py
from collections import deque
from debug_utils import LOG_ERROR
from messenger.m_constants import USER_GUI_TYPE, BREAKERS_MAX_LENGTH
class UsersStorage(object):
__slots__ = ('__contacts... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
6a46f3a0b3a4976c80adcc7191f5fed82e62c5a1 | cd21f2f57d994a5bc5c947f3c433baa1033f8cb5 | /malabarsite/urls.py | fb196e23ac12beab28c96a07897349f5f37ba4e6 | [] | no_license | AshwiniChandran/Malabarsite | b0e3588069a50d368738747e8aa168c8be3313d8 | 83d58457653aa29790efe6eb7acdb9faf6fd1088 | refs/heads/master | 2021-01-20T19:09:17.416203 | 2016-07-10T12:34:07 | 2016-07-10T12:34:07 | 62,986,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from cart.views import HomePageView
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'malabarsite.views.home', name='home'),
# url(r'^malaba... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
66776f6883444d40194a0aaf323c872a648cc556 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/์งํฉ_20200628161533.py | dc69cb54593a6e59691ccb616bf4a5be8c6e6679 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # ์งํฉ (set)
# ์ค๋ณต ์๋จ, ์์ ์์
my_set = {1, 2, 3, 3, 3}
print(my_set)
java = {"์ ์ฌ์", "๊นํํธ", "์์ธํ"}
python = set(["์ ์ฌ์", "๋ฐ๋ช
์"])
# ๊ต์งํฉ (java ์ python ์ ๋ชจ๋ ํ ์ ์๋ ๊ฐ๋ฐ์)
print(java & python)
print(java.in) | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
34b1d94febb46a6fdafb2a3c458b2b3645d5f72c | 92b3ef25a80ba58d0fcfa288001a7455106089a1 | /tests/time_out_assert.py | 33ea1c267545e2d6f43c69d0dfa563adbabe303e | [
"Apache-2.0"
] | permissive | mikando/salvia-blockchain | bb97b7b52277c683c48fcad9a4697ea89e514c47 | 02181d0b5a063374f01eea951570dbc661bddc34 | refs/heads/main | 2023-08-26T15:50:48.931823 | 2021-11-07T21:57:27 | 2021-11-07T21:57:27 | 408,143,294 | 0 | 0 | Apache-2.0 | 2021-09-19T14:32:22 | 2021-09-19T14:04:37 | Python | UTF-8 | Python | false | false | 1,767 | py | import asyncio
import logging
import time
from typing import Callable
from salvia.protocols.protocol_message_types import ProtocolMessageTypes
log = logging.getLogger(__name__)
async def time_out_assert_custom_interval(timeout: int, interval, function, value=True, *args, **kwargs):
start = time.time()
while... | [
"contact@salvianetwork.net"
] | contact@salvianetwork.net |
93049ba1b3be519d51f36d71a2644c5111302d06 | f3c6fa14f0b385c46da5bef88057e6eaa3c35723 | /turbulenz_local/models/apiv1/userdata.py | 15aa47c9a757bdf53a98ad82c0c441d5b035a2de | [
"MIT"
] | permissive | mcanthony/turbulenz_local | 09f476ef95d5e6e4afcc21a7419ae515808b3274 | 3c96c1229514dcd4893b7055599f55ed185db95a | refs/heads/master | 2021-01-21T17:16:54.671904 | 2015-08-26T13:27:35 | 2015-08-26T13:27:35 | 44,890,800 | 1 | 0 | null | 2015-10-25T00:42:19 | 2015-10-25T00:42:18 | null | UTF-8 | Python | false | false | 4,057 | py | # Copyright (c) 2011-2014 Turbulenz Limited
import logging
import os
# pylint: disable=F0401
from pylons import config
# pylint: enable=F0401
from os.path import join as join_path
from turbulenz_local.tools import get_absolute_path, create_dir
LOG = logging.getLogger(__name__)
class UserDataPathError(Exception):... | [
"blakemaltby@turbulenz.biz"
] | blakemaltby@turbulenz.biz |
92d50ad915d4a101a7bfceac732790c79f8b8804 | 2a171178942a19afe9891c2425dce208ae04348b | /kubernetes/test/test_unversioned_api_group_list.py | 9ba6831b1e47429e2a7640f9c53b011d8ff664ce | [
"Apache-2.0"
] | permissive | ouccema/client-python | ac3f1dee1c5ad8d82f15aeecb87a2f5f219ca4f4 | d7f33ec53e302e66674df581904a3c5b1fcf3945 | refs/heads/master | 2021-01-12T03:17:54.274888 | 2017-01-03T22:13:14 | 2017-01-03T22:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.0-snapshot
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"mehdy@google.com"
] | mehdy@google.com |
db23b4f60176e6b0fef1dd3905991c666f503494 | 612325535126eaddebc230d8c27af095c8e5cc2f | /depot_tools/external_bin/gsutil/gsutil_4.15/gsutil/third_party/boto/tests/unit/sns/test_connection.py | 5bcbd23ab73a350165265652f991a3e5e11b81db | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,471 | py | #!/usr/bin/env python
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# 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
# wi... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
84390a02b0717c484d369623822ee6a89ff77c2e | 80bd3d43e99f842587be42dcfad999782a1142b3 | /blogapp/migrations/0001_initial.py | 735cc3ee20d24fd92ae95f030823f5e96ad0b880 | [] | no_license | grydinywka/simple_blog | e2733949147caac37634bf3f2850ef3569874b90 | b620be04df3057bfbfe3456ef48fdd0909fb4ffe | refs/heads/master | 2020-09-14T19:22:51.325508 | 2016-09-11T20:15:39 | 2016-09-11T20:15:39 | 67,857,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-10 07:22
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"grydinywka@gmail.com"
] | grydinywka@gmail.com |
a89cb9a0fbc87b66014b440a5f617838247f1086 | 52b2e3470cd4b91975b2e1caed8d1c93c20e5d05 | /examples/pyqt4/toggle.py | 4a8cec07a54e9e5c67e89da5982e4496c999dd7a | [] | no_license | xprime480/projects | c2f9a82bbe91e00859568dc27ae17c3b5dd873e3 | 3c5eb2d53bd7fa198edbe27d842ee5b5ff56e226 | refs/heads/master | 2020-04-27T03:51:29.456979 | 2019-04-12T14:34:39 | 2019-04-12T14:34:39 | 174,037,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
ZetCode PyQt4 tutorial
In this example, we create three toggle buttons.
They will control the background color of a
QtGui.QFrame.
author: Jan Bodnar
website: zetcode.com
last edited: September 2011
"""
import sys
from PyQt4 import QtGui
class Example(QtGui.QWidget):
... | [
"mi.davis@sap.com"
] | mi.davis@sap.com |
8b7a53359bf0cab65ba4325509767f63e5b55ee8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03436/s264871013.py | a3d6eb1b053d22ace4055c14bad944af1a8b5693 | [] | 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 | 651 | py | from collections import deque
n,m = map(int,input().split())
white = 0
maze = []
for _ in range(n):
row = list(input())
white += row.count(".")
maze.append(row)
steps = [ [-1]*m for _ in range(n) ]
steps[0][0] = 0
q = deque([(0,0)])
while q:
r,c = q.popleft()
for x,y in [(1,0), (0,1), (-1,0), (0,-1)]:
n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b672ceda6454e4a425deb26523c8fbe8de4297c0 | 1845f0d71f3ed4063bbb5417ca6ae1555a16dd0a | /rb_analyzers/rbdowngems.py | 7fb2f646b027c113561fedb5d0c6da7967f10263 | [
"MIT"
] | permissive | pombredanne/packagedna | d45ef0b012d6dd43adf2265c36a9c040c0efae2d | 3b3a18c95d651d85095438de5e9084cc21567865 | refs/heads/master | 2023-08-03T00:07:49.564481 | 2021-08-06T20:09:03 | 2021-08-06T20:09:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | #!/usr/bin/env python3
# Download Gems Library
# %%%%%%%%%%% Libraries %%%%%%%%%%%#
import os
import json
import hashlib
import urllib.request
from tqdm import tqdm
from auxiliar_functions.globals import ruby_pkgs
from auxiliar_functions.messages import hashes_differences
# %%%%%%%%%%% Functions %%%%%%%%%%%#
def... | [
"jose.torres@11paths.com"
] | jose.torres@11paths.com |
b42c7ed06c67aad806fb867e934bf6e38e488e51 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v6/proto/enums/criterion_category_locale_availability_mode_pb2.py | 77c6ac8b0e7a9347edf580a62c6c2f94600d75ed | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 5,580 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v6/proto/enums/criterion_category_locale_availability_mode.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
fb113871bd69bac4a1e4c54c3eee175c67fb89f7 | a9c759baa5e815f3db10008f0c6214a642735f37 | /src/greenmine/tests/wiki.py | 54cfe72501f71159655a12f5ccd856b57e4a06dc | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | jespino/Green-Mine | 0892e25363c664195a5d5c2c136b04bb819f4a73 | 448c8f865eca626a658f5a28a8d78d001033f3d3 | refs/heads/master | 2020-04-07T12:48:42.691293 | 2012-06-29T11:38:55 | 2012-06-29T11:38:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,290 | py | # -*- coding: utf-8 -*-
from django.test import TestCase
from django.core import mail
from django.core.urlresolvers import reverse
import json
from django.contrib.auth.models import User
from ..models import *
class WikiRelatedTests(TestCase):
def setUp(self):
self.user1 = User.objects.create(
... | [
"niwi@niwi.be"
] | niwi@niwi.be |
b5526d250f7b8673b7c3aeec8268216f4255a7bb | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/surface/topic/configurations.py | 07cd057f8c1dda930e38bfe2fcfd8c811d08f2d6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 3,633 | py | # Copyright 2015 Google Inc. All Rights Reserved.
"""Gcloud named configuration files supplementary help."""
from googlecloudsdk.calliope import base
class TestingArgFiles(base.Command):
"""Supplementary help for named configurations."""
def Run(self, args):
self.cli.Execute(args.command_path[1:] + ['--doc... | [
"joe@longreen.io"
] | joe@longreen.io |
8807cc268252dc9c47b641671faec4511ed33961 | 9a3e0236fbcc8a61f0d2146adb2d7596a1eec884 | /rescate2.py | 4aca5142bbd6fef54bcfa9583d1138282b3d1cb5 | [] | no_license | stefifm/Guia11 | a0b42a033ee579bca8ea3f8f9a7a2c8c64f58ff9 | e18ae76db5918b023ccfe657b75d923b8c46c6f5 | refs/heads/master | 2022-07-29T13:42:28.923127 | 2020-06-30T16:04:06 | 2020-06-30T16:04:06 | 276,147,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | # 6. Parcial 2 [1k03] 2018
# Se pide desarrollar un programa en Python que permita cargar por teclado
# un texto completo en una variable de tipo cadena de caracteres.
#
# El texto finaliza con โ.โ y se supone que el usuario cargarรก el punto para
# indicar el final del texto, y que cada palabra de ese texto estรก separ... | [
"bruerastefania@gmail.com"
] | bruerastefania@gmail.com |
971424377f3642411ab064d16dafa60653781672 | 73b3cf353c78ebae711620890ef60de36fc2e1e3 | /torchtrainer/meters/loss.py | 70d4ff387b0dc75cfdc441be74b1bffdf953f402 | [
"MIT"
] | permissive | nirvguy/torchtrainer | b7beef610814421145f6b75d8272ded868a0e521 | e0be2e2f9264836dc98ccedee9528b01b3597997 | refs/heads/master | 2021-07-09T02:47:57.211925 | 2020-07-02T03:38:59 | 2020-07-02T03:38:59 | 128,957,193 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import torch
from torch.autograd import Variable
from .averager import Averager
class LossMeter(Averager):
DEFAULT_MODE = 'min'
def __init__(self, criterion):
super(Averager, self).__init__()
self.criterion = criterion
def measure(self, x, y):
val = self.criterion(Variable(x), Vari... | [
"nirvguy@gmail.com"
] | nirvguy@gmail.com |
e37851ad35505862a887d93718cac5dd6a650975 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /man_and_next_day/public_life_or_way/look_early_thing/life.py | 5119f6c7e9dd049a5515ddb844588d59a9774398 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
#! /usr/bin/env python
def long_child_and_important_point(str_arg):
part(str_arg)
print('man')
def part(str_arg):
print(str_arg)
if __name__ == '__main__':
long_child_and_important_point('high_woman_and_government')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
7abaf6c95bb640d4af8194c5316630384f2fb359 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/jhlbhi001/question1.py | 67f151880b2217294f5a3b43014e18134b8b28f5 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py |
#create an empty list
strings=[]
#get a list of names
string=input("Enter strings (end with DONE):\n")
while string !="DONE":
strings.append(string)
string=input("")
x=0
#arrange names to be right-aligned
for string in strings:
y=len(string)
if y>x:
x=y
#print out string ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
fd2ad240f5e7c4574fd8f56795ec59c6fdd32baf | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/ArInvoiceReturnOrderOpenApiResponse.py | 27f6a54cbe9c857f063496abc87202491fbbc66d | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 11,255 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.ArInvoiceReturnOrderDetailOpenApiResponse import ArInvoiceReturnOrderDetailOpenApiResponse
class ArInvoiceReturnOrderOpenApiResponse(object):
def __init__(self):
self... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
7caac2725f5eae4b6c437ec9fc031629ce9b7f25 | 375e5bca82843647941068bd7634cf7adf2015ca | /src/trw/hparams/interpret_params.py | 35033de85ccaa6e5bb8ba7f7ab6a3b3f119d9e66 | [
"MIT"
] | permissive | civodlu/trw | cd57e7bded7fdb0a9d623ed9cd50645fab96583b | 11c59dea0072d940b036166be22b392bb9e3b066 | refs/heads/master | 2023-02-08T09:56:39.203340 | 2023-02-07T14:22:16 | 2023-02-07T14:22:16 | 195,147,670 | 12 | 2 | MIT | 2020-10-19T15:24:11 | 2019-07-04T01:19:31 | Python | UTF-8 | Python | false | false | 13,745 | py | from typing import List, Callable, Dict
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.ensemble import ExtraTreesRegressor, RandomForestRegressor
from sklearn.preprocessing import LabelEncoder
import numpy as np
import os
from .store import RunResult, Metrics
from ..train import utilities
from ..trai... | [
"civodlu@gmail.com"
] | civodlu@gmail.com |
86d2acd4b955579fea6728a574e04ea60326f276 | 8b001b50394cd4f63105cf5ed6639456f7084b16 | /tests/tests.py | d13de4d627a98b744d2d43acc67562a2c3be9aba | [
"BSD-2-Clause-Views"
] | permissive | mireq/django-assets-manager | 672a82ffe654b02593cd6c62d935b886f71a4ad7 | 039c52c3a10dc35eab900ad80229220a9fdd2f43 | refs/heads/master | 2023-05-13T15:39:58.587461 | 2023-05-13T05:00:22 | 2023-05-13T05:00:22 | 34,747,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,202 | py | # -*- coding: utf-8 -*-
import os
import shutil
from datetime import datetime
from pathlib import Path
import httpretty
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.management import call_command
from django.template.loader import get_template
from django.te... | [
"miroslav.bendik@gmail.com"
] | miroslav.bendik@gmail.com |
0d1c69d274982607919791678042f90998623e16 | 9ce3385fb9829b70f191ea9478ebfe2dd4971c80 | /render/glsl/__init__.py | 91ad4f7d0d2dbb125a6b261a59fba11fda2260f5 | [] | no_license | zalavariandris/editor | f3ffce9ae2bbd70fd9e9ce1b9ce8fc7bb23468a3 | 35b8941af12da58bb190967c28a78c91d5bb43dc | refs/heads/master | 2022-12-18T10:53:24.274321 | 2020-10-01T16:58:17 | 2020-10-01T16:58:17 | 283,721,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | from pathlib import Path
import logging
import functools
@functools.lru_cache(maxsize=128)
def read(*args):
logging.debug("read {}".format(args))
glsl_folder = Path(__file__).parent
if len(args) == 1:
shader = args[0]
vertex = Path(glsl_folder, shader+'.vs').read_text()
fragment = Path(glsl_folder, shader+'.f... | [
"zalavariandris@gmail.com"
] | zalavariandris@gmail.com |
e1459812290340f8f1c4a4a2e508b29b25bf6c36 | 5c4a6130f7b09a652f4cd8feb2132b174cf00f25 | /example1.py | d18994c5c373b3c6fdbff36091fd7c8efad6ce08 | [] | no_license | xiaogaogaoxiao/Machine-Learning-Algorithm-for-Vehicular-Communication-Networks | 3ebbb023e6b25dafbbd2cdf4f412c83c0c6ac0b6 | c9b8b0f5f4f57ae6506c80956e48bad3ac9457ad | refs/heads/main | 2023-06-02T19:58:17.197528 | 2021-06-21T00:33:44 | 2021-06-21T00:33:44 | 445,976,561 | 1 | 0 | null | 2022-01-09T02:38:07 | 2022-01-09T02:38:07 | null | UTF-8 | Python | false | false | 2,099 | py | '''This is a simple example to show how a simualtion can be created within 50 lines.
'''
from sim.simulation import World
from sim.loc import XY
from sim.scenario import BaseScenario
from node.node import BaseNode
from node.mobility import Stationary, StaticPath
from comm.transceiver import Transceiver
from comm.channe... | [
"noreply@github.com"
] | xiaogaogaoxiao.noreply@github.com |
0c36fc385e84541789df7ea51075cd5734a42a2d | 949d35e30f0e027a5b9324330d65989524c8bdc3 | /61_EmployeeImportance(BFS).py | 9d9843cf5f1a27b9c7b6cb9248aa80aef2196e53 | [] | no_license | PrathushaKoouri/BFS-2 | 27b9765a3b32c2c55fbd6a11a769e990f40491dc | 74ff99d1f360c66f42606144afbd53afa198f651 | refs/heads/master | 2020-09-05T05:36:15.286474 | 2019-11-08T17:58:14 | 2019-11-08T17:58:14 | 219,999,388 | 0 | 0 | null | 2019-11-06T13:09:02 | 2019-11-06T13:09:01 | null | UTF-8 | Python | false | false | 1,322 | py | # Passed on leetcode(690)
# Time - O(N), space - O(N)
# BFS Approach, add the root to queue first and remove root and add its subordinates level by level.
"""
# Employee info
class Employee:
def __init__(self, id, importance, subordinates):
# It's the unique id of each node.
# unique id of t... | [
"noreply@github.com"
] | PrathushaKoouri.noreply@github.com |
ce259aee4b043865110af901cc55c41dbf583af5 | daeae5153265e10d616a838834c56c4a9371444f | /authuser/views.py | bd2f0a17d5b687e0551b8521e10bd37b1836e005 | [] | no_license | EH-GD-MOHIT21/CTTT | 02391381ee8aed9e99c620e1293550a47375a8fa | 035cf4ec35a1d69563a413580390542c012e56e9 | refs/heads/main | 2023-09-02T06:03:08.998129 | 2021-10-17T19:32:49 | 2021-10-17T19:32:49 | 417,504,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,495 | py | from django.http.response import Http404
from rest_framework.response import Response
from rest_framework.status import *
from rest_framework.views import APIView
from .app_utils.data_handler import *
from .app_utils.verification import Fetch_cache, set_cache,GenerateOTP,GenerateSlug
from .app_utils.mailer import Subje... | [
"experimentallyf@gmail.com"
] | experimentallyf@gmail.com |
89dd572936db553605bf7b30f4184a49ac97b7e3 | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /w3resource/List_/Q046.py | eecf239b99b9f57376753446bf728214f088c294 | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 166 | py | # -*- coding: UTF-8 -*-
# Q046
# Created by JKChang
# Thu, 31/08/2017, 16:35
# Tag:
# Description: 46. Write a Python program to select the odd items of a list.
| [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
1f4ed269cc8223acf6a905895a6a5e12b995375d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_53/627.py | b14cc76cdb61bc07b9ba174b32f3f14353bb8a2d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
def open_fi(fi):
fi = open(fi)
T = int(fi.readline()[:-1])
newfi = open("A-large.out", "w")
for k in xrange(T):
N, K = map(int, fi.readline().split())
# a = bin(K)[2:]
# b = a[-N:]
# if "0" in b:
# sol = "OFF"
# else:
# sol = "ON"
#
## que du binair... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6d43a8348386e0de9a77aad4b3712e1d8929c0c1 | c50cf19707ecf44c8e15acf0e994d288fe4f01a7 | /server/migrations/0100_driver_ssn.py | 4c88162457b9cfd31232b654480e05061f73dc8a | [
"MIT"
] | permissive | JeremyParker/idlecars-backend | ee5981356c60161dee05c22e01e5c913e73083c0 | 819cce48e4679d61164b238b81dab0e4d51b8afa | refs/heads/master | 2021-03-16T04:29:43.287760 | 2018-03-03T23:16:02 | 2018-03-03T23:16:02 | 31,734,223 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('server', '0099_auto_20160420_1058'),
]
operations = [
migrations.AddField(
model_name='driver',
name... | [
"github@jeremyparker.org"
] | github@jeremyparker.org |
36b718b48840c5a4609c7f95858667a1f2d7f114 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11B/PROINQD11BUN.py | 911e7af2d8002998253bf6c05694ce28f2ee0c3a | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,195 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 9},
{ID: 'CUX', MIN: 0, MAX: 1},
{ID: 'NAD'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
7c2bfe743dedc502b7a9989b2083f35ddf4f4139 | d7cd51a7aaa9bd5a7c39409a39d1be1944ecb9c4 | /practice/amadon-master/poorly_coded_store/views.py | d9e132a377e65043f7241cc2bbd35e445e0961a3 | [] | no_license | Geneveroth/Coding_Dojo_Assignments | ae525e6d95e0f3fcf10b44a6734e8996b53ec7e1 | 9643845e237d5029de03dfe1ae2d43a49350ba22 | refs/heads/master | 2022-12-23T18:46:08.971696 | 2020-07-21T20:44:17 | 2020-07-21T20:44:17 | 251,153,510 | 0 | 0 | null | 2021-01-06T03:08:14 | 2020-03-29T23:10:09 | Python | UTF-8 | Python | false | false | 1,213 | py | from django.shortcuts import render
from .models import Order, Product
def index(request):
context = {
"all_products": Product.objects.all()
}
return render(request, "store/index.html", context)
def checkout(request):
quantity_from_form = int(request.POST["quantity"])
price_from_form = flo... | [
"black.samlh@gmail.com"
] | black.samlh@gmail.com |
554d121b856c1cc20acd4d9882eb33166c2581c9 | 64815f66f49aee1d33be5dff81ac530480993bab | /tensorly/tests/test_cp_tensor.py | 286a8875c82b61c4b5ecb1206d036ee3b1085bdf | [
"BSD-3-Clause"
] | permissive | Pandinosaurus/tensorly | 73af1d9f5a44c189a7b905ca79631b02316b8e47 | 7fbde50ec9978f99b449d113ed3dd15f81b10fd2 | refs/heads/master | 2021-06-21T06:51:25.333147 | 2021-01-02T23:33:47 | 2021-01-02T23:33:47 | 143,390,947 | 1 | 0 | NOASSERTION | 2021-01-03T02:46:15 | 2018-08-03T07:04:05 | Python | UTF-8 | Python | false | false | 9,338 | py | import numpy as np
import tensorly as tl
from ..tenalg import khatri_rao, mode_dot
from ..cp_tensor import (cp_to_tensor, cp_to_unfolded,
cp_to_vec, _validate_cp_tensor,
cp_normalize, CPTensor,
cp_mode_dot, unfolding_dot_khatri_... | [
"jean.kossaifi@gmail.com"
] | jean.kossaifi@gmail.com |
36e90fd848b78ee1aec034462131c2f0b1e97aa4 | f28591fab50d9b7a539c66b5a81fc91d1bc2ce64 | /py3/def/test/fs_move.py | 1ccb276de16a641045fe279a7bcb94be746097cf | [] | no_license | tnzw/tnzw.github.io | b8a5fe1f8479736bbf2b3594d511a1282939a3b3 | 6d95968db793cebcfa77cb49eecd987f821350db | refs/heads/master | 2023-04-21T14:22:49.849859 | 2023-03-31T15:55:01 | 2023-03-31T15:55:01 | 176,712,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | def fs_move_stat_to_str(s, props=None):
if props is None: props = ("mode","uid","gid","size","mtime")
s = {k:getattr(s, "st_"+k) for k in props}
s = {k:(oct(v) if k in ("mode",) else v) for k,v in s.items()}
s = {k:(int(v) if k in ("mtime","atime","ctime") else v) for k,v in s.items()}
return s
def fs_move_so... | [
"tzw56702@outlook.com"
] | tzw56702@outlook.com |
28f4ab9257cd9628c4ef597f8ef3b81576f4e006 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/l2vpn_vpls/prefix_limit/__init__.py | c940cc563225cc0809ce1f8876f308629aff9a2b | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,910 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
d897cdc34bff4430fcfec70a8a8785d5ae477e39 | 2a91a64f5464c48fb56bd2f0e01668737d4eafa9 | /google-cloud-sdk/lib/googlecloudsdk/command_lib/recommender/flags.py | 02b64b20a945fd702d455c6bf1c0cbc2525d3cb4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | salewski/google-cloud-sdk | 8513faf8c2f5b9180361efb567c4cfb9986d1e21 | 060174026ac068b6442b6c58bedf5adc7bc549cb | refs/heads/master | 2023-08-16T09:44:57.948620 | 2021-10-05T00:00:00 | 2021-10-05T16:15:40 | 417,465,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"gcloud@google.com"
] | gcloud@google.com |
6417045d60d012ae07a123a540ffeff3f621d3d8 | 3d7061bfda8b8cabb2993adfa24895737e3e0908 | /Python/Advanced_python/oops-part-3/inheritance6.py | d920de7886abb3e760bd73134cc6a1f3ce3f9461 | [] | no_license | anilreddy2896/hard | 2c0b8f324e4fea25d330f366bb813346d4ca559a | 5873cf72506945092f44e842e2bd9204ea062451 | refs/heads/main | 2023-04-10T09:00:11.335810 | 2021-04-13T21:29:14 | 2021-04-13T21:29:14 | 337,316,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py |
# has-a and is-a relation
class Car:
def __init__(self,name,model,color):
self.name=name
self.model=model
self.color=color
def getinfo(self):
print("Name of car:",self.name)
print("Model of the car: ",self.model)
print("Color of the car: ",self.color)
cl... | [
"reddy@gmail.com"
] | reddy@gmail.com |
3901b64b8aae68f3e5a54b303e96f9c2770d8d06 | 55f90af31c96fb2367a47fab2398b445630cc75c | /eap_19960/settings.py | cb941e10e04ac5de4596f863af23fe4b75289e76 | [] | no_license | crowdbotics-apps/eap-19960 | c8b3f95f1f390be4bd2c59996dc5ec4742d90601 | 72148319cc4e677559771ecc711704bddf4e91f2 | refs/heads/master | 2022-12-12T00:26:23.282582 | 2020-09-03T05:05:30 | 2020-09-03T05:05:30 | 292,471,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,609 | py | """
Django settings for eap_19960 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
71908d7a6bfdeb403f8431ac87b0716ff20a0a93 | 48832d27da16256ee62c364add45f21b968ee669 | /res_bw/scripts/client/postprocessing/rendertargets/__init__.py | 315aef65e70d5acbfe117e685790846feaf030dd | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,036 | py | # 2016.08.04 19:56:21 Stลednรญ Evropa (letnรญ ฤas)
# Embedded file name: scripts/client/PostProcessing/RenderTargets/__init__.py
"""RenderTargets python module
This module manages the render targets used by the post-processing chain.
"""
import BigWorld
import traceback
__all__ = ['calcMemoryUsage',
'reportMemoryUsage',... | [
"info@webium.sk"
] | info@webium.sk |
5a2aa5085c6ca5136a6e840400e849252c8d7c0b | 70816d495e5b7797033b91465cab19a7680f12f6 | /apps/views/images/__init__.py | cc4047e066132877ae0cd3aad3865d9753a8767d | [] | no_license | edison7500/rambutan | 3938bb1a23dccb43941fb40525c2a5d174845065 | 7c639c29be69c47a90d7e204b267c2df2136813d | refs/heads/master | 2022-11-05T05:30:30.996330 | 2020-09-18T09:42:05 | 2020-09-18T09:42:05 | 206,013,986 | 0 | 1 | null | 2022-10-14T07:49:55 | 2019-09-03T07:19:47 | C | UTF-8 | Python | false | false | 110 | py | from flask import Blueprint
images = Blueprint("images", __name__, url_prefix="/image")
from . import views
| [
"edison7500@gmail.com"
] | edison7500@gmail.com |
64e2db9179bd10879a76df6467b865d49233105b | 9e42315d4d28d1628da489ecd3f23151fa9186c8 | /aoc_2017/solutions2017/day18/part2.py | faaf88921d027c825cd6c5e04dd85964bd7f8a60 | [] | no_license | SGenheden/advent_of_code | ee3fc7ad038520d978dfab5180adb8b17de1627a | bdb028f14a709e315bf5bb84691e5c066b02998a | refs/heads/master | 2021-12-14T22:54:21.323932 | 2021-12-06T18:10:06 | 2021-12-06T18:10:06 | 163,210,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | from solutions2017.utils.assembly import AssemblyBase
class CommAssembly(AssemblyBase):
def __init__(self, program_id):
super(CommAssembly, self).__init__()
self.registers["p"] = program_id
self.partner = None
self.messages = []
self.sent = 0
def execute(self, instruct... | [
"samuel.genheden@gmail.com"
] | samuel.genheden@gmail.com |
783e18ca469dcf4d270cd1328833f94440b028d3 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/test/python/common-services/HAWQ/test_alert_segment_registration_status.py | 9c5dc59322c431452ec543306b5dc12984a31466 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 8,049 | py | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
19ab581b397fe2ac3a8f6dae8bb2742eafd6d8f9 | 6250be4dcf519d0f0b152b10a641b2d12a35c53f | /๋ชจ๋์ ํ์ด์ฌ/06B-circle.py | c6f54cc5c567bf0f0685027c7527b56b574f586f | [] | no_license | heechul90/study-python-basic-2 | babd01f6a7c2b1fbed4aa31030bb40128960a989 | 94780478e59dfc998baa6e3069ab2473c5df74db | refs/heads/master | 2022-10-27T14:44:00.688509 | 2022-10-24T10:55:33 | 2022-10-24T10:55:33 | 196,142,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # ์์ ๋ฐ๋ณตํด์ ๊ทธ๋ฆฌ๋ ํ๋ก๊ทธ๋จ
import turtle as t
n = 50 # 50๊ฐ์ ์์ ๊ทธ๋ฆฝ๋๋ค.
t.bgcolor("black") # ๋ฐฐ๊ฒฝ์์ ๊ฒ์์์ผ๋ก ์ง์ ํฉ๋๋ค.
t.color("green") # ํ์ ์์ ๋
น์์ผ๋ก ์ง์ ํฉ๋๋ค.
t.speed(0) # ๊ฑฐ๋ถ์ด ์๋๋ฅผ ๊ฐ์ฅ ๋น ๋ฅด๊ฒ ์ง์ ํฉ๋๋ค.
for x in range(n): # n๋ฒ ๋ฐ๋ณตํฉ๋๋ค.
t.circle(80) # ํ์ฌ ์์น์์ ๋ฐ์ง๋ฆ์ด 80์ธ ์์ ๊ทธ๋ฆฝ๋๋ค.
t.left(360/n) ... | [
"heechul4296@gmail.com"
] | heechul4296@gmail.com |
b72afa8a93fe74a697c3c1133d30617b8e7eb2dd | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/database_migration/conversion_workspaces/seed.py | c6648e46f8f1f4e6d3d2200082aff5c21225f7d4 | [
"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 | 4,269 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 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 |
aca095988d834b229c6a5bb3cc79be930419e38e | f686a24638c2db0a74b4de5ee09823c432e2dffb | /build/catkin_generated/generate_cached_setup.py | bc75d519d8c35c24d9eaac10f0e004efee956b8a | [] | no_license | crescent-igor/ROS | 2bc9ac2e2b866dc2c8e0578ba3434e813d3d0341 | cf8211bbf94a14f1de7a94799e41759ca5d51462 | refs/heads/master | 2021-01-02T11:00:57.212261 | 2020-02-10T19:13:43 | 2020-02-10T19:13:43 | 239,591,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.