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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a7ffb2104315b950466ac7b9091ddd110c3f54d | fec00fda9b8b0f41db343edd01e732ce498438db | /tests/test_deepl_grpc.py | e91874759686971e32d067c6c0c976eb54d8c1df | [
"MIT"
] | permissive | ffreemt/deepl-grpc | 005f04391f41bb8c6112e8b30d249c75cca851fe | 3af6b48c5fcf321251514579e21d95ed57f076b8 | refs/heads/master | 2023-03-25T11:41:47.934664 | 2021-03-14T17:31:58 | 2021-03-14T17:31:58 | 347,364,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from deepl_grpc import __version__
def test_version():
assert __version__[:3] == "0.1"
| [
"yucongo+fmt@gmail.com"
] | yucongo+fmt@gmail.com |
6bf26fdbf45870a7cf98a9ee1cce2f828ceb9159 | 2f74c4d2e5c6dd51eb3eaf0ee4b97122b26e7066 | /unit_03/07_Regular_Expressions/1-Regular_Expressions/2_basics.py | e25bd6bf9d5e8b8fb10b05377993149e0888175b | [
"MIT"
] | permissive | duliodenis/python_master_degree | c6a4ccf5d98c48cfc1efd29dfc116bf55b6b4f01 | 3ab76838ce2fc1606f28e988a3273dd27122a621 | refs/heads/master | 2020-04-14T09:03:51.863305 | 2019-07-22T23:05:19 | 2019-07-22T23:05:19 | 163,751,089 | 21 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | #
# Regular Expressions in Python: Reading Files
# Python Techdegree
#
# Created by Dulio Denis on 12/27/18.
# Copyright (c) 2018 ddApps. All rights reserved.
# ------------------------------------------------
# Challenge 1: Basics
# ------------------------------------------------
# Challenge Task 1 of 5
# Use ... | [
"dulio.denis@yahoo.com"
] | dulio.denis@yahoo.com |
6494b5c825410f2141c94a906fd410931326f256 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_195/ch15_2019_03_01_13_34_25_387920.py | d755c93066e2c1f69e21bd460158126178964777 | [] | 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 | 75 | py | import math.pi
def volume_da_pizza(z,a):
y= math.pi*z**2*a
return y | [
"you@example.com"
] | you@example.com |
ad5ababfd67e9e7708f5e970d4fbad8be6e9e2db | 715a11d7b8f15694a5cc4b47ac0e3a3cfc4ffedc | /bi46/5669.py | b92cbc7001d2c8b620449542ddad67fce5979e74 | [] | no_license | mohanrajanr/CodePrep | 5cd538d16598f6a0d2486357d3cc6e0fa1626e4e | 2e23a5f996139b887bf723f58b23368cf8121cd4 | refs/heads/main | 2023-04-23T04:10:06.111120 | 2021-05-11T06:47:51 | 2021-05-11T06:47:51 | 366,283,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | from typing import List
def canChoose(groups: List[List[int]], nums: List[int]) -> bool:
index = len(nums) - 1
hasMatched = False
while groups and nums:
tu = tuple(groups.pop())
# print("Checking :{}".format(tu))
hasMatched = False
while index - len(tu) + 1 >= 0:
... | [
"mohanrajan1996@gmail.com"
] | mohanrajan1996@gmail.com |
1f03ac5fe75748482615a376e90900b939689d79 | f4996d975ce705c1d09fdad168cd1225bbb99dd8 | /chemex/experiments/shift/exp_help.py | c0d4c5bf67725b6e40542d32471968532318bbc0 | [
"BSD-3-Clause"
] | permissive | chriswaudby/chemex | d0d39d834989d92f738f17de737167b7f9118884 | c3424bb8891b05de43c969108311d3ea50ba3428 | refs/heads/develop | 2020-01-23T21:05:04.695331 | 2016-11-08T13:29:16 | 2016-11-08T13:29:16 | 74,578,043 | 0 | 1 | null | 2016-12-24T12:58:50 | 2016-11-23T13:11:30 | Python | UTF-8 | Python | false | false | 91 | py | """
Created on Mar 2, 2012
@author: Alex Hansen
"""
parse_line = "HSQC/HMQC experiments"
| [
"gbouvignies@gmail.com"
] | gbouvignies@gmail.com |
80acb66240a546aa1aad9df8bf32d4cf1bce398f | d5c1d1b162de12942989cb15f5a1e9e9ecf52c82 | /soladm/tests/test_autocomplete.py | 4a7ef3258a43c5de90b443fb60c34f7bd0f76935 | [] | no_license | rr-/soladm | 39730352265e41e558134fe4928ce7c9fe2c50b7 | 67f3e388144d258b861728d81664c78cd6ba2e97 | refs/heads/master | 2021-01-20T07:35:12.826423 | 2017-06-29T11:43:39 | 2017-06-29T11:43:39 | 90,016,113 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from typing import Tuple, Iterable
import pytest
from soladm.ui import autocomplete
@pytest.mark.parametrize('edit_text,edit_pos,affixes', [
('', 0, [('', '', '')]),
('abc', 0, [('', '', 'abc')]),
('abc def', 0, [('', '', 'abc def')]),
('abc', 2, [('', 'ab', 'c')]),
('ab ', 2, [('', 'ab', ' ')]),
... | [
"rr-@sakuya.pl"
] | rr-@sakuya.pl |
af1ccc3bb73c89919f00a287764d22296201e510 | 83e0a7bae272748dadea3330514039b8658ca426 | /test/util/test_timecoord.py | 05d24029bb6500cb460cb40cacd926c57a973180 | [
"MIT"
] | permissive | achtsnits/xcube | 78d081613d71b7e13cc317fb07c297d98e6267ad | 6bc7bda849a1f2cc8cb2bba1152e0a98d4a97aa5 | refs/heads/master | 2020-08-27T20:46:43.230537 | 2019-10-16T14:24:26 | 2019-10-16T14:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | import unittest
import numpy as np
from test.sampledata import create_highroc_dataset
from xcube.util.timecoord import add_time_coords, to_time_in_days_since_1970, timestamp_to_iso_string, \
from_time_in_days_since_1970
class AddTimeCoordsTest(unittest.TestCase):
def test_add_time_coords_point(self):
... | [
"norman.fomferra@gmail.com"
] | norman.fomferra@gmail.com |
b61b29c8c886f33bae6262e56b24e35710ff4c04 | 82319ec6aaf462f6823f43946a7f4a0624bffa20 | /Mariana/training/future/recorders.py | 33b74e2da4e68c3932c3fd599bf04a417baaee53 | [
"Apache-2.0"
] | permissive | enterstudio/Mariana | b76a382f5873f9bf83837e9f5190ab6684e14972 | 6b186d93c5fe5521603a389e975595e45e1ea5d2 | refs/heads/master | 2021-04-29T04:30:21.627507 | 2017-11-21T16:30:55 | 2017-11-21T16:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,305 | py | import sys, os, types
from pyGeno.tools.parsers.CSVTools import CSVFile
__all__ = ["Recorder_ABC", "GGPlot2", "SavingRule_ABC", "SaveMin", "SaveMax", "Scores"]
class Scores(object) :
"""Manage and store the scores returned by the trainer. This one is meant to be used internally by trainers."""
def __init__(self) :
... | [
"tariq.daouda@umontreal.ca"
] | tariq.daouda@umontreal.ca |
e55764e47834c1865fe67bbb512f3243934e79f4 | 256f817910dd698970fab89871c6ce66a3c416e7 | /1. solvedProblems/30. Substring with Concatenation of All Words/30.py | ce5a51cd4adedf962473dba896bff6a6a7f0783b | [] | no_license | tgaochn/leetcode | 5926c71c1555d2659f7db4eff9e8cb9054ea9b60 | 29f1bd681ae823ec6fe755c8f91bfe1ca80b6367 | refs/heads/master | 2023-02-25T16:12:42.724889 | 2021-02-04T21:05:34 | 2021-02-04T21:05:34 | 319,225,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,228 | py | # !/usr/bin/env python
# coding: utf-8
"""
Author:
Tian Gao (tgaochn@gmail.com)
CreationDate:
Sat, 11/28/2020, 19:54
# !! Description:
"""
import sys
from typing import List
sys.path.append('..')
from utils import binaryTree, nTree, singleLinkedList
from utils.utils import (
printMatrix,
printDict,
... | [
"tgaochn@gmail.com"
] | tgaochn@gmail.com |
1f8bce0c11115e32a2762fd95571725acd8d8627 | a3d058c6a80d4068fa4d3185ddd2dec91abc82d7 | /190103_카펫.py | bf7c0ea85c0440df0a025dc48826d72f324705fd | [] | no_license | guard1000/Everyday-coding | d6f496654b635738a4284270f6c5d285116a760e | 7755f99cdb512d623392af82282bf17b47cb77f2 | refs/heads/master | 2021-08-18T22:26:04.322162 | 2021-07-21T14:53:28 | 2021-07-21T14:53:28 | 161,440,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | def solution(brown, red):
answer = []
xlist = []
i = 0
for x in range(1, red + 1):
if red % x == 0 and x not in xlist:
xlist.append(red / x)
for x2 in xlist:
n = 1
while 2 * x2 + 2 * (red / x2) - 4 + 8 * n <= brown:
if 2 * x2 + 2 * (red / x2) - 4 + 8 ... | [
"cjsdnr885@naver.com"
] | cjsdnr885@naver.com |
76b3b454adef458d8f84bb8c711f378e962c4afd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_perfectest.py | 617a0575b5947bdc969f79d6b1bbe1909e2fe462 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
from xai.brain.wordbase.nouns._perfect import _PERFECT
#calss header
class _PERFECTEST(_PERFECT, ):
def __init__(self,):
_PERFECT.__init__(self)
self.name = "PERFECTEST"
self.specie = 'nouns'
self.basic = "perfect"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0d0d265bebb6878ee92a14872f136d0cfbb06604 | f7509541ade3c2ed21ea374013905c3e475f46a4 | /src/main.py | cc75b28d10a4d0ea68fb34ccc954460ddd08bcfa | [
"CC0-1.0"
] | permissive | ytyaru/Python.Pixpeer.SelectedListItem.Key.20200513163428 | ff3ce58ead3d2245d3b6bd108ecd8a911a36ac80 | a59f16fd35d7bdc125e456e9ce1ac891f7ac22a2 | refs/heads/master | 2022-06-18T06:33:47.775400 | 2020-05-13T08:12:18 | 2020-05-13T08:12:18 | 263,566,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,575 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys, os, numpy, PIL
from PySide2 import QtCore, QtGui, QtWidgets
from PIL import Image, ImagePalette, ImageQt, ImageSequence
class Window(QtWidgets.QMainWindow):
def __init__(self):
super(self.__class__, self).__init__()
self.setAcceptDrops(True)
... | [
"yttry0@gmail.com"
] | yttry0@gmail.com |
af430d9d37b5e7b94a395f08873779b0f5b342ff | b69fae458c07235d6106b10efec37ad427982365 | /authome/test_authorization_cache.py | 0e301ed34e20c681f86db4d969f53bde718fc7b4 | [
"Apache-2.0"
] | permissive | dbca-wa/authome | 70c782e6eeee8c3cb26c9ac91431ce80968b503d | 9af33ac81db86a87770fb18b2f26b74d9636dafb | refs/heads/master | 2023-08-24T05:43:40.438862 | 2023-08-14T13:27:31 | 2023-08-14T13:27:31 | 76,003,185 | 5 | 6 | NOASSERTION | 2023-08-14T13:27:33 | 2016-12-09T05:00:08 | Python | UTF-8 | Python | false | false | 11,885 | py | # -*- coding: utf-8 -*-
from datetime import timedelta
from django.conf import settings
from django.utils import timezone
from django.test import TestCase, Client
from .models import UserGroup,UserGroupAuthorization,UserAuthorization,can_access
from .cache import cache,HourListTaskRunable
from .basetest import BaseAut... | [
"rockyc@kens-mate-001.corporateict.domain"
] | rockyc@kens-mate-001.corporateict.domain |
d60b27a09af020085f55092b28cf65da6aae07f6 | 5345cc368ac108776188118d417a8aff8604ec0c | /tests/fields/test_registering.py | 83183bb4691b6316d9e0d783674e0c8fd433bddd | [
"MIT"
] | permissive | hochshi/wagtailstreamforms | 7229097390c34dd100d812a35d7d74b0092479f7 | 8be02c5606d87d0e7f4f648866c36290207163a8 | refs/heads/3-dev | 2020-04-14T17:49:10.846230 | 2019-06-11T08:25:27 | 2019-06-11T08:25:27 | 163,995,051 | 1 | 0 | MIT | 2019-06-11T08:25:28 | 2019-01-03T16:10:34 | Python | UTF-8 | Python | false | false | 463 | py | from django import forms
from wagtailstreamforms import fields
from ..test_case import AppTestCase
class MyField(fields.BaseField):
field_class = forms.CharField
class TestFieldRegistering(AppTestCase):
@classmethod
def setUpClass(cls):
fields.register('myfield', MyField)
@classmethod
... | [
"stuart@accentdesign.co.uk"
] | stuart@accentdesign.co.uk |
d0791d0c24b78ce2b664deac0f6b69070ad79928 | 7e8f67b9b3c7d17b49c2f9677afea78245e8b29f | /accounts/tests/views/test_captive.py | fd0150e96c1ed234d9c86241eefdb1c154683fe1 | [] | no_license | deone/billing-v1 | 23672addfbe8479a45ccf976cafdf6cbe1220834 | ebb933ec2453810fb1c0f565efa8142c82743b85 | refs/heads/master | 2021-08-18T04:17:25.435711 | 2019-06-17T12:52:50 | 2019-06-17T12:52:50 | 90,369,896 | 0 | 0 | null | 2021-06-10T18:38:10 | 2017-05-05T11:40:45 | Python | UTF-8 | Python | false | false | 2,802 | py | from django.core.urlresolvers import reverse
from ...forms import LoginForm
from . import ViewsTests
class CaptiveTests(ViewsTests):
def test_captive(self):
get_params = "?login_url=https%3A%2F%2Fn110.network-auth.com%2Fsplash%2Flogin%3Fmauth%3DMMzZUJGqtrsmvkKw6ktCkcNsuBgluav4m2vgE4p-nFliz6lOzP99ntPz... | [
"alwaysdeone@gmail.com"
] | alwaysdeone@gmail.com |
bd640c0792b3901848aa7820f8ec89682ceb850c | 77c32baf29e5718a07fec9dfaee89cdff3c0f23d | /instance/migrations/0001_initial.py | 62952b23e6eef1835c52c02b26b0ce56df746423 | [] | no_license | syed-saif/hackathon_backend | f438c49268e182ae6a51b9f1650c02e423ea32cd | 37a092cfb27c6e1be3652e17eea3b712ce9b3fd1 | refs/heads/main | 2023-02-09T16:16:51.242683 | 2021-01-12T12:33:03 | 2021-01-12T12:33:03 | 328,973,595 | 0 | 0 | null | 2021-01-12T12:02:59 | 2021-01-12T12:02:58 | null | UTF-8 | Python | false | false | 763 | py | # Generated by Django 3.1.3 on 2020-11-25 16:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DetecHandWritten',
fields=[
('id', models.A... | [
"="
] | = |
9aa3c92f85d67695e2c53c6a11ecb3381ce8adb5 | d02261797ab1f6d9ba85370fbb5d73e84390154e | /hunt/special_puzzles/ktane/manual/grandom.py | fb776263fe43cec87e02e1362b35575be15f8e0b | [
"MIT"
] | permissive | YewLabs/2021-hunt | 2c965da93b92d0a53bfa25938b376ebefecc241d | c6ea6bdf17571642ee4e7463a2a363292ff9f972 | refs/heads/master | 2023-03-04T04:16:12.412893 | 2021-02-07T15:48:01 | 2021-02-07T16:50:45 | 336,824,373 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,180 | py | from random import Random
class GRandom(Random):
def shuffled(self, x):
x = list(x)
self.shuffle(x)
return x
def distrib(self, total, count, *, min_=0, max_=None, skew=1):
if min_ * count > total:
raise ValueError(
f"The total must be at least {min_... | [
"dvorak42@mit.edu"
] | dvorak42@mit.edu |
568fbfe4e7d7d0dddaf488b5339808d9e0641214 | f3eae8877d8065abced3ad5eadc1a084c9569e80 | /functional_preprocessing/topup-version/struct_preproc/structural.py | 560febe8d64410fbd04fde4e56564066aa1356a7 | [] | no_license | fBeyer89/RSV_rsanalysis | 586afc52a5a93fb681166fd7ee0795d0197a3a63 | 1128ace44f52143e94d9c98865c084d30aeca36c | refs/heads/master | 2020-04-09T05:46:54.200643 | 2019-04-18T14:22:42 | 2019-04-18T14:22:42 | 92,715,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,213 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 9 14:33:51 2015
@author: fbeyer
"""
'''
Main workflow for preprocessing of mprage data
===============================================
Uses file structure set up by conversion
'''
from nipype.pipeline.engine import Node, Workflow
import nipype.interfaces.io as nio
from ... | [
"fbeyer@cbs.mpg.de"
] | fbeyer@cbs.mpg.de |
0cb1eef4e1b828ab9c069f0b9fbd70fb3d42629f | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /165/165.compare-version-numbers.163040956.Runtime-Error.leetcode.py | f2dc2de336fe3c1104efe74edcd9f208144c57ac | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | class Solution(object):
def compareVersion(self, version1, version2):
arr1 = version1.split(".")
arr2 = version2.split(".")
i = 0
while(i < len(arr1)):
if int(arr2[i]) > int(arr1[i]):
return -1
if int(arr1[i]) > int(arr2[i]):
re... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
3fd9e0f64632f7bc58bafda53149574b330177da | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/pyface/timer/api.py | f78cc07f819be65fe9879384ef67c9e7a6bfd889 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 46 | py | # proxy module
from pyface.timer.api import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
68bcfd2922d3dba3e542fed5e919fa83143d9bfa | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3922/AC_py/508134.py | 7f1f09ae0a4fe4b50f052a90e596911ef725a583 | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # coding=utf-8
import sys
while True:
a,b=map(float,input().split())
if b!=0:
print(int((a/b+0.5)//1))
else:
print("error") | [
"543271544@qq.com"
] | 543271544@qq.com |
d1ebe71d5c08688b5518526b99952e558aa18674 | a439ca43178d38cfe6daaee50ea134ca6c52b502 | /thaniya_server_archive/src/thaniya_server_archive/volumes/__init__.py | be1415d1034a205e635c0328cb07d874915aaa23 | [
"Apache-2.0"
] | permissive | jkpubsrc/Thaniya | 37ca727abdc6f9f605257813889fe3a033995bba | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | refs/heads/master | 2023-03-05T20:58:59.528746 | 2021-02-15T19:31:06 | 2021-02-15T19:31:06 | 331,318,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py |
__version__ = "0.2021.1.20.1"
from .BackupVolumeID import BackupVolumeID
from ._RawDeviceIterator import _RawDeviceIterator
from .Device import Device
from .DeviceIterator import DeviceIterator
from .BackupVolumeInfo import BackupVolumeInfo
from .BackupVolumeCfgFile import BackupVolumeCfgFile
from .BackupVolumeM... | [
"pubsrc@binary-overflow.de"
] | pubsrc@binary-overflow.de |
ddb2eb6438bfbc1bf13b102cc1c5ec3d453ebb8e | b26c41926fa3a7c2c061132d80e91a2750f2f468 | /tensorflow_probability/python/internal/backend/numpy/gen/linear_operator_block_diag.py | 7f5fe18bbae95ec7ad079b657d701b1a25c3710d | [
"Apache-2.0"
] | permissive | tensorflow/probability | 22e679a4a883e408f8ef237cda56e3e3dfa42b17 | 42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5 | refs/heads/main | 2023-09-04T02:06:08.174935 | 2023-08-31T20:30:00 | 2023-08-31T20:31:33 | 108,053,674 | 4,055 | 1,269 | Apache-2.0 | 2023-09-13T21:49:49 | 2017-10-23T23:50:54 | Jupyter Notebook | UTF-8 | Python | false | false | 35,254 | py | # Copyright 2020 The TensorFlow Probability Authors. All Rights Reserved.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# THIS FILE IS AUTO-GENERATED BY `gen_linear_operators.py`.
# DO NOT MODIFY DIRECTLY.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
05a0585efd4927df716a9fdb803cee546318b943 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-5285.py | 9721e555b61a9d96d0739af17c132b22b60e4b6d | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,288 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
260778a99413ef35e79f6adf633bb47c165b2e41 | 2dc8ac19e5f6f5fb8638bbdd1917a15094f3431b | /correlation discovery/combine_Lynkwifi_and_col_bus_sub_manhattan_each_injured_each_killed/map.py | 1723b4d92d67bad3c40c014d5a2c07ff87df6afb | [] | no_license | rgc292/Capstone_Project | 8182f2d8143e50db2654da343bd82ae66e74b1c3 | 35b16193f2363277fdf691dced704f56da1f8331 | refs/heads/master | 2020-07-01T04:57:03.365113 | 2016-12-20T01:51:42 | 2016-12-20T01:51:42 | 74,094,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | #!/usr/bin/python
import sys
import numpy as np
import csv
import StringIO
col_bus_sub_year = []
col_bus_sub_month = []
col_bus_sub_day = []
col_bus_sub_lat = []
col_bus_sub_lon = []
wifi_year = []
wifi_month = []
wifi_day = []
wifi_lat = []
wifi_lon = []
col_bus_sub = []
counter = -1
def dist(coord1,coord2,_type):
... | [
"Rafa@192.168.1.139"
] | Rafa@192.168.1.139 |
9cfa025c1c6cdcd1e98a7044b1aaa4b444395e64 | 8a7c56ea3eb73518cdf8d898f6a6f5883b105ec7 | /src/trace_msg_bfms/trace_msg_bfm.py | 548bfed2f68f6a15d64ab0b742786b1635c0a1a2 | [
"Apache-2.0"
] | permissive | pybfms/pybfms-trace-msg | cb8b5017af20ce52697d960f8d48574370459416 | 86eb7f7530a04c50ed79c88cb5ae452983dc31ed | refs/heads/main | 2023-06-08T08:37:53.333590 | 2021-06-28T01:47:18 | 2021-06-28T01:47:18 | 368,890,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py |
import pybfms
@pybfms.bfm(hdl={
pybfms.BfmType.Verilog : pybfms.bfm_hdl_path(__file__, "hdl/trace_msg_bfm.v"),
pybfms.BfmType.SystemVerilog : pybfms.bfm_hdl_path(__file__, "hdl/trace_msg_bfm.v"),
}, has_init=True)
class TraceMsgBfm():
def __init__(self):
self.busy = pybfms.lock()
self... | [
"matt.ballance@gmail.com"
] | matt.ballance@gmail.com |
f9ef15b9bfd358fbcf78dc3c8a2c94f18e736c13 | b61573aeb976040f0b1ba67900ec28b14a2652dc | /torchaudio/functional/__init__.py | bf27168cbbd127df9a24eecd273c32234c1e630d | [
"BSD-2-Clause"
] | permissive | TrendingTechnology/audio | a84c7408f78a20cf6cf5456e2f12b284491a28ce | 2aad928903f2f0f9a05af9a68ac2ed203faf1093 | refs/heads/main | 2023-07-08T03:48:08.350672 | 2021-08-05T17:52:02 | 2021-08-05T17:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | from .functional import (
amplitude_to_DB,
angle,
complex_norm,
compute_deltas,
compute_kaldi_pitch,
create_dct,
create_fb_matrix,
melscale_fbanks,
linear_fbanks,
DB_to_amplitude,
detect_pitch_frequency,
griffinlim,
magphase,
mask_along_axis,
mask_along_axis_i... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
6753a026018172376dbb6693b26fef5fc2ed39e7 | 9142c3ebb20bdeab4d2b7e8e70ab562ce65cfe59 | /thermosteam/utils/decorators/units_of_measure.py | f631bb7d39c4e3b85727446e02a6a19a0ae8d2bf | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"NCSA"
] | permissive | BioSTEAMDevelopmentGroup/thermosteam | ce97fe2e5e2a5d21a9715435f653e3ee7e706e00 | 934e99441acfdb89d72dc99fee7b9c6def5aef6f | refs/heads/master | 2023-08-08T00:17:47.366975 | 2023-07-28T05:28:31 | 2023-07-28T05:28:31 | 219,133,879 | 46 | 14 | NOASSERTION | 2023-02-16T19:44:16 | 2019-11-02T09:50:30 | Python | UTF-8 | Python | false | false | 2,204 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020-2023, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
bef2bbff53a217bbd10fec6672006ab131eda1d4 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/web_infrastructure/sophos_utm/utm_network_interface_address_info.py | dc68ac3521998969963c0e69734771dd04f673e6 | [
"GPL-3.0-only",
"MIT",
"GPL-3.0-or-later",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 2,624 | py | #!/usr/bin/python
# Copyright: (c) 2018, Juergen Wiebe <wiebe@e-spirit.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'statu... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
f0bc48de184d0f592a8679fb2cd6a0b661390c25 | 7464f02b4acbf9a34b46ea0411afd934e2d21997 | /tensorflow_probability/python/distributions/half_student_t.py | efec4bc9e14ae6785f8e920046c2fa77c1224591 | [
"Apache-2.0"
] | permissive | mabu-dev/probability | c2aaa353b56a5b1a73395b4187d82809615eb9c7 | b3d884dc119a2349a8e087d2deaed162f6ec945c | refs/heads/master | 2022-04-22T13:11:08.751328 | 2020-04-11T10:46:00 | 2020-04-11T10:48:11 | 255,320,504 | 1 | 0 | Apache-2.0 | 2020-04-13T12:31:03 | 2020-04-13T12:31:02 | null | UTF-8 | Python | false | false | 13,350 | py | # Copyright 2020 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a3e6f84aabc48b8319995511b742d221aa8a1507 | 4b02aa96b41c7852678e7c9b3361830b2d1a1a09 | /LeetCode-solution/problems/palindrome_linked_list/solution.py | 93957b43d3eafe756306421566a762c41d6dcb74 | [] | no_license | arifkhan1990/LeetCode-solution | 4a4124d6b41dc516b673d1b1adc693054a00509f | 85e1a3a285ee059dce091621b79312ba96024eed | refs/heads/master | 2023-01-13T17:26:13.720649 | 2023-01-12T17:35:39 | 2023-01-12T17:35:39 | 243,922,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def isPalindrome(self, head: ListNode) -> bool:
if not head or not head.next:
return True
slow = fast = curr = h... | [
"arifkhanshubro@gmail.com"
] | arifkhanshubro@gmail.com |
2363944ebe89bab7ab6f8ff18fdbba8f9a843a45 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /python/paddle/jit/dy2static/logging_utils.py | b8a6e5f4b63885e689fe1dbba3decac805ce38a7 | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 9,074 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | Shixiaowei02.noreply@github.com |
511ca973f7ddab124a8fa1f2c8be06fb5db51303 | 2abd291027ea831fe85ffa8d929e769612f1bc9c | /09 - ginger/app/models/user.py | 7f7a4258475c332502476fd5fd84159c8605f73a | [] | no_license | hippieZhou/Python-Web-Every-Day | 13767ec8fbacfca29e3add0a88976b2afa74d5f5 | 7fc3f4b1378daccdfabc3ca6b66d4f5d4a98e360 | refs/heads/master | 2022-03-10T00:16:25.333925 | 2022-03-05T02:40:26 | 2022-03-05T02:40:26 | 175,198,664 | 5 | 1 | null | 2022-03-05T02:40:51 | 2019-03-12T11:40:10 | HTML | UTF-8 | Python | false | false | 1,508 | py | from sqlalchemy import Column, Integer, String, SmallInteger
from werkzeug.security import generate_password_hash, check_password_hash
from app.models.base import Base, db
from app.libs.error_code import NotFound, AuthFailed
import datetime
class User(Base):
id = Column(Integer, primary_key=True)
email = Colu... | [
"hippiezhou@outlook.com"
] | hippiezhou@outlook.com |
aeb3f5158fe2c3a4ffb56b2dfcb9d92b091d9a8d | d768f07ed90c0274e2d9d935eaf5ecfe734a1f56 | /lya_statistics/old/compute_power_spectrum_statistics.py | c25a67cceabb721282d7af4e1a083a078453dd85 | [] | no_license | bvillasen/simulation_analysis | cfd0b5de865d2fb5992d828b2824079e6798774b | 645f0c397172ed30a713368942eec9ca68a9761a | refs/heads/master | 2023-06-02T19:06:39.851760 | 2021-06-25T18:40:58 | 2021-06-25T18:40:58 | 298,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | import os, sys
import numpy as np
import h5py as h5
import pickle
root_dir = os.path.dirname(os.getcwd()) + '/'
subDirectories = [x[0] for x in os.walk(root_dir)]
sys.path.extend(subDirectories)
from tools import *
from stats_functions import compute_distribution, get_highest_probability_interval
use_mpi = False
if us... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
d97e7366ebd785ad4958223949829bb8e80a3fd6 | 6764aecdd7941aca93b7320949745348abdb6b8a | /code/fridge/fridge_compressor_durations.py | aa9741609725b85f76bb45a258c1a5481ee89ba0 | [] | no_license | mzhuang1/nilm-actionable | 71f8bcb548c2aad375e67a9e71dfbc76ee640333 | db626a57297ce0ced6b8c601dd18eb408150c6af | refs/heads/master | 2020-04-17T21:09:19.240317 | 2017-01-20T09:49:11 | 2017-01-20T09:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,322 | py | import warnings
from nilmtk import DataSet
import nilmtk
import pandas as pd
import numpy as np
warnings.filterwarnings("ignore")
from hmmlearn import hmm
ds = DataSet("/Users/nipunbatra/Downloads/wikienergy-2.h5")
fridges = nilmtk.global_meter_group.select_using_appliances(type='fridge')
Wm_to_kwh = 1.66666667* 1... | [
"nipunb@iiitd.ac.in"
] | nipunb@iiitd.ac.in |
e80e39f7489a25cbe588e5318e01220bb5737102 | e979b765416b947fd089339dd64732d5174e7058 | /FlattenNestedList.py | e403c2d47d188a3400f6cad8396bf089bbb8f891 | [] | no_license | 250mon/CodeWars | d86cdc8ea24bc781c9adf34c24a67195e544a4a1 | 9bea8df60646a052565ae5246144a9d53939b057 | refs/heads/main | 2023-03-15T17:00:34.500844 | 2021-03-25T03:59:49 | 2021-03-25T03:59:49 | 303,961,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | def flatten_list(n_list):
result_list = []
if not n_list:
return result_list
stack = [list(n_list)]
while stack:
c_num = stack.pop()
next = c_num.pop()
if c_num:
stack.append(c_num)
if isinstance(next, list):
if next:
stack.... | [
"lambki@naver.com"
] | lambki@naver.com |
2ad80a74ff04fdbe4a888ef01bd9c5e25fddc2ce | 5b95b83ba7e18cb40babab37bcb0f5b63bfef3bb | /script8.py | 1ebba089a116b4bec4fb6bc5dc27f3eecb5f4d8f | [] | no_license | Moandh81/w3ressources_python | d9269959cc35c1df4a0ca9d37575c94fb96195f6 | 7a3c65bca50097c2e9b92591443dcb6b03a384a3 | refs/heads/master | 2020-03-30T22:42:23.673212 | 2019-11-11T19:58:16 | 2019-11-11T19:58:16 | 151,675,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/python
# -*- coding: utf-8 -*
#Python Data Type: List - Exercises,
#Write a Python program to print the numbers of a specified list after removing even numbers from it
liste=range(1,11)
i= 0
listepair=[]
while i<len(liste):
if liste[i] % 2 == 0:
listepair.append(liste[i])
i = i + 1
print(listepair) | [
"anis.dhouieb@gmail.com"
] | anis.dhouieb@gmail.com |
9852067a7f48d7c5a1c1a29d4b31449e2151ab87 | 4a0f8c5c0e8324fa614da776f2a704b5c369ccbb | /topologyTest/cp_to_Topology_folder.py | 6e1eac9c65ee2c283c15f3a1a8c2d39bc8d87e15 | [] | no_license | magic2du/contact_matrix | 9f8ae868d71e7e5c8088bf22a9407ea3eb073be6 | 957e2ead76fabc0299e36c1435162edd574f4fd5 | refs/heads/master | 2021-01-18T21:15:07.341341 | 2015-09-16T02:14:53 | 2015-09-16T02:14:53 | 24,237,641 | 0 | 0 | null | 2015-09-10T19:58:24 | 2014-09-19T16:48:37 | null | UTF-8 | Python | false | false | 535 | py | import os, sys
from dealFile import *
ToDoList=sys.argv[1]
listOfAll=readListFile(ToDoList)
listOfSuccess=[]
for folders in listOfAll:
if os.path.exists('/home/du/Protein_Protein_Interaction_Project/3did_15OCT2010/dom_dom_ints/'+folders):
sh='cp -ru /home/du/Protein_Protein_Interaction_Project/3did_15OCT2010/dom_dom... | [
"magic2du@gmail.com"
] | magic2du@gmail.com |
90454f44990f308805cb1b8772805fccdc0273e4 | cc6e7f63eaf4b3570771c46fb8b24b88e6e1f59e | /beginner/154/A.py | 09f1a826e3d6bd6b508da9a58d092c35f84c391c | [] | no_license | kamojiro/atcoderall | 82a39e9be083a01c14445417597bf357e6c854a8 | 973af643c06125f52d302a5bc1d65f07a9414419 | refs/heads/master | 2022-07-12T00:14:38.803239 | 2022-06-23T10:24:54 | 2022-06-23T10:24:54 | 161,755,381 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | #import sys
#input = sys.stdin.readline
def main():
s, t = input().split()
a, b = map( int, input().split())
u = input()
if u == s:
print(a-1, b)
else:
print(a, b-1)
if __name__ == '__main__':
main()
| [
"tamagoma002@yahoo.co.jp"
] | tamagoma002@yahoo.co.jp |
d67b434adfc58def665770ba75217dc4919beb9e | e9c4239c8064d882691314fd5b37208f10447173 | /leetcode/101-200题/177nthHighestSalary.py | 02a4420c9f64fca1244aec82b06600d9aa8dfc5f | [] | no_license | IronE-G-G/algorithm | 6f030dae6865b2f4ff4f6987b9aee06874a386c1 | 6f6d7928207534bc8fb6107fbb0d6866fb3a6e4a | refs/heads/master | 2020-09-21T03:02:20.908940 | 2020-03-22T15:19:41 | 2020-03-22T15:19:41 | 224,658,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | """
177 第N高的薪水
编写一个 SQL 查询,获取 Employee 表中第 n 高的薪水(Salary)。
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
例如上述 Employee 表,n = 2 时,应返回第二高的薪水 200。如果不存在第 n 高的薪水,那么查询应返回 null。
+------------------------+
| getNthHighestSalary(2) |
+------------------------+
... | [
"linjh95@163.com"
] | linjh95@163.com |
d73bf4c4e161aa160e6327bec5770961ca88b0d2 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /アルゴ式/グラフアルゴリズム/Q4. ベルマンフォード法 (1).py | 0ef10ba1f767d56b39f85b831aa906cd8a37d79c | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | N, M = map(int, input().split())
INF = 10**9
dist = [INF]*N
dist[0] = 0
for _ in range(M):
u, v, w = map(int, input().split())
dist[v] = min(dist[v], dist[u]+w)
print(*dist, sep="\n")
| [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
4441a0a988cb752bf38feafdae50934f047ffde8 | 8fb3931be18a592d230d4cff3c28742a150d13cb | /intrusiondetection_server/funcs_intrusiondetection/intrusiondetectionImpl.py | 35ac3953acea155ad1042c1dc30346b54f2694f2 | [] | no_license | rvilalta/IoT-YANG | cfc12c8a679d51a4455838cc46919a2f9be82e1f | b1317fb306c7c03e098ccb4c675d56464025c173 | refs/heads/master | 2021-01-18T20:17:11.493068 | 2016-08-29T10:41:08 | 2016-08-29T10:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,367 | py | import os.path, sys
sys.path.append(os.path.join('/'.join(os.path.dirname(os.path.realpath(__file__)).split('/')[:-1])))
import backend.backend as be
import cv2
import sys
import imutils
import threading
import numpy as np
import datetime
from objects_intrusiondetection.room import Status
def video_name(video_counte... | [
"a@a.com"
] | a@a.com |
44da64af3f47165d63c8570ec96bdb194d74670e | 2245f0acc3f5682129491b245acd3fd8ab2e4128 | /Desafio111/utilidadesCeV/ex_111.py | bd920ee20cdf37563ff655b912dc745b5276f3b7 | [] | no_license | wherculano/Curso-em-Video-Python | 89bed7b7e01f25ba47efa511304d18448a47a4bb | 5506645a46973a5ccd2c3d5c1ff782c51181b4bf | refs/heads/master | 2022-04-12T08:26:26.616135 | 2020-03-26T17:53:21 | 2020-03-26T17:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | """
Crie um pacote chamado utilidadesCeV que tenha dois módulos internos chamados moeda e dado.
Transfira todas as funções utilizadas nos desafios 107, 108, 109 e 110
para o primeiro pacote e mantenha tudo funcionando.
Ex:
>>> moeda.resumo(850, 35, 22)
----------------------------------
RESUMO DO ... | [
"wagherculano@hotmail.com"
] | wagherculano@hotmail.com |
84a35beba16bd47d8a2654e62502bffbe5037477 | 3c114c083af073421fc0becfa4b4471ba1d77de5 | /google/two_sum_bst.py | 2b3e3f1c2703a1d548d36af103cb120dc7ea5901 | [] | no_license | alonsovidales/interview_questions | 99f757c7e35c5ede450be25d3bebd54a18b1312b | 5e63e238950c2f6bdfd3ff48311d6c69a676d382 | refs/heads/master | 2021-01-17T12:06:48.419891 | 2018-03-25T08:44:14 | 2018-03-25T08:44:14 | 30,909,319 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | """
Given a BST and a number x, check whether exists two nodes in the BST whose sum
equals to x. You can not use one extra array to serialize the BST and do a 2sum
solver on it.
"""
class Bst(object):
class BstNode(object):
def __init__(self, v, l=None, r=None):
self.v = v
self.l = ... | [
"alonso.vidales@tras2.es"
] | alonso.vidales@tras2.es |
ad11a8c211c0d94f0c80515ff0321a91d0538ace | 9f0532cd700a9cdaefeb6274608aa971c23a3be8 | /raspi_io/graph.py | 28c8fc0622e05512c33b588db3817e9af5d232a6 | [
"MIT"
] | permissive | Kassadinsw/raspi-io | ac494ede3a6404228eac19261d5b9b2eaba69f8f | 159e45120ca0ffc86549ad83ef31c140a8dd6e21 | refs/heads/master | 2020-05-20T11:23:19.134443 | 2018-07-20T08:41:39 | 2018-07-20T08:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py | # -*- coding: utf-8 -*-
import os
from PIL import Image
from .client import RaspiWsClient
from .core import RaspiBaseMsg, RaspiAckMsg, get_binary_data_header
__all__ = ['MmalGraph', 'GraphInit', 'GraphClose', 'GraphProperty']
class GraphInit(RaspiBaseMsg):
_handle = 'init'
_properties = {'display_num'}
d... | [
"amaork@gmail.com"
] | amaork@gmail.com |
22cce2269ea2ed4befefe7ca4abc2ac9e571ba4b | de861acdf4d51a766512be0834055ad403916677 | /xii/meshing/tikz.py | 1bb1f2099ba7f87d45925685e176cfef56a97c9b | [
"MIT"
] | permissive | ChaogeCanFly/fenics_ii | 847c3faf4e1bf591addbe5a279980497f87d9c90 | 49a18855d077ab6e63e4f0b4d6a2f061de7f36ba | refs/heads/master | 2022-12-05T04:25:53.241712 | 2020-04-17T07:40:32 | 2020-04-17T07:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,979 | py | from dolfin import *
template=r'''
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{shapes, snakes, patterns, arrows}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{amsmath, amssymb}
\begin{document}
\begin{tikzpicture}
%(body)s
\end{tikzpicture}
\end{document}
'''
def... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
0d30bcc4d29dbf9b8f231055058bc5135d84c218 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/329/88117/submittedfiles/exe11.py | 36546467df9037e9e9fe2183694c2c0da1de4c3f | [] | 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 | 439 | py | # -*- coding: utf-8 -*-
n = int(input("digite um numero com 8 algarismos: "))
resto = n % 10
n = (n - resto)/10
soma = soma + resto
while soma < 72 :
print ('%d' % soma)
while soma > 1:
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d' % soma)
while soma ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b9ae865af4885206e8591c08daf99dfb5e4e0c87 | 048eaa32bcd05ee278e6f391f9091f1848022987 | /dbdk/ai_based_adaptive_security_system/test_model_ig_init_train.py | b0db71af2f9704dba04a033ca5d993f8cdd48e5d | [] | no_license | kendricklee91/portfolio | 613e14fd6f13027c6d68d56b1b3d96b186de56b1 | ef92604a1e14a3b81ae5e91883c07501def6b3da | refs/heads/master | 2022-11-15T01:00:55.724686 | 2022-10-27T06:47:44 | 2022-10-27T06:47:44 | 170,043,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | from ksv_model.model_payload import known_model, known_model_retrain, known_model_hopt, known_model_inference, data_load_save
from ksv_model.model_ig import ModelIG, ig_data_load_save
import ksv_model.config.const as cst
from sklearn.model_selection import train_test_split, GridSearchCV, RandomizedSearchCV
from sklear... | [
"noreply@github.com"
] | kendricklee91.noreply@github.com |
2cba5f29bc01c1976a25da33aa9cd8b4d8ef6a2c | 49bf36ba213b28d4aaeb63feba632fb05710d565 | /Python/BOJ/2941.py | 24dae225acced1392db2bc7a11b07906bb71c616 | [] | no_license | ohmozi/Algorithm | fc3fc861d4125b642d64b6e344eca806d137d0f2 | 436a376b009e8c073ceebc6b1e29b32b63c15a07 | refs/heads/master | 2023-07-23T16:01:49.774331 | 2021-08-16T02:08:56 | 2021-08-16T02:08:56 | 284,995,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # 크로아티아 알파벳
croatian = ['c=','c-','d-','lj','nj','s=','z=']
# "dz="는 예외
text = input()
i = 0
count= 0
# 3,2,1순으로 확인하기
while i < len(text):
temp = text[i:i+3]
if temp == "dz=":
# print("cro", temp)
i += 3
else:
temp = text[i:i+2]
if temp in croatian:
temp = text... | [
"gown10195@gmail.com"
] | gown10195@gmail.com |
75c467a86726f93b6c2fe1be168a9a16d4ee2d79 | 6a3af6fe669b2e17db1fa7d0751cbc4e04948079 | /fn_sdk_test/fn_sdk_test/components/funct_utilities_pdfid.py | a99c6c6446ee1d02426ea7c1c986e1446f201611 | [
"MIT"
] | permissive | jjfallete/resilient-community-apps | 5f0a728fe0be958acc44d982bf0289959f84aa20 | 2e3c4b6102555517bad22bf87fa4a06341714166 | refs/heads/master | 2022-04-17T13:20:36.961976 | 2020-04-13T07:03:54 | 2020-04-13T07:03:54 | 169,295,943 | 1 | 0 | MIT | 2020-04-13T07:03:56 | 2019-02-05T19:06:57 | Python | UTF-8 | Python | false | false | 2,539 | py | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError
PACKAGE_NAME = "fn_sdk_test"
class FunctionComponent(ResilientComponent):
... | [
"ihor.husar@ibm.com"
] | ihor.husar@ibm.com |
4fd4c2d22d7b4d50e4eb887b4ecc430a0c2dace9 | f340b9f47aaf11d95911074efd16e2878b4608c5 | /200111/Find_Leaves_of_Binary_Tree.py | 18926424e163a47aee3fc9c85898b4f174fd9609 | [] | no_license | Jsonghh/leetcode | 150020d1250a7e13e7387a545b4eb7df0de8f90b | 3a83c0b0bcc43f458f7fc54764f60e1104fcc12e | refs/heads/master | 2020-11-25T03:12:48.842151 | 2020-02-11T02:56:58 | 2020-02-11T02:56:58 | 228,475,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def findLeaves(self, root: TreeNode) -> List[List[int]]:
ans = []
if not root:
return ans
wh... | [
"jiesonghe@outlook.com"
] | jiesonghe@outlook.com |
793b94513930d4a6f4168891222bebd9d24bc2cf | 75e641d2b33d0865e19193877e48748b3de5007c | /Parameter-Config/parameters_examples.py | 1b708cdceb37bafbe36ad059ac0e24e380d2c198 | [
"MIT"
] | permissive | bergolho/fractal-tree | dc3f7918ab6f1a6f714aaec56ee15e092e180733 | c55a375585aac5168063fe34d078b54d3f43364c | refs/heads/master | 2020-06-14T02:42:36.908723 | 2020-02-06T17:57:04 | 2020-02-06T17:57:04 | 194,871,693 | 0 | 0 | null | 2019-07-02T13:45:39 | 2019-07-02T13:45:39 | null | UTF-8 | Python | false | false | 5,275 | py | # -*- coding: utf-8 -*-
"""
This module contains the Parameters class that is used to specify the input parameters of the tree.
"""
import numpy as np
class Parameters():
"""Class to specify the parameters of the fractal tree.
Attributes:
meshfile (str): path and filename to obj file name... | [
"berg@ice.ufjf.br"
] | berg@ice.ufjf.br |
3dd7912d492a6bdcb9818d1262ea0f835f4d0457 | 79b19ce0ae1c305cbcc70efc1ddb3787fff6a211 | /reax/out2garf.py | bbc838072a16fde95366020a08f1222b263933dd | [
"MIT"
] | permissive | hsulab/DailyScripts | 0e35dcbe103c439045b520987fa808f286cf27a6 | 55c0c269b9382bbb5bd9a07e91bb0683351c077a | refs/heads/master | 2022-05-06T14:02:02.727633 | 2022-04-21T13:14:42 | 2022-04-21T13:14:42 | 244,178,239 | 3 | 0 | MIT | 2020-10-01T20:27:10 | 2020-03-01T15:55:58 | Python | UTF-8 | Python | false | false | 8,881 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import time
import argparse
import numpy as np
from scipy import integrate
pi = np.pi
norm = np.linalg.norm
inv = np.linalg.inv
dot = np.dot
cross = np.cross
arccos = np.arccos
description=r"""
Author: Jiayan Xu, jxu15@qub.ac.uk
"""
def read_o... | [
"ahcigar@foxmail.com"
] | ahcigar@foxmail.com |
8cc06657b6869b3435b2d98c650dc7996905f496 | 8644a2174c3cb7ccfe211a5e49edffbcc3a74a46 | /Learning/Algorithms/DevideAndConquer/longest_com_prefix.py | eafc03411d5fb9a2d33de218b11db52537c54464 | [] | no_license | bhavya2403/Learning-Python | 9e7cc9dee21172321fb217cae27c8072357f71ce | 3898211b357fbab320010a82a4811b68611d0422 | refs/heads/main | 2023-03-24T03:19:49.989965 | 2021-03-22T20:11:04 | 2021-03-22T20:11:04 | 315,962,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | def combineTwo(strA, strB):
i = 0
m, n = len(strA), len(strB)
while i < min(m, n):
if strB[i] != strA[i]:
if not i:
return ''
return strB[:i]
i += 1
return strB[:i]
def longestCommonPrefix(arr, l, r):
if l==r:
return arr[... | [
"noreply@github.com"
] | bhavya2403.noreply@github.com |
0ce215260f26c84f7bd0381d434be95578624498 | e621a2e763709336894bb33623cf6d20d7858c6f | /Stepwise.py | 373650f95dae4d0688a030c7efa06ead06e3cbae | [] | no_license | myliu/document-classification | 49d688fe0b5fdd79a6d2fca36b78277d273762cd | 7b9078912a4fd770ea614660ec770ccbc23bfdd1 | refs/heads/master | 2021-01-01T05:38:25.318323 | 2013-09-16T01:22:53 | 2013-09-16T01:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,586 | py | ## author: Mingyu Liu
## author: Shi He
import numpy as np
import string
from Dataset import *
def main():
d = Dataset("rec.sport.hockey.txt", "rec.sport.baseball.txt", cutoff=200)
(Xtrain, Ytrain, Xtest, Ytest) = d.getTrainAndTestSets(0.8, seed=100)
lam = 100
cols = []
currentErro... | [
"mliu@quantcast.com"
] | mliu@quantcast.com |
3260d1f7fbafdfc7446d26ae7c1e39ae12844548 | 2f418a0f2fcca40f84ec0863b31ff974b574350c | /scripts/addons_extern/sound_drivers/driver_panels.py | 1c049ce3d52ed61492e5cc8e6487450af216c921 | [] | no_license | JT-a/blenderpython279 | 57a81b55564218f3b1417c2ffa97f5161897ec79 | 04846c82f794c22f87d677d9eb8cec1d05c48cda | refs/heads/master | 2021-06-25T06:58:07.670613 | 2017-09-11T11:14:36 | 2017-09-11T11:14:36 | 103,723,697 | 4 | 2 | null | 2017-09-16T04:09:31 | 2017-09-16T04:09:31 | null | UTF-8 | Python | false | false | 14,742 | py | bl_info = {
"name": "Driver Panels",
"author": "batFINGER",
"location": "Properties > Speaker > MIDI",
"description": "Display Drivers in TOOLS and PROPERTIES ",
"warning": "Still in Testing",
"wiki_url": "http://wiki.blender.org/index.php/\
User:BatFINGER/Addons/Sound_Drivers",
... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
92e82e328ade7f03df9e0af8ba121385d3be56e6 | 98dde5ccdb145de9aab3e7233c3ec6c9c13a0649 | /controller/qt_classes/LineEditDelegate.py | eaedc896fc950ae5c89c31e9713ccb06d136e5a0 | [] | no_license | teamlm2/lm2 | f586aaf7af44cbb64964f2c2bfeffa3e902d4752 | 416cc189b6fc16bf61583891783eef7e4a9e1278 | refs/heads/master | 2018-12-22T18:38:19.360889 | 2018-10-04T02:12:11 | 2018-10-04T02:12:11 | 109,807,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | __author__ = 'anna'
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class LineEditDelegate(QStyledItemDelegate):
def __init__(self, column, completer_value_list, parent):
super(LineEditDelegate, self).__init__(parent)
self.line_edit_column = column
self.completer_model = QStringList... | [
"aagii_csms@yahoo.com"
] | aagii_csms@yahoo.com |
6dbec1025dda199acee235c6639074adb8892917 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/ea888a3beaac408f9f93b24fd31d9d7a.py | afffcc7b61868c9975cd535c55505f2650b87b53 | [] | 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 | 490 | py | class DNA:
dna_sequence = ''
def __init__(self, value):
self.dna_sequence = value
def to_rna(self):
new_sequence = ''
for letter in self.dna_sequence:
if letter == 'G':
new_sequence += 'C'
elif letter == 'C':
new_sequence += ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
cd676e15a7d03535de5ff911140dc2d8ab4aa212 | ed1a4b2dba31905ccac09136a693c2d5c7697de8 | /helpers/create_user_csv.py | e397736e82540a5b553663cbada881455e949a72 | [] | no_license | twkampala/dhis2-config-exercise | 5580666cebcdf5c65cbb81174670d87266e98c8a | 76f835ea36ec6df64c04d6a207ef09176161843b | refs/heads/master | 2021-01-01T16:06:12.658622 | 2015-07-08T03:49:09 | 2015-07-08T03:49:09 | 38,424,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from faker import Faker
def decide_role(n, roles):
if((n+1) % 2 == 0):
return roles[1]
else:
return roles[0]
def create_csv_file(path, number_of_users):
f = Faker()
roles = ['ordinary user', 'admin user']
default_password = "secretPassword"
with open(path, "w") as file_handle:
... | [
"jmured@gmail.com"
] | jmured@gmail.com |
6aa7b9e0e5cd9dc45f0c134f9da1ce1c4e431b5d | bcdf30ab17d406643fb8ec01bafcd6cbf625bb44 | /product_brand_pricelist/__openerp__.py | 14df672457ad1d4cab78b820f20afd4fcb8344fe | [] | no_license | more2makeTim/odoo-extra-addons | a37915da3407b38cf3fcfbdbecb67435cb7e8f76 | ac81232e4d360d8cd645b2d3471da8779d77a4a5 | refs/heads/8.0 | 2020-04-21T17:56:16.337747 | 2018-07-06T10:42:48 | 2018-07-06T10:42:48 | 94,529,482 | 0 | 0 | null | 2017-06-16T09:39:22 | 2017-06-16T09:39:22 | null | UTF-8 | Python | false | false | 1,303 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Copyright (c) 2015 ERP|OPEN (www.erpopen.nl).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Aff... | [
"a.schenkels@ictstudio.eu"
] | a.schenkels@ictstudio.eu |
494583cd122cebd875997029ca81b58f4782fc31 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ATSWTCH2-MIB.py | 38408970de263898e851492763c790f7c84465ae | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 93,849 | py | #
# PySNMP MIB module ATSWTCH2-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ATSWTCH2-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:30:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
d74e6cfee0eaffc2c322f2c874f880f51dcd580b | 057b67b78201b7b5dbbd9f4030146b42ddb8d02d | /docs/aes.py | 4eea92bfe0a7b4111ec20f594c66dcef9fa72cd2 | [] | no_license | ttme08/fanqiang | 1213444f76a6131885d3b4ce23e7e85f2690fa01 | 5c277f128ffd7733040934eaaa83a3d1c6baeb22 | refs/heads/master | 2022-06-14T17:17:30.399885 | 2020-05-04T12:40:22 | 2020-05-04T12:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,924 | py | J4KMEAGjZX8Sei0xEEEiKSoWraXG/WLYrGZiuaC8eHtt5NJiZTWL6Sf9exZyNjup5J9pT8bd61tnL0gO3+sRk/+hdwrfWHRX81m+haccHtDvjrm97RiNPl0OFdD0nWbS+XvyWjJVFb3bWV+uiJgqjwu/RZwqhuwSgJyWhzfXsm5xyPe2SWEqty3JuQwHzbylZGJ+OWpEXxLW+tfE/99gR2HCLFEjO/cOKf9CU0E4oj1+cRUhNYcqcyJlreRjNOKJMKpZYhg+u/05x1esiOuPWfdfwA3ezKwL+kF1cLPcNsEdEYipOOp/G9mW7VIgeRg0... | [
"banned.ebook@gmail.com"
] | banned.ebook@gmail.com |
afdcc0c01670b6fc5fa0699e55af74a39a6142d1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_148/ch129_2020_04_01_17_10_28_115191.py | 34a06276257b7733d2482ed96600077a526ce61a | [] | 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 | 199 | py | def verifica_quadrado_perfeito(x):
i = 1
n = x-i
while n!=i:
n == x-i
i+=2
if x-i == 0:
return True
elif x-i < 0:
return False | [
"you@example.com"
] | you@example.com |
a7c78601b7a6b035ad14b7ba9cb3399e16ee8108 | 6e1d6d058907e689207ca51525adb0fc11fb5f54 | /Chapter05/Exercise5.03/bookr/reviews/tests.py | 312a8d690b716c2aff67cfdb22e04c6bdf7f9d28 | [
"MIT"
] | permissive | lmoshood/The-Django-Workshop | a083b9f171e7f8388abd51ea82927377721d01a9 | 52e86a8f93cb38bf70d50e9b8d2c6d7dac416f62 | refs/heads/master | 2022-04-20T20:13:59.917020 | 2020-04-19T23:23:19 | 2020-04-19T23:23:19 | 259,112,469 | 0 | 1 | null | 2020-04-26T19:11:57 | 2020-04-26T19:11:56 | null | UTF-8 | Python | false | false | 2,334 | py | import os
from urllib.request import urlopen
from django.conf import settings
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
def read_content(path):
with open(path) as f:
return f.read()
class Exercise3Test(StaticLiveServerTestCase):
"""
These tests use `StaticLiveServe... | [
"ben@beneboy.co.nz"
] | ben@beneboy.co.nz |
134669add83e4232b2570c51e0fed52d4fb43c12 | 3416464630bc3322dd677001811de1a6884c7dd0 | /dynamic_program/q1143_longestCommonSubsequence/__init__.py | adf40b3d5d875edbfd4202d998f732b09bf6200a | [] | no_license | ttomchy/LeetCodeInAction | f10403189faa9fb21e6a952972d291dc04a01ff8 | 14a56b5eca8d292c823a028b196fe0c780a57e10 | refs/heads/master | 2023-03-29T22:10:04.324056 | 2021-03-25T13:37:01 | 2021-03-25T13:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
FileName: __init__.py.py
Description:
Author: Barry Chow
Date: 2020/10/15 10:19 AM
Version: 0.1
"""
from .DP_Solution import Solution
__all__ =[
'Solution'
] | [
"zhouenguo@163.com"
] | zhouenguo@163.com |
f35bb1db7e398b0c815fab2296103f35be66b629 | f6078890ba792d5734d289d7a0b1d429d945a03a | /hw2/submission/zhubenjamin/zhubenjamin_37891_1274820_Problem 1.py | 579a43701a6466f3d97ec4fe8b7c6cc99cbc2f7b | [] | no_license | huazhige/EART119_Lab | 1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0 | 47931d6f6a2c7bc053cd15cef662eb2f2027712c | refs/heads/master | 2020-05-04T23:40:53.709217 | 2019-06-11T18:30:45 | 2019-06-11T18:30:45 | 179,552,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | # -*- coding: utf-8 -*-
"""
Created on Apr 21, 2019
Class = Astro/Eart 119
Homework 2 - Plots and Animations
Student = Benjamin Zhu (1696575)
"""
#============================================
# (a) imports
#============================================
import numpy as np
injWell = np.loadtxt('in... | [
"hge2@ucsc.edu"
] | hge2@ucsc.edu |
fd5d67ef0340351cfc841b9b113a3ecc4e7b8449 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4363/codes/1721_3035.py | 9964b5fe3880b93dfe8713cd506071cb92e26c0a | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | a=input("escreva um numero")
If=(a>0):
msg=dasd | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
9df1353b0a03a8a08e934b246193d8cde5896f35 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/storagemover/azure-mgmt-storagemover/generated_samples/job_definitions_list.py | 953d0df43bb9313da6edaeaf6657c5ef22dadf96 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,666 | 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"
] | openapi-env-test.noreply@github.com |
3788541c03d8e3cdd90d225eba3d8e953c24f588 | f07a42f652f46106dee4749277d41c302e2b7406 | /Test Set/Open Source Projects/tensorlayer/88d239631b9eb49527c21053d79d55e012f11a3c-2-bug.py | a5c542dc0897f55fcb1489019b0b411308f3883d | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,490 | py | #!/usr/bin/env python
__doc__ = """
This demo implements FastText[1] for sentence classification. FastText is a
simple model for text classification with performance often close to
state-of-the-art, and is useful as a solid baseline.
There are some important differences between this implementation and what
is descri... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
b4d9093c07bfb5ebb268fc66790a9f456208aeda | e3b89fc928ed736b1cdf7067d71c0f5f7d9e3586 | /encodeData.py | 9093b97281d18e236b8cd5e868d896c1ee0384cc | [] | no_license | tgadf/pymva | 0b801277b27eb626ee61424e6ef24716087ba582 | 960127c880e61732db77c1049a5fe5ab9918e534 | refs/heads/master | 2020-04-02T19:27:38.956710 | 2018-10-30T00:10:29 | 2018-10-30T00:10:29 | 154,734,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 7 23:17:31 2018
@author: tgadfort
"""
#conda install -c conda-forge category_encoders
#https://github.com/scikit-learn-contrib/categorical-encoding
import category_encoders as ce
encoder = ce.BackwardDifferenceEncoder(cols=[...])
encoder = ce.Bi... | [
"tgadfort@gmail.com"
] | tgadfort@gmail.com |
39f4aec86bf95b756d12cd722cb068c5c35e5824 | 60d737103373825b858e67292865bda8c6f2094f | /active/theses-harvard.py | 52bc1449f4ad0047fdfea0a63b2cea46a68924ce | [] | no_license | fschwenn/ejlmod | fbf4692b857f9f056f9105a7f616a256725f03b6 | ef17512c2e44baa0164fdc6abc997c70ed3d2a74 | refs/heads/master | 2023-01-24T18:56:35.581517 | 2023-01-20T11:18:16 | 2023-01-20T11:18:16 | 91,459,496 | 1 | 1 | null | 2021-10-04T11:58:15 | 2017-05-16T13:06:57 | Python | UTF-8 | Python | false | false | 4,100 | py | # -*- coding: utf-8 -*-
#harvest theses from Harvard
#FS: 2020-01-14
import getopt
import sys
import os
import urllib2
import urlparse
from bs4 import BeautifulSoup
import re
import ejlmod2
import codecs
import datetime
import time
import json
from selenium import webdriver
from selenium.webdriver.support.ui import W... | [
"florian.schwennsen@desy.de"
] | florian.schwennsen@desy.de |
466d4d1bb55b8dafeb39b97860256ff284104ef0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_jugulars.py | 7cd2dde2bba0293c62b58fbfd9c1b89af3e71010 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py |
from xai.brain.wordbase.adjectives._jugular import _JUGULAR
#calss header
class _JUGULARS(_JUGULAR, ):
def __init__(self,):
_JUGULAR.__init__(self)
self.name = "JUGULARS"
self.specie = 'adjectives'
self.basic = "jugular"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
eb724ce8161a951868219e4b96af89a03703ee0a | 1e4c3ea6fadfd2bcffe900a784009e59c9e33202 | /AxiomPro/DisplayingMixerComponent.py | f015a44ce89102f7e1b660ca435c361723864fcf | [] | no_license | mjimserra/AbletonLive9_RemoteScripts | e762e0c761f0af88fc1b9a8b42ef4dec2df02f72 | d08eb29fbf1ac4d12f73841023375059de5ba29a | refs/heads/master | 2021-05-27T21:34:04.962364 | 2014-08-03T22:49:15 | 2014-08-03T22:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,479 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_static/midi-remote-scripts/AxiomPro/DisplayingMixerComponent.py
from _Framework.ButtonElement import ButtonElement
from _Framework.MixerComponent import MixerComponent
from _Framework.PhysicalDisplayElement import PhysicalDisplayElement
class Disp... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
4f706e123529a9d70768fd0c674f57ebc67ba8c0 | ed6625148299e759f39359db9f932dd391b8e86f | /personal_env/lib/python3.8/site-packages/django/template/backends/utils.py | a15e96d77a0902ad37e71d6e5aee17539bde31a4 | [
"MIT"
] | permissive | jestinmwilson/personal-website | 128c4717b21fa6fff9df8295b1137f32bbe44b55 | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | refs/heads/main | 2023-08-28T11:31:07.916714 | 2021-10-14T09:41:13 | 2021-10-14T09:41:13 | 414,847,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from django.middleware.csrf import get_token
from django.utils.functional import lazy
from django.utils.html import format_html
from django.utils.safestring import SafeString
def csrf_input(request):
return format_html(
'<input type="hidden" name="csrfmiddlewaretoken" value="{}">',
get_to... | [
"noreply@github.com"
] | jestinmwilson.noreply@github.com |
ad589e0a99c3938a5c763d820fe4999d6891dd38 | 9f59670ff100632e5a5e24d10a698e50c115dc35 | /devise/utils/tasks.py | 9bbec95328e00ed6d2a57630e9136befaacdfad4 | [] | no_license | mehdidc/reproduction | 7927990c94f6ffee92c16fd550ecf44060b5544d | 63add75dbdda0575bbc59b895092146cb92848e0 | refs/heads/master | 2020-04-28T02:25:33.388228 | 2017-04-06T21:11:39 | 2017-04-06T21:11:39 | 174,897,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from invoke import task
import pickle
@task
def word_embedding_to_binary(filename, out_filename):
words = dict()
with open(filename) as fd:
for line in fd.readlines():
components = line.split(" ")
word = components[0]
embedding = map(float, components[1:])
... | [
"mehdi@cherti.name"
] | mehdi@cherti.name |
ef72922eb4c2256568f87f0af32022faf169f981 | 020489f1519deb3dd6df459d2b4a853bf64c6278 | /triclelite/scramble/tools/common_tools.py | bfa2db731bbbcd0256f0039d1f06ad2318181bc8 | [] | no_license | reritom/Tricle-Lite | 8d59e58299b19ee355a2153def4d72fb890cb6ab | c01065da770e7723bccb55d7f314f8b4164861d6 | refs/heads/master | 2021-06-03T16:18:41.307052 | 2020-11-13T12:02:17 | 2020-11-13T12:02:17 | 116,177,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | def show_request(request):
'''
This method prints the request data and images. Only to be used in local
'''
print("data: " + str(request.POST))
print(request.FILES)
| [
"reikudjinn@gmail.com"
] | reikudjinn@gmail.com |
d029694c6ea99255d45c0c33dda89431de55aa7f | fe26b42d185c531b38a306fec6d35a6b00f03f88 | /multiprocess-queue.py | 8a8ddaa5d3dc4841792bc41e5e009d025cd59d55 | [] | no_license | szhmery/test-python | 067e15d94c2a214868432cbfc934f0d6c07ec711 | 65627c8dd9b13e6ae803e617ba3df5b7d88f9d27 | refs/heads/master | 2020-03-14T07:24:28.070812 | 2018-07-27T14:36:41 | 2018-07-27T14:36:41 | 131,504,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import time
from multiprocessing import Process, JoinableQueue, Queue
from random import random
tasks_queue = JoinableQueue()
results_queue = Queue()
def double(n):
return n * 2
def producer(in_queue):
while 1:
wt = random()
time.sleep(wt)
in_queue.put((double, wt))
if wt >... | [
"szhmery@gmail.com"
] | szhmery@gmail.com |
7be6f2344f4f155b1d863065c960619f6ca0a958 | 03cb73ffb69f2caa0f91b62d99d8694d24c6c932 | /arc/__init__.py | 0e94ed53d9bb541061d79220b060b96dd4f1f249 | [
"MIT"
] | permissive | Den4200/arc | 84f1b69beeb2d1aa6be78a740277772d586127a9 | 55d9c43c0db9f3342ef5b5e8fed429e423ad1f3a | refs/heads/master | 2023-05-10T16:04:21.050895 | 2020-05-03T08:22:38 | 2020-05-03T08:22:38 | 260,573,175 | 1 | 0 | MIT | 2021-06-02T01:43:46 | 2020-05-01T22:49:11 | Python | UTF-8 | Python | false | false | 686 | py | from typing import List, Tuple, Union
class _Keycodes:
"""
Returns multiple keycodes from
a dictionary in one request.
"""
def __init__(self) -> None:
self.keys = {
'enter': 13,
'del': 127,
'backspace': 8,
'esc': 27,
... | [
"dpham.42@hotmail.com"
] | dpham.42@hotmail.com |
d5f1ccfa5c7346676dcd4a84e16d05fec5e5019b | f4547c0e47f9f4d4d6ba4fe3f2908094dc0ac511 | /first.py | fbab4d252666861d003ffc3dc71ae819e03456d5 | [] | no_license | gautamamber/python_mongodb- | c63e00be2eb19029d593462c65268c31a2733a18 | fa595d667c9820263256cabf9a6deae07ec70df8 | refs/heads/master | 2021-05-07T15:24:53.143954 | 2017-11-08T17:06:51 | 2017-11-08T17:06:51 | 110,005,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from pymongo import MongoClient
MONGODB_URI = "mongodb://amber:amber@ds155325.mlab.com:55325/amberamity"
client = MongoClient(MONGODB_URI, connectTimeoutMS=30000)
db = client.get_database("amberamity")
user_records = db.user_records
def getRECORD(user_id):
records = user_records.find_one({"user_id":user_id})
r... | [
"ambergautam1@gmail.com"
] | ambergautam1@gmail.com |
3dd4730257d2ce9162b298d0a83a83683ab1fdb6 | 4900fcc64f66590068ba2197714b8ac4d2bc00fc | /posts/migrations/0024_subcat.py | 64427f1bc083f827dd955d7976162f7fda01079a | [] | no_license | Titania1/e-learning-platforme | ccea984afd1bc6407d9fd89369b17b47a3203f9a | 798633e16c8aab4a6b4ea66b1231f90b92d99cff | refs/heads/main | 2023-06-20T07:26:55.149463 | 2021-07-18T10:41:42 | 2021-07-18T10:41:42 | 387,149,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # Generated by Django 3.1.4 on 2021-01-04 11:56
import autoslug.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('posts', '0023_auto_20210104_1057'),
]
operations = [
migrations.CreateModel(
... | [
"shivamrohillaa@gmail.com"
] | shivamrohillaa@gmail.com |
55f99b5bd75bdb54382219c2c32332676bbf0b37 | 4ad7b285be90bf5e1dad8d81f741fe177c56dbf4 | /whelk/tests/test_basic.py | 94414511153074c958485a3408f29dc618dae43b | [
"LicenseRef-scancode-warranty-disclaimer",
"Zlib"
] | permissive | git-spindle-test-1/whelk | 1be65e23ca79203bc714a9b22a236f52d89ed13b | 03406c86a4435b698b9144ce674c8c8a994d8b5e | refs/heads/master | 2021-01-21T12:43:26.481368 | 2015-12-14T15:08:44 | 2015-12-18T18:30:52 | 56,990,062 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | from whelk.tests import *
class BasicTest(unittest.TestCase):
"""Tests whether we can find commands"""
def test_notfound(self):
# Non-existing command
self.assertRaises(AttributeError, lambda: shell.i_do_not_exist)
self.assertRaises(KeyError, lambda: shell['/not/found'])
def test_b... | [
"dennis@kaarsemaker.net"
] | dennis@kaarsemaker.net |
d2c17457e9ba693684064ebe430d7e92251f9529 | c97536dc1d63e5ab99a3c494cdbd7c329e654efd | /api/client/test/test_pipeline_service_api.py | 01a580101c9ebd2fa52b9387194901e9d484f82c | [
"Apache-2.0"
] | permissive | sabary661990615/mlx | 9958180c42e00b32498b572098789046c927aa0c | 7684155c074f1bd1d16ab183598ce6d19414267b | refs/heads/main | 2023-07-14T12:45:35.408653 | 2021-08-20T21:34:17 | 2021-08-20T21:34:17 | 394,724,026 | 0 | 0 | Apache-2.0 | 2021-08-10T17:11:49 | 2021-08-10T17:11:48 | null | UTF-8 | Python | false | false | 2,377 | py | # Copyright 2021 IBM Corporation
#
# 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 ... | [
"82406273+mlx-bot@users.noreply.github.com"
] | 82406273+mlx-bot@users.noreply.github.com |
0b07d00ae2dbeac0f4c27afa2a0627c8cecf4ce3 | 264ff719d21f2f57451f322e9296b2f55b473eb2 | /tools/nntool/reports/activation_reporter.py | 00b3388c2cf0163e0f28e97977614afe6899ef17 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | knmcguire/gap_sdk | 06c9537c16fa45dea6b7f5c6b162b53953262915 | 7b0a09a353ab6f0550793d40bd46e98051f4a3d7 | refs/heads/master | 2020-12-20T06:51:19.580497 | 2020-01-21T14:52:28 | 2020-01-21T14:52:28 | 235,992,961 | 0 | 0 | Apache-2.0 | 2020-01-24T11:45:59 | 2020-01-24T11:45:58 | null | UTF-8 | Python | false | false | 3,693 | py | # Copyright (C) 2019 GreenWaves Technologies
# All rights reserved.
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
import copy
from collections import OrderedDict
from graph.nngraph import NNGraph
from utils.stats_funcs import STATS_BITS, asta... | [
"noreply@github.com"
] | knmcguire.noreply@github.com |
6b57348d5f5ad826051c302ab6dd0b359e0c9756 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/gigasecond/442744b90ea54dde9d89774dcc794c00.py | cac1e2d437346165b5cedc399ecfb21e3134ec27 | [] | 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 | 167 | py | from datetime import date, timedelta
gigaseconds = timedelta(seconds=10**9)
def add_gigasecond(birthdate):
return birthdate + gigaseconds
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
5102a36c3d40740383d2bf17d4d414eaded9c386 | 870639af1487cf59b548f56c9cd1a45928c1e2c2 | /tests/components/knx/test_services.py | c61dc54258630841851c356535c813aae14a0971 | [
"Apache-2.0"
] | permissive | atmurray/home-assistant | 9f050944d26c084f8f21e8612a7b90c0ae909763 | 133cb2c3b0e782f063c8a30de4ff55a5c14b9b03 | refs/heads/dev | 2023-03-19T04:26:40.743852 | 2021-11-27T05:58:25 | 2021-11-27T05:58:25 | 234,724,430 | 2 | 0 | Apache-2.0 | 2023-02-22T06:18:36 | 2020-01-18T11:27:02 | Python | UTF-8 | Python | false | false | 5,995 | py | """Test KNX services."""
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.core import HomeAssistant
from .conftest import KNXTestKit
from tests.common import async_capture_events
async def test_send(hass: HomeAssistant, knx: KNXTestKit):
"""Test `knx.send` service."""
test_address = "1... | [
"noreply@github.com"
] | atmurray.noreply@github.com |
0de155d0c6246dd70a43627dbd6d4515146bed41 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_167/ch56_2019_04_02_11_22_12_410576.py | b71102a26ce7e6987c76cd0a9081fe8dbd16784a | [] | 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 | 150 | py | def calcula_total_da_nota (n):
l=[]
b=[]
i=0
n=0
while i and n < len(n) and len(i):
total= n*i
i+=1
n+=1
| [
"you@example.com"
] | you@example.com |
bcc91652c70b1a92f4873c008d7dabf8801030e9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02645/s156048297.py | afa43aa220d5ff522e36ba28420cfeec8ee2b4de | [] | 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 | 29 | py | a=str(input())
print(a[0:3])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
679461f083307a15e18fd892f8642f995542c663 | 3f5a1ef51620fd8c35ef38064ca5aa00776ab6f4 | /ds_and_algo_educative/Circular_Linked_List/Delete_node.py | b03ffc0b97506c96ab87f6e8860db2a1d712a1da | [] | no_license | poojagmahajan/python_exercises | 1b290a5c0689f703538caf89bca5bc6c1fdb392a | 65539cf31c5b2ad5768d652ed5fe95054ce5f63f | refs/heads/master | 2022-11-12T03:52:13.533781 | 2020-07-04T20:50:29 | 2020-07-04T20:54:46 | 263,151,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,958 | py |
"""steps -
1. if List is not empty
2. if Deleting the head node
set cur to head
iterate till next of cur is head
(means here cur is last node which points to head)
3. if head is only node in list means point to self
then make head none
... | [
"mahajanpoojag@gmail.com"
] | mahajanpoojag@gmail.com |
8392d6f1d064da42edf447bcb039414eb395da39 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20200301/route_filter.py | 31d4a201da6cf4027db382609ba4d081877b78b9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,170 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
13e571b7ef732cb18760a4b8eac56aae11b7b6f6 | af500242dc59de0855873e87a1f7f3ff69f7c9b0 | /discord_bot.py | 08bca3a0117cb0e2921510f9b396bd5bc3e1a628 | [] | no_license | Sispheor/discord_troll_bot | 0400aefe9ca6477139b498c6850cf2d710810a10 | 6621556cd63c20e21865de6f05760f6fb321674d | refs/heads/master | 2022-02-22T09:05:09.423633 | 2021-10-24T19:00:08 | 2021-10-24T19:30:07 | 156,092,074 | 0 | 0 | null | 2021-04-18T10:05:53 | 2018-11-04T14:44:24 | Python | UTF-8 | Python | false | false | 2,669 | py | # authorize bot
# https://discordapp.com/oauth2/authorize?&client_id=<my_id>&scope=bot&permissions=0
# apt install ffmpeg
import os
import signal
import discord as discord
from database_loader import get_database
from models.discord_user import DiscordUser
from models.game_session import GameSession
from my_discord_c... | [
"nico.marcq@gmail.com"
] | nico.marcq@gmail.com |
f1571ba276d35a04cb87417fbfbd357256c78554 | 4250618abef0d0dcf399f8a2a23e2049c3458ea8 | /website/wiki/editors/__init__.py | 926c100f57e637ce11700d4e06c62066e48e9193 | [
"MIT"
] | permissive | skbly7/serc | 121fd7e88df25213de4d53fce4bd03c2ea448d68 | 4442298ee05c24c3c6bacffdc56a9f6076397cce | refs/heads/master | 2020-12-27T03:18:45.280464 | 2019-05-16T06:10:31 | 2019-05-16T19:13:12 | 53,425,352 | 0 | 2 | MIT | 2019-05-16T19:13:14 | 2016-03-08T16:00:03 | Python | UTF-8 | Python | false | false | 420 | py | from __future__ import absolute_import
from wiki.conf import settings
from django.core.urlresolvers import get_callable
_EditorClass = None
_editor = None
def getEditorClass():
global _EditorClass
if not _EditorClass:
_EditorClass = get_callable(settings.EDITOR)
return _EditorClass
def getEdito... | [
"skbly7@gmail.com"
] | skbly7@gmail.com |
bffda1a8a18b767fb92c11803909d33101a396ef | 6c8b3ef3b6a3e77ee9a3cc56898217654b043154 | /typings/rdkit/Chem/Suppliers/DbMolSupplier.pyi | 61f763c7a446fccf2fb3da136c8676a0431cb1d8 | [
"MIT"
] | permissive | Andy-Wilkinson/ChemMLToolkit | 8a1eb24ab317c470bc89efa206e38734cb83a7d2 | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | refs/heads/main | 2021-12-26T04:44:05.566942 | 2021-12-13T21:59:57 | 2021-12-13T21:59:57 | 171,165,863 | 2 | 2 | MIT | 2021-12-13T17:18:30 | 2019-02-17T20:00:01 | Python | UTF-8 | Python | false | false | 1,565 | pyi | """
This type stub file was generated by pyright.
"""
from rdkit.Chem.Suppliers.MolSupplier import MolSupplier
"""
Supplies a class for working with molecules from databases
"""
def warning(msg, dest=...): # -> None:
...
class DbMolSupplier(MolSupplier):
"""
new molecules come back with all additional fields... | [
"Andy-Wilkinson@users.noreply.github.com"
] | Andy-Wilkinson@users.noreply.github.com |
ea2d8384e1eb62039f6b064003a69cf716fde930 | e26dffd4a54c8c897613bb62a6587d224be8f669 | /.venv/bin/pip3.8 | c109039e60222b71da8a7912000dc14609cc5ade | [] | no_license | MohammedGhafri/django_crud | c5b8984a94dbd8bc592e3c9aab33b76971acac9b | 39e6b4b6b1ef6b1b7ef49c4df991037bdf9e0abf | refs/heads/master | 2022-12-24T12:46:18.394854 | 2020-09-23T08:10:17 | 2020-09-23T08:10:17 | 297,665,059 | 0 | 1 | null | 2020-09-23T08:10:19 | 2020-09-22T13:54:54 | Python | UTF-8 | Python | false | false | 247 | 8 | #!/home/ghafri/django_crud/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"eng.m.ghafri@gmail.com"
] | eng.m.ghafri@gmail.com |
33d9495d1ef2da387aa48d675ce46f75f0399f46 | e2b828b2a83ffdc908399a62afbdcfe45d4e5ce1 | /project/urls.py | addf5a1ad0fb3df153e795251248c82c84cef294 | [] | no_license | mamee93/django-ecommerc | 31294bbce7026e8987d1a21aa0988928127fae82 | d0764b50a981b9d77c9c34f01d2bcad7da9ba34e | refs/heads/main | 2023-02-08T20:32:11.877218 | 2021-01-03T16:04:28 | 2021-01-03T16:04:28 | 326,438,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"mameeal@gmail.com"
] | mameeal@gmail.com |
1ec663443d423b72112a60041ac5443ef0a9f4b3 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /94/94.binary-tree-inorder-traversal.234795664.Accepted.leetcode.py | 26e7f20ae3496c22874206d6011746e3b09545bf | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Solution(object):
def inorderTraversal(self, root):
result = []
stack = []
while stack or root:
if root:
stack.append(root)
root = root.left
else:
root = stack.pop()
result.append(root.val)
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
80f5d642f07cd6433d6b58cab64d9c53b8440152 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2941/60621/242434.py | 0e697308ad5b1ceb32b7b72dad3cfcad3fe71ad9 | [] | 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 | 126 | py | a=int(input())
b=input()
d={"A":4,"B":3,"C":2,"D":1,"F":0,"E":0}
c=0
for i in b:
c+=d[i]
print("{:.14f}".format(c/len(b))) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
69632ae9cb5db0756f0d21a8818b31c02b613944 | 6f182e6b07b2574a1266e02f1e872e6530a0eb19 | /graph2text/onmt/bin/preprocess.py | 3d8ffedca4e28360f2a80529780c9147a8ac3a7e | [
"MIT",
"Apache-2.0"
] | permissive | ahoho/kg2text | bc6b6dd6609c40e299881beeeb139d781df48339 | 4eaecc3d45a47049fdef2cdb7d309f6f32203be2 | refs/heads/master | 2022-12-24T09:40:05.301432 | 2020-06-26T06:56:37 | 2020-06-26T06:56:37 | 275,256,661 | 0 | 0 | Apache-2.0 | 2020-06-26T22:11:10 | 2020-06-26T22:11:09 | null | UTF-8 | Python | false | false | 11,471 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Pre-process Data / features files and build vocabulary
"""
import codecs
import glob
import gc
import torch
from collections import Counter, defaultdict
from onmt.utils.logging import init_logger, logger
from onmt.utils.misc import split_corpus
import onmt.inputter... | [
"ribeiro@aiphes.tu-darmstadt.de"
] | ribeiro@aiphes.tu-darmstadt.de |
8fe8d8bbb0912b1b6723ae96719c9d83cd3a7cb7 | 60fa442ae76b960ab21b10fb527c0eac85cdc587 | /python/GetBfacsfromPdb2Pdb.py | 25a0cab9d1c0a5eb66ba89cf74ff05ede32f6a54 | [] | no_license | pjanowski/Pawel_PhD_Scripts | 8e6c2b92b492f9cacf425327a01faaceb27bb87d | 5f9b1735ca6da8fdf0946d6748f3da7d3d723d5e | refs/heads/master | 2021-01-10T06:15:30.287053 | 2015-11-16T04:04:07 | 2015-11-16T04:04:07 | 46,250,317 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | #! /usr/bin/python
import sys
import os
from numpy import *
#####input the following variables
crystalfile=sys.argv[1]
targetfile=sys.argv[2]
#############################
#This is to get the bfactors from the original cif or pdb file and put them
#the bfactor column of another file. If atoms are in the same order ... | [
"pawelrc@gmail.com"
] | pawelrc@gmail.com |
e466432360117169eeda09a88c691d3f1ac4ecda | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/file/test_sensor.py | 725ccb527f8127426461473a8f07eae6fda3b9de | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 3,066 | py | """The tests for local file sensor platform."""
from unittest.mock import Mock, patch
import pytest
from homeassistant.const import STATE_UNKNOWN
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
from tests.common import get_fixture_path, mock_registry
@pytest.fixtu... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
cff39237331fe9e1d9a2bd00d5eb9295e1a2f178 | 3c936cecac73c0de0ce8bca959ef9b49abf96b5e | /slowfast/utils/benchmark.py | 94b94b4f8038517f82d504da2378cc5937ed7c48 | [
"Apache-2.0"
] | permissive | AlexanderMelde/SlowFast | 8cce07d399d3b0d2fe08bf471b5f69e147e9c9e3 | b26b3ec3f3b4cd34c3d626b0fa06818bc69327f4 | refs/heads/master | 2022-11-19T00:50:49.484136 | 2020-04-29T23:28:08 | 2020-04-29T23:30:51 | 257,588,764 | 0 | 0 | Apache-2.0 | 2020-04-30T20:51:40 | 2020-04-21T12:29:11 | Python | UTF-8 | Python | false | false | 3,198 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""
Functions for benchmarks.
"""
import numpy as np
import pprint
import torch
import tqdm
from fvcore.common.timer import Timer
import slowfast.utils.logging as logging
import slowfast.utils.misc as misc
from slowfast.datasets import loader
from... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.