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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1332cc18df8bec9ad15a0c2f869d24c6ca979ac3 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /LightGBM_sklearn_scipy_numpy/source/scipy/optimize/nonlin.py | a43bb62e19e9f80bda88799dbc3c8aa46227e215 | [
"MIT",
"GPL-3.0-or-later",
"Qhull",
"GPL-3.0-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-3-Clause-Open-MPI",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"GCC-exception-3.1"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 46,761 | py | r"""
Nonlinear solvers
-----------------
.. currentmodule:: scipy.optimize
This is a collection of general-purpose nonlinear multidimensional
solvers. These solvers find *x* for which *F(x) = 0*. Both *x*
and *F* can be multidimensional.
Routines
~~~~~~~~
Large-scale nonlinear solvers:
.. autosummary::
newto... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
39d800e56c5d45069919499cce94f111c88d636d | 22eea10f9b62ad742be7a0ee9109a913e0ddb1bb | /StInt/EPI/Arrays/Merged-Intervals/merge_detect.py | 85969ec6b2e6d9edc6af203e1682077cb92d5dc9 | [] | no_license | mihirkelkar/languageprojects | f991610476fd64aabfec5a8cc60c263908085e17 | 4439fcf843a964fccf14a1c4dba6d054ca35d048 | refs/heads/master | 2021-01-01T20:16:22.322304 | 2020-12-20T19:03:40 | 2020-12-20T19:03:40 | 20,080,717 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | class Event(object):
def __init__(self, start, end):
self.start = start
self.end = end
def print_times(self):
print self.start,
print self.end
def find_merge_intervals(list_of_intervals):
sorted_list = sorted(list_of_intervals, key = lambda x : x.start)
for ii in range(1, len(sorted_list)):
... | [
"kelkarmhr@gmail.com"
] | kelkarmhr@gmail.com |
37e28d11f1034c82a9f1482575f4e59e16a8dc35 | b68c855198c944a5dcc4b543f7609058f1d8db53 | /logparser/Drain.py | dd79f22e5ee1cba2f73baf42f30f6022c312340a | [] | no_license | forallx94/logbert | c4dab9d04386c5a716f946410ba10794d0cba379 | 77a5c37676731ade41495daf58ae038db37d6c63 | refs/heads/main | 2023-08-22T16:24:48.730343 | 2021-09-27T07:39:05 | 2021-09-27T07:39:05 | 407,034,672 | 0 | 0 | null | 2021-09-16T05:37:19 | 2021-09-16T05:37:19 | null | UTF-8 | Python | false | false | 12,717 | py | """
Description : This file implements the Drain algorithm for log parsing
Author : LogPAI team
License : MIT
"""
import re
import os
import numpy as np
import pandas as pd
import hashlib
from datetime import datetime
class Logcluster:
def __init__(self, logTemplate='', logIDL=None):
... | [
"ghaixan@163.com"
] | ghaixan@163.com |
f1b87c3c3ede937152c85642a188029018b7f37e | 8575ccf9e7e6b2257ec7aee1539c91afa90d65a5 | /nlp/_02_textcluster/utils.py | 620fa8b64c54d929715f4fe7148b0dfb2c4d06a3 | [] | no_license | oaifaye/pyfirst | 86b8765751175f0be0fe3f95850ff018eacf51d3 | e8661b5adf53afd47fa5cb6f01cd76535d8fc8b9 | refs/heads/master | 2021-12-12T00:33:39.523597 | 2021-08-13T08:32:10 | 2021-08-13T08:32:10 | 160,138,715 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | # -*- coding: utf-8 -*-
import pickle
import re
def readbunchobj(path):
file_obj = open(path,'rb')
bunch = pickle.load(file_obj)
file_obj.close()
return bunch
def writebunchobj(path,bunchobj):
file_obj = open(path,'wb')
pickle.dump(bunchobj,file_obj)
file_obj.close()
de... | [
"slf_work@hotmail.com"
] | slf_work@hotmail.com |
0e5702ddf50c99377a738187f828539c6537451a | dfaf0169a799d81535c952a5c284d2ff6b8f2265 | /asgn_1/asgn_1_8.py | bd61dc0116ae78b066e394a8aa166f9998c72e61 | [] | no_license | RahulBantode/Python_Task_-OOPS- | 9f10cff655691518ed7147abe6503dee6013ff96 | ea7ad00e109349b999ec97588c59fb3b03a69bff | refs/heads/main | 2023-05-25T07:29:57.714579 | 2021-06-14T06:42:49 | 2021-06-14T06:42:49 | 346,242,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | ''' statement : write a program which accept number from user and print that number of * on screen'''
def PrintStar(value):
i=1
while i <= value:
print("*\t",end=" ")
i = i+1
def main():
no = int(input("How many times you want print \"*\" on screen : "))
PrintStar(no)
if __name__ == '__main__':... | [
"noreply@github.com"
] | RahulBantode.noreply@github.com |
e51e5b3ae82fc2479ec96ebc8b9d4e43855b4b4f | fed6c6bdb6276d195bc565e527c3f19369d22b74 | /test/separation_angle_test/cal_sep_ang_astropy.py | c0b80cc508f5c2ebba633e20ab73f9197f6aba4f | [] | no_license | hekunlie/astrophy-research | edbe12d8dde83e0896e982f08b463fdcd3279bab | 7b2b7ada7e7421585e8993192f6111282c9cbb38 | refs/heads/master | 2021-11-15T05:08:51.271669 | 2021-11-13T08:53:33 | 2021-11-13T08:53:33 | 85,927,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from astropy.coordinates import SkyCoord
from astropy import units
from sys import argv
ra1, dec1 = float(argv[1]), float(argv[2])
ra2, dec2 = float(argv[3]), float(argv[4])
c1 = SkyCoord(ra=ra1*units.deg, dec=dec1*units.deg,frame="fk5")
c2 = SkyCoord(ra=ra2*units.deg, dec=dec2*units.deg,frame="fk5")
sep = c1.separat... | [
"hekun_lee@sjtu.edu.cn"
] | hekun_lee@sjtu.edu.cn |
b98b5daca8f6e76fde1e08f8c2ad2abf8451feeb | d7390fea6c7f712ee32be6d3478835d965d795e0 | /py26_24day/py26_api_test/testcases/test_add.py | fe1e0c2cdd31c1995b8b91963f0cff637e38ac2d | [] | no_license | luwenchun/Automated_Test | 2f424655d80127e3ed98657869021a775beca868 | 79b9937cfc0841b0a80d4fd45d8ff467654b5b55 | refs/heads/master | 2021-02-10T15:23:08.446463 | 2020-03-26T10:39:38 | 2020-03-26T10:39:38 | 244,393,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | """
============================
Author:柠檬班-木森
Time:2020/2/28 21:21
E-mail:3247119728@qq.com
Company:湖南零檬信息技术有限公司
============================
"""
import os
import unittest
import jsonpath
from py26_24day.py26_api_test.common.readexcel import ReadExcel
from py26_24day.py26_api_test.common.handlepath impor... | [
"luwenchun@users.noreply.github.com"
] | luwenchun@users.noreply.github.com |
3d058190a3b777ae763a5449f9e672a762accbc5 | 5a01774b1815a3d9a5b02b26ca4d6ba9ecf41662 | /Module 2/Chapter04/django-myproject-04/likes/views.py | 8ee413f495c99889e0eb88da77a52dc41aa3f015 | [
"MIT"
] | permissive | PacktPublishing/Django-Web-Development-with-Python | bf08075ff0a85df41980cb5e272877e01177fd07 | 9f619f56553b5f0bca9b5ee2ae32953e142df1b2 | refs/heads/master | 2023-04-27T22:36:07.610076 | 2023-01-30T08:35:11 | 2023-01-30T08:35:11 | 66,646,080 | 39 | 41 | MIT | 2023-04-17T10:45:45 | 2016-08-26T12:30:45 | Python | UTF-8 | Python | false | false | 1,718 | py | # -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import json
from django.http import HttpResponse
from django.views.decorators.cache import never_cache
from django.contrib.contenttypes.models import ContentType
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from ... | [
"bhavinsavalia@packtpub.com"
] | bhavinsavalia@packtpub.com |
6d53af45c900b528d3d52855a977da0f57432d5a | eee87bac78475dbb5b88f91bc1bc68ed63f28e5f | /virtual/bin/django-admin.py | 512950e949faf86b67ae5f3628fd36916aa91064 | [
"MIT"
] | permissive | markmurimi/neighbour-hood | 8c595ee732ead18a33be8a6ab49078d9fc27c4d6 | dc5a3aaefd77958ca4990e651e0ba8f0b22d7cf8 | refs/heads/master | 2020-03-18T14:06:58.002371 | 2018-05-30T12:09:19 | 2018-05-30T12:09:19 | 134,830,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!/home/mark/Documents/neighbour-watch/virtual/bin/python3.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"murimimg180@gmail.com"
] | murimimg180@gmail.com |
afa4af83ece4b4704127d44f4e5527dced662658 | dd204762b0a9cdd93634e15ec981b5f868ec4315 | /apps/documents/migrations/0004_invoice.py | 6d174b1c1c2357bab34e08fcb0a6a92b8b9b6634 | [] | no_license | pannkotsky/sales_outlet | 49713b39759d8c3dbedfce96953ba9c47db3d521 | 15753582f8413a98ad7259bb6a3d62e32415f632 | refs/heads/master | 2021-08-30T11:05:23.589421 | 2017-12-17T16:19:56 | 2017-12-17T16:19:56 | 112,077,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-29 20:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('products', '0004_auto_20171129_2118'),
('documents'... | [
"kovvalole@gmail.com"
] | kovvalole@gmail.com |
23e5189244ab17f8795a0d2d136873de29c91f73 | 74482894c61156c13902044b4d39917df8ed9551 | /cryptoapis/model/address_tokens_transaction_unconfirmed_ethereumerc721token.py | 78e6e8cccb380fb74e25368b6c6d05792ff6fb74 | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 7,724 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
edb68d6f607d6ffce8ccd371008cdda62d9db733 | afebbb07b2b4eada17a5853c1ce63b4075d280df | /marketsim/gen/_out/math/_source.py | fe0ac6dcc7f72a71b5423b066a055fd7a079c5e3 | [] | no_license | peter1000/marketsimulator | 8c0a55fc6408b880311d3ad49defc55e9af57824 | 1b677200a9d5323f2970c83f076c2b83d39d4fe6 | refs/heads/master | 2021-01-18T01:39:04.869755 | 2015-03-29T17:47:24 | 2015-03-29T17:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,812 | py | # generated with class generator.python.accessor$Import
from marketsim import registry
from marketsim.gen._out.math._moving import Moving
@registry.expose(["-", "Source"])
class Source_mathMoving(object):
"""
"""
def __init__(self, x = None):
from marketsim.gen._out.math._moving import Moving_IObs... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
3ebe10cba243e3e9beff7ce90b952a15a1e05a57 | 7bcec8a9c6a240ec0888bec4179f536046464005 | /moviesys/moviesys/.history/library/views_20210324175438.py | b6544870318d275779993f680f8eb2a059283e1a | [] | no_license | yifanzhang13/MovieManagementSystem_group5 | c64e5810914c3d33ae6cd94e8eed5dc5a3962181 | 4cca1a4299311681d69b2347ca8d7b02e0846ebc | refs/heads/main | 2023-03-29T08:30:26.655108 | 2021-04-01T15:42:52 | 2021-04-01T15:42:52 | 344,417,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,616 | py | from django.shortcuts import render
from .models import Movies, Users, Ratings, Links, Tags
from django.db import connection
from django.views import generic
from django.shortcuts import get_object_or_404
from django.http import HttpResponseRedirect
from django.urls import reverse
from library.forms import SearchMovieF... | [
"yifancheung13@gmail.com"
] | yifancheung13@gmail.com |
0d3b8f95ece7e037e2f572adc7c258d76b25e936 | 6418c60849119c2e956bf534c4118ec4858de648 | /ax/modelbridge/transforms/one_hot.py | f16d151519ced8ad0ce026918093c5e33cc43449 | [
"MIT"
] | permissive | MalkeshDalia/Ax | c1595871871bd18183ad03692487f33df760bfaa | f458275d96c858cddc835dfefd34114de34d8b28 | refs/heads/master | 2023-04-16T00:34:19.726437 | 2019-05-01T05:16:22 | 2019-05-01T05:16:23 | 184,374,837 | 1 | 0 | MIT | 2023-03-21T21:47:24 | 2019-05-01T05:51:10 | Jupyter Notebook | UTF-8 | Python | false | false | 6,387 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from typing import Dict, List, Optional, TypeVar
import numpy as np
from ax.core.observation import ObservationData, ObservationFeatures
from ax.core.parameter import ChoiceParameter, Parameter, ParameterType, RangeParamete... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e843d418d54ba8d491c42c79498e47d2b6f448d8 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_chart_axis15.py | 6fa48ec645b2b45ff9c7624ac1320000ad10b66f | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,360 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
1abd899a1740721cefc860f28ccdc3395587f893 | eea01a7a4625b0ffada7f5ea9909537f159a706e | /api/tests/opentrons/protocol_engine/execution/test_gantry_mover.py | ac621cfee6533e3ca72547639e2cd5e30353cf50 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | XifanRD/opentrons | b9fe114232fba26d789a9c4cf24b6ec6338134dc | d02dc6f77c40d85daa1c37f2073e4672e5f5f445 | refs/heads/edge | 2023-07-09T06:43:13.526571 | 2023-06-30T01:12:18 | 2023-06-30T01:12:18 | 207,443,994 | 0 | 0 | Apache-2.0 | 2019-12-19T09:41:37 | 2019-09-10T02:05:43 | null | UTF-8 | Python | false | false | 15,231 | py | """Test gantry movement handler with hardware API."""
from __future__ import annotations
import pytest
from decoy import Decoy
from typing import TYPE_CHECKING
from opentrons.types import Mount, MountType, Point
from opentrons.hardware_control import API as HardwareAPI
from opentrons.hardware_control.types import (
... | [
"noreply@github.com"
] | XifanRD.noreply@github.com |
2a0285638dadac1bca6388b2784153e889ab8ee8 | f9c7f734e13fa3c61347fe475306a6759940b860 | /python3_cron_scripts/create_tpd_graphs.py | 6662152a75dbe8d6b85b7000c5f2ae04c43bd22b | [
"Apache-2.0"
] | permissive | DalavanCloud/Marinus | 48936f54395bae7c3e39dcffed77bb6fae3b473c | a9f3c4a54f6bf5c044121ac6d8d3d18a7a0e09d0 | refs/heads/master | 2020-04-29T12:32:17.645410 | 2019-03-16T00:37:11 | 2019-03-16T00:37:11 | 176,140,449 | 1 | 0 | null | 2019-03-17T18:07:18 | 2019-03-17T18:07:18 | null | UTF-8 | Python | false | false | 9,765 | py | #!/usr/bin/python3
# Copyright 2018 Adobe. All rights reserved.
# This file is licensed to you 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... | [
"puhley@adobe.com"
] | puhley@adobe.com |
5502baa5078bace5351800777e9e71092e41e9ec | 5779d964d5ee42b586697a640ff0f977e0fa1e55 | /test/test_access_approval_services_api.py | 1e9f8cd053340a2548c2d46ca89069e1132a2cae | [] | no_license | thomasyu888/synpy-sdk-client | 03db42c3c8411c8c1f8808e1145d7c2a8bcc3df1 | d1e19e26db5376c78c4ce0ff181ac3c4e0709cbb | refs/heads/main | 2023-02-28T09:33:12.386220 | 2021-02-02T15:09:59 | 2021-02-02T15:09:59 | 333,744,741 | 3 | 0 | null | 2021-01-30T12:10:50 | 2021-01-28T11:57:48 | Python | UTF-8 | Python | false | false | 1,014 | py | # coding: utf-8
"""
Platform Repository Service
Platform Repository Service - Sage Bionetworks Platform # noqa: E501
The version of the OpenAPI document: develop-SNAPSHOT
Contact: thomas.yu@sagebionetworks.org
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_im... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
ab0a941410dac6aa32f28e272e64bd732c1ef4af | 93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3 | /python/paddle/fluid/tests/unittests/test_input_spec.py | e329a37488a2cb8234532cd0a9beb7a1a25e72a6 | [
"Apache-2.0"
] | permissive | hutuxian/Paddle | f8b7693bccc6d56887164c1de0b6f6e91cffaae8 | a1b640bc66a5cc9583de503e7406aeba67565e8d | refs/heads/develop | 2023-08-29T19:36:45.382455 | 2020-09-09T09:19:07 | 2020-09-09T09:19:07 | 164,977,763 | 8 | 27 | Apache-2.0 | 2023-06-16T09:47:39 | 2019-01-10T02:50:31 | Python | UTF-8 | Python | false | false | 4,615 | 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"
] | hutuxian.noreply@github.com |
d2e7091ee4d9e58e5d8ff8e416f1ef6483e5ea80 | eea01a7a4625b0ffada7f5ea9909537f159a706e | /hardware/opentrons_hardware/firmware_bindings/messages/payloads.py | 223a929c942dffb18dcae8331ee3f4f04cfd0bf4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | XifanRD/opentrons | b9fe114232fba26d789a9c4cf24b6ec6338134dc | d02dc6f77c40d85daa1c37f2073e4672e5f5f445 | refs/heads/edge | 2023-07-09T06:43:13.526571 | 2023-06-30T01:12:18 | 2023-06-30T01:12:18 | 207,443,994 | 0 | 0 | Apache-2.0 | 2019-12-19T09:41:37 | 2019-09-10T02:05:43 | null | UTF-8 | Python | false | false | 17,246 | py | """Payloads of can bus messages."""
# TODO (amit, 2022-01-26): Figure out why using annotations import ruins
# dataclass fields interpretation.
# from __future__ import annotations
from dataclasses import dataclass, field, asdict
from . import message_definitions
from typing import Iterator, List
from .fields import... | [
"noreply@github.com"
] | XifanRD.noreply@github.com |
658de4de25f891219241d561ec8ea7df8cf7369b | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/aiohttp/worker.py | deb68ced7f3cfc29dfc78cdc8d3e211d3f00629f | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/09/bc/75/2b25658a0bd66ba9237b48525e1763809d403912cdd6abbca89d0bcd24 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
51e616e51e931fd86dabb8d7893a8226d10e3bb7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_minion.py | 043f4450fe5016c580399725d455d2292bd254fe | [
"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 | 382 | py |
#calss header
class _MINION():
def __init__(self,):
self.name = "MINION"
self.definitions = [u'a person who is not important and who has to do what another person of higher rank orders them to do: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
01546daeac217a5c225258efff378b7d9a7da2b1 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Yelp/SearchForBusiness.py | 1c3fc99c24d7c29ab3d39126b3e66458540807c7 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,654 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# SearchForBusiness
# Retrieves information for a given business id or name.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# ... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
cf01f1e148b59200162b21c0e689315de517efa4 | e8878773d36892c74d6bbe4c257a57e23fb9e7e8 | /backend/location/admin.py | 6988b9097daa65c15498009d314ee94c58f8cb9d | [] | no_license | crowdbotics-apps/logintest-29319 | 8831f9a4f85292518b794406c4082b7212b736a5 | 45e9ec4fa8fce8e04caa98e5bc13ebfed81baaf3 | refs/heads/master | 2023-06-30T11:25:57.766718 | 2021-08-01T17:19:28 | 2021-08-01T17:19:28 | 391,687,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.contrib import admin
from .models import TaskerLocation, MapLocation, CustomerLocation, TaskLocation
admin.site.register(MapLocation)
admin.site.register(TaskerLocation)
admin.site.register(CustomerLocation)
admin.site.register(TaskLocation)
# Register your models here.
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0ccc67ad1fb04469ff08da9bd5f6c0209718d728 | cac9947cec2aace94fb4a7c69fd32654bb53e853 | /bin/qr | 56709d197d5f6784415fb47f7327c01facbaa6e7 | [
"BSD-3-Clause"
] | permissive | nguyentranhoan/uit-mobile | 7bc1a020251ca583fe11cf1f729630466203537a | 8546312b01373d94cf00c64f7eacb769e0f4ccce | refs/heads/master | 2023-01-05T03:29:54.732892 | 2020-04-08T07:14:32 | 2020-04-08T07:14:32 | 235,015,840 | 0 | 0 | BSD-3-Clause | 2022-12-27T15:35:57 | 2020-01-20T04:04:47 | Python | UTF-8 | Python | false | false | 251 | #!/home/jay/Desktop/uit/uit_mobile/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from qrcode.console_scripts import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nguyentranhoan.mr@gmail.com"
] | nguyentranhoan.mr@gmail.com | |
2df038e4cf1c2ec2746999fc1b87d64d610b8b04 | f846b6997562165df3a0463bad9728395db5ec8e | /app/pages/base/page.py | 3e373cfaa83b3e524d2f0c6abd32e23c5efaa536 | [] | no_license | gonza56d/burner | 9f687485a4728bcbc85e1fc5918be2eeed4fc8f8 | c21f4d17215b47c3a8bfba460daf71505185b568 | refs/heads/master | 2023-08-04T17:27:11.883836 | 2021-07-04T21:26:08 | 2021-07-04T21:26:08 | 408,569,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | # Python
from abc import ABC, abstractmethod
from typing import Generator
class BasePage(ABC):
"""Abstract class that implements how to get and store the data regarding
subclass attributes.
"""
@abstractmethod
def get_page_name(self) -> str:
"""Implement the name of the page to store resu... | [
"gonza56d@gmail.com"
] | gonza56d@gmail.com |
6e8c4b912b4d24612e702fb71d21bd1cb9d4d22d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch153_2020_04_13_20_48_31_775267.py | e5e5b914943c693b478c062703701e840b52b37b | [] | 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 | 400 | py | def agrupa_por_idade(dic):
dic={'João': 10, 'Maria': 8, 'Miguel': 20, 'Helena': 67, 'Alice': 50}
dic2={}
k=dic.values()
for i in k:
if i<=11:
dic2[i]='criança'
elif i>11 and i<18:
dic2[i]='adolescente'
elif i>17 and i<60:
dic2[i]='adulto'
... | [
"you@example.com"
] | you@example.com |
989f1ad768f48f50694a33f86d2df5993591a6e9 | ecb113be53f2fe1768e85a1004d571c74d87ae8d | /dependencies/python/fmlaas/controller/utils/__init__.py | 026fae5f9152e209282ffcd908838d20a86ab5af | [] | no_license | Internet-SmokeAlarm/core | 39351e4d5bddf19bd59faf51bbc225c0e0521905 | 87b66a10042ec41916c490bb20cb4117f3caf1ba | refs/heads/master | 2023-02-17T18:40:12.822530 | 2020-07-05T20:28:38 | 2020-07-05T20:28:38 | 216,093,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from .project_operations import update_experiment
from .project_operations import termination_check
| [
"valetolpegin@gmail.com"
] | valetolpegin@gmail.com |
df94a3aee5b666e7f7de868cf7f4115646df7570 | 3a622d275c968f417eb2f78ce241e99eeb387b30 | /test/common_methods_invocations.py | c4e2d9ea3433f76bf4de644f8269b5992d8f6df3 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | weihuangxu/pytorch | 232e495df8c8e64a2985bdc0d7ab6d8d8f64799f | 4928c7641540c21e40e845c9383681b16093bf1f | refs/heads/master | 2020-04-12T07:55:31.524624 | 2018-12-19T02:23:55 | 2018-12-19T02:26:37 | 162,375,527 | 0 | 0 | NOASSERTION | 2018-12-19T03:04:28 | 2018-12-19T03:04:28 | null | UTF-8 | Python | false | false | 46,996 | py | import torch
from torch._six import inf, nan
from functools import reduce, wraps
from operator import mul, itemgetter
from torch.autograd import Variable, Function, detect_anomaly
from torch.testing import make_non_contiguous
from common_utils import (skipIfNoLapack,
prod_single_zero, random_s... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a13090e72f2f244bcb3ccd776e7dee54df3c55e2 | 707287238a36b8e5f3e26c347cca580549b441e5 | /combgen/gray_graph/multiradix.py | 9128fc33cef7e9711baa3cb63173e8f51a80e05a | [] | no_license | sahands/coroutine-generation | 2a01e3c5a36fc6b82d8087a15591a452e4bca636 | f0b318016b8925b2ab16640a588210548f7989db | refs/heads/master | 2016-09-06T04:54:02.453166 | 2015-01-06T21:32:58 | 2015-01-06T21:32:58 | 17,954,406 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from combgen.multiradix_gray.coroutine import gen_all
from .grapher import generate_pgf_gray_graph
def dist(a, b):
return sum(abs(x - y) for x, y in zip(a, b))
def neighbour(u, v):
return dist(u, v) == 1
def to_str(a):
return '"${}$"'.format(''.join(str(x) for x in a))
def main():
M = [3, 2, 3]
... | [
"sahands@gmail.com"
] | sahands@gmail.com |
7bd3f3f1fd8443f552fec39bb8e367be7c3eb367 | 15c3ee205f83854a219f4893c5b78a872b6717e3 | /liquepy/num/o3.py | a1f78597692fea653156816a0458cb06911a2570 | [
"MIT"
] | permissive | geosharma/liquepy | 7def9e793915268ce9365e474749bdf8d0aa3166 | 05d810fe643128b60430bf7f91be899cab9542c6 | refs/heads/master | 2022-02-18T17:24:44.446980 | 2022-02-13T16:57:47 | 2022-02-13T16:57:47 | 219,091,135 | 4 | 0 | MIT | 2021-03-20T13:52:20 | 2019-11-02T02:11:33 | null | UTF-8 | Python | false | false | 2,492 | py | from liquepy.num.models import PM4Sand as PM4SandBase
from liquepy.num.models import StressDensityModel as StressDensityModelBase
from liquepy.num import models
class PM4Sand(PM4SandBase):
type = "pm4sand"
o3_type = 'pm4sand'
def __init__(self, wmd=None, liq_mass_density=None, liq_sg=1.0, g=9.8, p_atm=10... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
e3bd554ad63149e3043d6a8c0f9163f73ce18252 | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon4504.py | 487d5335911e971092814510b9c7ce504d665229 | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | n=int(input())
while True:
m=int(input())
if m==0:
break
print(("{} is NOT ".format(m) if m%n!=0 else "{} is ".format(m))+"a multiple of {}.".format(n)) | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
7d43725ec9a45d83dc444544244da257a3c11c20 | 38fe7f92d33a6091e5bfa42b1539bb7409eee0cd | /Solutions/MissingNumber/missingNo.py | 96df0889669e11b4dd505034eb5994ddca5036de | [] | no_license | phibzy/InterviewQPractice | bbda3fb1eb068d7870b6e8880cea16e342368bd7 | 0c8641ffb48c862ebb4e5471ae0915780b0a9f98 | refs/heads/master | 2023-03-28T08:12:47.146313 | 2021-03-30T23:54:13 | 2021-03-30T23:54:13 | 259,839,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | #!/usr/bin/python3
"""
@author : Chris Phibbs
@created : Thursday Mar 04, 2021 13:24:11 AEDT
@file : missingNo
"""
class Solution:
# The cheeeeeeeeeeeese
# Just find the difference between the expected sum of all numbers 0 to N
# and the sum of everything in nums
# TC: O(N) - p... | [
"phibzy@gmail.com"
] | phibzy@gmail.com |
796e614f4db6b151308e0cdcec154a1c3036ce39 | 247c5a57c5014c135a24455298fdcea2f2e59a40 | /pretreatment/barrages_prepro.py | 4261af6ff1a1762da9c34023c53962a4d6db77df | [
"Apache-2.0"
] | permissive | gdh756462786/transformer_barrages | 231d06939c0624ddeaf8c7de204d4dfa56e580c7 | 08d4de27cda354a13d9a7e50ddc8cee2f6cd348c | refs/heads/master | 2022-04-12T12:09:34.286761 | 2020-02-24T08:07:46 | 2020-02-24T08:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | # -*- coding: utf-8 -*-
"""
@date: 2020.1.10
@author: liluoqin
@function:
process pretreatment data
"""
import os
import errno
import sentencepiece as spm
import re
import logging
import jieba
import sys
from sklearn.model_selection import train_test_split
sys.path.append("..")
from hparams import Hparams
logging.... | [
"1182953475@qq.com"
] | 1182953475@qq.com |
b7a5e69b7f2fe61ac63f316b9653590b36e66ec3 | 8d179300d8583dd9738b6aea821a82803c7f17ea | /iom/iom/admin.py | 0c7cabd4bf5cfe94ca6540a93d582235f908d5e2 | [] | no_license | tkleinen/acaciadata | 4ad10269e79b04febc52f4b5d49b4f4c172df4a5 | f142e9ec0048a2fc6af6bd8d5b357178c0ee93c7 | refs/heads/master | 2020-04-16T00:50:25.354427 | 2016-08-30T11:54:52 | 2016-08-30T11:54:52 | 33,363,185 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | '''
Created on Jun 16, 2015
@author: theo
'''
from django.contrib import admin
from django import forms
from django.forms import Textarea
from django.contrib.gis.db import models
from .models import UserProfile, Adres, Waarnemer, Meetpunt, Watergang, Organisatie
from acacia.data.models import Series, DataPoint
from d... | [
"tkleinen@gmail.com"
] | tkleinen@gmail.com |
0efdd1a0ebe604430982bbf8426b508f8fb2c0be | dd32803789eb65a518457491cdbda7a32811713d | /app_market/migrations/0064_shiftappealinsurance.py | ae7988c2161c3a61cc19580b4db159d561bdafa3 | [] | no_license | shmeser/giberno-postman | 4d974f0c9e69a4f6fb64f124b754acf9d732d79b | 19ffefa3f818c04831aaed28e6540274ba4fbc90 | refs/heads/master | 2023-08-14T22:35:09.034847 | 2021-09-01T11:36:43 | 2021-09-01T11:36:43 | 407,432,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | # Generated by Django 3.1.4 on 2021-08-03 07:47
import app_market.enums
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app_market', '0063_auto_20210713_1532'),
]
operations... | [
"sergey.shmelev@appcraft.team"
] | sergey.shmelev@appcraft.team |
87c2060d5dfd08a359e93d8d648496437635aff6 | 66f09ba0bc473b2e2eaa2c8bca6e4a97a550fbc5 | /orders/migrations/0001_initial.py | f6cff0f9d32bf075d0f4d6c6acb5be846546325a | [] | no_license | sanix-sandel/ZanduB | 729aefb83b14f4dd8e669b1b21e07f5b96271f69 | df1159c8ccf3fddda90a5eff21b43024ca02de03 | refs/heads/master | 2022-11-30T20:29:12.908518 | 2020-08-11T03:58:44 | 2020-08-11T03:58:44 | 269,744,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | # Generated by Django 3.0.7 on 2020-07-08 08:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0001_initial'),
('stores', '0002_auto_2... | [
"sanicksikani@gmail.com"
] | sanicksikani@gmail.com |
b7f601fdccad85414b32a5e52a27d993d88b141f | f82dff6fcefbbfdfc78a6eab3739034729e164cc | /h.py | c16820148e78c1116617972be8cf038b6e18e1af | [] | no_license | junelynpalma/j | 89be92bb5375e853308f534a44bdcd1837c2c0e2 | 90509d88839af3825ffcab440489922bdc9e5d18 | refs/heads/main | 2023-08-07T04:18:49.834712 | 2021-09-27T13:12:35 | 2021-09-27T13:12:35 | 410,886,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import schedule
import time
import os
import sys
os.system('node g.js http://www.dogcopc.com/LOGIN http.txt 600 GET PHPSESSID:gq15q5ho3eqq6gatdqm6nqdva5')
def job():
os.system('node g.js http://www.dogcopc.com/LOGIN http.txt 600 GET PHPSESSID:gq15q5ho3eqq6gatdqm6nqdva5')
schedule.every(1).seconds.d... | [
"noreply@github.com"
] | junelynpalma.noreply@github.com |
d9c0423c56eef2d1798fb3f943cef5063284917d | 2f308fdfd3e0b04a620db242694c27f9dcf80f68 | /src/projects/migrations/0070_auto_20161015_1458.py | feb4546da5cdc53d28c2214689d8f3eaa8df4ab8 | [] | no_license | ouhouhsami/ecoquartier | 53943b1f54f9e958f17424a7de37bf037c6899d1 | 1faf47a70e1f8821245588fca3d2b70c80129ae7 | refs/heads/master | 2020-06-30T00:58:10.013928 | 2016-12-13T16:58:57 | 2016-12-13T16:58:57 | 67,034,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-15 14:58
from __future__ import unicode_literals
from django.db import migrations
def forward(apps, schema_editor):
LabelEcoQuartier = apps.get_model("projects", "LabelEcoQuartier")
l, created = LabelEcoQuartier.objects.get_or_create(label="charte... | [
"samuel.goldszmidt@gmail.com"
] | samuel.goldszmidt@gmail.com |
fc889c6c341df9b46d24a318d471370fb6bb9497 | eba02c3c98f00288e81b5898a201cc29518364f7 | /chapter_007/pets.py | 83d401ba31dbbed09db27ad6c7c54fce7c610e20 | [] | no_license | kengru/pcrash-course | 29f3cf49acfd4a177387634410d28de71d279e06 | 5aa5b174e85a0964eaeee1874b2be1c144b7c192 | refs/heads/master | 2021-05-16T09:36:16.349626 | 2017-10-11T17:56:56 | 2017-10-11T17:56:56 | 104,481,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # Removing items from list with a while loop.
pets = ['dog', 'cat', 'dog', 'goldfish', 'cat', 'rabbit', 'cat']
print(pets)
while 'cat' in pets:
pets.remove('cat')
print(pets)
| [
"kengrullon@gmail.com"
] | kengrullon@gmail.com |
8de58e05650b8fbf1174f6077c873c40a7c31650 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02786/s372106911.py | 8a940c6ed8583cff7a6cd36516561dbf9608fecd | [] | 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 | 76 | py | h = int(input())
ans = 1
while h > 0:
h //= 2
ans *= 2
print(ans-1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b4c299a4065fcde746b3f7843fc31b19b6eca454 | 22bf086e3e7d43b72f0d05aaa3359b766a688a79 | /workflow_simons.py | afc8b316ce4f06f00e2bb432169a8b48819982e7 | [] | no_license | kaspermunch/humanXsweeps | aa7a4e6a175be276713f17f79d7179a5dd644ff5 | 3a2c4aa496aaffa837eb15dd3d382f7712266f38 | refs/heads/master | 2023-04-07T13:36:11.619973 | 2023-03-18T08:05:18 | 2023-03-18T08:05:18 | 161,376,285 | 1 | 0 | null | 2023-01-11T14:12:39 | 2018-12-11T18:25:53 | Jupyter Notebook | UTF-8 | Python | false | false | 91,935 | py |
from gwf import Workflow
import sys, os, glob, itertools, re
from collections import defaultdict
#from pathlib import Path
from random import seed
seed(42)
sys.path.append('./scripts')
sys.path.append('./notebooks')
import simons_meta_data
import hg19_chrom_sizes
import analysis_globals
from templates import *
g... | [
"kaspermunch@birc.au.dk"
] | kaspermunch@birc.au.dk |
aecd9b53dfc0f6dc6b969002346dc62541f907ee | c552cf5ed4714a3b5bdeab7af46092ff465b8c6a | /Python/SW Expert Academy/D4/6959. 이상한 나라의 덧셈게임.py | 480bd6b6edb1aadc98eabbbeeea28ef8a2dfe774 | [] | no_license | ksb8320/Algorithm | a786c5ab04e28ae9b3d180a77850899328075443 | 74b33f81eefa4cebf0dd8f1c3d65394d2aede372 | refs/heads/master | 2022-12-17T22:49:17.144572 | 2020-09-23T14:45:21 | 2020-09-23T14:45:21 | 253,751,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | import sys
sys.stdin=open("input.txt")
def plus():
global cnt
while len(lst)>1:
new=lst[0]+lst[1]
if new<10:
lst.pop(0)
lst.pop(0)
lst.insert(0,new)
cnt+=1
else:
lst[0]=1
lst[1]=new-10
cnt+=1
if cnt... | [
"ksb8320@gmail.com"
] | ksb8320@gmail.com |
6355476cfb93b8ed838af833f12252e27623f0f5 | 316b8375a7ef8095f09973d13f5a49bc7fbe7580 | /leetcode/332.py | 06d41eae074e21c5ecfafeb7129b8286192a3c5d | [] | no_license | zhaolijian/suanfa | 9a8d23fbca01d994f7eef24631783c4b7ed25683 | 4f3b25f360f30c0e604ba4dc4d5774ccb5f25b32 | refs/heads/master | 2023-06-08T17:12:41.522937 | 2021-06-27T08:13:16 | 2021-06-27T08:13:16 | 313,269,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # 给定一个机票的字符串二维数组 [from, to],子数组中的两个成员分别表示飞机出发和降落的机场地点,
# 对该行程进行重新规划排序。所有这些机票都属于一个从 JFK(肯尼迪国际机场)出发的先生,所以该行程必须从 JFK 开始。
# 如果存在多种有效的行程,你可以按字符自然排序返回最小的行程组合。
# 例如,行程 ["JFK", "LGA"] 与 ["JFK", "LGB"] 相比就更小,排序更靠前
# 所有的机场都用三个大写字母表示(机场代码)。
# 假定所有机票至少存在一种合理的行程。
# 方法:Hierholzer 算法
# Hierholzer 算法用于在连通图中寻找欧拉路径,其流程如下:
# 1.从起点出发,进行深... | [
"820913569@qq.com"
] | 820913569@qq.com |
b0dc8fb9f2c594475c812fd9caf3e45d2e9fd16f | ec84ccb07890d5f3cf7b80cd0725875f213ab460 | /attendance/views/master/overtime_master.py | fc706e86aa8d2c12aa3e2a3b99d05ab1e2310da2 | [] | no_license | Imam-Hossain-45/hrm_app | c7a87e0e0572093dca47227c399cd3366bdf5ee9 | cde39d6638b5c14555913d263f6b544522added1 | refs/heads/master | 2023-08-03T05:22:23.398967 | 2021-09-07T15:09:56 | 2021-09-07T15:09:56 | 404,022,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,446 | py | __all__ = [
'OvertimeMasterListView',
'OvertimeMasterCreateView',
'OvertimeMasterUpdateView',
'OvertimeMasterDeleteView',
]
from cimbolic.models import Variable, Formula
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.forms import inlineformset_... | [
"imamhossain1310@gmail.com"
] | imamhossain1310@gmail.com |
5095f0660d9382f5d1d97384535279c1d362de76 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/SHOffer/YCHF_KCBYCHF_SHBP_356.py | 5d466bcc423c69283f3b9c0e2fe9973b9b6699aa | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"418033945@qq.com"
] | 418033945@qq.com |
ebf10c635faeba2b5910b7e187fea1e9f26f56e4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/107/usersdata/195/52193/submittedfiles/questao3.py | 3ebb503b6b1fa43bc646831b23a3e4d72dde619d | [] | 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 | 320 | py | # -*- coding: utf-8 -*-
p=int(input('digite p:'))
q=int(input('digite q:'))
contador=0
i=2
while i<p:
if p%i==0:
contador=contador+1
i=i+1
while i<q:
if q%i==0:
contador=contador+1
i=i+1
if contador==0 and p%2!=0 and q%2!=0:
print('S')
else:
print('N')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0b88ec4badafd9b2ae3dca8979aed0160c9e81ee | f3f7fc5bf1d5657e7a67e46aee4b105198767889 | /manage.py | f0c87e8e4ef01a8361270108fde7443535393ad4 | [] | no_license | xjr7670/12306 | a2a16b73ce3cdb8ff1f8646429c2dc40716706fb | 32f065798732de744ef3a66739598af53a63bb32 | refs/heads/master | 2021-01-21T02:55:53.997748 | 2016-09-24T02:07:23 | 2016-09-24T02:07:23 | 68,806,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python3
#-*- coding:utf-8 -*-
from app import create_app
from flask_script import Manager, Shell
app = create_app('default')
manager = Manager(app)
manager.add_command("shell")
if __name__ == '__main__':
manager.run()
| [
"xjr30226@126.com"
] | xjr30226@126.com |
de183b0867da57105653f428107297793038dc43 | 63d6a6809773c49edee2894fbe45915763756f90 | /authlib/admin_oauth/views.py | 5faeec307539ae210eeb130ba46e959308b12173 | [
"MIT"
] | permissive | barseghyanartur/django-authlib | faaba71d80bec3331f9cd1dcd745dbff0ff96f6b | 4b4159eba619f6174d1f1e1cf33adf4893fa2315 | refs/heads/master | 2021-08-23T08:22:56.390862 | 2017-12-04T08:52:50 | 2017-12-04T08:54:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | import re
from django import VERSION
from django.conf import settings
from django.contrib import auth, messages
from django.shortcuts import redirect
from django.utils.http import is_safe_url
from django.utils.translation import ugettext as _
from django.views.decorators.cache import never_cache
from authlib.google i... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
690313cbf83db05c3a09cb68f375a86b770771d5 | d548f1bde0d20dab787b59695e5467a44db1cef3 | /CarParkArcGisApi/CarParkArcGisApi/GetCurrentLocationApi.py | 8c5e60465173ffcf519b00b199168438cd385aaa | [
"MIT"
] | permissive | moazzamwaheed2017/carparkapi | 2f53ab5b823d9afa11adc14073d7e147ca1d1de6 | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | refs/heads/master | 2023-01-12T03:51:42.497815 | 2020-02-25T14:00:37 | 2020-02-25T14:00:37 | 236,687,771 | 0 | 0 | MIT | 2023-01-07T14:21:30 | 2020-01-28T08:20:00 | TypeScript | UTF-8 | Python | false | false | 345 | py |
import requests
ip_request = requests.get('https://get.geojs.io/v1/ip.json')
my_ip = ip_request.json()['ip']
geo_request_url = 'https://get.geojs.io/v1/ip/geo/' + my_ip + '.json'
geo_request = requests.get(geo_request_url)
geo_data = geo_request.json()
print('Latitude: ' + geo_data['latitude'])
print('Longitude: '... | [
"moazzamwaheed@gmail.com"
] | moazzamwaheed@gmail.com |
a9221ed4b7a9c89294debbcd8f295e48195a8098 | 9a9cffc79943e1846cfb2b7463b889aac102fcfe | /quickunit/vcs/git.py | e2d0143ff6c0ef3f14ee2b3d8262511f10e9f17b | [
"Apache-2.0"
] | permissive | dcramer/quickunit | 5c7483f7b33758df3bc3181409ec95fb2c3f87e1 | f72b038aaead2c6f2c6013a94a1823724f59a205 | refs/heads/master | 2020-05-17T09:20:43.604622 | 2013-07-29T21:32:50 | 2013-07-29T21:32:50 | 3,350,340 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from subprocess import Popen, PIPE, STDOUT
from quickunit.diff import DiffParser
from quickunit.vcs.base import ChangedFile
def parse_commit(parent=None):
if parent is None:
parent = 'master'
proc = Popen(['git', 'merge-base', 'HEAD', parent], stdout=PIPE, stderr=STDOUT)
parent_revision = proc.... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
1ad56451c606e61c3c242b3bcee2e4d2658715e0 | 393988ecbc84cc99941aa7e8b77f9035a694c5e2 | /autotest/pymod/webserver.py | 2d699502c5a13f37cff19f0b41cf7e28cf967fd7 | [
"MIT"
] | permissive | rbuffat/gdal | 625f29339aa3401fc02500ccc16969459aad1f76 | 9a563c54787d72271140150880227918ed141d34 | refs/heads/master | 2021-07-10T07:13:35.754922 | 2018-04-13T17:09:02 | 2018-04-13T17:09:02 | 129,447,856 | 0 | 0 | null | 2018-04-13T20:01:27 | 2018-04-13T20:01:27 | null | UTF-8 | Python | false | false | 14,441 | py | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL/OGR Test Suite
# Purpose: Fake HTTP server
# Author: Even Rouault <even dot rouault at mines dash paris dot org>
#
##########################################################################... | [
"even.rouault@mines-paris.org"
] | even.rouault@mines-paris.org |
f86e2edac18dd5a144ac9e4e8e186ac315bc9758 | eb85b501de159dd2c549e4d2433a03592aae5e15 | /evernote_to_sqlite/cli.py | b2c550e3c6c38a26941cd9359960f032d9af4bb7 | [
"Apache-2.0"
] | permissive | ktaranov/evernote-to-sqlite | f6b3912da78ee74afcf9a43b4b2b2db05eba05c7 | 92254b71075c8806bca258c939e24af8397cdf98 | refs/heads/main | 2023-01-20T04:32:42.877585 | 2020-10-16T20:15:51 | 2020-10-16T20:15:51 | 319,658,620 | 1 | 0 | Apache-2.0 | 2020-12-08T14:11:02 | 2020-12-08T14:11:02 | null | UTF-8 | Python | false | false | 914 | py | import sqlite_utils
import click
import os
from .utils import find_all_tags, save_note, ensure_indexes
@click.group()
@click.version_option()
def cli():
"Tools for converting Evernote content to SQLite"
@cli.command()
@click.argument(
"db_path",
type=click.Path(file_okay=True, dir_okay=False, allow_dash... | [
"swillison@gmail.com"
] | swillison@gmail.com |
886d2201fefef83111d3a14b1220eff983280a4d | 3ab7e700203054e104e6c60295c0a8455bc388b1 | /i_entity_extractor/extractors/annual_reports/annual_reports_extractor.py | c56bf238b41ab2c3c03321e7f2272902cc3de882 | [] | no_license | youfeng243/crawler | e8114ab5ef68bb9fd7e4296452d63b53d3d4080a | 59eaabef94de67444f09cfe5b25d481034d10f29 | refs/heads/master | 2021-07-11T10:12:27.946819 | 2017-10-12T11:35:27 | 2017-10-12T11:35:27 | 106,583,181 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,085 | py | # coding=utf-8
# 企业年报实体解析
import copy
import json
import time
from i_entity_extractor.common_parser_lib import toolsutil
from i_entity_extractor.extractors.default.default_extractor import DefaultExtractor
class AnnualReportsExtractor(DefaultExtractor):
def __init__(self, topic_info, log):
DefaultExtract... | [
"you@163.com"
] | you@163.com |
1fb23b2832fa8ad3d8b5f3b2757274ad1463a27e | 02862f0b86638cd4e252bfd6bb92be931c10d569 | /algorithms/arrays/next_permutation/next_permutation.py | 1ad5e3cd64ea4b8252e014e068282398962daa08 | [] | no_license | Himstar8/Algorithm-Enthusiasts | ceb65df893d668a59018cbda278c3a03622a6311 | d3634daa7676e5a06646e0dbfc4ed30dac18ca9d | refs/heads/master | 2020-07-09T16:44:50.520423 | 2019-03-21T18:20:10 | 2019-03-21T18:20:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | def next_permutation(nums):
def find_min_larger_index(idx, n):
while idx < len(nums) and nums[idx] > n:
idx += 1
return idx - 1
i = len(nums) - 1
while i > 0 and nums[i] <= nums[i-1]:
i -= 1
if i == 0:
nums.reverse()
else:
idx = find_min_larger_in... | [
"zachliugis@gmail.com"
] | zachliugis@gmail.com |
d3d1c831f63c2c3134ede70ab7c0b02b62d99b41 | c863a1349cde0217459fde44d969df7f04c8e57d | /tb/test_axis_eth_fcs_check_64.py | f05d1d677984fed35bdf5b4532f0129b23460834 | [
"MIT"
] | permissive | hermixy/verilog-ethernet | 5c09e4cb94590bc858a716ef764fd3776aad693d | b3f50ac2c724763c1c30ed9c33a3489517b7d457 | refs/heads/master | 2020-04-04T20:01:52.758794 | 2018-11-02T07:40:15 | 2018-11-02T07:40:15 | 156,231,015 | 1 | 0 | null | 2018-11-05T14:29:18 | 2018-11-05T14:29:17 | null | UTF-8 | Python | false | false | 12,125 | py | #!/usr/bin/env python
"""
Copyright (c) 2015-2018 Alex Forencich
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,... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
27436bf65203665f1e775cd08464696bf984e191 | 67612c27c6d79ae180a5bc266833899abfefe9f5 | /面试题64. 求1+2+…+n LCOF.py | d42954a5bf567328df88e46091a401b867c5b820 | [] | no_license | Katherinaxxx/leetcode | 7e9d0bd7dc613a824116f1247f42bfc33e485ff3 | dcebf49d1e024b9e69c4d9606c8afb32b9d07029 | refs/heads/master | 2023-01-27T20:14:09.459296 | 2023-01-08T07:01:53 | 2023-01-08T07:01:53 | 215,688,672 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2020/6/2 上午11:20
@Author : Catherinexxx
@Site :
@File : 面试题64. 求1+2+…+n LCOF.py
@Software: PyCharm
"""
"""
求 1+2+...+n ,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。
"""
# math (1+n)n/2 O(1)time
class Solution:
def sumNums(self, n: int) -> int... | [
"359391236@qq.com"
] | 359391236@qq.com |
96940db9386ddb1089016400e3a545dda5a13801 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/Lbr/br-66_MD_NVT_rerun/set_1ns_equi_1.py | 4a79ed1108775404ea3880b83c80a1b28ee355a5 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/Lbr/MD_NVT_rerun/ti_one-step/br_66/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
fo... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
0c6b797449a22309a265e557ebd1dadf4115400b | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/BLOG/Data-Structures/1-Python/Python-master/linear_algebra/src/rayleigh_quotient.py | 69bbbac119e80d48a3cd1670171c31e6020d8d95 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,451 | py | """
https://en.wikipedia.org/wiki/Rayleigh_quotient
"""
import numpy as np
def is_hermitian(matrix: np.array) -> bool:
"""
Checks if a matrix is Hermitian.
>>> import numpy as np
>>> A = np.array([
... [2, 2+1j, 4],
... [2-1j, 3, 1j],
... [4, -1j, 1]])
>>> is_hermitian(A)
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
f66363574209a1b21f420d8afe431fd62465530f | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/CSS/juejin_1165.py | 2b72076f6d4f211f941f1ba475b380432f75338d | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,321 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6957521363326205982", "article_info": {"article_id": "6957521363326205982", "user_id": "616164205017336", "category_id": "6809637767543259144", "tag_ids": [6809640394175971342], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "CSS... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
dd9814f4339308678dd3b49ec818c02f22cb4071 | 32174f2b74b286a52a2f3b0bfd120a0711bfc6dc | /sample/web/app/blogs/views.py | 1eed5546a6795b31d89b50bb7d975bad02c62a42 | [
"MIT"
] | permissive | hdknr/django-mediafiles | d13172162506cba2abdab0d85bc2815e2e24b6e6 | 7526e35eb7f532e36c95e7aa76290bb95a9ac41a | refs/heads/master | 2020-06-04T03:16:28.824865 | 2014-10-30T04:10:40 | 2014-10-30T04:10:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | # -*- coding: utf-8 -*-
from django import template
from django.http import HttpResponse,HttpResponseRedirect,Http404
from django.shortcuts import render_to_response
#
import uuid
#
from models import Blog
from forms import BlogForm
from mediafiles.models import MediaFile
from mediafiles.forms import MediaFileForm,medi... | [
"gmail@hdknr.com"
] | gmail@hdknr.com |
85be01f3a0b032f92796e0019322f26133fe9c4c | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4456378.3.spec | ebf34658cbfb5bf804c2d9a8c460a0edce625a5e | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,303 | spec | {
"id": "mgm4456378.3",
"metadata": {
"mgm4456378.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
d8d457d18bf39b70f109b94084363f9d7ad6a62d | c7d124bbd7ab66ad7acd50765a0d5c11e7925d16 | /generate_test.py | 402d03607f30aeb012c03c5f3127892e4e05fff1 | [] | no_license | lambdaloop/scheduling | aa240c568eb974d57d7fc93af3cd866293c1f417 | fd111594d2c5a652b42796027195a352db3a9fce | refs/heads/master | 2021-06-03T19:26:16.300509 | 2019-04-14T21:26:28 | 2019-04-14T21:26:28 | 29,323,677 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python2
import csv
import random
f = open('test.csv', 'w')
fieldnames = ['name', 'preferences', 'num_slots']
writer = csv.DictWriter(f, fieldnames)
writer.writeheader()
n_people = 20
n_slots = 9
for i in range(n_people):
#name = chr(65 + i)
name = str(i)
slots = random.randint(1, 3)
... | [
"krchtchk@gmail.com"
] | krchtchk@gmail.com |
39de8218dbf4b99aaa6290c59d2f7556322db935 | 371fe9a1fdeb62ad1142b34d732bde06f3ce21a0 | /scripts/extract_loops_seq_approx.py | 36d5e97c42658a9a6bd31287b6fd2f7138e26ba2 | [] | no_license | maickrau/rdna_resolution | 971f3b7e803565c9432be69b8e2a2852f55b8b79 | aab42310c31e655cbbc318331082fa3436d69075 | refs/heads/master | 2023-03-03T05:14:33.966930 | 2021-02-17T20:45:20 | 2021-02-17T20:45:20 | 339,851,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,706 | py | #!/usr/bin/python
import sys
import re
loop_middle = sys.argv[1] # format ACGTAGA...
# loop ends from sys.argv[2]
# loop ends from sys.argv[3]
max_edits = int(sys.argv[4])
# fasta from stdin
# loops to stdout
def revcomp(s):
comp = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
return "".join(comp[c] for c in s[::-1])
... | [
"m_rautiainen@hotmail.com"
] | m_rautiainen@hotmail.com |
966016a6c669ca24a56fb831863b51dfbec863e3 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/434e9e1d8f62ba49daa2f720956e048e336b3c9c-<clone>-bug.py | 3c358f1301ecb059826eef335a56b1bc630c3ce2 | [] | 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 | 1,482 | py |
def clone(git_path, module, repo, dest, remote, depth, version, bare, reference, refspec, verify_commit):
' makes a new git repo if it does not already exist '
dest_dirname = os.path.dirname(dest)
try:
os.makedirs(dest_dirname)
except:
pass
cmd = [git_path, 'clone']
if bare:
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6f5371f76a88a1c3070db0af82abb2248dbd8564 | 456703d469684b99d849bb386707359729af4e1e | /data.py | 50649d1c690eab4c7947b38c8524416fbd32fd2e | [] | no_license | blacklemons/userlist_mongo | 9c05949f4d2a8c4232c1126020b66ad892857bc6 | b341628cc5da8248c39e46f5a0e974807d9986d1 | refs/heads/main | 2023-05-05T11:49:13.272471 | 2021-06-03T06:56:56 | 2021-06-03T06:56:56 | 372,990,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | def Articles(title,description,author,edit):
articles = {
'title' : title,
'description' : description,
'author' : author,
'edit' : edit,
}
return articles
def Users(name, email, username, password):
users = {
'name' : name,
'email' : email,
'username' : user... | [
"you@example.com"
] | you@example.com |
67d9459b98c02585b18afecaf8c3df0f88840736 | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /python/20190430/模块/demo09.py | b8805798af569441c98514893091d564e1240813 | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 369 | py | # pillow
from PIL import Image
# 打开一个jpg图像文件,注意是当前路径:
im = Image.open('1.png')
# 获得图像尺寸:
w, h = im.size
print('Original image size: %sx%s' % (w, h))
# 缩放到50%:
im.thumbnail((w // 2, h // 2))
print('Resize image to: %sx%s' % (w // 2, h // 2))
# 把缩放后的图像用jpeg格式保存:
im.save('thumbnail.png', 'png')
| [
"18537160262@qq.com"
] | 18537160262@qq.com |
a3cddb14f4568125e0ea0d932da937365312500e | ae7cb8543a98b7d65295a422c7971e7a37f921cd | /minerals/models.py | 02bcb451cf3a5a60d68581cbcd838dfa627fcbad | [] | no_license | frankRose1/mineral-catalog | a74386278073d1b9e92fe44e1cc348a1b498380e | 88f91a55105532fe197c84d050a5d5bd67167a9d | refs/heads/master | 2020-04-16T12:49:23.715372 | 2019-03-14T00:23:27 | 2019-03-14T00:23:27 | 165,597,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | from django.db import models
# Create your models here.
class Mineral(models.Model):
"""
Not all entries will have every field as shown in the json file in "mineral_data/mineral.json"
"""
name = models.CharField(max_length=255, blank=True, default='')
image_filename = models.CharField(max_len... | [
"frank.rosendorf1@gmail.com"
] | frank.rosendorf1@gmail.com |
94099f7539dd29af5d9baf1b7e65aae919dc5eb1 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py | 6c03a7fcfbbe3990bd37e435d7afe3c07aa49f1e | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 4,699 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools ... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
533a8674b5a0ea2d97c2032ad2269f7fe0835047 | 818173671edf15d7c6d775ed003bcd35608233f9 | /demos/go/wscript | 13ea4561dd2b6d1e18137a02eb74523dc6ffdb69 | [] | no_license | zsx/waf | a1e87e079e22443ae3ed98e08cefc705b5f73906 | 66d1c6ede4ceda66a98dbbf9dd473f1d5c5752ba | refs/heads/master | 2021-01-13T12:56:12.379186 | 2010-07-12T17:27:13 | 2010-07-12T17:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | #!/usr/bin/env python
# encoding: utf-8
# Tom Wambold tom5760 gmail
# Thomas Nagy, 2010 (ita)
"""
if libgmp is present, try building with 'waf --exe'
"""
top = '.'
out = 'build'
def options(opt):
opt.add_option('--exe', action='store_true', default=False, help='Execute the program after it is compiled')
def config... | [
"tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85"
] | tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85 | |
9700f7b32038e32409736e25ab200fda2427f5dd | 46dd1ad6fe93777a4dce84166b64cb9adb679e62 | /test/functional/interface_bitcoin_cli.py | be8c48fd1a8c0abb45f0f9939a095625cc50b098 | [
"MIT"
] | permissive | aleomartinez/EducaCoin | 14266500dc3c5aabfe8bebf17c8903aecea0af8c | 2282d6affdd2192a79efdce579ddd0d8576d950d | refs/heads/master | 2020-03-31T01:28:49.612215 | 2018-10-05T14:43:36 | 2018-10-05T14:43:36 | 151,783,304 | 0 | 0 | MIT | 2018-10-05T22:11:11 | 2018-10-05T22:11:11 | null | UTF-8 | Python | false | false | 3,669 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test educacoin-cli"""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.uti... | [
"you@example.com"
] | you@example.com |
14b4d0089b4e2b8e65d9e95bec9a45f3a2d224f8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/dabbler.py | 1ea1b9cd70fbca21dc35207bee1746ae0a696f43 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 62 | py | ii = [('CrokTPS.py', 1), ('ThomGLG.py', 1), ('BeckWRE.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
82cbf15cb149b4e72ab5811f65c9fee2d676ee8d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy959.py | a9b2211c27ba41c3a2a043b44c15010fd25e7f71 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=23
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
624f9ac70390eb2b0177c09ce025a3b00a2bd5ec | 87a66fbed380353955cc6160c8fffe56dee785be | /bert2bert.py | 3ff4c7f15e16f72c1b0e7a7ec1fec8f221d33179 | [
"Apache-2.0"
] | permissive | JngHyun/2021-BOAZ-bert2bert | ca84e8f4ad444f27a31ac8f74469826adefe3a19 | 63e95cc87b231ebf344950df80a43abc1139cb7d | refs/heads/main | 2023-03-27T01:13:35.747955 | 2021-03-25T07:17:39 | 2021-03-25T07:17:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | from typing import List
from transformers import (
EncoderDecoderModel,
BertConfig,
EncoderDecoderConfig,
BertModel, BertTokenizer,
)
from transformers.modeling_bart import shift_tokens_right
from kobert_transformers import get_tokenizer
from lightning_base import LightningBase
import torch
class Bert... | [
"pjh09890989@gmail.com"
] | pjh09890989@gmail.com |
0042ca91b39b2b86022ac9bc913b347ab174bb78 | 5966449d2e29c9b64351895db2932f94f9de42da | /catkin_ws/build/polly_speech/catkin_generated/generate_cached_setup.py | 5e0cad45e5c1737bb42a7d7059d9ff24b74321b6 | [] | no_license | godaeseong/GoHriProject | 8cbce6934485b8ba3253fc7b6c5b5b59397b4518 | 425e70b7c91b6215f5477fc2250d2b0ac96577be | refs/heads/master | 2021-05-11T22:11:56.099580 | 2018-01-15T02:20:43 | 2018-01-15T02:20:43 | 117,484,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"bigdream0129@naver.com"
] | bigdream0129@naver.com |
63bb8cfeb317f62af40c54d6d6ba604724dc264e | 691d3f3e04d354e11772335064f33245e1ed8c28 | /lib/galaxy/datatypes/indexers/coverage.py | 2bfec91c25fb05f513831206a3471b71db5749ea | [
"CC-BY-2.5",
"MIT"
] | permissive | dbcls/dbcls-galaxy | 934a27cc13663549d5208158fc0b2821609399a8 | 6142165ef27f6a02aee42f26e0b94fed67ecc896 | refs/heads/master | 2016-09-05T22:53:27.553419 | 2009-09-09T06:35:28 | 2009-09-09T06:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | #!/usr/bin/env python
"""
Read a chromosome of coverage data, and write it as a npy array, as
well as averages over regions of progessively larger size in powers of 10
"""
from __future__ import division
import sys
from galaxy import eggs
import pkg_resources; pkg_resources.require( "bx-python" )
import bx.wiggle
f... | [
"h-morita@esm.co.jp"
] | h-morita@esm.co.jp |
cad859d418ce2e7f4caf5b06ea68e3865b327913 | 199145122c35976fbfc22f2d709458bf67772f95 | /apps/hosts/urls.py | 8d52a9078d69ec7982ad7b9679e2e9841d265abf | [
"Apache-2.0"
] | permissive | yhgnice/toolsvb | 6109adbce89dd645da342d619acbcaca31b11efa | 35f9d27ee2439d134cab160a7cf930ea13a31d26 | refs/heads/master | 2020-05-24T05:15:40.112999 | 2017-03-14T06:32:23 | 2017-03-14T06:32:23 | 84,824,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Nice... on '2017/3/9 20:32'
from django.conf.urls import url
from .views import RebootServices
urlpatterns = [
# 主机工具
url(r'^tools/$', RebootServices.as_view(), name="tools"),
]
| [
"123"
] | 123 |
607c473b42712149c56ebae6342712cfda2c7ff2 | a289ad8df7840045a659db4f0f936b09494243b3 | /gruvi/error.py | d0483517992c9c2b8de1ea8e0e33f2443658ca33 | [
"MIT"
] | permissive | tijko/gruvi | a29414bc757f9b19cfc457df36e270c5fefef183 | 558faa181390dfac83cd42fdcafb1850008e4ac5 | refs/heads/master | 2020-12-11T05:34:23.897520 | 2014-01-04T06:59:29 | 2014-01-04T06:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # This file is part of Gruvi. Gruvi is free software available under the
# terms of the MIT license. See the file "LICENSE" that was provided
# together with this source file for the licensing terms.
#
# Copyright (c) 2012-2013 the Gruvi authors. See the file "AUTHORS" for a
# complete list.
from __future__ import abs... | [
"geertj@gmail.com"
] | geertj@gmail.com |
4f0ed701e5f9fc81b15e8550d01102e7412e4ae4 | 3665e5e6946fd825bb03b3bcb79be96262ab6d68 | /jc/parsers/df.py | 817f0a21bbaf233bfe3351eeefdabda7f96d9361 | [
"MIT",
"BSD-3-Clause"
] | permissive | philippeitis/jc | a28b84cff7fb2852a374a7f0f41151b103288f26 | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | refs/heads/master | 2021-02-16T05:03:03.022601 | 2020-03-04T16:30:52 | 2020-03-04T16:30:52 | 244,969,097 | 0 | 0 | MIT | 2020-03-08T21:10:36 | 2020-03-04T18:01:38 | null | UTF-8 | Python | false | false | 5,176 | py | """jc - JSON CLI output utility df Parser
Usage:
specify --df as the first argument if the piped input is coming from df
Compatibility:
'linux', 'darwin'
Examples:
$ df | jc --df -p
[
{
"filesystem": "devtmpfs",
"1k_blocks": 1918820,
"used": 0,
"available": 19... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
b4d795b37c2d38a9e60a530baac9859a0f9c353c | 032369c2fb0d441234955fa05ae578bf37d9cc2f | /Final_Exam/6.py | c471bd4299388112fa0e2250ecea9b174134e436 | [] | no_license | duochen/Python-Beginner | 87b68ca5cd4dde6299174e6702ac775e51adaa93 | 8585b8065841b1465b23e46b504da681ab136926 | refs/heads/master | 2023-04-29T16:38:03.047585 | 2022-08-22T12:45:04 | 2022-08-22T12:45:04 | 163,430,002 | 1 | 2 | null | 2023-04-21T20:36:09 | 2018-12-28T16:35:46 | HTML | UTF-8 | Python | false | false | 20 | py | print((1,2) + (3,4)) | [
"duochen@yahoo.com"
] | duochen@yahoo.com |
75b7d13d54b027208ae7bf83b28a23721fbfcc21 | d44c989d1082ec91ae420569f79e39105ec9adf0 | /Convert Binary Number in a Linked List to Integer.py | d8732b80748c73d1c4539378955d8afbfe29849a | [] | no_license | hsinhuibiga/Nov | c5a79e265a6afcfd03f04e23914d3924129c6389 | 15b2f37f96ded183ab3507a95985900a9d5d3ddc | refs/heads/main | 2023-01-14T13:11:02.568683 | 2020-11-22T13:40:36 | 2020-11-22T13:40:36 | 309,392,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #Convert Binary Number in a Linked List to Integer
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def getDecimalValue(self, head):
"""
:type head: ListNode
... | [
"noreply@github.com"
] | hsinhuibiga.noreply@github.com |
36c519d580be12825f3bf43d17406404d77ab275 | aba2dd3ed154e1307e3ffb360d22c400bc8e17ab | /bib2json.py | 2688d16b53929bd3986a2b8509fc9d5acfecb38d | [
"MIT"
] | permissive | SujiKim6/rebiber | 3938406df01e5aa61a9d9cf24bb74bd4fed82787 | 6617792dbfdb860d96f15027210381215c63685d | refs/heads/main | 2023-02-21T08:22:52.610870 | 2021-01-26T09:41:06 | 2021-01-26T09:57:02 | 332,980,291 | 0 | 0 | MIT | 2021-01-26T05:19:34 | 2021-01-26T05:19:33 | null | UTF-8 | Python | false | false | 1,802 | py | import json
import re
import sys
import bibtexparser
import argparse
from tqdm import tqdm
def normalize_title(title_str):
title_str = re.sub(r'[^a-zA-Z]',r'', title_str)
return title_str.lower().replace(" ", "").strip()
def load_bib_file(bibpath="acl.bib"):
all_bib_entries = []
with o... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
e0e468f23e653c4f37ed38f070b78741ba8bdf07 | 5ca4a0d91f5bd119e80478b5bd3d43ed30133a42 | /film20/config/urls/pl.py | 65a13447c224a832a15c19ca2748822deec504d0 | [] | no_license | thuvh/filmmaster | 1fc81377feef5a9e13f792b329ef90f840404ec5 | dd6a2ee5a4951b2397170d5086c000169bf91350 | refs/heads/master | 2021-01-17T16:10:54.682908 | 2012-04-29T18:19:52 | 2012-04-29T18:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | #-------------------------------------------------------------------------------
# Filmaster - a social web network and recommendation engine
# Copyright (c) 2009 Filmaster (Borys Musielak, Adam Zielinski).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero ... | [
"email@ibrahimcesar.com"
] | email@ibrahimcesar.com |
fc476732d5002a650fe826d5c6d7ec00bb625f4d | 76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a | /trunk/pyformex/examples/Isopar.py | 09660af39e5a8ca12a1bdf071f0b7b4a4e9a1b05 | [] | no_license | BackupTheBerlios/pyformex-svn | ec2361b1b9967918be65e892217a691a6f8b145d | f5404809095711334bbb938d9d119a69ad8fc260 | refs/heads/master | 2020-12-24T13:20:47.422165 | 2011-11-15T11:52:23 | 2011-11-15T11:52:23 | 40,749,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | #!/usr/bin/env pyformex --gui
# $Id$
##
## This file is part of pyFormex 0.8.5 Sun Nov 6 17:27:05 CET 2011
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: https://savannah.... | [
"bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35"
] | bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35 |
c67201d0dc8eebe1dd5677a52570999536586ff1 | 1a483740de2cb5a158d48eef4fa6be8e2e1cfb39 | /apps/projects/migrations/0001_initial.py | 2a417d2a9ba1638fe7bc788ef2a0512126033851 | [] | no_license | Navajyoth/proman | e8c5ab9a621af98f56ea3771695a23673cf67de6 | 23619138735c9a8317b50df97cdfe27a8180328f | refs/heads/master | 2021-01-10T15:52:01.763875 | 2016-01-19T11:01:39 | 2016-01-19T11:01:39 | 49,870,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(verb... | [
"navajyothms1989@gmail.com"
] | navajyothms1989@gmail.com |
5d7c6cb5d86f6dfeaaa32c199c33c6b3c2bb6f23 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_7/102.py | 998a2e0917fabf1d52113661b10a59105356d584 | [] | 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 | 862 | py | import sys
def calc_trees():
"""Read data from stdin and calculate all trees.
Returns a list of coordinates (tuples of ints).
"""
n,A,B,C,D,x,y,M = (int(e) for e in raw_input().split())
trees = [(x, y)]
for i in xrange(n - 1):
x = (A * x + B) % M
y = (C * y + D) % M
tr... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
099e1e04e14bdbed2f9c2d4cd79c06a2e5cd9ca8 | 33e2c0e11a6fbcc687750dbdcd2e063acf5b931b | /setup.py | 17a2541858522e1e1f5d88fa0f7dd8566e9ffe9f | [
"MIT"
] | permissive | uk-gov-mirror/nhsengland.ckanext-introjs | f1cb640819f09cdc6d4ecd82818a1e8b4b2653be | 052d20a4e93cf824a1b28e7ea2e04c385615b40d | refs/heads/master | 2021-05-28T17:21:31.739884 | 2015-02-24T14:44:56 | 2015-02-24T14:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(
name='ckanext-introjs',
version=version,
description="Adds intro.js to CKAN so users can follow a guided tour of the UI",
long_description='''
''',
classifiers=[], # Get strings from http://pypi.python.org/pypi?%... | [
"ntoll@ntoll.org"
] | ntoll@ntoll.org |
a0dfc36982f65573fcad2fea205e8bdce1e056c4 | 3ad8705bf9f1b5563b2a57f4ed2a1ea0f7cc2c2a | /langusta_client/exceptions.py | 4e41f2bb0164828cbe30c6364cd2a2f8dbd20820 | [
"ISC"
] | permissive | moneypark/langusta-client | 4f9f27d4db28149173d8c96841fc132f50a0a66b | af3ce6504c9f6cc8a0d28832a3218ed99ea2e1cc | refs/heads/master | 2023-03-17T06:15:14.448572 | 2023-03-09T14:10:59 | 2023-03-09T14:10:59 | 47,131,223 | 1 | 5 | ISC | 2023-03-09T14:11:01 | 2015-11-30T16:25:45 | Python | UTF-8 | Python | false | false | 97 | py | class LangustaException(Exception):
pass
class NoPoFilesFound(LangustaException):
pass
| [
"dijakroot@gmail.com"
] | dijakroot@gmail.com |
5a0ebc6d298b7b1320a813de51ed196528c6243f | 377420d718094a37da2e170718cecd80435d425a | /google/ads/googleads/v4/services/services/media_file_service/client.py | 0a1348ff6250fc9e53ec0771aa0691cae94c0f4f | [
"Apache-2.0"
] | permissive | sammillendo/google-ads-python | ed34e737748e91a0fc5716d21f8dec0a4ae088c1 | a39748521847e85138fca593f3be2681352ad024 | refs/heads/master | 2023-04-13T18:44:09.839378 | 2021-04-22T14:33:09 | 2021-04-22T14:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,377 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | sammillendo.noreply@github.com |
84f14ff4534964c26f65d38a7312090e521edd05 | 818fbf7e5ad465d81b5841c3b1f3222dec3877e3 | /spotify/urls.py | 73fff59963e36a7d29247497d51fb93a62580135 | [] | no_license | anonshubh/music-controller | 29d2c0be0265588e583ec7cde9578bc59e214d4a | c71329c691f43dff994ef3f69aa78dc438db047b | refs/heads/main | 2023-02-13T22:30:24.102833 | 2021-01-08T13:11:45 | 2021-01-08T13:11:45 | 320,020,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from django.urls import path
from . import views
urlpatterns=[
path('get-auth-url/',views.AuthURL.as_view()),
path('redirect/',views.spotify_callback),
path('is-authenticated/',views.IsAuthenticated.as_view()),
path('current-song/',views.CurrentSong.as_view()),
path('play-song/',views.PlaySong.as_... | [
"shubhpathak07@gmail.com"
] | shubhpathak07@gmail.com |
ec6f71dea44bb33840b8a9d2801b571e4dff1aa1 | d2332604fc80b6d622a263b2af644425a7e703de | /fast-track/strings/4_valid_anagram.py | 4b6cd138e04b2cd36803e6c0e4c3755c99e2ed8a | [] | no_license | abhijitdey/coding-practice | b3b83a237c1930266768ce38500d6812fc31c529 | 6ae2a565042bf1d6633cd98ed774e4a77f492cc8 | refs/heads/main | 2023-08-14T23:31:06.090613 | 2021-10-18T21:35:56 | 2021-10-18T21:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | """
Given two strings s and t, return true if t is an anagram of s, and false otherwise.
"""
def get_char_counts(string):
char_counts = dict()
for char in string:
if char in char_counts:
char_counts[char] += 1
else:
char_counts[char] = 1
return char_counts
def ch... | [
"ashiz2013@gmail.com"
] | ashiz2013@gmail.com |
892237619b675d7d223b9efee8985aa62256e138 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/identity_constraint/id_l086_xsd/__init__.py | 1aefc80d5eb9fa2d66622427e4aa78c72449dfad | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 155 | py | from output.models.ms_data.identity_constraint.id_l086_xsd.id_l086 import (
Root,
T,
Ttype,
)
__all__ = [
"Root",
"T",
"Ttype",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
0b70531014e35ca99bb424d18b4ea7de3b40d224 | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/examples/how_tos/reading_data/convert_to_records.py | 7794c3f6ea3625880921d442f02c5e4c2c00e81e | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"helder_m_p_novais@hotmail.com"
] | helder_m_p_novais@hotmail.com |
867d461fb328950aa3f4006290a8ecddd6bf3993 | 0a43afbcba776ed8ada0fef5425b1507aa4d51c1 | /smartbook/smartbook/sales/views.py | e49dfbf1221388510021574678f4a94867d10fe4 | [] | no_license | geethusuresh/inventory-systems | c76d6d10429f483499594df8c8f34d780531f18c | fd4211d29042776fa47da92162cbbbe8220090cd | refs/heads/master | 2021-01-02T08:51:31.278578 | 2014-09-28T07:35:54 | 2014-09-28T07:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,507 | py | # Create your views here.
import sys
import ast
import simplejson
import datetime as dt
from datetime import datetime
from decimal import *
from num2words import num2words
from django.db import IntegrityError
from django.db.models import Max
from django.contrib.auth.views import password_reset
from django.shortcuts im... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
6a09bc215bc33dd4733f9d3f862ee3a2bebc8541 | 412e327f41ec7c7a8e9389740bc849ebe173059e | /python/finite_element_model/add_node_set.py | e1101e9c279d72fe8f02ff56b4929729b7e1237c | [] | no_license | erolsson/railway_ballast | 2b617b91ae720ef86cd1e5c89b08a34b92996fd5 | cfc86c22cc5e2f857c24ba1a01c2541edf839e3b | refs/heads/master | 2023-07-25T16:54:10.529328 | 2023-07-23T12:49:32 | 2023-07-23T12:49:32 | 186,101,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | import os
import odbAccess
def add_node_set_to_odb(odb_file_name, node_set_name, x_min=-1e99, x_max=1e99, y_min=-1e99, y_max=1e99,
z_min=-1e99, z_max=1e99, instance_name=None):
odb = odbAccess.openOdb(odb_file_name, readOnly=False)
if instance_name is None:
instance_name = odb... | [
"erolsson@kth.se"
] | erolsson@kth.se |
dc249fd778ca98ecbc6b3b862b7660fbb8310715 | a4ebfeefa95e97d60f9ad2fe36e75e59e3b50769 | /Trial_Aligned_Analysis/Trial_Aligned_Utils.py | 7aa0ed89d59bb10ef4bd5bd2df5ea1bdb13b351b | [] | no_license | matt-j-harvey/Widefield_Analysis | 9f1566ac26d4164d988ab9a43d953f228b15746d | e03037e909ce986d8221113e1bbf5d46ddd7ad70 | refs/heads/master | 2023-05-01T12:30:27.064246 | 2023-04-24T11:23:37 | 2023-04-24T11:23:37 | 252,776,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | import os
import h5py
from tqdm import tqdm
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
import pandas as pd
import tables
from datetime import datetime
from Widefield_Utils import widefield_utils
def get_session_averages(activity_dataset, metadata_dataset):
# Load Session L... | [
"matthew.jc.harvey@gmail.com"
] | matthew.jc.harvey@gmail.com |
4681259f82617ba5a09860ebcd688d94a01d71ed | 9d6218ca6c75a0e1ec1674fe410100d93d6852cb | /app/supervisor/venvs/supervisor/bin/echo_supervisord_conf | 6de0696c980aed451f221b8ebe2d45ed7f743467 | [] | no_license | bopopescu/uceo-2015 | 164694268969dd884904f51b00bd3dc034695be8 | 5abcbfc4ff32bca6ca237d71cbb68fab4b9f9f91 | refs/heads/master | 2021-05-28T21:12:05.120484 | 2015-08-05T06:46:36 | 2015-08-05T06:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | #!/edx/app/supervisor/venvs/supervisor/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'supervisor==3.1.3','console_scripts','echo_supervisord_conf'
__requires__ = 'supervisor==3.1.3'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('supervisor==3.1.3', 'c... | [
"root@uceociputra.com"
] | root@uceociputra.com | |
edd05aa7a6d0b2519f15498c48e760666baaf731 | e9c7f991c319efe0b1831e8e8360e13c3e177555 | /Python_do_zero_Guanabara/06_Metodos/desafio/100_desafio.py | ed4107d33cd4045e831afb18d8b04a91da717e45 | [
"MIT"
] | permissive | HenriqueSOliver/Projetos_Python | a3c4cabc61442221da968df55a463d9ad5865fcc | f18c5a343ad1b746a12bd372298b2debe9bc65ec | refs/heads/main | 2023-06-05T03:11:42.879988 | 2021-06-17T22:26:03 | 2021-06-17T22:26:03 | 327,629,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from random import randint
from time import sleep
def sortLista(lista):
print('Sorteando 5 valores da lista: ', end='')
for c in range (0, 5):
n = randint(1,100)
lista.append(n)
print(f' {n}', end=' - ', flush=True)
sleep(0.5)
print('PRONTO')
def somaP(lista):
s... | [
"HenriqueSOliver85@gmail.com"
] | HenriqueSOliver85@gmail.com |
7427a528878b92af0bd4d6d3b7833e536c9f3af1 | 8b0609185265189fbec81023975221bb26cc6592 | /lib/core/function.py | 2d13c102f4d81ef56e705126541d2ecc27a6f776 | [] | no_license | witzou/HRNet-Facial-Landmark-Detection | 24afb5064444869c142cb4f7fcfd0bd0af880bb7 | 3c9f92a1887e259fede461ce40f303e23f2d0c00 | refs/heads/master | 2020-05-20T21:02:16.212344 | 2019-05-05T01:45:26 | 2019-05-05T01:45:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,444 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Created by Tianheng Cheng(tianhengcheng@gmail.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from ... | [
"victorchanchina@gmail.com"
] | victorchanchina@gmail.com |
2e1c49c9ad0740b75147789a0c0d4b5d54c026b1 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D00A/JAPRESD00AUN.py | 4fb33d38de066ce2be86ab6db137a31ba760f7d6 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,391 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD00AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 2},
{ID: 'PNA', MIN: 1, MAX: 99, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.