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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc5aff48d559df398e4a2f66aaeeb0e17884dd6b | a1bccead14fe67f560ca54aad98dbb2367c7568b | /tensorpack/tfutils/common.py | 42588423b3fea4d2fd9c3f858dff7f6cb15af704 | [
"Apache-2.0"
] | permissive | Peratham/tensorpack | 9ea7e714b41de1aa4393454d2fa0a88d3b7568b9 | e21fc267c0ada1377bffcc008dad31c28326690d | refs/heads/master | 2021-01-11T17:46:10.488888 | 2017-01-23T17:13:43 | 2017-01-23T17:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,547 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: common.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
from ..utils.naming import GLOBAL_STEP_VAR_NAME, GLOBAL_STEP_OP_NAME
import tensorflow as tf
from copy import copy
import six
from contextlib import contextmanager
__all__ = ['get_default_sess_config',
'... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
df8311f1d2805816a6fc20a00ec8a0abcbe78a62 | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/Products.CMFPlone-4.1-py2.7.egg/Products/CMFPlone/tests/testCheckId.py | dcf03d009fb74b10bfa220665076ec808f2f2c61 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,862 | py | #
# Test id autogeneration related scripts
#
from Products.CMFPlone.tests import PloneTestCase
from Products.CMFPlone.tests import dummy
from AccessControl import Unauthorized
from Products.CMFCore.utils import getToolByName
from ZODB.POSException import ConflictError
class TestIsIDAutoGenerated(PloneTestCase.Plone... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
4ea7324dc735700864355bf887688d287410ce00 | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/681.next-closest-time/681.next-closest-time_120259498.py | e5e0ccb34cb9903d4bb82ad4979a9600dfb35202 | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from datetime import datetime, timedelta
def check(dt, time_str):
dt_str = datetime.strftime(dt, "%H%M")
_time_str = set(list(dt_str))
if _time_str & time_str == _time_str:
return True
return False
class Solution(object):
def nextClosestTime(self, time):
"""
:type time:... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
12dc6835334446f6a874d6a58eaed4579d21533c | 489a45659476fafb66934427e42bfce3d60a0116 | /Assets/Python/BUG/CityUtil.py | f796f4f687860987bd082b19c841cbcfb1108044 | [] | no_license | billw2012/Caveman2Cosmos | 3a8c6ea347e75dbe2de9519fe70e6b38e0cf6dbe | 2382877536e1669972dd024ce2d0f3d0d5ffd988 | refs/heads/master | 2020-07-19T00:14:48.856106 | 2019-09-03T23:20:42 | 2019-09-03T23:21:02 | 197,989,388 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | ## CityUtil
##
## Collection of utility functions for dealing with cities.
##
## Copyright (c) 2009 The BUG Mod.
##
## Author: EmperorFool
from CvPythonExtensions import *
## Globals
gc = CyGlobalContext()
## Growth and Starvation
def willGrowThisTurn(city):
"""
Returns True if <city> will increase its populat... | [
"alberts2@live.de"
] | alberts2@live.de |
3a0de6c4abfd97a3c5efda00e2039e3beaa66d28 | 1587d5444e18bea9b1c9cbe1a01c2f2aa03892d8 | /root/db.py | 075284412ac455bf9d4b2cf442784a5db6f7cda2 | [] | no_license | SofiiaShumel/new_flask | c5593e1df21023695ed287a879e4e77da6321bbc | 62692a7de5eb328b2ba2fec9e1a5ff7f98ccefb2 | refs/heads/master | 2020-09-28T08:56:48.348025 | 2019-12-07T22:31:27 | 2019-12-07T22:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | import sqlalchemy as db
from sqlalchemy import MetaData, Table, Column
from sqlalchemy import create_engine, Column, String, Integer, ForeignKey, Float, Boolean
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session
import root.credentials
from root.entities import Player, Bet, Bank... | [
"vovapasko1699@gmail.com"
] | vovapasko1699@gmail.com |
c13f8b8ffe13989527d72161e64b98b02f165823 | 8038c72e9c05b9a962a78002e1ac32ac5797d33f | /qfcommon/thriftclient/data_engine/__init__.py | 8e71657b2d2d71512424008318d0c83ead7fad72 | [] | no_license | liusiquan/open_test | faaf419dcd5877558e25847edf5e128c5e9e64b2 | 0cb0aaf401234ac3274d34dcf08ff633917db048 | refs/heads/master | 2021-01-11T20:44:25.567470 | 2017-01-18T10:13:54 | 2017-01-18T10:13:54 | 79,174,997 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | __all__ = ['ttypes', 'constants', 'DataEngine']
| [
"qfpay@TEST107.(none)"
] | qfpay@TEST107.(none) |
fe6a27b00a35cf7a6c20a465f2d80f20bdeba796 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03456/s642363983.py | af102a3e07e6002a5cb1a2702d7ff5d68895690d | [] | 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 | 150 | py | import math
a, b = map(int, input().split())
x = int(str(a) + str(b))
if math.sqrt(x) == math.ceil(math.sqrt(x)):
print("Yes")
else :
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
118469b2bda66288057c7bdac81c6069f2397253 | 9f6ea967d84c37d04543d72edabce4dea0517a4f | /all_scraper/Service/JingDongScraper/get_keywords_url_id/get_review_productId.py | 91b08b7ba891c843eec95dc408c44859aef45938 | [] | no_license | GongSong/All_Scraper | 8fae34851b8c4b31ab1ae47f39d511a0869c59ef | f2bacc8416ed2e611e5e8515d34ec12fd5f10018 | refs/heads/master | 2020-07-22T08:46:32.347936 | 2017-08-03T02:17:01 | 2017-08-03T02:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #-*-coding:utf-8*-
from Service.JingDongScraper.db_operation.db_connection import DB_connection
from Service.JingDongScraper.db_operation.db_operation import DB_operation
class get_review_productId():
# 这里获取的是productId
# 评论(json)页的url拼接为https://sclub.jd.com/comment/productPageComments.action?productId=4265472... | [
"javen.xi@atommatrix.com"
] | javen.xi@atommatrix.com |
bd2e73826e49ec47995d39f344229610c89341f1 | af7e20b979c198f235ba51a160c81e0856af0cc7 | /tests/test_karma_parser.py | 32af2ec042e41d2bced6250b7acdaeb7d9c40210 | [
"MIT"
] | permissive | the-Bruce/apollo | 1ce3b8abd184b180c24acbe966571c8b294cc04c | 7458785f94cde1dfe3e21451504916d8e5d50ae8 | refs/heads/master | 2020-05-15T14:21:01.324314 | 2019-02-11T13:32:40 | 2019-02-11T13:32:40 | 182,333,921 | 1 | 0 | null | 2019-04-19T22:44:17 | 2019-04-19T22:44:17 | null | UTF-8 | Python | false | false | 5,868 | py | import os
import pytest
from alembic import command
from alembic.config import Config
from sqlalchemy import create_engine
from sqlalchemy.orm import Session
from karma.parser import parse_message, RawKarma
from models import Base
@pytest.fixture(scope='module')
def database():
# Locate the testing config for A... | [
"david@tankski.co.uk"
] | david@tankski.co.uk |
8909cbc55ed2f07c029ca60c0a49f99e63764afb | 61b0a6041d96c1b977f07aed9e4f6ee3229f85e6 | /fetch_wikipedia.py | d1de9c92094b4f0d3da64d08c1770d7aa6228e38 | [] | no_license | Hadryan/choir_music_data | e1d163cd8fe7e5f286b46b0bd51d5c66dc73d3e6 | 2d72a8f76c40915ffff3fc0929ad498b8b232136 | refs/heads/master | 2023-01-01T01:06:48.196179 | 2020-10-20T17:47:11 | 2020-10-20T17:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | import logging
import pandas as pd
import regex
import yaml
logging.basicConfig(level=logging.INFO, format='{asctime} {message}', style='{')
BASE_URL = "https://en.wikipedia.org/wiki"
lists = [
"List of Medieval composers",
"List of Renaissance composers",
"List of Baroque composers",
"List of Classic... | [
"horvath.arpad.szfvar@gmail.com"
] | horvath.arpad.szfvar@gmail.com |
25f490d9ba2c1722d96adef48bebc6b2f19eb091 | 6d85d154048d526c9b073b7a75c0ca6298111ded | /nadine/tests/test_profile.py | 4b9a194392684dfbb58b9838c26e7bc2377e3350 | [
"Apache-2.0"
] | permissive | switchdin/nadine | 02595a0a749e97840c756e23827793a5d732de0f | 42b4377d7a5f64320d83c4d5f27981428a111e1f | refs/heads/master | 2021-05-06T17:56:31.441213 | 2017-11-24T00:47:51 | 2017-11-24T00:47:51 | 111,856,045 | 0 | 0 | null | 2017-11-24T00:28:34 | 2017-11-23T22:54:23 | JavaScript | UTF-8 | Python | false | false | 10,085 | py | import traceback
from datetime import datetime, timedelta, date
from django.test import TestCase, override_settings
from django.core import management
from django.contrib.auth.models import User
from django.conf import settings
from django.utils import timezone
from nadine.models import *
@override_settings(SUSPEND_... | [
"jsayles@gmail.com"
] | jsayles@gmail.com |
fe81ad7960d5b1d25e0585a0663772e6856dbfc5 | 9eb08685de453d8c099015adcc3a2ff29041fdf3 | /examples/app/dijkstra/cthread_write_node_visited.py | fe4c54310af1366a2bdd6f5e3fcd00737a2d566d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Python3pkg/PyCoRAM | 938b6b4308e7ef04ec01f6c2e08c7eae7d0f5d3f | cd546ffe6cc6fbdabd49ba204a098b8feb6e7e97 | refs/heads/master | 2021-01-21T17:46:35.469599 | 2017-05-21T20:40:41 | 2017-05-21T20:40:41 | 91,986,108 | 0 | 0 | null | 2017-05-21T20:40:28 | 2017-05-21T20:40:28 | null | UTF-8 | Python | false | false | 339 | py | COMM_SIZE = 2 ** 4
STREAM_SIZE= 2 ** 10
DATA_BITWIDTH = 32
outstream = CoramOutStream(idx=0, datawidth=DATA_BITWIDTH, size=STREAM_SIZE)
channel = CoramChannel(idx=0, datawidth=DATA_BITWIDTH, size=COMM_SIZE)
def write_node_visited():
addr = channel.read()
outstream.read_nonblocking(addr, 1)
while True:
wr... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
43246448601d4be7c5377c2e63e5de5eb06bdf8a | e296f0f3d7db598aba5658de3ff8c767634e533e | /zoo/migrations/092_zoo_animals_models.py | ef6a523b495b98b75535c3c8c4944d6553ec77e5 | [] | no_license | devfort/wildlifenearyou | b2ac05070aa6face60156d6e7c85f98f00013c25 | 8e618aea90bbcedc45a4e30199e31880ea9e6dca | refs/heads/master | 2021-01-13T01:25:29.467549 | 2010-06-10T06:37:43 | 2010-06-10T06:37:43 | 7,874,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | from django.conf import settings
if settings.DATABASE_ENGINE == 'mysql':
from dmigrations.mysql import migrations as m
elif settings.DATABASE_ENGINE == 'sqlite3':
from dmigrations.sqlite3 import migrations as m
import datetime
migration = m.Migration(sql_up=["""
DROP TABLE `animals_superspecies`;
""", """
... | [
"simon@simonwillison.net"
] | simon@simonwillison.net |
3e47ecd125a7c7fc3a15c5fe0529ae8fdf94115c | de08fd5306c61a797c24bda927bd809acd7a22e7 | /socket_message.py | 5ebd79abf7863b7eb311d5e9bc187ba709ce01df | [] | no_license | benjsonzhang/shield | 847175c4cb0746d6c047e08e529973b6748eefd1 | c737d8cdd231139fdda94675a4f68dfc671fdf4e | refs/heads/master | 2023-06-06T23:52:08.696106 | 2021-07-02T08:24:56 | 2021-07-02T08:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | # coding=utf-8
import requests
import json
import time
import socket
import base64
import socks
base_url = "http://127.0.0.1:18080"
# proxies = {"http": "127.0.0.1:8888", "https": "127.0.0.1:8888"}
proxies = None
class XhsSocketClient:
def __init__(self):
self.client = None
def connect(self):
... | [
"you@example.com"
] | you@example.com |
615841aab6c9a74f46e393e9f7ee1893d81e286d | f7b6d64aafdd3d711c0c5d4f9d6a2565944e7dc6 | /magnifico_ranks/forms.py | 59884f13011b7713376529093499824de736913c | [] | no_license | Robert-Moringa/magnifico_ranks | 488d94c8c20f6f333b0e7e831f1f0feca508f331 | 06ae6dfc2b7c5ed4068c04010223d09a8ebd43a5 | refs/heads/master | 2023-08-04T18:31:04.134837 | 2021-09-23T12:03:29 | 2021-09-23T12:03:29 | 407,243,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django import forms
from .models import Profile,Project, Review
class EditProfileForm(forms.ModelForm):
class Meta:
model = Profile
exclude = ['user','project']
class AddProjectForm(forms.ModelForm):
class Meta:
model=Project
exclude=['user']
class AddReviewForm(forms.Mod... | [
"robert.maina@student.moringaschool.com"
] | robert.maina@student.moringaschool.com |
3c61ed8f1fb9adeb440a74e760b56771db2fe28a | 71e43068e82c91acbb3849169d1723f1375ac27f | /talon_one/models/campaign_entity.py | d18644a5c7e9f97ee933c25ece57b7a788d886dd | [
"MIT"
] | permissive | talon-one/talon_one.py | aa08a1dbddd8ea324846ae022e43d441c57028f6 | 917dffb010e3d3e2f841be9cccba5bba1ea6c5c3 | refs/heads/master | 2023-05-11T18:50:00.041890 | 2023-05-03T20:17:39 | 2023-05-03T20:17:39 | 79,575,913 | 1 | 7 | MIT | 2023-05-03T15:10:14 | 2017-01-20T16:29:46 | Python | UTF-8 | Python | false | false | 4,313 | py | # coding: utf-8
"""
Talon.One API
Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-... | [
"noreply@github.com"
] | talon-one.noreply@github.com |
96e61e2cdbe7a1d8025135c55c7b6a562a6712ce | be39b38dddcdc98cab0c29189f5fb74f8c709f16 | /fast-news/tinyimg.py | 0518aa353865dd9b19099ab125ddf986c49e3998 | [] | no_license | nate-parrott/fast-news | 80bd371a56188475a0bb647fc630ee54f388bf96 | 45ed735744bd138e65e643fd1713fd8e2d107b1e | refs/heads/master | 2020-04-06T05:53:44.724331 | 2017-01-02T09:05:44 | 2017-01-02T09:05:44 | 50,979,865 | 0 | 1 | null | 2016-09-19T05:03:22 | 2016-02-03T06:41:10 | Python | UTF-8 | Python | false | false | 223 | py | from PIL import Image
def tinyimg(img):
size = list(img.size)
img = img.convert('RGB')
img = img.resize((2,2), Image.ANTIALIAS)
return {"size": [2,2], "pixels": map(list, img.getdata()), "real_size": size}
| [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
ac19473c96d750e019a99cc9116eeac478f5a6f6 | c2c8915d745411a0268ee5ce18d8bf7532a09e1a | /stix-1.1.1.0/stix/common/identity.py | fb2cab262ee10fd12f1a630979928c1e562cc9e3 | [
"BSD-3-Clause"
] | permissive | asealey/crits_dependencies | 581d44e77f297af7edb78d08f0bf11ad6712b3ab | a8049c214c4570188f6101cedbacf669168f5e52 | refs/heads/master | 2021-01-17T11:50:10.020346 | 2014-12-28T06:53:01 | 2014-12-28T06:53:01 | 28,555,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,659 | py | # Copyright (c) 2014, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from __future__ import absolute_import
import stix
import stix.bindings.stix_common as common_binding
import stix.bindings.extensions.identity.ciq_identity_3_0 as ciq_identity_binding
import stix.utils
#... | [
"ssnow@mitre.org"
] | ssnow@mitre.org |
ac6f4dc12017e63d1d823e917c619ad903fa43c1 | 6406c60d42a243e3566cb0864c14453b686809a6 | /plugins/geoip/geoip.py | bddb6c1cf3d51e178318ee5515199df9d8c90934 | [
"Apache-2.0"
] | permissive | Srungaram/alerta-contrib | 79d29d6aa7f6b2bc0e102ef3a4b52a93b9029317 | 3a507dee5cd20fac22676c70da0b8c7364562b3d | refs/heads/master | 2021-01-18T13:53:12.550536 | 2016-01-12T01:17:54 | 2016-01-12T01:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py |
import os
import requests
from alerta.app import app
from alerta.plugins import PluginBase
LOG = app.logger
GEOIP_URL = os.environ.get('GEOIP_URL') or app.config.get('GEOIP_URL', 'http://freegeoip.net/json')
class GeoLocation(PluginBase):
def pre_receive(self, alert):
if 'ip' in alert.attributes:
... | [
"nick.satterly@guardian.co.uk"
] | nick.satterly@guardian.co.uk |
b6b46f3b5c490d5ed428d489edc8cf451ffe1eaf | 10c26e25f7da2289d50b1138b7da48bf9a02d42f | /Oj/problemset/migrations/0007_problem_constraints.py | 900aa1cc6aea2d37b2658f990e3bb3290cf41cb8 | [] | no_license | ParitoshAggarwal/OJ | e1392a02dd95d42b4d72ba69b891db9df5e406ad | 1a4acb5e620b0575d744fd8e4c13148062d1670c | refs/heads/master | 2022-10-19T21:18:02.512008 | 2017-12-27T06:53:46 | 2017-12-27T06:53:46 | 97,516,099 | 0 | 1 | null | 2022-10-13T00:05:44 | 2017-07-17T19:50:06 | JavaScript | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-06 07:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('problemset', '0006_problem_created_at'),
]
operations = [
migrations.AddFie... | [
"paritoshmait@gmail.com"
] | paritoshmait@gmail.com |
daf4d91f0be35c88b68c33c6b8c3a99f1f647dcb | 327ec5f11dff7a034e32735fb9bfb3ca4d82569d | /examples_keras/attention_lstm.py | 9752b36a591f1558a41b997f0592958716504f2b | [] | no_license | liyi19950329/attention-mechanism | 2a75894b9221bf6a887a81f3a507df5210bedf53 | 551aa72ac503a56354cd47a795874f49ffb6d097 | refs/heads/master | 2020-03-26T07:24:55.648061 | 2018-05-30T13:35:11 | 2018-05-30T13:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | """"""
import numpy as np
from data_helper import gen_time_data
from config import config_lstm as config
from keras.models import Model
from keras.layers import Input, Dense, LSTM
from keras.layers import Flatten
from attention.attention_keras import attention2d
np.random.seed(config.seed)
def build_model():
... | [
"imhuay@163.com"
] | imhuay@163.com |
a8403682560101da15183e35985b03afdaf00907 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_quantizer/xnnc4xir/xnnc/utils/pytorch_graph.py | a552cfad8c1e16d3e32d3d50290b24a965903be9 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 18,017 | py | """
Copyright 2019 Xilinx 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 agreed to in writing, softw... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
d6da81bb8230bb0d23e43c83f2b8f0d1d236fb6e | 1511782b2cc3dcf1f7e058e5046ec67a5561ba51 | /2020/0820/abc048_b.py | 9ff929bc2dfcc189523e62da80581147dc6590ec | [] | no_license | keiouok/atcoder | 7d8a053b0cf5b42e71e265450121d1ad686fee6d | 9af301c6d63b0c2db60ac8af5bbe1431e14bb289 | refs/heads/master | 2021-09-07T11:48:55.953252 | 2021-07-31T15:29:50 | 2021-07-31T15:29:50 | 186,214,079 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii... | [
"ko.yuka.kp2@is.naist.jp"
] | ko.yuka.kp2@is.naist.jp |
34e2f783a8d885369f4c0a834d7a310488fc97eb | 7a1243f229dd1ff671b26d5035c39219c9fa9586 | /785A - Anton and Polyhedrons.py | e357a1510c8468cfdbb6915ef3df63565885f072 | [] | no_license | henseljahja/code-forces | ce4063f30754bdee0e4d6ebc58b55f0874bf2cf9 | 1ca196636073331507b9bf48cb78cff625f44def | refs/heads/main | 2023-03-21T10:00:39.986314 | 2021-03-08T15:45:22 | 2021-03-08T15:45:22 | 339,361,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | n = int(input())
count = 0
for i in range(n):
s = input()
if s == "Tetrahedron":
count+=4
elif s == "Cube":
count+=6
elif s == "Octahedron":
count+=8
elif s == "Dodecahedron":
count+=12
elif s == "Icosahedron":
count+=20
print(count) | [
"henseljahja@gmail.com"
] | henseljahja@gmail.com |
431ae555a024847331eb19fa7fc1d105bbf339cf | 046df94b4f437b2e30b80d24193fcd5380ee7b54 | /finger_exercise/3some_simple_numerical_programs/root_and_pwr(chapter3.1).py | c6a14b81e9766eaa106309a2f2f514a88f048ee1 | [] | no_license | LordBao666/MITLecture6.0001_Introduction_To_CS_Programing_In_Python | 570565a3a931269f47fe15fd83527567a24fc134 | e9fca10ad0226c8620ae36d063c2bc49da114ca4 | refs/heads/master | 2023-04-02T10:40:48.564479 | 2021-04-06T15:19:47 | 2021-04-06T15:19:47 | 344,118,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | """
@Author : Lord_Bao
@Date : 2021/3/4
"""
"""
Finger exercise: Write a program that asks the user to enter an integer and prints
two integers, root and pwr, such that 0 < pwr < 6 and root**pwr is equal to the integer
entered by the user. If no such pair of integers exists, it should print a mes-
sage to that ef... | [
"916900021@qq.com"
] | 916900021@qq.com |
e76b055b43caaad4b0d6d1a83662bdceba8a7781 | e875742da7480b3277d0f34606e55a95c009c966 | /sage/database/db_iterator.py | cb16aeb1e09745f2f73021d68945688529ee70f5 | [
"MIT"
] | permissive | sage-org/sage-engine | b10a621c25b938b21a33e8f6273299ab8798118a | 33b3c775f6932d0e61bcce2c763f2d63846dba40 | refs/heads/master | 2022-09-03T10:25:42.121293 | 2021-05-05T16:15:37 | 2021-05-05T16:15:37 | 128,745,071 | 34 | 16 | MIT | 2021-04-19T18:26:51 | 2018-04-09T09:11:10 | Python | UTF-8 | Python | false | false | 1,809 | py | # db_iterator.py
# Author: Thomas MINIER - MIT License 2017-2020
from abc import ABC, abstractmethod
from typing import Dict, Tuple
class DBIterator(ABC):
"""
A DBIterator follows the iterator protocol and evaluates a triple pattern against a RDF dataset.
Typically, a subclass of this iterator is ... | [
"tminier01@gmail.com"
] | tminier01@gmail.com |
aa3278469beb7aa0d87b269d60de80611431af8b | 65bc6de5088d989b24571213fb16ebc557f922b4 | /for_beginners/render.py | 3522b818c2a2f7351f64dfa6f9191e102dc2dc86 | [] | no_license | vpj/for_beginners | 76f71ab780194c47ecd5cd67c21359b5d22bebd2 | 45af7567c821ffe329d7db64390aaa391176d974 | refs/heads/master | 2020-03-09T01:44:44.353629 | 2019-02-23T05:42:01 | 2019-02-23T05:42:01 | 128,522,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from IPython.core.display import display,HTML,Markdown
import random
import string
def diagram_tensor(shape):
dom_id = ''.join(random.choices(string.ascii_lowercase, k=10))
without_none = []
for s in shape:
if s is not None and str(s) != '?':
without_none.append(str(s))
js = 'main.... | [
"vpjayasiri@gmail.com"
] | vpjayasiri@gmail.com |
e23b16ab111fbaf9c461df611408f424da327b87 | 3b1053ea38fee9a59d335dd75bb6a6906d298594 | /tests/history/test_db.py | b89ddb4fc414fd676c723f8f83aff718c8588661 | [
"MIT"
] | permissive | tianshengsui/virtool | 8c59bb36c7e2924586be34fabc6b861e16691b7d | eb75637eb6ca9dcba647ad8acad5d316877dd55e | refs/heads/master | 2023-04-19T16:36:54.894894 | 2021-04-23T19:09:33 | 2021-04-23T19:09:33 | 295,793,679 | 0 | 0 | MIT | 2020-09-30T23:53:54 | 2020-09-15T16:55:59 | null | UTF-8 | Python | false | false | 4,959 | py | import datetime
from aiohttp.test_utils import make_mocked_coro
import pytest
import virtool.history.db
class TestAdd:
async def test(self, snapshot, dbi, static_time, test_otu_edit, test_change):
app = {
"db": dbi,
"settings": {
"data_path": "/foo/bar"
... | [
"igboyes@gmail.com"
] | igboyes@gmail.com |
e705e73a92cfe656ad0214556898e7e4b23a554e | 3603f8f76ff81ea75bfc916888bdcfa55b7f12e4 | /alds/alds1_3_c_3.py | 8f430994eab3e0fa497613b4711b4f742fd06f07 | [] | no_license | kimotot/aizu | 4de0319959a3b166b8c2c4940ab7b701b6ee3395 | 315be1240cff733e1c6a7cd98942a95b3bd7ec96 | refs/heads/master | 2021-07-24T12:37:41.935302 | 2021-03-10T09:05:05 | 2021-03-10T09:05:05 | 91,927,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | class dllist:
def __init__(self):
self._list = []
self._fp = 0
self._bp = 0
def insert(self, x):
self._list.append(x)
self._fp += 1
def delete(self, x):
t = self._list[::-1]
if x in t[:-self._bp]:
self._list.remove(x)
self._f... | [
"god4bid@hear.to"
] | god4bid@hear.to |
03aea4efe7d08e5382591defb2dbff580c6377bb | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /net/data/verify_certificate_chain_unittest/generate-violates-basic-constraints-pathlen-0.py | 3a5d481a89b5dd5ba56fe6f423bd03a657836f27 | [
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 1,436 | py | #!/usr/bin/python
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Certificate chain with 2 intermediates. The first intermediate has a basic
constraints path length of 0, so it is a violation for it... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
92fdbccdfd0fc9f6975c00ee840161f5e714294f | 965ef7770b0efdf28ba1ab74e72598353060d256 | /ex19.2.py | bba7bf0979f9673338439ffb38f22e4cdda3d9a1 | [] | no_license | DikranHachikyan/CPYT210409-PLDA | 87dfca698212905b33b50a0564ae904911d7ff00 | 7ec99a7ef6082e8b58d5a79a66a7875837520d21 | refs/heads/master | 2023-04-18T04:46:38.231406 | 2021-04-28T10:05:08 | 2021-04-28T10:05:08 | 356,246,772 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
if __name__ == '__main__':
tp = 11, 12, 34, 56, 66
for value in tp:
print(f'value = {value}')
print('--- ---') | [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
0a34dd857a7b93bf5b7bda441a669b2fd4af80c6 | a189360771d93aa4bcfdfb9f7a794f770b557528 | /ch04/04math.py | 1e27e49063acd87d3434ea09921f2e113d401a0d | [] | no_license | kevin510610/Book_Python-Tensorflow_PoWen-Ko | 88402a6a9ae3da9fdba7858e56f9c364264854c0 | cbeede8ab566214da8fa5c5953f8ab85c2d23bb8 | refs/heads/master | 2023-04-04T05:37:52.283802 | 2021-04-13T03:09:24 | 2021-04-13T03:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/env
__author__ = "Powen Ko, www.powenko.com"
a=5
b=2.2
print(a+b)
print(a-b)
print(a*2)
print(a/2)
print(a<<1)
print(a>>1)
print(a%3)
d=4.3
print(d/3)
print(d//3)
| [
"kevin510610@gmail.com"
] | kevin510610@gmail.com |
c119987946003ffee661f92e47bec4950eb56b4a | 40c890270ff8dcdcce4006b4cfbc2ce9d7488992 | /accounts/migrations/0003_remove_city_city_id.py | 679ebf454dbd3248bef81a12d3ac1de9b949daab | [] | no_license | khanansha/Concierge_healthcare | d084cabcb0ad5a8fe6914357f31df26a678bfbbd | a7178797233ccccc2918b4f602eb2086239c1e3a | refs/heads/master | 2022-08-15T23:33:46.492016 | 2020-06-01T05:15:46 | 2020-06-01T05:15:46 | 264,127,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # Generated by Django 2.0.2 on 2020-05-05 08:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_city'),
]
operations = [
migrations.RemoveField(
model_name='city',
name='city_id',
),
]
| [
"anjumkhan88987@gmail.com"
] | anjumkhan88987@gmail.com |
43f97e33e7e0ffe81805cf0f366dc587951fd7a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03242/s186722755.py | 1e12736a618aee1a0f1febb374b8dc0561b0b758 | [] | 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 | 380 | py | #k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [input() for _ in range(n)]
n = input()
for i in range(3):
if n[i] == "9":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ae7c02d0634e195e2f5f16fff2e7f39cf0af80bf | a2b7fba22a16f379ccca2e38d9d6291b9562abc3 | /Graph Theory/Shortest Path/Dijkstra_Adj_List.py | 5c2f782bdc48fbbc9154089714557f45d4c33b37 | [] | no_license | neelamy/Algorithm | 565c1cea72715745653e90a3dabbba1e9e283fd8 | 7c9f53ff27bcb840b9dbc20d520f003f4d76fe17 | refs/heads/master | 2020-06-10T15:53:12.967832 | 2017-07-18T07:59:32 | 2017-07-18T07:59:32 | 75,953,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | # Python program for Dijkstra algorithm to find shortest path
# from source in undirected graph
# The program is for adjacency list representation of the graph
#Complexity : O(V(V+E))
from collections import defaultdict
#Class to represent a graph
class Graph:
def __init__(self,vertices):
self.V= vertices #No. o... | [
"neelamyadav.jss@gmail.com"
] | neelamyadav.jss@gmail.com |
4e2e690cffc6ea0a5b52591b5a5e0a009dcd358c | 882c2b3c410b838372d43e431d1ccd6e02ba45f6 | /CE/AlMgSiX_FCC/fit_normal_ce.py | 511a540b3be842951dfe083c03285d25100530dc | [] | no_license | davidkleiven/GPAWTutorial | d46f7b8750172ba5ff36ccc27f97089cac94fd95 | 0bffc300df1d048142559855d3ccb9d0d8074d2e | refs/heads/master | 2021-06-08T05:44:42.784850 | 2021-02-25T10:23:28 | 2021-02-25T10:23:28 | 98,557,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | from clease.data_manager import CorrFuncEnergyDataManager
from clease import PhysicalRidge
from clease.physical_ridge import random_cv_hyper_opt
import numpy as np
import re
import json
db_name = "data/almgsiX_clease_voldep.db"
manager = CorrFuncEnergyDataManager(
db_name, "binary_linear_cf"
)
X, y = manager.get_... | [
"davidkleiven446@gmail.com"
] | davidkleiven446@gmail.com |
d257b5b87299f18aed6ffda8d0085bb46c30103e | 0c6f666fdf7e2ba22f5a3ae16748920a3b8583ff | /main/forms.py | 7ec71db826a82359caf4bdd5587cf98660550eba | [] | no_license | rrabit42/Seoul1ro | 8e9f07fab5bbe247998beeea6b2776fb1e6016d5 | fdb30ef184cba553d3baaaabcceca2644c9dea78 | refs/heads/master | 2023-04-30T12:20:11.785273 | 2021-05-24T12:22:59 | 2021-05-24T12:22:59 | 369,833,280 | 1 | 3 | null | 2021-09-19T16:42:52 | 2021-05-22T14:49:04 | CSS | UTF-8 | Python | false | false | 159 | py | from django import forms
from main.models import Search
class InputForm(forms.ModelForm):
class Meta:
model = Search
fields = '__all__'
| [
"gegiraffe@gmail.com"
] | gegiraffe@gmail.com |
8c718a33f548a45817a6cd05154b9cb7c371f9bf | 1af49694004c6fbc31deada5618dae37255ce978 | /build/fuchsia/common_args.py | f23e8eb74946cbee6e9fc4235e82efbcc3bc8002 | [
"BSD-3-Clause"
] | permissive | sadrulhc/chromium | 59682b173a00269ed036eee5ebfa317ba3a770cc | a4b950c23db47a0fdd63549cccf9ac8acd8e2c41 | refs/heads/master | 2023-02-02T07:59:20.295144 | 2020-12-01T21:32:32 | 2020-12-01T21:32:32 | 317,678,056 | 3 | 0 | BSD-3-Clause | 2020-12-01T21:56:26 | 2020-12-01T21:56:25 | null | UTF-8 | Python | false | false | 6,550 | py | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import importlib
import logging
import os
import sys
from common import GetHostArchFromPlatform
def _AddTargetSpecificationArgs(arg_parser... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
9a29514981517e14e9d56da464497502f36a5b60 | fbe787892572c911a3dad0aacf11e0edf42bec25 | /actor_critic/actor_critic_baselines.py | 0b5e89ed012a03428429125bc460bb332b73c42f | [] | no_license | vwxyzjn/tensorflow-beginner | edebed5238cc687d96bd2cd5120de0a135a159a5 | 4b76d2dae96ca57ac90a4a6cf0c2935d6f390be8 | refs/heads/master | 2020-05-09T23:23:17.459116 | 2019-04-15T14:21:29 | 2019-04-15T14:21:29 | 181,499,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import argparse
import gym
import numpy as np
from stable_baselines.deepq import DQN, MlpPolicy
def callback(lcl, _glb):
"""
The callback function for logging and saving
:param lcl: (dict) the local variables
:param _glb: (dict) the global variables
:return: (bool) is solved
"""
# stop t... | [
"costa.huang@outlook.com"
] | costa.huang@outlook.com |
5a6e8273d7b26abe7ad8034b181f781338670eb7 | 45a506c5622f366e7013f1276f446a18fc2fc00d | /kedro/extras/transformers/__init__.py | 5a9b3e9e214377fd9b451e3ec79e86b6822e459b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sbrugman/kedro | 3e48bcc56cc61fbe575d1a52c4f5bf3e84b6f974 | 25c92b765fba4605a748bdaaa801cee540da611e | refs/heads/develop | 2023-07-20T11:24:07.242114 | 2021-10-08T14:05:03 | 2021-10-08T14:05:03 | 404,517,683 | 1 | 2 | NOASSERTION | 2021-09-08T22:53:09 | 2021-09-08T22:53:09 | null | UTF-8 | Python | false | false | 1,679 | py | # Copyright 2021 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... | [
"noreply@github.com"
] | sbrugman.noreply@github.com |
1d66174523025aff8645ae370b76a48e039bd57f | 3de6f7f6d8497e728101c368ec778e67f769bd6c | /notes/algo-ds-practice/problems/list/copy_list_random_pointer.py | 50fdca295a2b01ae01f62fd4ce46c8ebe212ba04 | [
"MIT"
] | permissive | arnabs542/interview-notes | 1fceae0cafa74ef23d0ce434e2bc8e85c4c76fdd | 65af75e2b5725894fa5e13bb5cd9ecf152a0d652 | refs/heads/master | 2023-01-03T06:38:59.410704 | 2020-10-25T06:49:43 | 2020-10-25T06:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | '''
You are given a linked list with one pointer of each node pointing to the next node just like the usual.
Every node, however, also has a second pointer that can point to any node in the list.
Now write a program to deep copy this list.
Solution 1:
First backup all the nodes' next pointers node to another array.
n... | [
"ajaggi@linkedin.com"
] | ajaggi@linkedin.com |
4911aa2d0d900d248648eafe69addf6919b82d92 | 5e5a8270f07ac3ca2017b2c4c0fdc903bb4fc25e | /src/pybel/parser/parse_control.py | 68c6188e7122a05ea42131ba5919233217c87b46 | [
"Apache-2.0"
] | permissive | nsoranzo/pybel | 37f2553103ba721925d49a7fafbd1b0b3177a936 | 3663d24614124509871043d9d411ed400ddba385 | refs/heads/master | 2021-01-18T11:33:28.069016 | 2017-03-08T00:00:32 | 2017-03-08T00:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,538 | py | # -*- coding: utf-8 -*-
"""
Control Parser
~~~~~~~~~~~~~~
This module handles parsing control statement, which add annotations and namespaces to the document.
See: https://wiki.openbel.org/display/BLD/Control+Records
"""
import logging
import re
from pyparsing import Suppress, MatchFirst
from pyparsing import pypar... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
cbe2f4fb4bc9585cb7d499ad66ecb249f6693441 | be7949a09fa8526299b42c4c27adbe72d59d2201 | /cnns/nnlib/robustness/channels/channels_svd_examples.py | 2a1d990426dabdcc224b92b08bdf79151201e3ba | [
"Apache-2.0"
] | permissive | adam-dziedzic/bandlimited-cnns | 375b5cccc7ab0f23d2fbdec4dead3bf81019f0b4 | 81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a | refs/heads/master | 2022-11-25T05:40:55.044920 | 2020-06-07T16:14:34 | 2020-06-07T16:14:34 | 125,884,603 | 17 | 5 | Apache-2.0 | 2022-11-21T21:01:46 | 2018-03-19T16:02:57 | Jupyter Notebook | UTF-8 | Python | false | false | 419 | py | import sys
import numpy
import foolbox
from numpy.linalg import svd
numpy.set_printoptions(threshold=sys.maxsize)
image, label = foolbox.utils.samples(
dataset='cifar10', index=0, batchsize=1, data_format='channels_first')
image = image / 255 # # division by 255 to convert [0, 255] to [0, 1]
u, s, vh = svd(a=ima... | [
"adam.dziedzi@gmail.com"
] | adam.dziedzi@gmail.com |
27c3cf0cfc2899972cb9c466686a6a8e0a9822a2 | 385295df7d11f258efb0500401e9e2837e143b37 | /django/st01/blog/views.py | 1458eb2af3cc920c3659e93203de4397bf806b03 | [] | no_license | ysjwdaypm/study | 7f4b2a032f30ee6c9481ef3d9f180f947c8167c1 | 61059a4363928e023f3a0fa9f7b3ea726b953f96 | refs/heads/master | 2020-12-25T05:54:56.392792 | 2016-07-06T08:24:39 | 2016-07-06T08:24:39 | 62,702,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py | # coding=utf-8
from django.shortcuts import render,render_to_response
from django.http import HttpResponse
from django.template import loader,Context,Template
import json,time,sys
import pytz, datetime
from models import Person,BagManager
from django.template import RequestContext
# Create your views here.
reload(sy... | [
"ysjwdaypm@163.com"
] | ysjwdaypm@163.com |
90d030e0aa07b3e43d0a019006b657649c9e1a90 | 69bf012ca88897cd87535701369f2b87c6522d57 | /modules/templates/Turkey/controllers.py | 116b2c9dde78a45c4e7ab6f6036bd9c90510e8ba | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sahana/eden | e2cc73f6b34a2ab6579094da09367a9f0be10fd1 | 1cb5a76f36fb45fa636577e2ee5a9aa39f35b391 | refs/heads/master | 2023-08-20T20:56:57.404752 | 2023-02-24T17:16:47 | 2023-02-24T17:16:47 | 3,021,325 | 227 | 253 | NOASSERTION | 2023-01-10T10:32:33 | 2011-12-20T17:49:16 | Python | UTF-8 | Python | false | false | 2,364 | py | # -*- coding: utf-8 -*-
from gluon import *
from s3 import S3CustomController
THEME = "Turkey"
# =============================================================================
class index(S3CustomController):
""" Custom Home Page """
def __call__(self):
output = {}
# Allow editing of page c... | [
"fran@aidiq.com"
] | fran@aidiq.com |
31aec23ecdfa187a48c29120276e4f8366771eae | 038af1bfd275530413a7b4e28bf0e40eddf632c6 | /parsifal/apps/reviews/migrations/0032_auto_20151006_0619.py | 1bbe293f14044c44f5fc91de120586c344cc84f0 | [
"MIT"
] | permissive | vitorfs/parsifal | 5c5345ff75b48c5596977c8e0a9c4c537ed4726c | 68c3ce3623a210a9c649a27f9d21ae6130541ea9 | refs/heads/dev | 2023-05-24T16:34:31.899776 | 2022-08-14T16:30:06 | 2022-08-14T16:30:06 | 11,648,402 | 410 | 223 | MIT | 2023-05-22T10:47:20 | 2013-07-25T00:27:21 | Python | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('reviews', '0031_article_selection_criteria'),
]
operations = [
migrations.RemoveField(
model_name='customarticle... | [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
210584bd6d6c063d2901bfc6bfd97577749d7d89 | cd3c9415d279d2545106f559ab3117aa55ed17ef | /L02 运算符、if判断、while、for循环、字符串相关函数/课件/09 while循环例子.py | e459f1ef6baee3d648ec9554d6743e82ccb0c891 | [] | no_license | yuanchangwang/yuan | ad418609e6415a6b186b3d95a48e2bd341f2d07f | 22a43c09af559e9f6bdf6e8e3727c1b290bc27d4 | refs/heads/master | 2020-08-27T02:17:40.544162 | 2019-11-19T10:25:51 | 2019-11-19T10:25:51 | 217,216,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,924 | py | # (1)打印一行十个小星星
#**********
i = 0
while i<10:
print("*",end="")
i+=1
#help 查看帮助文档 help(print)
# help(print)
# (2)用一个变量打印出一行十个小星星 (十个小星星塞在一个变量中,最后达因变量)
print("<===>")
i = 0
strvar = ''
while i<10:
strvar += "*"
i+=1
# strvar = strvar + "*" + "*" + "*"
print(strvar)
# (3)打印一行十个小星星 奇数个打印★ 偶数个打印☆
'''
0 % 2 = 0
1 % 2 =... | [
"991552699@qq.com"
] | 991552699@qq.com |
758237f387f0ed09696e3ddefa728eaadd792a79 | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /tf/tf08_mv2.py | 07920ed1a465784c7cf577b6538dd87eef4b0862 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | # mv : Multi Variables
import os
import tensorflow as tf
path = 'D:/Study/data/csv/'
os.chdir(path)
tf.compat.v1.set_random_seed(777)
x_data = [[73., 51., 65.],
[92., 98., 11.],
[89., 31., 33.],
[99., 33., 100.],
[17., 66., 79.]]
y_data = [[152.],
[185.],
[1... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
3ce72250025b94e8864b7f1f307db8f7b8c7ef73 | 3a0430831f3f9fc551ce02f625318754c17a5357 | /app/database/tables.py | e26bf8c2f915d4db3512c9b8a8e20ed0ced8fc7a | [
"Apache-2.0",
"MIT"
] | permissive | victor-iyi/heart-disease | 8589409388495029a2219c08fad57e0941bfbff1 | 06540b582e8752d2bb6a32366077872d32d7c0e4 | refs/heads/master | 2023-08-03T11:18:37.711933 | 2021-09-19T16:30:05 | 2021-09-19T16:30:05 | 363,746,469 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | # Copyright 2021 Victor I. Afolabi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"javafolabi@gmail.com"
] | javafolabi@gmail.com |
7063e3a2f690e52339d69ce4edbc432271d79b30 | 223f8feb7b9ff6334ca7d047636fbbcb598c824c | /src/web/web/settings.py | bfdabc775015d1c9cde45d4c5489e1882893226d | [] | no_license | cluster311/backend.cluster311.com | 169b3c621c7f0231844c4e9b6ad51a9feada4608 | f5ab1ebbd220d3ab4bae253cc61fddbe1153f8d8 | refs/heads/master | 2023-08-06T20:01:00.563492 | 2020-04-10T20:02:22 | 2020-04-10T20:02:22 | 254,720,332 | 0 | 0 | null | 2021-09-22T18:52:07 | 2020-04-10T19:36:39 | Python | UTF-8 | Python | false | false | 3,079 | py | """
Django settings for web project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bui... | [
"andres@data99.com.ar"
] | andres@data99.com.ar |
80e46d30ab05b2895d952c71dce8447f1266d6a9 | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /LeetCode/41.py | 4121f226d68d1e982fa42e6e49ff768f1509886a | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from typing import List
class Solution:
def firstMissingPositive(self, nums: List[int]) -> int:
minimum = nums[0]
maximum = nums[0]
for e in nums:
if e > maximum:
maximum = e
if e < minimum:
minimum = e
print(maximum, minimum)... | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
9815dae1a781a0753475d33dc8c2dfb696bc31a4 | 97e37192d4a695777c538596086c0be826b721e1 | /vedastr/lr_schedulers/base.py | 95d0f2e637e52d41a0e3cddfded57efb211e5a7c | [
"Apache-2.0"
] | permissive | Sayyam-Jain/vedastr | 1b587adc1ff4dc79ab7acc71d7ee08fe600c8933 | 83511a408b68c264561a30daff5154cd0148bebd | refs/heads/master | 2022-12-13T08:06:21.304845 | 2020-09-10T05:05:50 | 2020-09-10T05:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,825 | py | import warnings
import weakref
from functools import wraps
import numpy as np
from torch.optim import Optimizer
class _Iter_LRScheduler(object):
def __init__(self, optimizer, niter_per_epoch, last_iter=-1, iter_based=True):
self._iter_based = iter_based
if not isinstance(optimizer, Optimizer):
... | [
"jun.sun@media-smart.cn"
] | jun.sun@media-smart.cn |
30b8677941dafba525a06bf773593a0852b3b768 | f6786f5f51c0a71a09213e2f729766d1a04dffa2 | /두근두근_파이썬/11_File/Labs/328_hangman_game.py | 50ceef354db69f90bce3e63a80c529b8ec789d86 | [] | no_license | SuperstarterJaeeun/Learn-Programming-Book | 4f075fdec386a0449da8d0d08bb8f1b6d6b2f304 | f768acfffcb20b9fc97946ca491f6ffb20671896 | refs/heads/master | 2023-07-24T07:13:24.374240 | 2021-09-06T14:56:02 | 2021-09-06T14:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | import random
guesses = ''
turns = 10
infile = open("word.txt", "r", encoding="UTF8")
lines = infile.readlines()
word = random.choice(lines)
while turns > 0 :
failed = 0
for char in word :
if char in guesses :
print(char, end = "")
else :
print("_", end = "")
... | [
"danghyeona0113@gmail.com"
] | danghyeona0113@gmail.com |
c7139cdba6d0bdc5caf556866c895ed914db146f | 6a96d6c5ba06ef175ebeed773fc925fcad7ddbd2 | /MaLongHui_Django/apps/users/urls.py | 0a64e123fc1b9b6346ce505192f5960b68fa429a | [] | no_license | AmirHuang/MaLongHui_Django | 38934c3de34f705a70458ff8c644efce69854435 | 0bcff7f0311d6bddd504d088ad52e8217f5c8c74 | refs/heads/master | 2020-05-04T04:48:10.149549 | 2019-04-02T01:24:01 | 2019-04-02T01:24:01 | 178,974,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # _*_ coding: utf-8 _*_
# @time : 2019/03/30
# @Author : Amir
# @Site :
# @File : urls.py
# @Software : PyCharm
from django.urls import path
from rest_framework import routers
from . import views
from rest_framework_jwt.views import obtain_jwt_token
routers = routers.DefaultRouter()
routers.register(r... | [
"429771087@qq.com"
] | 429771087@qq.com |
ff40095f45e1ccca7b27d17b2d0dac4606979175 | 453302ff0c16614eb820c7153835bb549d903ebe | /build/wheeltec_robot_urdf/catkin_generated/pkg.installspace.context.pc.py | 311427dd50139dbb9bc857bdff6fe2d65c145f8e | [] | no_license | SimonSongg/catkin_ws | 591a8bee4864b2e31cc2abb041c082e2d4dc9d83 | afbf5346be2fdfa5aace7ed949d5023b3016363d | refs/heads/main | 2023-07-13T13:28:00.827983 | 2021-08-22T07:18:01 | 2021-08-22T07:18:01 | 380,931,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "wheeltec_robot_urdf"
PROJECT_SPACE_DI... | [
"sf995511sf@qq.com"
] | sf995511sf@qq.com |
c8014a758b3a175f52c3012fcc28b6369c99270a | e415e4cdab3d1cd04a4aa587f7ddc59e71977972 | /builtin/comprehension_syntax.py | fa9db9d682556dea663d08cffe6ccd076c54a921 | [] | no_license | nixawk/hello-python3 | 8c3ebba577b39f545d4a67f3da9b8bb6122d12ea | e0680eb49d260c5e3f06f9690c558f95a851f87c | refs/heads/master | 2022-03-31T23:02:30.225702 | 2019-12-02T10:15:55 | 2019-12-02T10:15:55 | 84,066,942 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Comprehension Syntax
# A very common programming task is to produce one series of values based upon
# the processing of another series. Often, this task can be accomplished quite
# simply in Python using what is known as a comprehension syntax.
# [k * k for k in range... | [
"hap.ddup@gmail.com"
] | hap.ddup@gmail.com |
7bc8151289ec59feecad2dda19ea8f99e5c30580 | 22ffa2a2df4218c12d6324fe602ec20617445dc1 | /draw/nn/__init__.py | 335db6fbd6c550347ba81e70b0e29f943221d53b | [] | no_license | musyoku/convolutional-draw | 367f0269f2df69ac6480d1de7edf2bdf80259ef0 | 3f384feb7b0d1a2138bd758713ed2745c216df3c | refs/heads/master | 2020-03-21T08:55:18.630043 | 2018-10-09T05:19:17 | 2018-10-09T05:19:17 | 138,373,875 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from . import single_layer
from . import functions | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
7ada2586a0ccebebfa6b784143f3f8ab5e1602f0 | 63bacb52d016cf7a237dacd79ba2861842c49ca9 | /zuora_client/models/get_entities_user_accessible_response_type.py | cd250a178562f5a663b37538120c230860fcc65e | [] | no_license | arundharumar-optimizely/zuora-client-python | ee9667956b32b64b456920ad6246e02528fe6645 | a529a01364e41844c91f39df300c85c8d332912a | refs/heads/master | 2020-07-05T23:09:20.081816 | 2019-07-30T21:46:47 | 2019-07-30T21:46:47 | 202,811,594 | 0 | 0 | null | 2019-08-16T23:26:52 | 2019-08-16T23:26:52 | null | UTF-8 | Python | false | false | 43,810 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"brian.lucas@optimizely.com"
] | brian.lucas@optimizely.com |
528b14dfcb491864e05ebf063da0f90fb820507c | 4f08d2dd7901ae5dfbb8e1ecb1e58da9a4875f50 | /planilla/models/planilla_gratificacion.py | 3764c91c533d50300a28e9d28ddbc3e1594145a6 | [] | no_license | azvolamza/erp | 65bdc025b6cbe4f3053618d471c998c4abc883cb | 7f9671b98bd0a9e70464d08c1ef53516fdd8e665 | refs/heads/master | 2023-05-11T22:09:24.673095 | 2021-01-28T14:34:55 | 2021-01-28T14:34:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,122 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError
from odoo.addons.base.res.res_request import referenceable_models
from datetime import datetime, date, timedelta
from dateutil.relativedelta import relativedelta
from odoo.exceptions import UserError
import sys
impo... | [
"lmillan131@gmail.com"
] | lmillan131@gmail.com |
338f19efb58b55b42cd987e0e1ddec5ce0c6c3ca | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/cdn/v20200415/get_profile.py | 1eded7cd80fac2a555ea3ca6f8ca513c8be3e5e2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 4,875 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
8a70830e256d8eeef43740b7dfed605cc776df39 | 09c39de5aad7b283cfac2f09a2b93e43086846d2 | /Unit 04 Functions/01 Functions/Built In Functions/15-abs.py | 52e6ea899312736b86311883bd835e64c64742ab | [
"MIT"
] | permissive | lpython2006e/python-samples | b4e84080259faf75b41fb2fd4fb9d2fbc9f857aa | b94ba67ce0d7798ecf796dadae206aa75da58301 | refs/heads/master | 2023-01-21T13:16:13.295163 | 2020-11-29T11:01:50 | 2020-11-29T11:01:50 | 278,653,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py |
absolute = abs(-42)
print(absolute)
| [
"lent@hivetech.vn"
] | lent@hivetech.vn |
d3c27c23bfc320eceb72571839e9427a8cc1be52 | 07ecbc9bd09637defb25011f16816a5f4b9b7358 | /FOLTranslation.py | 940a8d0a12e2ed0cfc38c348daac963a12642262 | [] | no_license | pritomrajkhowa/webapp_loop_bound | c55d3621644dec28ec58a2db18a28288d62dd2b0 | 2f6ca4addf806f80d18ef7fe492b31bdfbf0d9e1 | refs/heads/master | 2022-12-07T22:19:34.790707 | 2020-09-03T00:17:25 | 2020-09-03T00:17:25 | 291,570,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101,212 | py | import sys
import os
currentdirectory = os.path.dirname(os.path.realpath(__file__))
sys.path.append(currentdirectory+"/packages/ply/")
sys.path.append(currentdirectory+"/packages/plyj/")
sys.path.append(currentdirectory+"/packages/pyparsing/")
sys.path.append(currentdirectory+"/packages/pycparser1/")
sys.path.append(... | [
"pritom.rajkhowa@gmail.com"
] | pritom.rajkhowa@gmail.com |
6698cb9625f61a12ebcd1b81b10dff98494f516a | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/linalg/linear_operator_addition.py | 209e3ef4b16d0e34459d5fb1ef484c36c7eda18c | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/linalg/linear_operator_addition.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
a74ff399c94d7abbb0737bb769e59ed0db02c535 | bd93fa910151c278be8249055bc084e5a5c35a6a | /Python/itcast/01-Python进阶1/4异常/4抛出自定义异常.py | 45e5cd62b39f425811af7f9113a9ac4885ab6479 | [] | no_license | ahojcn/practice-code | bd81595b80239cd2550183093566bd536a83ed3f | b65f4e76271479269463e92fd3fd41585c2ac792 | refs/heads/master | 2021-07-10T14:15:08.036592 | 2020-07-09T11:32:16 | 2020-07-09T11:32:16 | 153,059,349 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class ShortInputException(Exception):
'''自定义异常类'''
def __init__(self, length, atlieast):
self.length = length
self.atlieast = atlieast
def main():
try:
s = input("请输入 -> ")
if len(s) < 3:
# raise 引发一个自定义异常
raise ShortInputException(len(s), 3)... | [
"hanoi_ahoj@icloud.com"
] | hanoi_ahoj@icloud.com |
ce0c9e95fea923683045ab70e0cd201076d5ba46 | d28a65d23c204a9736b597ae510d9dd54d2ffd0f | /tests/testUtils/testSctidGenerator.py | 7f1015fad1169ccb000f226bcefdd7bb6b7e9825 | [
"BSD-3-Clause"
] | permissive | cts2/rf2db | 99ba327611e620fc5533245064afcc1daff7c164 | 985cd7ad84c8907306a0d7d309d4a1c0fb422ba4 | refs/heads/master | 2020-05-17T22:37:25.476553 | 2015-08-24T22:18:19 | 2015-08-24T22:18:19 | 15,264,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2013, Mayo Clinic
# 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 notice, this
# ... | [
"solbrig.harold@mayo.edu"
] | solbrig.harold@mayo.edu |
0486fbd83ea6d8e49d1a8483cd10867e4bd01827 | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/messenger/proto/bw/clanlistener.py | 39c44a4a5bbb7958948df803005d0fa3f6e79198 | [] | no_license | wotmods/WOTDecompiled | 84b8e5d32ee73e1356b4d57318eb76dfac6b5220 | 45fd599666c55cb871f6b84b0ec977b9d4baf469 | refs/heads/master | 2020-12-25T21:34:26.096544 | 2014-11-05T13:58:39 | 2014-11-05T13:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,968 | py | # 2014.10.18 14:44:16 Central European Daylight Time
#Embedded file name: scripts/client/messenger/proto/bw/ClanListener.py
import BigWorld
from PlayerEvents import g_playerEvents
from debug_utils import LOG_DEBUG, LOG_ERROR
from messenger.ext.player_helpers import getPlayerDatabaseID
from messenger.proto.bw.enti... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
199294e0b423494211f9880690d3ca663d5aae1e | 8d402df39c18eba7e1c86c762f205c944357c5df | /www/src/Lib/site-packages/ui/menu.py | 78483584c32e8801d0303aea19d88121aed69b3a | [
"BSD-3-Clause"
] | permissive | brython-dev/brython | 87cc023e25550dec9ce459ba68774189f33712b6 | b33958bff0e8c7a280babc30232dc389a2500a7a | refs/heads/master | 2023-09-04T04:49:29.156209 | 2023-09-01T06:36:08 | 2023-09-01T06:36:08 | 24,046,239 | 6,569 | 625 | BSD-3-Clause | 2023-07-05T06:13:32 | 2014-09-15T06:58:21 | Python | UTF-8 | Python | false | false | 2,270 | py | from . import widget
from browser import html, document
class Menu(html.UL, widget.Widget):
def __init__(self, id=None, style={}):
default_style = dict(position= 'relative', height='auto',
width='auto')
default_style.update(style)
html.UL.__init__(self, Class="ui-widget ui-menu"... | [
"pierre.quentel@gmail.com"
] | pierre.quentel@gmail.com |
03427bc747dcd4f72ae0ca4206d202efd9bd40fe | f55f3cd5f44982260fd1bcf711207e3d952499a3 | /platform_crawler/spiders/pylib/login_qq_with_cli.py | b1dd5448a9cec103c4a23412ffb2782281cd30f0 | [] | no_license | prynix/save_code | c065c79d79cc6a5b9181081fa06deaea32af0d78 | 4556d1ad01ed192f91ae210983010ad45bf4635c | refs/heads/master | 2022-02-20T18:32:44.055007 | 2019-08-19T09:51:18 | 2019-08-19T09:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,661 | py | import os
import time
import win32gui
import psutil
import logging
from ctypes import windll
from platform_crawler.settings import join, IMG_PATH, GlobalVal
from platform_crawler.configs.excute_paths import ExecutePaths
ACC, u, pag, logger = None, None, None, None
TIM_IMG_PATH = join(IMG_PATH, 'tim_img')
... | [
"zwbworkmail@163.com"
] | zwbworkmail@163.com |
eef2258601df458529923175682ced7135be04c4 | e93690e8ac06fd6aa2f7fe7d3ea56978e787e496 | /optimizeDLM/OldFrench/optimizeDependencyLength_FuncHead_Other.py | ef1077c3609c1ffc9a962382e7e2edd717cb1942 | [] | no_license | m-hahn/optimization-landscapes | 8446fbb0ae783f7aa76278e8a5f4cf5e6f4b2cd8 | b16f640dd855a912f52844882b3de701e5b9eca6 | refs/heads/master | 2023-08-12T01:44:18.434912 | 2021-10-03T14:37:11 | 2021-10-03T14:37:11 | 273,661,277 | 0 | 0 | null | 2021-04-15T04:39:52 | 2020-06-20T07:36:12 | TeX | UTF-8 | Python | false | false | 16,951 | py | # Optimizing a grammar for dependency length minimization
import random
import sys
objectiveName = "DepL"
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--language', type=str, default="Old_French_2.4")
parser.add_argument('--entropy_weight', type=float, default=0.001)
parser.add_argument('... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
f786367311655515bd413905975a7193b98e5326 | 1d8624b84243107bcc82876a74917dac983ba67d | /testing/runtests.py | 2651b5b061b99b7f34e063c74255164e50b8a21d | [
"BSD-3-Clause"
] | permissive | nwp90/djorm-ext-pgarray | 14f6877f61975b4a64d3dd601dbd0101fb191918 | 1d0d3db7b3539a8840dcbdaf8322a72aef0875d2 | refs/heads/master | 2021-01-22T00:10:35.570321 | 2013-12-12T20:01:28 | 2013-12-12T20:01:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # -*- coding: utf-8 -*-
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
from django.core.management import call_command
if __name__ == "__main__":
args = sys.argv[1:]
if len(args) == 0:
argv.append("pg_array_fields")
call_command("test", *args, verbosity=2)
| [
"niwi@niwi.be"
] | niwi@niwi.be |
177f9385ab21b6e6d7c23d7e1029cab821061e52 | ef9382999c0e37b30923180a56893c01cf626a2e | /tensorflow_probability/python/bijectors/bijector_properties_test.py | 891a3374e6dbfed7a4969ca49f3de88a6283e32a | [
"Apache-2.0"
] | permissive | bolcom/probability | 41ebc9f62caa425e0304881ed60563beb2adea2e | 4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7 | refs/heads/master | 2020-08-02T11:11:20.181219 | 2019-09-27T06:29:14 | 2019-09-27T06:30:18 | 211,330,640 | 0 | 0 | Apache-2.0 | 2019-09-27T13:54:06 | 2019-09-27T13:54:05 | null | UTF-8 | Python | false | false | 18,122 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
7957c4004a81dab3bef7da261038849f20e09149 | 7565f8a0b26b97e40494275b90852d2ae1ed0c95 | /project/app/models.py | 6989ef06acc164f36bd9a149ada65aa610474539 | [
"MIT"
] | permissive | iNgredie/advertising-site | 881a3db8410db5cf776a5cdac8e79bb443c9e925 | 7ce1de769d68d920c36c00df262b3d416d208e4b | refs/heads/main | 2023-01-06T20:22:24.749547 | 2020-11-01T19:00:49 | 2020-11-01T19:00:49 | 307,781,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from django.db import models
class Ad(models.Model):
title = models.CharField(max_length=200)
description = models.CharField(max_length=1000)
price = models.DecimalField(max_digits=8, decimal_places=2)
photos_urls = models.CharField(max_length=1000)
create_at = models.DateTimeField(auto_now_add=Tr... | [
"sandslash@bk.ru"
] | sandslash@bk.ru |
9aa2b79bc01869cd066b241bdaa8f8f51fd66517 | 7097fe9390eb0841951c6e00f4df6df2266c22cc | /DYAnalysis/AnalysisCode_8TeV/DimuonAnalysis/DYPackage/test/ShapeR/uncertEE_2D.py | c99950559b265c7b123354e0984db972ebde428c | [] | no_license | echapon/pA_DY_8TeV | 35128dc7bcace21197321d01c7a54a67f59a58c9 | 02ead424f33723da7048282dd3a697809ee630b6 | refs/heads/master | 2021-07-24T04:48:27.455575 | 2021-02-18T14:57:49 | 2021-02-18T14:57:49 | 84,451,650 | 0 | 2 | null | 2020-06-16T14:09:34 | 2017-03-09T14:33:24 | C | UTF-8 | Python | false | false | 7,660 | py | #!/usr/bin/env python
from ROOT import *
from math import sqrt, pow
from array import array
import sys, os
from rshape_tools import *
def bambuConverter7_24(h,m_num,m_den):
for ibin_rows in range(1,7):
for ibin_cols in range(24):
if ibin_rows == 6 and ibin_cols > 11: continue
#FIX... | [
"emilien.chapon@cern.ch"
] | emilien.chapon@cern.ch |
d1f2ca2daed0f8996c2359f8c6b24f3eaa5d077e | 65e7bde414934cdda16a10f4905cf1b011166f31 | /IntMemo/Parser_test.py | 76dad187ed6fd9ba5ac4307fda49d97f734f1abc | [
"MIT"
] | permissive | Wizmann/IntMemo | b996ce9238352d2cd69648fea455a48ba7a35b9e | 2b1c0cf7895dc02cda9da9e3ec0ddbfcf2305b27 | refs/heads/master | 2020-05-30T04:27:57.971130 | 2015-03-29T05:55:44 | 2015-03-29T05:55:44 | 32,198,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | #coding=utf-8
import unittest
from Parser import parser
from Parser import lexer
memo1 = '''
[Metadata]
date: 2015-03-07
title: 你很重要,打比赛已经不行了。我得去造个轮子
[Tags]
categories: python, angularjs, love
difficulty: 5
[Description]
我觉得我已经没有什么潜力可挖了。突然感到有些腻烦。
对于我来说,并不可以谈生活。因为我见到过巫师的水晶球,我向里面看了一眼。
从此不能自拔。
[Process]
# DO NOT ED... | [
"mail.kuuy@gmail.com"
] | mail.kuuy@gmail.com |
0bfcd3c57377c7d5882b6a53e48b53be08b491e6 | 8a3e7b779676e396853dc1fb22525e501050cffb | /geoist/inversion/hyper_param.py | a22cd8f57912afd7808ebffc70004f317dde3151 | [
"MIT"
] | permissive | CHEN-Zhaohui/geoist | 3a8218105b8bd21d23f3e15e3d20397adf8f571d | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | refs/heads/master | 2021-03-31T19:19:04.472355 | 2020-03-18T03:18:04 | 2020-03-18T03:18:04 | 248,126,521 | 0 | 0 | MIT | 2020-03-18T03:07:54 | 2020-03-18T03:07:53 | null | UTF-8 | Python | false | false | 16,551 | py | r"""
Classes for hyper parameter estimation (like the regularizing parameter).
These classes copy the interface of the standard inversion classes based on
:class:`~geoist.inversion.misfit.Misfit` (i.e.,
``solver.config(...).fit().estimate_``). When their ``fit`` method is called,
they perform many runs of the inversio... | [
"chenshi@cea-igp.ac.cn"
] | chenshi@cea-igp.ac.cn |
8cba1c54e9b7375b8e3d4b7a6580186abe1b1406 | 1407537a535255e68164d7495786ca2d08f95370 | /backend/home/migrations/0001_load_initial_data.py | 37144435244754865ad3e6f940fa8a1ed3c13eba | [] | no_license | crowdbotics-apps/lucky-thunder-27398 | 4976a8d6e49618ca7885101a5fb75d600c32ff87 | 83b4c2a91c79a1547b7f3263555f7faf833bf201 | refs/heads/master | 2023-05-05T15:20:55.604463 | 2021-05-25T21:36:30 | 2021-05-25T21:36:30 | 370,833,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "lucky-thunder-27398.botics.co"
site_params = {
"name": "Lucky Thunder",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
61dbfba05b6a975dff34da029db039cadfac6fa9 | 58c976db39b69e3f30f1649e4f2c474f8c59224e | /chain/settings.py | 3365db0713189ec5b57ce943ad2ae5a22e20b586 | [
"Apache-2.0"
] | permissive | JennyLJY/chain | 4be485ad72b54bb1c6ec7cda4c3e82e6d33f7797 | f484019a31a65a02f389f2f3aec1aec1b154dc98 | refs/heads/master | 2020-03-09T21:44:29.153850 | 2018-04-10T12:02:23 | 2018-04-10T12:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,794 | py | """
Django settings for chain project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os,sys
im... | [
"hequan2011@sina.com"
] | hequan2011@sina.com |
960fe4703e14455f4c229c585910aada0e8aaa45 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/SetResellerUserQuotaRequest.py | 10ffd6b52727da42dc0bc5acd388bea160ba9e09 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,908 | 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 |
005534cbb812c1a5259eac995b271e47d1de2375 | 4d74341029f12e7e53b6df9d4e17f8a7b1247305 | /infra/subsys/frontend/friendlynamed.py | 5649daca2f2fb0729bcaaa513ac315e620b9aaaa | [] | no_license | dr-natetorious/app-FinSurf | 0a137d1e8dc50b5ba81c2b69e36f89dfb70acdaf | 799710e046626a6a9e753d37af76fbc421e942e4 | refs/heads/master | 2023-02-11T11:47:58.704138 | 2021-01-12T22:30:29 | 2021-01-12T22:30:29 | 315,193,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | #!/usr/bin/env python3
from infra.reusable.context import InfraContext
from infra.reusable.proxyfrontend import LambdaProxyConstruct
from infra.reusable.pythonlambda import PythonLambda
from aws_cdk import (
core,
aws_s3 as s3,
aws_ec2 as ec2,
aws_apigateway as a,
aws_dynamodb as d,
aws_lambda as lambda_,
... | [
"nate@bachmeier"
] | nate@bachmeier |
8b9590d0cf08be59f1a87430462a08eeb9637b28 | f9c98f9c127fa1cd9fba17abe17199fb5440b36b | /timber_modisette/Python/assn2/assn16.py | 28dd681c2ccf78458e5ef28ad2ee4a4eb0242aeb | [] | no_license | RibRibble/python_april_2017 | 162e543f97afc77d44fcc858106e4730d3f7f760 | 3cc4240d371a8bad8da2ea085e3675272cca2de3 | refs/heads/master | 2021-01-19T01:12:34.667828 | 2017-04-27T22:11:53 | 2017-04-27T22:11:53 | 87,233,010 | 1 | 0 | null | 2017-04-04T20:41:44 | 2017-04-04T20:41:44 | null | UTF-8 | Python | false | false | 450 | py | import random
def scores_grades():
arr = []
for i in range(0,10):
arr.append(random.randint(60,100))
print arr
for x in arr:
if x >= 90:
print "score: ", x,"; your grade is an a"
if x >= 80 and x <=89:
print "score: ", x,"; your grade is a b"
if x >= 70 and x <=79:
print "score: ", x,"; your grad... | [
"mister.modistette@gmail.com"
] | mister.modistette@gmail.com |
8acba408ff4d695cdb50ec45f21070d11914dc9e | bce2731c2d9a81972c4347d07d4ba101a50449e9 | /legacy/lookup_table_generator.py | b691bd44d10534a18039ecf29a5356a67be8d7e6 | [] | no_license | dnarayanan/despotic_lookup_table_generator | 004e99836fea5b59a587944f4ce53cdb81e69ef4 | 5b954d6321b7e336ca8f7147dcabe215961e8e93 | refs/heads/master | 2020-09-25T07:52:48.353428 | 2019-12-04T20:26:23 | 2019-12-04T20:26:23 | 225,954,745 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,376 | py | #NOTES TO DO:
#1. si the velocity dispersion forced to be virialised? If not, need to make sure it is.
# Import the despotic library and various standard python libraries
from despotic import cloud,zonedcloud
from despotic.chemistry import NL99_GC
import despotic
import numpy as np
import matplotlib.pyplot as plt
fr... | [
"none@none"
] | none@none |
5d7b553d8930d9cca8b7c81a61c81612662bdc3c | ea52ecee2fbdac38aa03b7e8bafea0aebe0473da | /light_sabers.py | bd81a61bfc32c6844cfec58328bba06596dce814 | [] | no_license | cooklee/obiektowka | 56e7aa27b4aacff6017731419d6ec90a52d17d74 | 6fa7283bb3e2868205e3eea17257611d4a4f528d | refs/heads/master | 2023-02-21T21:05:01.858270 | 2021-01-27T09:08:35 | 2021-01-27T09:08:35 | 332,677,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class LightSabres:
types = {'blue':'light', 'green':'light', 'red':'dark'}
power = 20
def __init__(self, color):
if color in LightSabres.types:
self._color = color
a = LightSabres('red')
b = LightSabres('green')
c = LightSabres('blue')
for item in dir(a):
print(item)
print(a.type... | [
"sbbogus@gmail.com"
] | sbbogus@gmail.com |
1d80804d4bcb0e3c8a7cdf61c6307befbf7776f5 | 5e2dddce9c67d5b54d203776acd38d425dbd3398 | /spacy/lang/nb/morph_rules.py | b2b906d9c4c1a8abd46022edd60fe2f0dd83d47a | [
"MIT"
] | permissive | yuxuan2015/spacy_zh_model | 8164a608b825844e9c58d946dcc8698853075e37 | e89e00497ab3dad0dd034933e25bc2c3f7888737 | refs/heads/master | 2020-05-15T11:07:52.906139 | 2019-08-27T08:28:11 | 2019-08-27T08:28:11 | 182,213,671 | 1 | 0 | null | 2019-04-19T06:27:18 | 2019-04-19T06:27:17 | null | UTF-8 | Python | false | false | 19,452 | py | # encoding: utf8
from __future__ import unicode_literals
from ...symbols import LEMMA, PRON_LEMMA
"""
This dict includes all the PRON and DET tag combinations found in the
dataset developed by Schibsted, Nasjonalbiblioteket and LTG (to be published
autumn 2018) and the rarely used polite form.
"""
MORP... | [
"yuxuan2015@example.com"
] | yuxuan2015@example.com |
68ca1ed8ae7d78c949702a6898dced089513f178 | 22279487bee5c983c13887ba11e6a4cd40e8bbe3 | /PreprocessData/all_class_files/BusinessAudience.py | 1d69ab09dfb0c3faa6591e9d1545d3de3d294f62 | [
"MIT"
] | permissive | DylanNEU/Schema | 018c9f683c683068422ed7b6392dcebd4ab4d4cd | 4854720a15894dd814691a55e03329ecbbb6f558 | refs/heads/main | 2023-08-30T01:50:20.541634 | 2021-11-01T15:30:41 | 2021-11-01T15:30:41 | 425,238,713 | 1 | 0 | MIT | 2021-11-06T12:29:12 | 2021-11-06T12:29:11 | null | UTF-8 | Python | false | false | 1,767 | py | from PreprocessData.all_class_files.Audience import Audience
import global_data
class BusinessAudience(Audience):
def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialAction=None, ... | [
"2213958880@qq.com"
] | 2213958880@qq.com |
5b19855578f5d80893bb70ce0fb3811426b5ca2b | 8526a11efc8f1d2309033011e9af52049986bf1f | /angular_dockerfile/generate_angular_dockerfile.py | 7a7250e61519ce8731c10e3c31f3b4b5b4066b60 | [] | no_license | Bakushin10/generate-dockerfile | 3ff4ba872d0ab463f14b7d778c054bb893e14703 | d932331527a25c9a527e15329c9d18ffff63fd6b | refs/heads/main | 2023-03-31T17:22:25.918207 | 2021-03-24T08:14:12 | 2021-03-24T08:14:12 | 350,233,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | from dockerfile_generator_interface import dockerfileGeneratorInterface
from pprint import pprint
from enums import Enum
from PyInquirer import style_from_dict, Token, prompt
from PyInquirer import Validator, ValidationError
class GenerateDockerfileForAngular(dockerfileGeneratorInterface):
def __init__(self):
... | [
"shnnagai@gmail.com"
] | shnnagai@gmail.com |
c72b48a9ab714fdd1c3751bdc762b71fe0395bae | 3c8856746c2da97abb50571a1883f8da07707633 | /core/tests/mediawikiversion_tests.py | f6a2185faece910080a9ef0488f196cb415650c1 | [
"MIT"
] | permissive | Tillsa/pywikibot_test_wikidata | 5bb7630c53e04a96f4da352921a55037e80c1c28 | c4b9a1618a5e618305f3abdd359a40f01b14fd90 | refs/heads/master | 2021-01-01T05:24:08.575795 | 2016-04-11T16:01:54 | 2016-04-11T16:01:54 | 55,986,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | # -*- coding: utf-8 -*-
"""Tests for the tools.MediaWikiVersion class."""
#
# (C) Pywikibot team, 2008-2014
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id: c6c3f608d44eb5cd10f06136b4aed6f1c2d1e5a4 $'
from pywikibot.tools import Media... | [
"till.sauerwein@web.de"
] | till.sauerwein@web.de |
52f0cbbc67ed8ce99700dbeab99cb58a07941358 | bede0bbf055a7cffc62808cd6ee4654c02e2a2c4 | /PlotConfiguration/ISR/2016/unfolding/unfolding_input/nuisances_muon.py | 5957ef552ada88a3fcb44bd2ff3c658455907e76 | [] | no_license | bhoh/MultiUniv | ec4d94180971542d8c4d69726c4e26a3f90596ef | 1105e8203ce650457bb9cbfb985a90323845c8b0 | refs/heads/master | 2020-04-24T07:33:41.915446 | 2020-02-13T10:13:40 | 2020-02-13T10:13:40 | 171,802,629 | 0 | 0 | null | 2019-06-03T06:49:59 | 2019-02-21T04:54:20 | C | UTF-8 | Python | false | false | 5,245 | py | #nuisances['lumi'] = {
# 'name' : 'lumi_13TeV',
# 'samples' : {
# 'DY' : '1.023',
# }
# 'type' : 'lnN',
# }
########## Efficiency and Energy Scale
trg_syst = ['muon_double_trigSFUp_DoubleMuon_POGTightWithTightIso/muon_double_trigSF_DoubleMuon_POGTightWithTightIso', 'muon_double_trigSFDn_DoubleMuo... | [
"jhkim@cern.ch"
] | jhkim@cern.ch |
0ccc651bb5faebcb8a57fbc6a17b6476ed21a236 | b28d13b2e785398f1a8074e0034080539009c837 | /django-rest-routers/snippets/urls.py | f9fbae66282440d82cee06df73164e9686a966eb | [] | no_license | sdugaro/django | c58f1c290a1cadf90d723083c1bceefbbac99073 | 1704f1796cb3f25cac260c6120becd70e9f1c33f | refs/heads/main | 2023-02-06T22:06:41.872202 | 2020-12-27T09:04:12 | 2020-12-27T09:04:12 | 311,162,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from django.urls import path, include
from snippets import views
from rest_framework.routers import DefaultRouter
#from rest_framework.urlpatterns import format_suffix_patterns
# Use a conventional Router from the rest_framework
# instead of designing your own URL configuration.
# Create a DefaultRouter and register ... | [
"sdugaro@yahoo.com"
] | sdugaro@yahoo.com |
bfc1cb8fc68f40887ac4c4db66cfe3d73bc5f6da | 0d8d794d06827aea3ad460bd7ffc58a63911b21d | /Python/Piling Up!.py | 00ad5a646dd183016adf6b9a008d015313180e08 | [] | no_license | IamOmaR22/HackerRank-Problems-Solve-and-Programs-Practice-with-Python | fe1f70d2f791d15636f7a55419fd006bd952f4f5 | c3057bd92c75c771877f9f469361a063b8db0915 | refs/heads/master | 2023-02-22T05:21:35.292396 | 2021-01-25T11:43:05 | 2021-01-25T11:43:05 | 263,082,392 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
if __name__ in '__main__':
t = int(input())
for i in range(0, t):
n = int(input())
lst = list(map(int, input().split()))
min_index = lst.index(min(lst))
left = lst[ : min_index]
right = lst[min_index : ... | [
"iamomar022@gmail.com"
] | iamomar022@gmail.com |
65fa18f14f9c38a6a56da56ca671eaf719578587 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/compareVersions_20200909134459.py | f931ca7d437ba6dcc15d17e76c8b91aeb128789e | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | def compare(version1,version2):
# split where there are ,
# then loop through both of them
# if v1 > v2 return 1
# if v1 < v2 return -1
# otherwise return 0
v1 = [int(i) for i in version1.split(".")]
v2= [int(i) for i in version2.split(".")]
# if len(v1) > len(v2):
# whil... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
6ae0c683f2f431ac46ead2b62106f95b3dc5e8d8 | 0a46b027e8e610b8784cb35dbad8dd07914573a8 | /scripts/venv/lib/python2.7/site-packages/cogent/data/molecular_weight.py | 2f10556a9b24528be62ac1cd7c12065b83fd9cf0 | [
"MIT"
] | permissive | sauloal/cnidaria | bb492fb90a0948751789938d9ec64677052073c3 | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | refs/heads/master | 2021-01-17T13:43:17.307182 | 2016-10-05T14:14:46 | 2016-10-05T14:14:46 | 33,726,643 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | #!/usr/bin/env Python
"""Data for molecular weight calculations on proteins and nucleotides."""
__author__ = "Rob Knight"
__copyright__ = "Copyright 2007-2012, The Cogent Project"
__credits__ = ["Rob Knight"]
__license__ = "GPL"
__version__ = "1.5.3"
__maintainer__ = "Rob Knight"
__email__ = "rob@spot.colorado.edu"
__... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
8691a9bc6ee66bfd8d8db9b0642ffaa84c910880 | 51474e20f976b9d2d85c870386ae8e7b74a98a63 | /mla/fm.py | 85964a99d83bede4a8b36a499f86ffd837c721f7 | [
"MIT"
] | permissive | Fage2016/MLAlgorithms | d191a579d97438cc593d5c1d883d8bdffe0eea78 | 035e489a879d01a84fffff74885dc6b1bca3c96f | refs/heads/master | 2023-03-07T14:50:51.861322 | 2022-01-31T06:13:40 | 2022-01-31T06:13:40 | 73,798,801 | 0 | 0 | MIT | 2023-02-04T23:47:22 | 2016-11-15T09:39:07 | Python | UTF-8 | Python | false | false | 2,594 | py | # coding:utf-8
import autograd.numpy as np
from autograd import elementwise_grad
from mla.base import BaseEstimator
from mla.metrics import mean_squared_error, binary_crossentropy
np.random.seed(9999)
"""
References:
Factorization Machines http://www.csie.ntu.edu.tw/~b97053/paper/Rendle2010FM.pdf
"""
class BaseFM... | [
"me@rushter.com"
] | me@rushter.com |
29c5d279f4d670c345637bd7f5d6167924532aa7 | cdd79cef15bdf6a0b9098e27028bbe38607bc288 | /深さ優先探索/ABC177_D_Friends_dfs.py | 943a19f60eeb924be107769dc2e7bfa0f536459a | [] | no_license | nord2sudjp/atcoder | ee35a3eb35717485dc62627172de24c9dac102fb | 6b1cc5102a615492cc7ff8a33813bbb954641782 | refs/heads/master | 2023-08-25T11:27:14.205593 | 2021-09-27T05:43:04 | 2021-09-27T05:43:04 | 302,855,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import sys
sys.setrecursionlimit(1000000)
f=lambda:map(int,input().split())
N,M=f()
if M==0:
print(1)
exit()
G=[set() for _ in range(N+1)]
for _ in range(M):
a,b=f()
G[a].add(b)
G[b].add(a)
# print(G)
d={}
F=[0]*(N+1)
def dfs(i,n):
if F[i]:return
F[i]=1
for g in G[i]:
if F[g]:continue
t... | [
"nord2sudjp@gmail.com"
] | nord2sudjp@gmail.com |
85b44a6d09829fe02164b0352254195d4a9b9f10 | 2e98deb1931aca5f69434e85010153b8b4b7f76e | /tests/json-to-yaml.py | 509903970d379fc1d097d98af3568ecece39d6ad | [
"Apache-2.0"
] | permissive | marklap/taurus | 8ec1ff80bbfd3f38f620930e88500b9ff7b3528b | 8a485d05b3890bd842d627e53deccfc2d21eb2b8 | refs/heads/master | 2021-01-15T11:19:24.722950 | 2015-03-31T21:19:09 | 2015-03-31T21:19:09 | 33,209,884 | 0 | 0 | null | 2015-03-31T21:05:18 | 2015-03-31T21:05:18 | null | UTF-8 | Python | false | false | 268 | py | import os
import sys
import tempfile
from bzt.engine import Configuration
fp, filename = tempfile.mkstemp()
os.write(fp, sys.stdin.read())
conf = Configuration()
conf.load([filename])
conf.dump(filename, Configuration.YAML)
sys.stdout.write(open(filename).read()) | [
"apc4@ya.ru"
] | apc4@ya.ru |
40a59c771348d96bbfa8ef02b04543eb7b724b1d | f1d2a86b7dd93f4ddafa8961780775a28e7b4508 | /GeneralPractice/1606. Find Servers That Handled Most Number of Requests.py | 879d823415d8ec7fab5bc2919834d48cf4986b64 | [] | no_license | deepika087/CompetitiveProgramming | 76f8c1451fce1a8e3c94656f81a5b04363987dc6 | d40c24736a6fee43b56aa1c80150c5f14be4ff22 | refs/heads/master | 2021-06-12T02:26:22.374506 | 2021-02-20T19:27:57 | 2021-02-20T19:27:57 | 70,208,474 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | __author__ = 'deepika'
"""
It is one of those problems in which data structue definition is more challenging than the actual code.
Time complexity : O(n log k)
"""
import heapq
class Solution(object):
def busiestServers(self, k, arrival, load):
"""
:type k: int
:type arrival: List[int]
... | [
"deepika_087@yahoo.com"
] | deepika_087@yahoo.com |
6b22025736585ebd7fb592f4545cad2786c6e33d | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/datatypes/facets/ncname/ncname_max_length002_xsd/__init__.py | 635209195235b0d6fbe5b2195b93e98c31d1ab97 | [
"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 | 173 | py | from output.models.ms_data.datatypes.facets.ncname.ncname_max_length002_xsd.ncname_max_length002 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
5956b9e2ef9c61de2a591591bdfab2f3667d3ebd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_meticulous.py | 4c49fb55ebd4ada7e02a5ab1909db460ca891293 | [
"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 | 421 | py |
#calss header
class _METICULOUS():
def __init__(self,):
self.name = "METICULOUS"
self.definitions = [u'very careful and with great attention to every detail: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
sel... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d087aa0095c89a0fbc965b19d74bfc369e4e7aae | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/integra_caixa/models/caixa_movimento_base.py | 1041f410fce8c130cc33437f28d907cb150625b6 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | # -*- coding: utf-8 -*-
# from __future__ import division, print_function, unicode_literals
from osv import orm, fields
from pybrasil.data import parse_datetime, formata_data, data_hora_horario_brasilia
SALVA = True
class caixa_movimento_base(orm.AbstractModel):
_name = 'caixa.movimento_base'
def _get_dat... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
90ea2dcaf29279ed9722bafe95c7dad77cbb51f4 | ac45b55915e634815922329195c203b1e810458c | /minionOC1304_11.py | 34d1dd610f25e9bc1d383859f22f0c01ec4c984d | [] | no_license | mj1e16lsst/iridisPeriodicNew | 96a8bfef0d09f13e18adb81b89e25ae885e30bd9 | dc0214b1e702b454e0cca67d4208b2113e1fbcea | refs/heads/master | 2020-03-23T15:01:23.583944 | 2018-07-23T18:58:59 | 2018-07-23T18:58:59 | 141,715,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,181 | py | from operator import add
#from astropy import units as u
#from astropy.coordinates import SkyCoord
#from astropy.stats import LombScargle
#from gatspy.periodic import LombScargleFast
from functools import partial
#from gatspy import periodic
#import matplotlib.pyplot as plt
#from matplotlib.font_manager import FontProp... | [
"mj1e16@soton.ac.uk"
] | mj1e16@soton.ac.uk |
bd2595569bf3a56f1f02f986ee1e36549ef16666 | 62ea331d8da218e65a4aee517f4473110f80c03c | /bonus_points/migrations/0012_remove_userbonussummary_bonus_points_added.py | 3abf58d99c8ead844f6402388f99f4e7c39dbc8f | [] | no_license | maddrum/world_cup_results | 11f47a1b0f9a68a0761c7d83d25cc1efb57c2240 | 282d8f55344ba718ea371a22f34454673f23a615 | refs/heads/master | 2020-03-20T05:40:44.173185 | 2018-07-16T13:12:15 | 2018-07-16T13:12:15 | 136,724,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # Generated by Django 2.0.2 on 2018-07-08 12:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bonus_points', '0011_userbonussummary_bonus_points_added'),
]
operations = [
migrations.RemoveField(
model_name='userbonussummary',
... | [
"maddrum9@gmail.com"
] | maddrum9@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.