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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1241a48406914d366902c49121d477094035378c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /bp7HkgSqyTRggmu4R_24.py | 5a1ebb2b05e4425bfc8dddeb78607838287197e1 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | """
The normal `title()` function in Python _capitalises the first letter of every
word_ in a given sentence, leaving all the other letters as _lowercase_.
The goal of this challenge is to create a `reverse_title()` function, which
achieves the complete opposite! Make the first letter of every word
**lowercase** , ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
411cd0ffd7e12a5306b423c528dad89933602bde | ce8da5eeb771d2a51ba3d536e54e49fa3e4f583c | /bin/core.py | dd7fe22154b83898abc02bac2f3f2389533c5067 | [] | no_license | spwin/projectEssentia | c1ab909ed6ad6b89b8ac146175f3b82f531e8dd8 | 02e84cca592bbf9025f01bff33d53afb922bc947 | refs/heads/master | 2021-01-01T19:53:43.761220 | 2017-07-29T06:47:57 | 2017-07-29T06:47:57 | 98,712,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,460 | py | from datetime import datetime
import pandas as pd
import sqlite3 as db
import random
import time
import os
def createInstruments(currencies={
'USD': 1, 'EUR': 0.85, 'JPY': 110.79, 'GBP': 0.76,
'CHF': 0.97, 'CAD': 1.24, 'AUD': 1.25, 'NZD': 1.33, 'ZAR': 13.03
}):
instruments = dict()
for currency_1 in c... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f2c95ddcd47279097286059ce4b82dccebbf8403 | b13ca274b4463c9900840ee6516094b7509b6041 | /empower/core/slice.py | 3a62450c6393e8cb7b68043b657a58058bbb37e2 | [
"Apache-2.0"
] | permissive | imec-idlab/sdn_wifi_manager | 09d206f2f649aa715752d3c44e011d3f54faf592 | eda52649f855722fdec1d02e25a28c61a8fbda06 | refs/heads/master | 2021-06-23T08:03:22.482931 | 2020-12-03T11:30:10 | 2020-12-03T11:30:10 | 162,106,793 | 0 | 0 | Apache-2.0 | 2019-03-27T16:23:31 | 2018-12-17T09:33:47 | Python | UTF-8 | Python | false | false | 11,834 | py | #!/usr/bin/env python3
#
# Copyright (c) 2016 Roberto Riggio
#
# 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 applicabl... | [
"pedroisolani@gmail.com"
] | pedroisolani@gmail.com |
fd95f85ecce6100fbdfc5136f5c860f64c9bae4f | 6dd400fec6f302bd0dcf309e2deec5de906d205c | /anal_pro4/base/extf3.py | fe6e6d4885f31b4445db02d50643872a338cefb4 | [] | no_license | Leo-hw/psou | aa938b7cfaa373a0980649125270c48d816202b0 | 70379156a623257d412bcccbac72986a61226bd4 | refs/heads/master | 2023-02-21T19:00:02.902510 | 2021-01-25T07:03:26 | 2021-01-25T07:03:26 | 332,616,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | # constant(), Variable(), function
import tensorflow as tf
import numpy as np
a = 10
print(type(a))
b = tf.constant(10) # Graph 객체에 포함된 멤버.
print(b, type(b))
c = tf.Variable(10)
print(c, type(c))
'''
g1 = tf.Graph()
with g1.as_default():
#bb = tf.constant(10)
bb = tf.Variable(10)
... | [
"Bonghwan@DESKTOP-60LSTNL"
] | Bonghwan@DESKTOP-60LSTNL |
b61970f81e2b23254ff02d730fbc09e88dda0ab4 | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/dashboard/v4_1/models/widget_metadata.py | 0d9076eb0c503252a23cc220aa478ed69c87c20f | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 7,345 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
a79037455c8cc29b2682f587c524b83f01b27f1d | 58e0a4aff157f22b02d9d6823ed3aced81dfdc9f | /tputil.py | 661fe735cb47b2317f12fbb5feb41220d938e82b | [] | no_license | Tug/ml-notes | eaafcdd2843e22ae4d1193c470fcc0fc605d0d2d | 16f4c54eaa45ca8d60c29da122a8175c1193f945 | refs/heads/master | 2022-12-22T23:21:34.617929 | 2020-08-31T20:10:11 | 2020-08-31T20:10:11 | 287,953,248 | 0 | 0 | null | 2020-08-16T13:53:39 | 2020-08-16T13:53:38 | null | UTF-8 | Python | false | false | 2,992 | py |
import re
import time
from google.cloud import storage # sudo pip3 install google-cloud-storage
import tensorflow as tf
class State:
pass
if 'state' not in globals():
state = State()
state.client = None
def gs_filesize(filename):
"""tf.string.length unfortunately fails for files larger than 2GB due to ... | [
"shawnpresser@gmail.com"
] | shawnpresser@gmail.com |
cbfe990c1e53e5ff3670dd4c8ae0df55f741929b | cd876d32aa66112892dc9550837ad843e3e03afd | /env_carzone/Lib/site-packages/django/utils/html.py | ebddd4c8ea2c863bfbf0da5ff687149835fb71cb | [
"BSD-3-Clause"
] | permissive | viplavdube/Car-Yard-App | 7665b7e6e54f3b0e4a4da563151f85d65c225cef | 65381a50f828e80f31d25d4f35e497f51c2d224d | refs/heads/master | 2023-04-19T03:49:18.991604 | 2021-04-27T17:51:10 | 2021-04-27T17:51:10 | 349,094,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,227 | py | """HTML utilities suitable for global use."""
import html
import json
import re
from html.parser import HTMLParser
from urllib.parse import (
parse_qsl,
quote,
unquote,
urlencode,
urlsplit,
urlunsplit,
)
from django.utils.encoding import punycode
from django.utils.functional import Promise, ke... | [
"viplav45@gmail.com"
] | viplav45@gmail.com |
bf342126e76f670538f9c3fd4bd4041317e9a654 | 2255f78038a574f9500934a271ec4156ce75a471 | /setup.py | 99bd6eee0cca3e4d91e75a3c42fbd1eefd40f177 | [
"BSD-3-Clause"
] | permissive | theonedemon/torrt | 83fe3c01d43fda3ff4f787c871fef80221300e97 | 28bd7288ef573539e0dc3b505c94b8664f246d1c | refs/heads/master | 2021-05-07T23:13:23.087093 | 2021-01-25T19:49:16 | 2021-01-30T18:43:27 | 107,411,005 | 0 | 0 | null | 2017-10-18T13:20:33 | 2017-10-18T13:20:33 | null | UTF-8 | Python | false | false | 2,033 | py | import io
import os
import re
import sys
from setuptools import setup, find_packages
PATH_BASE = os.path.dirname(__file__)
def read_file(fpath):
"""Reads a file within package directories."""
with io.open(os.path.join(PATH_BASE, fpath)) as f:
return f.read()
def get_version():
"""Returns versi... | [
"idlesign@yandex.ru"
] | idlesign@yandex.ru |
ca181df76e8d5744b92dded4973d8a74a6e9fee0 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /number_or_high_child/eye/own_group.py | 780ba52cf7d08219c0180205fe4011500967c6a5 | [] | 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 | 219 | py |
#! /usr/bin/env python
def time_and_number(str_arg):
hand(str_arg)
print('place_or_large_work')
def hand(str_arg):
print(str_arg)
if __name__ == '__main__':
time_and_number('little_world_or_person')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
22275b5db4f0c83e592ff416664c88d6d5e1ffe4 | 16e69196886254bc0fe9d8dc919ebcfa844f326a | /edc/lab/lab_clinic_api/migrations/0033_auto__add_field_aliquot_receive_identifier__add_field_aliquot_subject_.py | f1917d46c3f3c008a48b268b5430e261bab51b7a | [] | no_license | botswana-harvard/edc | b54edc305e7f4f6b193b4498c59080a902a6aeee | 4f75336ff572babd39d431185677a65bece9e524 | refs/heads/master | 2021-01-23T19:15:08.070350 | 2015-12-07T09:36:41 | 2015-12-07T09:36:41 | 35,820,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,626 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Aliquot.receive_identifier'
db.add_column('lab_clinic_api_aliquot', 'receive_identifier',
... | [
"ew2789@gmail.com"
] | ew2789@gmail.com |
d0a96e3f4e7f91a21328661d16b6fec837b694e7 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_diff/trend_linear/cycle_30/ar_/test_artificial_128_diff_linear_30__0.py | fc1d0414444f7856801c45fb4037ce776566be4e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "linear", cycle_length = 30, transform = "diff", sigma = 0.0, exog_count = 0, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
491573b16d1c3b229be0ee19c3330b2bcb5f1a9f | 160584ad75ed15f9d39205b6a76b3e5beb03a5cb | /billing/migrations/0003_billingprofile_customer_id.py | 41ee0ab0805fc3b15995b39e613aba44bfaf405b | [
"MIT"
] | permissive | imran1234567/plutus | 1c66c0c29e9e615c03160fb98f14d44507b642dc | c964f18beb139de2645e052eb4c75a6bc0677029 | refs/heads/master | 2022-12-10T04:33:36.906408 | 2019-04-18T06:26:01 | 2019-04-18T06:26:01 | 169,561,380 | 0 | 0 | MIT | 2022-12-08T00:46:54 | 2019-02-07T11:29:44 | CSS | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-10-11 19:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billing', '0002_auto_20170928_2052'),
]
operations = [
migrations.AddField(... | [
"imran@kgec.edu.in"
] | imran@kgec.edu.in |
1d6497cdb95fe15d6152cf898c025e5b80faa8dc | c1d95197b2edec1ee0401063b1f8c313d1722c99 | /simulacra/vis/anim.py | b4d604c71e6a22dbea3e2edcaa67004e5d96148a | [
"MIT"
] | permissive | JoshKarpel/simulacra | 0438245961f5b3941b3aa2c0cc67cb299fd3108f | e5770ced1bef860caec25ce8c77a61ff0bb78907 | refs/heads/master | 2021-03-24T10:39:51.785193 | 2020-04-06T03:12:23 | 2020-04-06T03:12:23 | 66,422,756 | 1 | 2 | MIT | 2019-10-08T21:33:54 | 2016-08-24T02:43:47 | Python | UTF-8 | Python | false | false | 30,690 | py | import logging
from typing import Callable, Optional, List
import subprocess
import os
import itertools
import collections
from pathlib import Path
import abc
from tqdm import tqdm
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors
from ..info import Info
from .. import utils
from .. import... | [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
c3149131672fbc36f326b5e59552fff1ac16b101 | 2f01bbce17f1440138a360fee8bfd94ec01831ab | /tests/unit/test_tables_variants.py | 657dbfa592d9a5945c0bdbe33c1d7631503dbd50 | [
"Apache-2.0"
] | permissive | JureZmrzlikar/resolwe-bio-py | a2e9a29900e811757c543ffcc02b7c0259b978b0 | 9fc17a8e2864d7d6c5bf1ae71e6615725a7ed276 | refs/heads/master | 2023-09-04T03:15:26.892752 | 2023-02-17T09:49:39 | 2023-02-17T09:49:39 | 53,598,579 | 0 | 0 | null | 2016-03-10T16:11:57 | 2016-03-10T16:11:57 | null | UTF-8 | Python | false | false | 12,299 | py | import json
import shutil
import tempfile
import time
import unittest
from pathlib import Path
import numpy as np
import pandas as pd
from mock import MagicMock, PropertyMock, patch
from resdk.tables import VariantTables
class TestVariantTables(unittest.TestCase):
def setUp(self):
self.tmp_dir = tempfil... | [
"zmrzlikar.jure@gmail.com"
] | zmrzlikar.jure@gmail.com |
e1fa9da9c1a9a266d6ba600da3adc92657c4146f | 6feaf484be6ab130f82dc2cab66684499d7be1bb | /history/bezier_tree_1554839936.003803.py | ca84b03e219e2768b0af9d21bcc04ac21ac8412e | [] | no_license | JacobBunker/2DArt | d3b3d4d6b4f92bc64aab95139a0d0285c9cb2be0 | b8f6bdd081016a9922dc5a0a58226b9262c2ad98 | refs/heads/master | 2020-05-05T05:44:39.844350 | 2019-12-01T06:41:41 | 2019-12-01T06:41:41 | 179,763,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | import numpy as np
from PIL import Image
import datetime;
import subprocess
picSizeX = 1000
picSizeY = 1400
#make array
temp = np.empty([picSizeX,picSizeY,3])
start = np.asarray([picSizeX/2, picSizeY/2])
#start = np.asarray([0,0])
def getNext(p,d,z):
xSkew = np.sin(np.radians(z*10))
ySkew = np.cos(np.radi... | [
"jacob.n.bunker@gmail.com"
] | jacob.n.bunker@gmail.com |
7a29864ef8060cd27d8e6433b89163408c8b482d | 5168da0fb501135a3c86e4e95679f54a825d69d0 | /openquake/calculators/export/hazard.py | eaa94e4f7335b0b6f263f9e1b3fa4339aaaa912c | [
"BSD-3-Clause",
"AGPL-3.0-only"
] | permissive | GFZ-Centre-for-Early-Warning/shakyground | 266b29c05ea2cfff6d9d61f21b5114282c6fa117 | 0da9ba5a575360081715e8b90c71d4b16c6687c8 | refs/heads/master | 2023-06-01T21:41:11.127323 | 2018-10-09T10:31:48 | 2018-10-09T10:31:48 | 144,732,068 | 1 | 3 | BSD-3-Clause | 2019-11-18T07:58:49 | 2018-08-14T14:32:50 | Python | UTF-8 | Python | false | false | 33,370 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2014-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | [
"mhaas@gfz-potsdam.de"
] | mhaas@gfz-potsdam.de |
e49aa39c7b7f0c8c8444bd7920724155ef14bb77 | 0acb520aea8b759bcf84c2adcda308c238b4b536 | /src/lib/simplekv/idgen.py | 146a59bb82a59de93209480f7c771352e1641e52 | [
"BSD-3-Clause"
] | permissive | Chitrank-Dixit/InMyMind | 8a1ee6f9e7a9689a948054e0aa2dd6476ec3ceac | d0bf1ab92bae1865d747ed1282160b17b4ea188c | refs/heads/master | 2021-01-10T22:12:34.848133 | 2014-01-05T04:58:54 | 2014-01-05T04:58:54 | 15,645,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | #!/usr/bin/env python
# coding=utf8
"""
In cases where you want to generate IDs automatically, decorators are
available. These should be the outermost decorators, as they change the
signature of some of the put methods slightly.
>>> from simplekv.memory import DictStore
>>> from simplekv.idgen import HashDecorator
>>... | [
"chitrankdixit@gmail.com"
] | chitrankdixit@gmail.com |
97682cf991ac9faa1f070512f489b52984c3496f | 6f956c8e552e8cd18c03f16fcc3bedff06bb7c05 | /inspections/templatetags/active_page.py | 0d436eb0dc36df1b3d54b5bb2b88301eec6403f6 | [] | no_license | AntycSolutions/NoLemon | 29147f50189b35133ff59f32f51e6b4ad25c2fb6 | 943d4e557c19a5668099f5ef25a43b4ef35ed0fb | refs/heads/master | 2021-01-21T12:40:46.443832 | 2018-07-27T05:03:52 | 2018-07-27T05:03:52 | 20,976,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # http://stackoverflow.com/questions/19268727
# /django-how-to-get-the-name-of-the-template-being-rendered
from django import template
register = template.Library()
@register.simple_tag
def active_page(request, view_name):
from django.core.urlresolvers import resolve, Resolver404
if not request:
ret... | [
"and_555@hotmail.com"
] | and_555@hotmail.com |
39668c955d2f5c1792b16e7b9a227cc4b5fb130a | 3777658387aa9e78d7c04202d7fd47d59b9e1271 | /MachineLearning/DeepLearning/keras_1.py | 33fbb4dc8412eaa92287f77a27f9ef9e4587b9cc | [] | no_license | jocoder22/PythonDataScience | 709363ada65b6db61ee73c27d8be60587a74f072 | c5a9af42e41a52a7484db0732ac93b5945ade8bb | refs/heads/master | 2022-11-08T17:21:08.548942 | 2022-10-27T03:21:53 | 2022-10-27T03:21:53 | 148,178,242 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,472 | py | # Import necessary modules
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn import datasets
from sklearn.model_selection import train_test_split
import keras
from keras.layers import Dense
from keras.models import Sequential
from keras.utils import to_categorical
from keras.callbacks ... | [
"okigbookey@gmail.com"
] | okigbookey@gmail.com |
abcc9a605c623609fcbbc56325ce13c7eb6ac52c | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/dd_sdk_1_0/models/encryption_info.py | 892555de7535c79af5be9561058bd35926137223 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,684 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # no... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
6ac78708e07f66891e768bf7b824c5ab68822b36 | ad5d81fd8a952a5719f750714308bd438aa8ddd4 | /binary_indexed_tree.py | 8708f3c1ee467d2ecf05c8408df73ac2095736fa | [] | no_license | HuipengXu/data-structure-algorithm | d721255e620ab0e25733fa1e91a05393f1857eab | aec39f127c496262118f50f44ccfa460a77b681c | refs/heads/master | 2022-02-01T07:33:44.998301 | 2019-06-24T09:39:28 | 2019-06-24T09:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # @Time : 2019/4/17 9:19
# @Author : Xu Huipeng
# @Blog : https://brycexxx.github.io/
from typing import Optional
class BinaryIndexedTree:
def __init__(self, length: int, nums: Optional[list] = None):
self.data = [0] * (length + 1)
if nums is not None: self._init_data(nums, length)
de... | [
"2531094755@qq.com"
] | 2531094755@qq.com |
15a9a168cb88b3aecae1b9c589af57876b2807da | 0602950895302e66a09fa04341bd2261e88b7c9a | /legacypipe/py/legacypipe/forced_photom.py | 890d0e80e4f00f36e39620ce7caedffec3243b79 | [
"BSD-3-Clause"
] | permissive | DriftingPig/Obi-Metallica | 813b6980a8a13f94468f32baf4f3565e0d0ee866 | c8c53ff429df2a5ee6dfbd4d6c3f3fd6a313a387 | refs/heads/master | 2021-01-08T16:43:55.713559 | 2020-03-12T13:37:38 | 2020-03-12T13:37:38 | 242,082,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,094 | py | '''
This script performs forced photometry of individual Legacy Survey
images given a data release catalog.
'''
from __future__ import print_function
import os
import sys
import numpy as np
import fitsio
from astrometry.util.fits import fits_table, merge_tables
from astrometry.util.file import trymakedirs
from astro... | [
"kong.291@osu.edu"
] | kong.291@osu.edu |
3a0a2e44e8fdb2be42f691275c8be97a7b2c82e0 | be791583545a1f66a7650085d920171d0df040da | /docs/source/tutorials/darts.py | b0ec5b3cb56f9b11611d41c8195c4600601e6f92 | [
"MIT"
] | permissive | Lijiaoa/nni | de4f598585d346c17aae1030774eab8346ba6b5e | 7bcf1ebd47caf144032825aa078c8d9a51833320 | refs/heads/master | 2023-06-08T08:00:44.947829 | 2022-09-14T08:37:09 | 2022-09-14T08:37:09 | 242,638,482 | 1 | 0 | MIT | 2020-07-16T08:24:42 | 2020-02-24T03:30:45 | Python | UTF-8 | Python | false | false | 27,839 | py | """
Searching in DARTS search space
===============================
In this tutorial, we demonstrate how to search in the famous model space proposed in `DARTS`_.
Through this process, you will learn:
* How to use the built-in model spaces from NNI's model space hub.
* How to use one-shot exploration strategies to e... | [
"noreply@github.com"
] | Lijiaoa.noreply@github.com |
e398289698a07aee6348dc9669c4e82745b7e881 | f68e092e3645a7c0db0374a8bd87fb1c02489a88 | /client/communicate_server.py | cae1913bb800c789d433cfe8bbf5d02a3f0e8026 | [
"Apache-2.0"
] | permissive | diogo149/ProtoML-clojure | 81340b58fe24b42638b0c970d09b3ef8943aa344 | c8cb5a49817501c782a334d6ff4a0980a8834a71 | refs/heads/master | 2021-01-10T22:21:37.685624 | 2013-10-31T17:00:25 | 2013-10-31T17:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import requests
from os import path
SERVER_URL = "http://localhost:3000"
def post(route, data):
r = requests.post(path.join(SERVER_URL, route), data=data)
try:
return r.json()
except ValueError, e:
return {"error": r.text}
| [
"diogo149@gmail.com"
] | diogo149@gmail.com |
c11bbdf8fc8c846516fa9889212c9aa78d8d8779 | d84962bbd38be6fa80879fa63143d05d29adbc48 | /ibet_apps/users/migrations/0194_auto_20191205_1651.py | 841dc050e5d0d43dd940a5613e1c5f2c0cd2db70 | [] | no_license | senclaymoreusa/ibet-django-backup | 1adae8b7459868a8bde34e3ddccf65e11a96463b | 31ef33b573b991f9425e4b1edc09dbbd044a69b0 | refs/heads/master | 2022-12-08T03:45:58.073335 | 2020-02-18T22:41:09 | 2020-02-18T22:41:09 | 245,534,745 | 0 | 1 | null | 2022-12-08T01:51:33 | 2020-03-06T23:25:37 | Python | UTF-8 | Python | false | false | 450 | py | # Generated by Django 2.1.7 on 2019-12-06 00:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0193_auto_20191205_1650'),
]
operations = [
migrations.AlterField(
model_name='userwallet',
name='wallet_am... | [
"vicky@claymoreusa.com"
] | vicky@claymoreusa.com |
3982dba03bd30adbaea8656e878738e09e2f884a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03101/s917069273.py | c43bc4e2c8242e7c3d27f0e5353b0736aad35d77 | [] | 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 | 161 | py | H,W = map(int,input().split())
h,w = map(int,input().split())
dp = [["W" for i in range(H)] for i in range(W)]
sums = H*W
ans = sums - (h*W+w*H-(h*w))
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d935f0fa894b6a0722b7512d932e382e9d790f00 | fa6dae15f639b736b52f4b6e7e75d4fc7db89415 | /covidFYI/data/models.py | 78108d8564a3db122869e90cd0efc947ca943a9e | [] | no_license | yogesh-hackx/covidFYI-backend | 840b194c697dc3d0a39e024c2965a62a0456813b | 48b953a79c320bca05af2f6b42f763b44b1ee48a | refs/heads/master | 2021-05-23T17:36:54.335004 | 2020-04-03T20:02:06 | 2020-04-03T20:02:06 | 253,403,065 | 0 | 0 | null | 2020-04-06T05:25:18 | 2020-04-06T05:25:18 | null | UTF-8 | Python | false | false | 1,609 | py | from django.db import models
from datetime import datetime
# Create your models here.
class InfoType(models.Model):
name = models.CharField(max_length = 128, null=False)
def __str__(self):
return self.name
class Location(models.Model):
state = models.CharField(max_length = 64, null=False)
... | [
"tejasarlimatti@gmail.com"
] | tejasarlimatti@gmail.com |
b168155828bf55a6e18cfd6e536072bb25c2ea2b | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyfile/pyfm-004/pyfmutil.py | a2690c088cf48a47827d7728eae08542f19fb64e | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,532 | py | #!/usr/bin/env python
#
# 3D File Manager in Python OpenGL, helper routines
#
import math, sys, rand
import gtk.gtkgl
from OpenGL.GL import *
from OpenGL.GLU import *
from pyfmshape import *
from pyfmfont import *
CUBE1 = 1; CUBE2 = 2; DONUT = 3; TRIANG = 4
TRIANG2 = 5; TRIANG3 = 6; STARS = 7
triarr = S... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
565b2e33062a5db44351418caec20cf6d3abca34 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-antiddos-public/aliyunsdkantiddos_public/endpoint.py | 616d343af39249d97a03b823924f42994c3caf50 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 4,234 | py | # # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# # distributed with this work for additional information
# # regarding copyright ownership. The ASF licenses this file
# # to you under the Apache License, Version 2.0 (the
# # "License"); y... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
b2fdabba2eb70bd2bdf795004b9516db2f386052 | b826ee8d834714268fe760202c330646dcf12db4 | /trash/test.py | 3aa926d5f754f5be9b246e97f52c5caf4985b4b5 | [] | no_license | ruwan800/vos-repo-sync | 9bf7601e79a0356b44799613c6a172f0dc4b9b44 | 09292dcd2d5af73811a791e89a64b7dc510f9750 | refs/heads/master | 2021-01-16T21:10:47.357458 | 2016-08-13T12:07:05 | 2016-08-13T12:07:05 | 65,615,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from db_connect import DBConnect
hello = DBConnect()
SQL = "SELECT 0 FROM software WHERE soft_id = 1234;"
results = hello.execute(SQL)
print(results)
| [
"ruwan800@gmail.com"
] | ruwan800@gmail.com |
fbe0086d3cdf6bcf7bfd4909d987dd684c979bd7 | 660e35c822423685aea19d038daa8356722dc744 | /sale_subscription/configuration.py | 547d3d91769b1f27602a56ad6be2987bbe2c3983 | [] | no_license | saifkazi/tryton_modules | a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb | 94bd3a4e3fd86556725cdff33b314274dcb20afd | refs/heads/main | 2023-05-05T12:20:02.059236 | 2021-05-19T10:46:37 | 2021-05-19T10:46:37 | 368,768,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import fields
from trytond.pool import PoolMeta, Pool
from trytond.pyson import Eval
class Configuration(metaclass=PoolMeta):
__name__ = 'sale.configur... | [
"saif.kazi76@gmail.com"
] | saif.kazi76@gmail.com |
15774f25a4b5c9fc9766765ea22315e827cdf383 | edc1134436a79ca883a0d25f3c8dfffc4235c514 | /tests/infer/autoguide/conftest.py | 17f112a1adcff10d70cedf6655fb5ddbf4fcab0c | [
"Apache-2.0"
] | permissive | pyro-ppl/pyro | 2283d8ca528fc090c724a3a6e0f344e505ebbf77 | 0e82cad30f75b892a07e6c9a5f9e24f2cb5d0d81 | refs/heads/dev | 2023-08-18T00:35:28.014919 | 2023-08-06T21:01:36 | 2023-08-06T21:01:36 | 94,506,832 | 3,647 | 606 | Apache-2.0 | 2023-09-14T13:52:14 | 2017-06-16T05:03:47 | Python | UTF-8 | Python | false | false | 442 | py | # Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import pytest
def pytest_collection_modifyitems(items):
for item in items:
if item.nodeid.startswith("tests/infer/autoguide"):
if "stage" not in item.keywords:
item.add_marker(pytest.mark.s... | [
"noreply@github.com"
] | pyro-ppl.noreply@github.com |
164afdef6cf6aefc87958666aed4e948cdc28558 | a8750439f200e4efc11715df797489f30e9828c6 | /HackerEarth/julius_cipher.py | c6eedff7ea60ac7441b4d6ca91b157678e1e22fe | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from string import ascii_lowercase as lc
alphs = dict(zip(lc, range(1,27)))
for _ in range(input()):
ins = raw_input().strip()
if ins == ins[::-1]:
print "Palindrome"
else:
vals = 1
for x in ins:
vals *= alphs[x]
print vals | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
0915a9882df846e0314ca440d3b5a6a98c10d826 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_225/ch14_2020_03_02_19_15_48_900598.py | 032df3fb57575535d49b6130d374a9ebe2ca049a | [] | 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 | 174 | py | import math
def calcula_distancia_do_projetil (v, t, y) :
a = ((v**2)/(2*9.8)
b = (1 + (1 + ((2*9.8*y)/(v**2)*((math.sin(t))**2))
c = (math.sin(2t)
return (a*b*c) | [
"you@example.com"
] | you@example.com |
847df94c7688f0bc5b70d96a3f0b5f81ec9aea6d | 1a9852fe468f18e1ac3042c09286ccda000a4135 | /Specialist Certificate in Data Analytics Essentials/DataCamp/12-Introduction_to_Deep_Learning_in_Python/e5_coding_how_weight_changes_affect_accuracy.py | 8ec3a8017a1d642bec7127161ac3dd2b2390f93e | [] | no_license | sarmabhamidipati/UCD | 452b2f1e166c1079ec06d78e473730e141f706b2 | 101ca3152207e2fe67cca118923896551d5fee1c | refs/heads/master | 2023-08-14T15:41:24.312859 | 2021-09-22T17:33:01 | 2021-09-22T17:33:01 | 386,592,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | """
Coding how weight changes affect accuracy
Instructions
100 XP
Create a dictionary of weights called weights_1 where you have changed 1 weight from weights_0
(You only need to make 1 edit to weights_0 to generate the perfect prediction).
Obtain predictions with the new weights using the predict_with_net... | [
"b_vvs@yahoo.com"
] | b_vvs@yahoo.com |
02fbd4fbfbb38eb09067efb002d305eb8e0b64dd | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /PythonCrashCourse/chapter_06/exercise6_01.py | b0f135171f3e21512f8d759f4e7aad054c5cb57d | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/env python3
person = {
'first_name': 'Igor',
'last_name': 'Matyukin',
'age': 37,
'city': 'Saint Petersburg'
}
print("Person's first name is " + person['first_name'].title() + ".")
print("Person's last name is " + person['last_name'].title() + ".")
print("Person's age is " + str(person[... | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
b49a9a2612e6a86c6c3e1d2e3b321b97908e6bc1 | f98105074ba2b39cfd773140e1df5ff5eee0d640 | /PS4 First Search Program.py | 68748c5bebe89b5dcda5c3b8edf0c4df10a13dab | [] | no_license | niufenjujuexianhua/AI-for-Robotics | 3750196169a4047f585254d0eaa07380ca4ccf2f | d95767a63445957ccd20cab02c11158d4e0c2b49 | refs/heads/master | 2021-01-11T17:22:32.289764 | 2017-02-24T21:01:33 | 2017-02-24T21:01:33 | 79,767,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | # ----------
# User Instructions:
#
# Define a function, search() that returns a list
# in the form of [optimal path length, row, col]. For
# the grid shown below, your function should output
# [11, 4, 5].
#
# If there is no valid path from the start point
# to the goal, your function should return the string
# 'fail'... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
26012ad4fbc128d7b721f085fb2d95c35cfd3713 | dc221edce0ad617aac3b9ad8f4f347ff84f56bf9 | /.history/env/vessel_20200805154540.py | 87cf142929c60795d39e9ba5d2338bbc95fa202d | [] | no_license | zlm05170/cacontroller | 310014c83ecf130643230eba87990e635fe1575f | e76d2eb5d58d6adfe7823e0dcd0059027c52b6bc | refs/heads/master | 2022-12-21T08:05:58.315017 | 2020-09-23T11:45:07 | 2020-09-23T11:45:07 | 284,527,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import rigid_body as rb
# class Vessel():
# def __init__(self):
# self.rigid_body = rb.RigidBody() | [
"angelxx05170@gmail.com"
] | angelxx05170@gmail.com |
723ac45b4f31fa0433ca664299b203e90665da1a | 71cac038fabbc61602dbafb3ecddefbe132362aa | /Mining/SearchResultsProcessing/TweetResults.py | 248e5bf03de45e9e50f8829b06f86ceac821070b | [
"MIT"
] | permissive | AdamSwenson/TwitterProject | 00a38f18d6c5c6146f8ff21917da456c87c5453d | 8c5dc7a57eac611b555058736d609f2f204cb836 | refs/heads/master | 2022-12-14T07:06:43.958429 | 2019-10-02T01:22:22 | 2019-10-02T01:22:22 | 138,349,359 | 0 | 0 | MIT | 2022-11-22T02:58:09 | 2018-06-22T21:23:31 | Jupyter Notebook | UTF-8 | Python | false | false | 9,789 | py | """
Handles processing of results returned from the twitter api
"""
# Twitter specific
import itertools # For set operations
import twitter_text # easy_install twitter-text-py
from bs4 import BeautifulStoneSoup
from Mining.Exceptions.MiningErrorClasses import *
class Tweet(object):
"""
Data holder object... | [
"adam.swenson@csun.edu"
] | adam.swenson@csun.edu |
8cf74f9b44401a1f64067b08f4a081700495768d | a55fcbe94032f98f8a858cebf7cfe843410aea76 | /hw4/env/lib/python3.6/fnmatch.py | 9e07def6f52339f90777c4a36bccb1106ecf4438 | [] | no_license | quentintruong/UCLA-ECE239AS-W19 | a3aca9302125ee7b85f8cecf82485782718d8266 | f734aa7a8178b64b309761f4a390ed4689c4caed | refs/heads/master | 2022-12-10T19:01:28.589101 | 2020-02-14T08:00:33 | 2020-02-14T08:00:33 | 166,895,199 | 1 | 0 | null | 2022-12-08T01:43:39 | 2019-01-21T23:34:01 | Jupyter Notebook | UTF-8 | Python | false | false | 55 | py | /Users/quentintruong/anaconda3/lib/python3.6/fnmatch.py | [
"quentintruong@users.noreply.github.com"
] | quentintruong@users.noreply.github.com |
e892daea073b84579e8c1d2abc6371d48db60e3e | 504b276fc0ec6419e3db519326126dc48dcbdabb | /le2m/server/servgest/servgestgroups.py | 51abca1edc41a3bdb0fa0a2f9a33efffbd77ef09 | [] | no_license | leem34/le2m-v2.1 | 4b37a5a2039b0493f07eff5078fbcabeb80259e5 | 3efc3823c0bb931873fa9a1f607680cddae2f996 | refs/heads/master | 2020-04-05T06:20:08.469125 | 2016-11-23T08:26:37 | 2016-11-23T08:26:37 | 52,256,613 | 0 | 1 | null | 2016-02-22T07:52:37 | 2016-02-22T07:52:37 | null | UTF-8 | Python | false | false | 15,815 | py | # -*- coding: utf-8 -*-
import logging
from util import utiltools
import random
import datetime
from util.utili18n import le2mtrans
logger = logging.getLogger("le2m.{}".format(__name__))
compteur_groupe = 0
def former_groupes(population, taille, prefixeid=None):
"""
Forme des groupes
:param population:... | [
"dimitri.dubois@umontpellier.fr"
] | dimitri.dubois@umontpellier.fr |
4f4a090643477f08b93ca84ae4df0dc42e410cdc | 6b7061a7e8bc80a1ef248fdf4b4c83432f88730b | /gchatautorespond/apps/licensing/admin.py | 4ce94b00e670739a288059bb73a4af432aa1393a | [
"BSD-2-Clause"
] | permissive | simon-weber/gchatautorespond | d81eb6a1a4932cedc98560e5fcc48e847adc1fa4 | 7db2cc967cf92ce559ac0e2c0ab181c425882d43 | refs/heads/master | 2022-11-14T07:14:13.933107 | 2022-07-02T01:49:42 | 2022-07-02T01:49:42 | 44,493,439 | 57 | 9 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.contrib import admin
from .models import License, CurrentLicense
admin.site.register(License)
admin.site.register(CurrentLicense)
| [
"simon@simonmweber.com"
] | simon@simonmweber.com |
2464d7fbe76ca558a12f8024b16768252b4cfaef | b3ab2979dd8638b244abdb2dcf8da26d45d7b730 | /cloudcheckr_cmx_client/api/azure_credentials_api.py | 278d74feb6b5d2d5d384cd2a70677072ab4710e1 | [] | no_license | CU-CommunityApps/ct-cloudcheckr-cmx-client | 4b3d9b82c5dfdaf24f8f443526868e971d8d1b15 | 18ac9fd4d6c4ae799c0d21745eaecd783da68c0c | refs/heads/main | 2023-03-03T19:53:57.685925 | 2021-02-09T13:05:07 | 2021-02-09T13:05:07 | 329,308,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,527 | py | # coding: utf-8
"""
CloudCheckr API
CloudCheckr API # noqa: E501
OpenAPI spec version: v1
Contact: support@cloudcheckr.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility ... | [
"pea1@cornell.edu"
] | pea1@cornell.edu |
c62614e6224227177f00f6c025184dc49dc30dfc | 2e7bcb513d1ae368a7fa42fa41397b1e6f18ed80 | /set 9f.py | 8035278d4d368e88834b45139115820b66fbcb53 | [] | no_license | Anjanaanjujsrr/anju-s-codekata | 2826b3508a4e61a4f7d934bfdc7b626fa46b5fa1 | f977392dd6c32e8256e2a9bb9ff873a2577e6a4f | refs/heads/master | 2020-05-23T01:02:46.231105 | 2019-05-20T10:32:21 | 2019-05-20T10:32:21 | 186,580,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | #anju
a=input()
c1=a.upper()
for i in a:
if a.count(i)>1:
print("No")
break
else:
print("Yes") | [
"noreply@github.com"
] | Anjanaanjujsrr.noreply@github.com |
77c2351948f5c516431068dfbb754afcda123333 | b3637fcefffaa3ac0a50c230403248fe724c84d0 | /convokit/hyperconvo/hypergraph.py | b221bd7b67bc788e95230ce4c2328533a69e2619 | [
"MIT"
] | permissive | KaminskyJ/Cornell-Conversational-Analysis-Toolkit | a30a092412928b0370b581150ebb86934e8b87ba | bc893c545e04e7c10af9679639b35cd3d5a10d23 | refs/heads/master | 2021-01-09T10:37:39.248656 | 2020-02-24T00:11:48 | 2020-02-24T00:11:48 | 242,268,866 | 0 | 0 | MIT | 2020-02-22T02:48:43 | 2020-02-22T02:48:42 | null | UTF-8 | Python | false | false | 7,567 | py | import itertools
from typing import Tuple, List, Dict, Optional, Collection
from convokit import Utterance, User
from collections import defaultdict
class Hypergraph:
"""
Represents a hypergraph, consisting of nodes, directed edges,
hypernodes (each of which is a set of nodes) and hyperedges (directed edge... | [
"calebchiam@gmail.com"
] | calebchiam@gmail.com |
6377a2a1ca672011735b022bd6d764e647fc9ba9 | 6f8c27d8b481ab1e659f36f2fd961e29ce198b53 | /jobs/payment-jobs/tests/jobs/test_ejv_partner_distribution_task.py | 5b2bab64d8bf9dd12ad9d030ea3474941507153a | [
"Apache-2.0"
] | permissive | lmullane/sbc-pay | a21995d284998a6638b3dd4ed30b0c8b10911ef2 | 64c1f897d4aa387f56e1bd234b6d09938d8ffbf3 | refs/heads/master | 2023-04-20T03:25:31.766182 | 2021-04-29T21:28:51 | 2021-04-29T21:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,207 | py | # Copyright © 2019 Province of British Columbia
#
# 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 agr... | [
"sumesh.pk@aot-technologies.com"
] | sumesh.pk@aot-technologies.com |
99ea80d086b33f81a4836ade393019bebf6e377f | 053e0abf7eb6a78b82beeb97eb08374098a014e0 | /leetcode/203.py | 7ce4445ac61510d534d5257af0807f1f403dd1f1 | [] | no_license | onlytiancai/codesnip | 3ffa9ce93811a20e3e23afff89198a32c2bb389c | cc293b5f632f3d745e00300bd329918d27db4c51 | refs/heads/master | 2023-08-16T21:28:39.027730 | 2023-08-12T05:33:34 | 2023-08-12T05:33:34 | 2,158,768 | 194 | 62 | null | 2023-03-05T05:56:48 | 2011-08-05T05:24:02 | Jupyter Notebook | UTF-8 | Python | false | false | 717 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def removeElements(self, head: ListNode, val: int) -> ListNode:
if head is None:
return head
ret = ListNode... | [
"you@example.com"
] | you@example.com |
d11dc1c7241a76c35193459d4075f1ef3b828dc4 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/UpdateTaskFlowEdgesRequest.py | 4ec7c48a515dc3949f1c0fd41f0487eba54e967b | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,798 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
2e8d9c5f4deda20a359f33031c8643a26a848f0d | a81c07a5663d967c432a61d0b4a09de5187be87b | /third_party/blink/public/common/DEPS | 56d0145d42de62f74607876ff6c3badd4e0f25d2 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | junxuezheng/chromium | c401dec07f19878501801c9e9205a703e8643031 | 381ce9d478b684e0df5d149f59350e3bc634dad3 | refs/heads/master | 2023-02-28T17:07:31.342118 | 2019-09-03T01:42:42 | 2019-09-03T01:42:42 | 205,967,014 | 2 | 0 | BSD-3-Clause | 2019-09-03T01:48:23 | 2019-09-03T01:48:23 | null | UTF-8 | Python | false | false | 732 | include_rules = [
# In general this directory should not depend on any of components/,
# content/ or other third_party/blink directories.
"-components",
"-content",
"-third_party/blink",
# It is allowed to depend on common chromium stuff (and itself).
"+base",
"+build",
"+net",
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
8c60586c53420ac705bb80b35e0af3f059632571 | 5486779c8ff01bfdbd3a6b3264ff896e0594eb87 | /pyweek/beyond-the-horizon-wav/src/state.py | 6c26dac569bfdf3d838fec96929e687df74dc1d3 | [
"CC-BY-4.0"
] | permissive | NickSKim/csci321 | b10c1df202628945110c20a9160b246e41f39041 | 0dcffcb921ff50ddae02d5acfff387d4fbfaa1c3 | refs/heads/master | 2021-08-23T18:17:59.732956 | 2017-12-06T00:16:25 | 2017-12-06T00:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | import pygame, json, os.path
from src import settings, ptext
try:
import cPickle as pickle
except ImportError:
import pickle
worlddata = json.load(open(os.path.join("data", "worlddata.json")))
R = worlddata["R"]
Rcore = worlddata["Rcore"]
you = None
mother = None
shipyard = {}
target = None
ships = []
objs = []
haz... | [
"geoffrey.matthews@wwu.edu"
] | geoffrey.matthews@wwu.edu |
d9de427f34d9cf996d5e276f38da2d37b0211666 | e8480c8fbe190ba5a4f42b9752cad1304d3c90ae | /src/binwalk/plugins/jffs2valid.py | ca86d7b8e02d5c785aa3f6bde6c9bc51b4f78e3f | [
"MIT"
] | permissive | pombreda/binwalk | 027e1e99ceb1ded53ba58241299a66b7d96f96bb | f8f82eebe21c6b0a836d93c6668ec6788f2370fc | refs/heads/master | 2021-01-24T05:15:12.785933 | 2015-03-19T23:40:27 | 2015-03-19T23:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | import binwalk.core.plugin
import binwalk.core.compat
from binwalk.core.common import BlockFile
class JFFS2ValidPlugin(binwalk.core.plugin.Plugin):
'''
Helps validate JFFS2 signature results.
The JFFS2 signature rules catch obvious cases, but inadvertently
mark some valid JFFS2 nodes as invalid due to... | [
"heffnercj@gmail.com"
] | heffnercj@gmail.com |
dc0ec6e4abe4d823721fc36dc0be2fd1e0fe6031 | 4d4fcde3efaa334f7aa56beabd2aa26fbcc43650 | /server/src/uds/core/util/unique_name_generator.py | 325dc9b421a9c7456e809d91f3bf598363188b1d | [] | no_license | xezpeleta/openuds | a8b11cb34eb0ef7bb2da80f67586a81b2de229ef | 840a7a02bd7c9894e8863a8a50874cdfdbf30fcd | refs/heads/master | 2023-08-21T17:55:48.914631 | 2021-10-06T10:39:06 | 2021-10-06T10:39:06 | 414,489,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2021 Virtual Cable S.L.U.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright no... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
cf093fdb0afb237ba122719c5fab877c956b1dd2 | a9c5c6f6aed746cdfaa594db54d7a2d46e33f430 | /LICENSE.md/classification/extract/inter_v2.py | 1ffd4c85d175d7b9a64362b7270cbba2f89a543e | [] | no_license | nyc1893/Python-Learning | a7b81d169c4678c199a61aa4c7d226ce927aa8d8 | 13bc6b8cc28c25df2730d9672d419cd57cab55d4 | refs/heads/master | 2023-07-20T23:08:38.164660 | 2023-07-06T14:35:29 | 2023-07-06T14:35:29 | 101,700,286 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,916 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 20 22:47:16 2020
@author: Barron
This code converts the string fields to float, interpolates the missing entries,
No gradients information
"""
## importing libariries
import pandas as pd
import numpy as np
import pyarrow.parquet as pq
import matplotlib.pyplot as plt
impo... | [
"noreply@github.com"
] | nyc1893.noreply@github.com |
4b44780a859e2e0184b13353264d407d14dd17c0 | 75f9e99d941e821a8d5d7d4df436ae5b5b7bef6e | /tools/upgrade/commands/fixme_all.py | 6a9e769484df2f064884422e88acc14f5ce911b1 | [
"MIT"
] | permissive | fjsnogueira/pyre-check | 9beb294670c823d1bb41de88fed0307c356cee0a | fc6d4c298930071a5ef99dd5639ca341197a9a19 | refs/heads/master | 2022-12-20T02:52:14.187097 | 2020-10-14T15:53:53 | 2020-10-14T15:55:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import logging
from ..configuration import Configuration
from ..repository import Repository
from .command import CommandArgu... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8bf6af0fa9115989b691aae05bf66e2e6a34ca16 | ebac424304a4456193843472d3e91b5de79da514 | /users/urls.py | 77c58bef96bcf7d6a124725400ab032912a8c3ec | [] | no_license | haha479/bookstore | 1a0e7f73ed973ff06fd0c94cb92329baca39b527 | 3e85e2a62d4e9dde68c5f226c2e7558c6a06a03e | refs/heads/master | 2021-09-08T09:05:15.153693 | 2018-03-09T01:21:44 | 2018-03-09T01:21:44 | 115,857,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from django.conf.urls import url
from users import views
urlpatterns = [
url(r'^register/$', views.register, name='register'),
url(r'^register_handle/$',views.register_handle,name='register_handle'),
url(r'^login/$',views.login,name='login'),
url(r'^login_check/$',views.login_check,name='login_check'),
... | [
"283275935@qq.com"
] | 283275935@qq.com |
716c700382ab868c4b02c5f63265eda7e952207b | f13c586b82224c07f28f7bb7d9dd503e64eb5cb2 | /tests/optimize/test_spsa.py | ba26d74610cdb63133e75a924575fa20592c38f3 | [
"Apache-2.0"
] | permissive | therooler/pennylane | 095f104e40254be2ed3050bc7be9ea9d2ee11ebd | fde1f24bd784d6ee2af5c980c2d5010b4c2bbe54 | refs/heads/master | 2023-04-29T13:32:43.115108 | 2023-04-18T09:41:42 | 2023-04-18T09:41:42 | 202,356,685 | 0 | 0 | Apache-2.0 | 2019-08-14T13:30:39 | 2019-08-14T13:30:38 | null | UTF-8 | Python | false | false | 17,602 | py | # Copyright 2018-2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | [
"noreply@github.com"
] | therooler.noreply@github.com |
bce899dc34e10d0d50fc60a3371ca163e5038da2 | bbb21bb79c8c3efbad3dd34ac53fbd6f4590e697 | /Flowers/Project/main/views/authentication.py | ed54eaa3c475d0ebd6e2eeb80ec559cf0fde28a8 | [] | no_license | Nusmailov/BFDjango | b14c70c42da9cfcb68eec6930519da1d0b1f53b6 | cab7f0da9b03e9094c21efffc7ab07e99e629b61 | refs/heads/master | 2020-03-28T21:11:50.706778 | 2019-01-21T07:19:19 | 2019-01-21T07:19:19 | 149,136,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from rest_framework.response import Response
from rest_framework.decorators import api_view
from main.serializers import UserModelSerializer
from django.contrib.auth.models import User
from rest_framework import status
@api_view(['POST'])
def registerr(request):
serializer = UserModelSerializer(data=request.data)... | [
"nusmailov@gmail.com"
] | nusmailov@gmail.com |
8de1a276d211c8095e70a47b259632e324754786 | 1980034628a1419875093b1259eb9afca390ea91 | /venv/lib/python3.7/site-packages/crispy_forms/utils.py | d6229310b910aa66c4119826c43e30da0d555f3d | [] | no_license | ranafge/Djanog-Project | 2c8aac92cef9eef1140a391790af240fcd703f63 | 624e19205c52cea51bdd756096d19ddddf97837f | refs/heads/master | 2022-12-15T14:03:08.883264 | 2019-08-18T08:15:49 | 2019-08-18T08:15:49 | 187,343,616 | 1 | 1 | null | 2022-12-11T21:35:51 | 2019-05-18T10:19:25 | Python | UTF-8 | Python | false | false | 7,844 | py | from __future__ import unicode_literals
import logging
import sys
from django.conf import settings
from django.forms.utils import flatatt as _flatatt
from django.template import Context
from django.template.loader import get_template
from django.utils.functional import SimpleLazyObject
from django.utils.lru_cache imp... | [
"ranafge@gmail.com"
] | ranafge@gmail.com |
52f821c3470cd9fc9b047a2adfa43145322aceba | e47c3b28f297ac8ad52ec1be9dd230d7c65d8881 | /bin/django-admin | 524e92c9f37f0e2ccba1dc0aadd5554bfc975ef9 | [] | no_license | Marzia11/my-first-blog | 9dacc80e1ffea820dc4310b4ba1dec05d9f5bc5e | abc45804aedb7507eff4880e2b719cdd6d0862c9 | refs/heads/master | 2021-07-21T08:29:29.464339 | 2017-10-31T10:52:18 | 2017-10-31T10:52:18 | 108,842,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | #!/home/collaboratore17/.virtualenvs/djangogirls/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"you@example.com"
] | you@example.com | |
3c1d29f1a02f05d9280b95ec5a9121c56284174b | b0eef0efd10556a4b054574fdd2d43124cb0856b | /npbench/benchmarks/deep_learning/lenet/lenet_pythran.py | 51a750219203727e8ea040350728522e689c4fe1 | [
"BSD-3-Clause"
] | permissive | learning-chip/npbench | 140d38be2095b54393de6e0008264b54b7cf686b | f2f545afe3603d5c8f1771f26d660f25ce4a3cda | refs/heads/main | 2023-05-10T09:54:52.719759 | 2021-05-31T12:09:48 | 2021-05-31T12:09:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | import numpy as np
def relu(x):
return np.maximum(x, 0)
# Deep learning convolutional operator (stride = 1)
# pythran export conv2d(float32[:,:,:,:], float32[:,:,:,:])
def conv2d(input, weights):
K = weights.shape[0] # Assuming square kernel
N = input.shape[0]
H_out = input.shape[1] - K + 1
W_o... | [
"alexandros.ziogas@inf.ethz.ch"
] | alexandros.ziogas@inf.ethz.ch |
c3433061e3e6bdcb575a0ac43f2c0ee332ceb68b | 04198420ee8304a0290e185fdf46a6bcb2eea9c4 | /Chapter 12/educa/courses/api/views.py | 5f4840f546fc2b1756a454ff013af9fd50e530c6 | [
"MIT"
] | permissive | PacktPublishing/Django-By-Example | 846ca6ac95388fe3392d541eaf3b03303718c465 | 48bd1c8657ef5aae90a0bc80488b3a4787fdb13b | refs/heads/master | 2022-11-10T09:39:17.116526 | 2022-10-31T05:45:09 | 2022-10-31T05:45:09 | 185,974,593 | 36 | 38 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | from django.shortcuts import get_object_or_404
from rest_framework import generics
from rest_framework import viewsets
from rest_framework.authentication import BasicAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework.response import Respons... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
1c62f37b4e5214d901846db4723b7c496c10eea9 | 474c24602902ccc9607df9ae4aae976f0774212e | /blog/urls.py | 3c2b728f379ac7215e767603b14cc1048b42cfce | [] | no_license | chico0602/my-first-blog | 50157caebdf31952fdfe445c707d7bcfc75b71e0 | a8eb58c7fce17b1070ceace2db75a8277091d1c5 | refs/heads/master | 2023-04-29T09:30:07.624286 | 2020-06-07T05:50:34 | 2020-06-07T05:50:34 | 231,011,023 | 1 | 0 | null | 2023-04-21T20:44:50 | 2019-12-31T02:24:08 | Python | UTF-8 | Python | false | false | 778 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
path('post/<int:pk>/', views.post_detail, name='post_detail'),
path('post/new/', views.post_new, name='post_new'),
path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
path('draf... | [
"you@example.com"
] | you@example.com |
d8c9b719dd686f21696ae13f18f9d1bf82bfa89b | aa2d5dd9bca0e4409f92eaf337f8e78881c2a511 | /nettests/core/tcpconnect.py | 4d1e0fc1922cc5b45f1724b9fbce00eb715b0d2a | [
"BSD-2-Clause-Views"
] | permissive | jonmtoz/ooni-probe | a2d9e1e0c1f1be4467a83c7ef784e6608572962e | 28241124e6094b224f4a3b4f6c0a8e8a69a7eeb6 | refs/heads/master | 2021-01-18T06:16:25.137683 | 2012-11-10T21:04:06 | 2012-11-10T21:04:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | # -*- encoding: utf-8 -*-
from twisted.internet.protocol import Factory, Protocol
from twisted.internet.endpoints import TCP4ClientEndpoint
from twisted.internet.error import ConnectionRefusedError
from twisted.internet.error import TCPTimedOutError
from ooni import nettest
from ooni.utils import log
class TCPFacto... | [
"art@fuffa.org"
] | art@fuffa.org |
f1a4bfcd6a4f204bf0d95d2d3bc8cbc50fa1f05b | a6590941fea4880593d5b1cd23eedfe696f4e446 | /ABC100_199/ABC162/b.py | 19e2ee2307a7441fa4e10cbe5515a0d51a296082 | [] | no_license | cod4i3/MyAtcoder | 9fb92f2dd06c5b6217e925a82d8db4f91355a70f | 53bdac3fa7eb4ac48ca6d5c70461639beb6aa81d | refs/heads/master | 2023-02-17T09:15:16.282873 | 2021-01-15T13:34:03 | 2021-01-15T13:34:03 | 232,006,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | N = int(input())
ans = 0
for i in range(N + 1):
if (i % 3 == 0 or i % 5 == 0): continue
else: ans += i
print(ans)
| [
"imasdaisukiproducermasu@gmail.com"
] | imasdaisukiproducermasu@gmail.com |
7191ffb292232eda0d8f1162f20926da3210156b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/160/34656/submittedfiles/triangulo.py | 6967532a601a6612eab6d36b7f174736881b0152 | [] | 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 | 447 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite a:'))
b=int(input('Digite b:'))
c=int(input('Digite c:'))
if a<b+c:
print('S')
elif (a**2)==(b**2)+(c**2):
print ('Re')
elif (a**2)>(b**2)+(c**2):
print('Ob')
elif (a**2)<(b**2)+(c**2):
print('Ac')
elif a==b==... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c325da24bc3d5b780876e1f58cd02bec7a124ffe | 6cdc18fdb5890de07b2afecf6b75e8c87ea27fd9 | /app/admin.py | 1870e184bbf5a2fd8ac77be09dde67437ba2d68a | [] | no_license | akihiro-hosoya/django-ec | f37ca06de65c5c22672d2fdbd8f88a737ea9788f | cd920228d69baa2e30baa445765efb9771d3ad90 | refs/heads/master | 2022-12-13T12:19:04.369597 | 2020-09-09T08:01:08 | 2020-09-09T08:01:08 | 293,326,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
from .models import Item, OrderItem, Order, Payment
# Register your models here.
admin.site.register(Item)
admin.site.register(OrderItem)
admin.site.register(Order)
admin.site.register(Payment) | [
"iicina.yftj.33@gmail.com"
] | iicina.yftj.33@gmail.com |
32a8ebbaace250e3b61569b7870cee64db540cc0 | f0858aae73097c49e995ff3526a91879354d1424 | /nova/tests/unit/api/openstack/compute/plugins/v3/test_servers.py | 881ff984f3965d7ba8f2b84079d42f0c41353aff | [
"Apache-2.0"
] | permissive | bopopescu/nested_quota_final | 7a13f7c95e9580909d91db83c46092148ba1403b | 7c3454883de9f5368fa943924540eebe157a319d | refs/heads/master | 2022-11-20T16:14:28.508150 | 2015-02-16T17:47:59 | 2015-02-16T17:47:59 | 282,100,691 | 0 | 0 | Apache-2.0 | 2020-07-24T02:14:02 | 2020-07-24T02:14:02 | null | UTF-8 | Python | false | false | 143,730 | py | # Copyright 2010-2011 OpenStack Foundation
# Copyright 2011 Piston Cloud Computing, 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... | [
"sajeesh@cern.ch"
] | sajeesh@cern.ch |
efd675df80e12ec41eddabef4ddabd9564232b5d | fb0f6646b2a7972454453907fbdc656b7471f55f | /p356_package/test_package/module_b.py | 8193a62c982205f4f5a3b2305296556ecb77de39 | [] | no_license | woojin97318/python_basic | 6497d5c85369746edfe8ca79ad7f3f47c871ee66 | 97e9a322a08f1483bf35dc03507ac36af2bf1ddb | refs/heads/master | 2023-07-15T03:06:05.716623 | 2021-08-25T03:46:48 | 2021-08-25T03:46:48 | 399,681,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | # ./p356_package/test_package/module_b.py의 내용
variable_b = "b 모듈의 변수" | [
"woojin97318@naver.com"
] | woojin97318@naver.com |
181c052013ab0af0fa1c3b865c07e1fcf4f302f0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/740.py | c04b32f31f82bbbc5c5b79ad123029bb8b4394a3 | [] | 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 | 335 | py | def solve(n,sofar,dig,prev):
if dig<0:
return sofar
for i in range(9,prev-1,-1):
if sofar+i*(10**dig)<=n:
s = solve(n,sofar+i*(10**dig),dig-1,i)
if s>0:
return s
return -1
numruns = int(input())
for run in range(numruns):
n = int(input())
print('Case #'+str(run+1)+': '+str(solve(n,0,len... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3712be4053091d17a993d1e0bcb9779f756b600a | ca26d83545b19134e0bdcc7f1b0f5b5f5f624a84 | /products/forms.py | d2851fdaeb7b99c6f9621a7835277d7a7ad4e38c | [] | no_license | York0000/e-shop | e99f2c3c0af3ee2483294ccc09a48303f1c74b42 | faa5bcd1c329310c1d7a1eadecb5304009d1b176 | refs/heads/master | 2023-08-07T13:34:48.905440 | 2021-09-21T13:34:19 | 2021-09-21T13:34:19 | 398,176,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from django import forms
from products.models import ColorModel
class ColorModelForm(forms.ModelForm):
class Meta:
model = ColorModel
fields = '__all__'
widgets = {
'code': forms.TextInput(attrs={
'type': 'color'
})
}
| [
"yorqin_bohodirov20@mail.ru"
] | yorqin_bohodirov20@mail.ru |
e1db6e36f134ff3a740bb3cbc08b48c4602c9f1d | deba5baa1a1c4995c378267116a45c39e6405e39 | /setup.py | e5b07c9e6496d38610eb5a807a74bf9297aadac1 | [
"MIT"
] | permissive | LautaroEst/LuthierText | bf1f3d7103d4ec43d0711608b1061b53ba71efaa | f1395fbfda1039bd19fd829cbe853e39ae91805d | refs/heads/main | 2023-01-28T10:50:34.464265 | 2020-12-07T22:29:09 | 2020-12-07T22:29:09 | 316,622,574 | 0 | 0 | MIT | 2020-12-07T22:29:10 | 2020-11-27T23:51:24 | Python | UTF-8 | Python | false | false | 693 | py | import setuptools
with open("Readme.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="luthiertext", # Replace with your own username
version="0.0.1",
author="Lautaro Estienne",
author_email="lautaro.est@gmail.com",
description="Python package for text processing",
long_... | [
"lautaro.est@gmail.com"
] | lautaro.est@gmail.com |
56bc355f6c80315fac1a96eae9af3c394035578e | 9ac5111628bec3e36caac20cd6dedbc314460375 | /tests/utils.py | d7255e52832b6642228441b879d211d6707ab227 | [] | no_license | kingstarcraft/lol_api | 27d5f52b307d054eb98e14145823186825f2a412 | 33ea96f5eeac581737949b733d8af1c4436e94b9 | refs/heads/master | 2020-05-02T12:05:32.270614 | 2016-06-03T13:43:11 | 2016-06-03T13:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | import pytest
import requests
from lol_api.settings import settings
test_api_key = 'test_key'
region_default = 'eune'
class BaseTestClass:
control_url = ''
test_json = {"3": "bb", "a": 4}
#
request_params = {}
mock_request = None # Will be MockRequest object
requested_url = ''
@pytes... | [
"kuba.semik@gmail.com"
] | kuba.semik@gmail.com |
ecb66c68be8ab2df5d3b08561133df20693130cf | 42e85e88b8936942eb9e5ed068034c9579384586 | /pipeline_logic/trinetx/python/datasets/transform/step07_final_health_checks/drug_exposure.py | 663bc848d7d8e8e1acaf066f931711a6dbd7f47b | [] | no_license | dr-you-group/Data-Ingestion-and-Harmonization | 55b634d8a7abe22cc7f06b3b0bce27467c6720ca | 145aec62daa5df450c94180d5252dd3bc23f0eae | refs/heads/master | 2023-08-25T15:25:59.934816 | 2021-10-07T15:27:07 | 2021-10-07T15:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | from transforms.api import transform_df, Input, Output, Check
from transforms import expectations as E
from trinetx.omop_schemas import complete_domain_schema_dict
domain = "drug_exposure"
# Get complete schema for this OMOP domain as an OrderedDict
complete_schema = complete_domain_schema_dict[domain]
# Cast to regul... | [
"stephanie.hong@jhu.edu"
] | stephanie.hong@jhu.edu |
7c81766d8a575cc900b77b5e795edabba85f36a7 | 5896da906bdcb1315881712a0baa52a706bbeb06 | /exerciciospython/EstruturaDeRepeticao/atividade35.py | d97626b12df0aa82163b496be2885fe1015de634 | [] | no_license | frederico-prog/python | 313b4c11347fb33f67d73dee89f3106f483a2333 | 6c3d3757944fcbf569e1114838f236a9329358bd | refs/heads/master | 2022-12-13T23:26:55.112797 | 2020-08-21T22:03:26 | 2020-08-21T22:03:26 | 272,381,728 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | '''
35 - Encontrar números primos é uma tarefa difícil. Faça um programa que gera uma lista dos números primos existentes
entre 1 e um número inteiro informado pelo usuário.
'''
num = int(input('Digite um número: '))
total = 0
for c in range(1, num + 1):
if num % c == 0:
print('\033[33m', end='')
to... | [
"fredlgprime@gmail.com"
] | fredlgprime@gmail.com |
1cb6ea0c4469c581edbe7781cd17482c3defdc35 | 27044bb88c709e7ffa5278afc7c81f37e0b6e9e4 | /venv/lib/python3.10/site-packages/cssutils/scripts/csscapture.py | 3a20f3c57373be642e754e6eaaed54f10164a998 | [] | no_license | mesaye85/organika_Inventory_project-with-React- | 48c93efb6aba64d5e9310c57e4c5a06d3f2cc502 | 6aa3d29e8be3e22b8dc9163d558cdcc8c9122fd1 | refs/heads/main | 2023-02-19T10:11:47.880754 | 2023-02-14T01:55:43 | 2023-02-14T01:55:43 | 298,101,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/b3/34/49/1548a825283f6a5259287be48c01e7895f71f7e4e46c1577ad54bce630 | [
"67935330+mesaye85@users.noreply.github.com"
] | 67935330+mesaye85@users.noreply.github.com |
8377186d620175d8e45d33cf798781694a38c2c1 | 33ddc0a7e904b53eacf2170856699ae91fe8aa47 | /decim/stan_bids.py | 30d6718571c0eceb1286c9d169921e0cc27c019f | [] | no_license | nwilming/decim | 6670dd460ce15b65c433b25b6a983236b92474c0 | e593f171d132afa3bcf4959457c320d0b35f3c77 | refs/heads/master | 2020-03-08T03:24:36.986437 | 2018-12-11T17:03:38 | 2018-12-11T17:03:38 | 106,668,018 | 0 | 0 | null | 2017-10-12T08:48:37 | 2017-10-12T08:48:37 | null | UTF-8 | Python | false | false | 1,723 | py | import decim
import pandas as pd
import pickle
from decim import glaze_control as gl
from itertools import zip_longest
from multiprocessing import Pool
import pystan
# SET OPTIONS
bids_mr = '/work/faty014/bids_mr_v1.1/'
subjects = [1, 2]
sessions = [1, 2, 3]
def keys():
for subject in subjects:
for sessi... | [
"kenohagena@gmail.com"
] | kenohagena@gmail.com |
4f1bd0d667590fb307736a7bbf4bd0786704fc89 | 0d838f1d95edaed26879dc175d7e12c5b975c3af | /train.py | 7110e93648fa9b77030c04d8d00c6ee4d4c5512f | [] | no_license | DungLuongTuan/ocr | 045f83b046e95fde2e5d21a63ef451179ee2e7c8 | 8076220435e27156852f8e94b78880f16f2e725f | refs/heads/master | 2023-05-31T20:14:19.368371 | 2021-07-05T04:11:40 | 2021-07-05T04:11:40 | 289,602,749 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from model import Model
import tensorflow as tf
import numpy as np
import pdb
import os
def main():
### create model
model = Model()
model.create_model()
### train new model
model.train()
if __name__ == '__main__':
main() | [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
092fda336446b631b93c03262f2f73b944a5f8db | 6bb3dc3d43ee66307c1ed6f5940141be0e481936 | /Python/setup.py | 493c23ac12f9c9ba12934cc12bd4061396da5bdb | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | CCS-Lab/easyml | 7f41db72122f5de23f75381bcc03e13d65536c1b | c334d1174ee5795734f900d2cfa2836b76834bc9 | refs/heads/master | 2023-06-12T07:09:22.847009 | 2023-06-02T05:27:51 | 2023-06-02T05:27:51 | 71,721,801 | 40 | 19 | NOASSERTION | 2022-06-21T21:11:33 | 2016-10-23T18:38:28 | R | UTF-8 | Python | false | false | 484 | py | from setuptools import setup
setup(
name='easymlpy',
version='0.1.2',
description='A Python toolkit for easily building and evaluating machine learning models.',
url='https://github.com/CCS-Lab/easyml',
author='OSU CCSL',
author_email='paul.hendricks.2013@owu.edu',
license='MIT',
keywor... | [
"paul.hendricks.2013@owu.edu"
] | paul.hendricks.2013@owu.edu |
8b6daaa09d7c1329c9b1d3a0fc1c383c653f4f48 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/tasks/buffer.py | fad95ce857be4ead6f4b6e0c17cc52a76ac39a72 | [
"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 | 2,061 | 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 |
955bc4cfd85455b6fb0d4135b0a8f494d5294824 | 64478bf59979e02d9d0f2a1502ff3ab6500261cb | /dtformats/rp_change_log.py | 84fef82dbdb9d8ab7cec092bd3a2a374adacb1ea | [
"Apache-2.0"
] | permissive | YandexLazyBoy/dtformats | c08acfaba5416c4ae2554387b5862270655c0f78 | a594eb2a52e7732817f72583cab801d1ce5f0e4c | refs/heads/master | 2022-11-11T08:55:48.884853 | 2020-06-24T10:31:07 | 2020-06-24T10:33:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,779 | py | # -*- coding: utf-8 -*-
"""Windows Restore Point change.log files."""
from __future__ import unicode_literals
from dtfabric.runtime import data_maps as dtfabric_data_maps
from dtformats import data_format
from dtformats import errors
class ChangeLogEntry(object):
"""Windows Restore Point change log entry.
Att... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
5a40af3e5a7ef63e525402ea3cccb0988d8297af | 681602725fe045a2c63be02d7b8e1aacfd8c70de | /InvenTree/company/views.py | d37b72e7077d1f7e447d9e52721e8d3f0e15f963 | [
"MIT"
] | permissive | Zeigren/InvenTree | 6af06992a3a7be75e82fa57424655d8d8ce83624 | 6c415bc9227063ef3bf21b66d2f6b51b995aaf56 | refs/heads/master | 2020-11-26T17:08:17.565941 | 2020-02-18T13:02:59 | 2020-02-18T13:02:59 | 229,151,367 | 0 | 0 | MIT | 2019-12-19T22:53:13 | 2019-12-19T22:53:12 | null | UTF-8 | Python | false | false | 9,709 | py | """
Django views for interacting with Company app
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import ugettext as _
from django.views.generic import DetailView, ListView, UpdateView
from django.urls import reverse
from django.forms import HiddenInput
from InvenT... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
c205925dd4456b2fbc554097e1e9d427ead20c43 | 189d79c0e0fcdce192a6034306416fd492202501 | /LeetCode/Python/214 Shortest Palindrome.py | 4d6171a929e0d5d81e27080535ef7a05533833c7 | [] | no_license | digant0705/Algorithm | 294fbc84eaa4b6e0ea864924b71c4773c2e1c0c6 | 01f04bcc5e8f55014973d4eef069245f3f663eb9 | refs/heads/master | 2021-07-25T16:44:34.366974 | 2021-06-05T23:37:17 | 2021-06-05T23:37:17 | 251,144,249 | 0 | 0 | null | 2020-03-29T22:05:29 | 2020-03-29T22:05:28 | null | UTF-8 | Python | false | false | 1,863 | py | # -*- coding: utf-8 -*-
'''
Shortest Palindrome
===================
Given a string S, you are allowed to convert it to a palindrome by adding
characters in front of it. Find and return the shortest palindrome you can
find by performing this transformation.
For example:
Given "aacecaaa", return "aaacecaaa".
Given "a... | [
"shiyanhui66@gmail.com"
] | shiyanhui66@gmail.com |
fa988929c6536c98dc7d14642b45fbf891e738b1 | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/mplstp/router/learnedinformation/learnedinformation.py | 83ef83224934544cb515f3b39a59fcfdda4b60a4 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 35,160 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
a9dbc3ee81439b624e8bbe1fdd8fddc296017d42 | b4ebc53bbe3e9eb9979a870f8e19afccc77cd0dc | /kotti/views/util.py | 0e002299d08ab3cb1e15aeac15ab91b2fc2f2943 | [] | no_license | tomster/Kotti | ebadfc5062d5cb204b3a3dc3c7022c5d48764c1c | 815feef31ca682651a00cb3e37e9d2eb69102680 | refs/heads/master | 2021-01-17T02:52:07.392185 | 2011-02-03T20:52:35 | 2011-02-03T20:52:35 | 1,326,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,161 | py | import string
from pyramid.decorator import reify
from pyramid.location import inside
from pyramid.location import lineage
from pyramid.renderers import get_renderer
from pyramid.security import has_permission
from pyramid.security import view_execution_permitted
from pyramid.url import resource_url
from kotti import... | [
"daniel.nouri@gmail.com"
] | daniel.nouri@gmail.com |
a554b75bbae8ce7159a8c92c7bc9617a3f8ea6b2 | e6e81d0cd02223ca27f2c3f544b3c116e7617270 | /LeetCodePremium/166.fraction-to-recurring-decimal.py | 4e31940e0726047ec726d2cd948a7cdc50cbbd9e | [] | no_license | ashjambhulkar/objectoriented | 86166640b0546713095dd5d8804fc78d31782662 | 6f07b50590ceef231be38d6d7b8c73a40c1152e9 | refs/heads/master | 2022-05-03T23:28:38.674275 | 2022-04-26T21:37:31 | 2022-04-26T21:37:31 | 249,091,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | #
# @lc app=leetcode id=166 lang=python3
#
# [166] Fraction to Recurring Decimal
#
# @lc code=start
class Solution:
def fractionToDecimal(self, numerator: int, denominator: int) -> str:
temp = numerator / denominator
result = str(temp).split(".")
print(result)
# @lc code=en... | [
"ashjambhulkar@hotmail.com"
] | ashjambhulkar@hotmail.com |
08dad1186849d09caf5fc4b2d148ed9816568ade | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY2JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_309/run_cfg.py | c03c03738b9bd3b31ee2736b52d51968e8267ab1 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY2JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
446fa12652d5b144b099e55be8f6ba4b4655115d | a36501f44a09ca03dd1167e1d7965f782e159097 | /app/utils/imports.py | 72c94015a2fa939bf724ab91d54f84c901244da5 | [
"Apache-2.0"
] | permissive | ssfdust/full-stack-flask-smorest | 9429a2cdcaa3ff3538875cc74cff802765678d4b | 4f866b2264e224389c99bbbdb4521f4b0799b2a3 | refs/heads/master | 2023-08-05T08:48:03.474042 | 2023-05-07T01:08:20 | 2023-05-07T01:08:20 | 205,528,296 | 39 | 10 | Apache-2.0 | 2023-08-31T00:18:42 | 2019-08-31T10:12:25 | Python | UTF-8 | Python | false | false | 1,623 | py | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
23ffe8520ed4a6c52b992f3a2a30670f92d55ac8 | b1eef5dac934d205872627c450b392035f526990 | /wagtail_redirect_importer/wagtail_hooks.py | 36bf415841093cc9c13e41943cf7fa0b88a66325 | [
"BSD-2-Clause",
"MIT"
] | permissive | Frojd/wagtail-redirect-importer | 55ed260d7df34daea320859bf5c336c9d94a4307 | 80c79f2bf7f6d66bd742af55419a03795a29aac5 | refs/heads/master | 2021-01-05T08:02:08.943279 | 2020-02-19T19:30:55 | 2020-02-19T19:30:55 | 240,944,396 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from django.urls import reverse
from django.conf.urls import url, include
from django.utils.translation import gettext_lazy as _
from wagtail.core import hooks
from wagtail.admin.menu import MenuItem
from wagtail.contrib.redirects.permissions import permission_policy
from . import admin_urls
@hooks.register("registe... | [
"martin@marteinn.se"
] | martin@marteinn.se |
3bb88c22f5c7987e07e4251358eeb8b1334933ef | 8acf0d98cd2ce3e8f2759835ef41a37d942b8dfb | /calendar_schedule/apps.py | 7979dfe4c151e516f1302022bf5e1f294cdd19cc | [] | no_license | yashmoda/CalendarSchedule | d22c7b76f8f1788daf8681560d0494629ce6c2d8 | cf009dd18f1ded6de14ec2c245599966f60ae3e5 | refs/heads/master | 2022-09-16T13:44:18.569832 | 2020-06-04T18:26:52 | 2020-06-04T18:26:52 | 269,434,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from django.apps import AppConfig
class CalendarScheduleConfig(AppConfig):
name = 'calendar_schedule'
| [
"yashmoda07@gmail.com"
] | yashmoda07@gmail.com |
13acff566febfc830270cc4bdf6322ec75e1f540 | 3cae667175b2d6aac6d7f3d8189e9a02c38ea1cf | /AOJ/ITP1/python/ITP1_3_C_Swapping_Two_Number.py | d588c02ab1c69137249031f73cc1f626561d4dfb | [] | no_license | kokorinosoba/contests | 3ee14acf729eda872ebec9ec7fe3431f50ae23c2 | 6e0dcd7c8ee086650d89fc65616981361b9b20b9 | refs/heads/master | 2022-08-04T13:45:29.722075 | 2022-07-24T08:50:11 | 2022-07-24T08:50:11 | 149,092,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | for e in list(open(0))[:-1]:print(*sorted(map(int,e.split())))
"""
import sys
for s in sys.stdin:
if"0 0\n"==s:break
print(*sorted(map(int,s.split())))
"""
"""
while True:
numbers = list(map(int, input().split()))
if numbers[0] == numbers[1] == 0:
break
print(*sorted(numbers))
"""
"""
while True:
... | [
"34607448+kokorinosoba@users.noreply.github.com"
] | 34607448+kokorinosoba@users.noreply.github.com |
fe06ea4c3df64f6e25f6212d7a97c2e563643489 | 15f948eca3996be98fb7de95b3565fc2851e49e6 | /rflex_dashboard/src/b21_dashboard.py | 3f60133e060c7b9804089749bcfb55790d7ed2b1 | [] | no_license | DLu/rwi_ros | 541e4a63fab6365831b48f55e317523de7700b91 | fc57828f7879a48628a38fbc37a0ad796219f5bb | refs/heads/master | 2021-01-10T20:04:25.510990 | 2013-07-12T22:00:18 | 2013-07-12T22:00:18 | 11,375,335 | 2 | 0 | null | 2013-08-24T20:53:03 | 2013-07-12T18:30:01 | C++ | UTF-8 | Python | false | false | 2,139 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code... | [
"davidvlu@gmail.com"
] | davidvlu@gmail.com |
041772ebf7aa50615ab05be18957702fdac5b5fe | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/concat82/693-tideGauge.py | 91401ff9f7c80852988b6487e7b02e2fa2d80619 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 13 10:02:00 2020
---------------------------------------------------------
This script concatenates yearly predictor files
Browses the predictor folders for the chosen TG
Concatenates the yearly csvs for the chosen predictor
Saves the concatenated csv in a separate dire... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
84df83f2641a14a2eb91b2ea8b04631d940cd81e | 909ae0ab0f4fe78de433c3d72b34b84848303ee8 | /titanic/venv/bin/wheel | 6f76d28fb8a1ef78cfc5a15ae251f24c1619d62c | [] | no_license | jakekasan/data-science | f5cf2a7c0ead56e04a3549b930ca974495faae49 | 4bf589c268c517525abf3170c24cf42e0ae872cf | refs/heads/master | 2021-09-17T21:18:51.278247 | 2018-07-05T07:31:51 | 2018-07-05T07:31:51 | 114,106,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/jakubkasan/coding/data-science/titanic/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jake.kasan@gmail.com"
] | jake.kasan@gmail.com | |
5ae40bbb2d10b61750da504f1266b8eccc87a272 | 4d097d0e8c571874761463f698f5d34e38e549a0 | /python/1104_example BFS.py | 8604a355ac934eaa98cfc466f9b3a8253701a795 | [] | no_license | sondongmin0419/study | 533832151958fe8ae178d8aee183edf91ffa7e12 | 0c863e2c9111b35a15ccfaec3cc64828c584beb1 | refs/heads/master | 2023-03-24T11:54:04.139399 | 2021-03-15T13:40:21 | 2021-03-15T13:40:21 | 281,695,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | def BFS(n):
print(n+1)
for i in range(N):
if li_v[n][i] == 1 and v[i] == 0:
li_v[n][i] = 0
li_v[i][n] = 0
stack.append(i)
v[i] = 1
if stack:
BFS(stack.pop(0))
li = [1, 2, 1, 3, 2, 4, 2, 5, 4, 6, 5, 6, 6, 7, 3, 7]
N = max(li)
li_v = [[0] * N f... | [
"dongmin.dev0419@gmail.com"
] | dongmin.dev0419@gmail.com |
07d5b2dbfe31d0220e328e169b9b3c434e4622df | 1170f797b7788b9e8445b7dd65377763068a9aa3 | /sympy/diff_gaussian3d.py | 8e9ff0d689f09a8f4045459b0c9dfb9aceae83ae | [] | no_license | f-fathurrahman/ffr-python-stuffs | 2585c554e15ec6828900739376250ed391cf6966 | d249c4f2a01f58a96083bac2377309c05f652907 | refs/heads/master | 2023-08-23T22:54:34.147166 | 2023-07-20T23:24:50 | 2023-07-20T23:24:50 | 83,401,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from __future__ import print_function
from sympy import *
init_printing(use_unicode=True)
x, y, z, sigma = symbols("x y z sigma")
#c1 = 2*sigma**2
#cc1 = sqrt(2*pi*sigma**2)**3
c1, cc1 = symbols("c1 cc1")
r2 = x**2 + y**2 + z**2
f = exp(-r2/c1)/cc1
pprint(f)
print("Diff x:")
nabla_x = diff(f,x).subs( x**2 + y**... | [
"fadjar.fathurrahman@gmail.com"
] | fadjar.fathurrahman@gmail.com |
26ab7c6b98b83caee671d126dcb8ff34aef15ab4 | ee90d2c36f45cb77d101d1e29eae10877f9de273 | /gwftool/tool_io.py | 6a4e8e45e0b2e4eb9c05fd9cd4d5c9a982804e06 | [] | no_license | buchanae/gwftool | b1bd7b096b26aff5217d46e06bc5e44480b58d98 | a3cdcb5303b5bfa376f65029810aeb9dca08c158 | refs/heads/master | 2021-01-25T11:02:36.066813 | 2016-09-12T06:59:51 | 2016-09-12T06:59:51 | 93,907,031 | 1 | 0 | null | 2017-06-10T00:49:58 | 2017-06-10T00:49:58 | null | UTF-8 | Python | false | false | 7,459 | py |
import re
import os
from glob import glob
from xml.dom.minidom import parse as parseXML
from Cheetah.Template import Template
from Cheetah.Filters import Filter
"""
Code for dealing with XML
"""
def getText(nodelist):
rc = []
if isinstance(nodelist, list):
for node in nodelist:
if node.nod... | [
"kellrott@gmail.com"
] | kellrott@gmail.com |
fbc22f6771533431e94df754cb070b1bc9198850 | d2eb7bd335175edd844a3e6c1c633ee0dc2dbb25 | /contests_atcoder/abc179/abc179_d.py | c4a3d553c1432fad3bc2cf1b32f51d8cd1a7fb39 | [
"BSD-2-Clause"
] | permissive | stdiorion/competitive-programming | 5020a12b85f1e691ceb0cacd021606a9dc58b72c | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | refs/heads/main | 2023-03-27T01:13:42.691586 | 2021-03-08T08:05:53 | 2021-03-08T08:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | from itertools import accumulate,chain,combinations,groupby,permutations,product
from collections import deque,Counter
from bisect import bisect_left,bisect_right
from math import gcd,sqrt,sin,cos,tan,degrees,radians
from fractions import Fraction
from decimal import Decimal
import sys
input = lambda: sys.stdin.readlin... | [
"itkn1900@gmail.com"
] | itkn1900@gmail.com |
520a6a1a45f4662fdc8a0e72015299c0fdd13894 | ebae416013607b045b505dbb0b5598c9e732dcf4 | /Zajęcia 4.py | e6fc0ab19129b07ee5c18e75cafb591882fcea34 | [] | no_license | Ernest93/Ernest93 | 08bbadc067e9ef277bad5f0922ca89a8ae298fb8 | 7570ccf18631c5e88bd38c0498d7c9348e81dd7b | refs/heads/master | 2020-04-06T15:24:56.128434 | 2018-12-10T16:21:06 | 2018-12-10T16:21:06 | 157,577,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | print('{:-^80}'.format('PĘTLE FOR'))
#petla po obiekcie range
liczby = range(0, 11)
for liczba in liczby:
print(liczba)
#3 werianty iteracji po stringu
#wariant 1 - zamieniamy string na listę i iterujemy listę
napis = "Ala ma kota"
lista_z_napisu = list(napis)
for znak in lista_z_napisu:
print(znak)
#warian... | [
"you@example.com"
] | you@example.com |
1ec4f23e44b2fff1f0637b70c34d377bd191a131 | 268cfc4a52f7e6ad52f7a829cddcf5e80232c66c | /mini_catkin_ws/build/geometry2/tf2_msgs/catkin_generated/pkg.installspace.context.pc.py | 9f9e7fc458f263790ca1566df8263495b84c7696 | [] | no_license | 1065712938/MyCode | 36b50a2cb8522465bd0f1e891ef26dadc4bc5432 | fe77dd0712f3e726602e57bb76e4b8d6b4f9f34b | refs/heads/master | 2022-02-11T22:02:54.980159 | 2019-05-08T02:57:55 | 2019-05-08T02:57:55 | 173,691,835 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/crazy/mini_catkin_ws/install/include".split(';') if "/home/crazy/mini_catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_generation;geometry_msgs;actionlib_msgs".replace('... | [
"you@example.com"
] | you@example.com |
d9fd3b312fd129bfe310094e3b79ddb292a261df | 131cf803a1f7b9638ab0a604d61ab2de22906014 | /dimensigon/domain/exceptions.py | aac14bdd39939d212e6a4fb15a757f630570f7e4 | [
"Apache-2.0"
] | permissive | dimensigon/dimensigon | 757be1e61e57f7ce0a610a9531317761393eaad0 | 079d7c91a66e10f13510d89844fbadb27e005b40 | refs/heads/master | 2023-03-09T06:50:55.994738 | 2021-02-21T11:45:01 | 2021-02-21T11:45:01 | 209,486,736 | 2 | 0 | Apache-2.0 | 2021-02-26T02:59:18 | 2019-09-19T07:11:35 | Python | UTF-8 | Python | false | false | 1,780 | py | """
Exceptions for Domain Errors
IDs from 100 to 999
"""
class DomainException(Exception):
"""
Base Class exception
"""
_id = 100
class InjectionError(DomainException):
"""
Exception raised when trying to add an id to Step that already exists
"""
_id = 102
class CycleError(DomainEx... | [
"joan.prat@knowtrade.eu"
] | joan.prat@knowtrade.eu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.