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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22e3d0ce7d47a5f3494e82146632cd45c24f84d9 | 6b699b7763a0ff8c32b85014d96f6faf02514a2e | /models/official/utils/logs/hooks_helper.py | f4f14492389a8885bf6deb8eeb607c1422e0548f | [
"Apache-2.0"
] | permissive | leizeling/Base_tensorflow-object_detection_2Dcord | df7c195685fed21fd456f1dd79881a198cf8b6e0 | d07418eb68543adc2331211ccabbc27137c8676e | refs/heads/master | 2020-03-19T11:51:57.961688 | 2018-06-07T14:47:16 | 2018-06-07T14:47:16 | 136,481,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | # Copyright 2017 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... | [
"1072113944@qq.comm"
] | 1072113944@qq.comm |
895788a38bd1a6df0015b588a15a32c39f5d77a8 | b185a636557b0e2642f75a539752c5ecae402249 | /manage.py | ffd6ea0963435993ba9e8a989ed7c7dbe44b43b3 | [] | no_license | crowdbotics-apps/test-27645 | 4d90ad575eb59f05e078ea59ae6d79158581442d | 9a787e4430aca1bcb8e19882e08e0ee6d74704eb | refs/heads/master | 2023-05-08T13:03:18.363810 | 2021-06-01T09:01:06 | 2021-06-01T09:01:06 | 372,761,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_27645.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
82f1aa278d2d713ff7e37345ceae2c185accee21 | c074ce302e0a2a09ebe8b0a94e342380afbaa911 | /beakjoon_PS/no17144.py | 74a99479091ac9aefa711ffac7d15e85ca9d1f48 | [] | no_license | elrion018/CS_study | eeea7a48e9e9b116ddf561ebf10633670d305722 | 3d5478620c4d23343ae0518d27920b3211f686fd | refs/heads/master | 2021-06-10T13:35:20.258335 | 2021-04-25T10:12:17 | 2021-04-25T10:12:17 | 169,424,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | py | import sys
def four_way_spread(y,x, room, temp1, temp2):
dy = [0,0,1,-1]
dx = [1,-1,0,0]
if room[y][x] > 0:
for k in range(4):
ay = y + dy[k]
ax = x + dx[k]
if ay >= 0 and ay <r and ax>=0 and ax <c and room[ay][ax] != -1:
part = room[y][x] // 5
temp1[ay][ax] += part
... | [
"elrion018@gmail.com"
] | elrion018@gmail.com |
1a0e35d230b3b14fdb921c31b726a5c7fe3ab471 | 4cf5b34118daa3c26a47c7213eaaa656b3ab57f0 | /src/treeminer.py | 2e40ad5b834c7f67b85145bdbe3f55bcbf42e320 | [] | no_license | vrthra/Cmimid | a177b5dbd3ef69852b6746ee09a140f35cbc0580 | 25465201830b35a0338407b0a4e13ef512881731 | refs/heads/master | 2020-06-17T08:24:46.465783 | 2019-11-11T15:17:25 | 2019-11-11T15:17:25 | 195,860,435 | 0 | 1 | null | 2019-09-10T09:22:53 | 2019-07-08T17:49:25 | Python | UTF-8 | Python | false | false | 6,808 | py | import sys
import json
import itertools as it
from operator import itemgetter
from fuzzingbook.GrammarFuzzer import tree_to_string
def reconstruct_method_tree(method_map):
first_id = None
tree_map = {}
for key in method_map:
m_id, m_name, m_children = method_map[key]
children = []
... | [
"rahul@gopinath.org"
] | rahul@gopinath.org |
810b7d95938ec105f9de7bc48d3eb11b3338bb3f | 471ea669e21abdb4e4915610b4b5eb43ea3cffe9 | /剑指Offer/27.字符串的排列.py | ca20aaf9bf80c69e0f52a5f8cce2ced8237e0549 | [] | no_license | JiahuaLink/nowcoder-leetcode | 26aed099e215cfc1d8e8afffc62fafa26b26b06f | 0155fc33511cbe892f58550d561d3aa3efcd56b9 | refs/heads/master | 2023-07-09T03:05:31.227720 | 2021-08-03T06:50:36 | 2021-08-03T06:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | # 使用迭代工具类的排列方法
import itertools
class Solution:
def Permutation(self, ss):
if not ss:
return []
return sorted(list(set(map(''.join, itertools.permutations(ss))))) | [
"noreply@github.com"
] | JiahuaLink.noreply@github.com |
e2905bb4e5faef01c90b6b4b41b6d12df04ef5c3 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v11/enums/types/feed_item_set_status.py | 67e70b95b7c03afefde49c4e499c07f3d86fe750 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,152 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
3c01565ab29a50b5e2ab3b2e0ebc8671fa00fa1d | 84fbca1dd86aa1d7d65afd65bc65a71420513fb8 | /queriesapp/migrations/0002_auto_20200313_1226.py | 4fc15376311aefa9eef66940a093094bb9bb41e9 | [] | no_license | corri-golden/queries | 40a7415868149014dcf9d20dedd17801b4552f0b | fc7a4f26f185e3a6018cd257a12abe74019db531 | refs/heads/master | 2021-09-26T16:47:14.470875 | 2021-03-20T04:23:57 | 2021-03-20T04:23:57 | 245,893,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # Generated by Django 3.0.4 on 2020-03-13 12:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('queriesapp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Status',
... | [
"corri.golden@gmail.com"
] | corri.golden@gmail.com |
52c1148649b7e02419ea12246d13cbd9cc58ec08 | b85592e0d0768e250b1e968ba6bacbeae0d91623 | /manage.py | 1116323941b02c0807089dec868b05112ce7b773 | [] | no_license | KimaruThagna/graphql-Example | 206824d60f6c523a27bc0875e7af1004ce4720f4 | 874e862e7e7d54d2767cd7615e7374c904814a42 | refs/heads/master | 2021-07-25T23:22:16.647747 | 2017-11-06T08:26:43 | 2017-11-06T08:26:43 | 106,149,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "GraphQl.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"thagana44@gmail.com"
] | thagana44@gmail.com |
a65d310a45773ea11f0818aa6af806ea9d490511 | 3de1e940512394a6aebe499a9ce07a33a427ea7b | /tools/stats/monitor.py | 972d0dbea038bda843c1db9f7728bd4e8bbd1fa5 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | shinh/pytorch | 3719d1a6129db16e932452bec9b6646edf153226 | c6b7c33885eeff9dc125f87c7134772d59d0ba21 | refs/heads/master | 2022-10-21T22:03:14.775982 | 2022-10-10T05:47:11 | 2022-10-10T05:47:11 | 220,897,452 | 1 | 0 | NOASSERTION | 2019-11-11T03:56:40 | 2019-11-11T03:56:39 | null | UTF-8 | Python | false | false | 2,871 | py | #!/usr/bin/env python3
import datetime
import json
import signal
import time
from typing import Any, Dict, List
import psutil # type: ignore[import]
import pynvml # type: ignore[import]
def get_processes_running_python_tests() -> List[Any]:
python_processes = []
for process in psutil.process_iter():
... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
fc15825c91764aeef1e3c0d91ecb2bc9384037cb | d5fc28473e41a11e3ee793362e80f2db83b1d386 | /tests/unit/cli.py | 1f4810cb82091b028bc3a6c0ceb35d0071fb39b7 | [
"Apache-2.0"
] | permissive | starbops/haas | 71335ea29dbf06579381c7745176ee9f7c86d423 | 751d4fc27732ac7d660886b7c47948300c606460 | refs/heads/master | 2020-05-29T11:37:40.484664 | 2016-03-17T03:04:11 | 2016-03-17T03:04:11 | 53,773,276 | 0 | 0 | null | 2016-03-13T07:41:34 | 2016-03-13T07:41:34 | null | UTF-8 | Python | false | false | 1,877 | py | import pytest
import tempfile
import os
import signal
from subprocess import check_call, Popen
from time import sleep
config = """
[headnode]
base_imgs = base-headnode, img1, img2, img3, img4
[database]
uri = sqlite:///haas.db
[extensions]
haas.ext.auth.null =
haas.ext.network_allocators.null =
"""
@pytest.fixture(a... | [
"ian@zenhack.net"
] | ian@zenhack.net |
dd1c933da5c0589e147cfac927c95849c3d02401 | 07c75f8717683b9c84864c446a460681150fb6a9 | /back_cursor/S-scrapy/zhilian/zhilian/pipelines.py | ce305e87f0e027bad9b1bb740e708506227f2072 | [] | no_license | laomu/py_1709 | 987d9307d9025001bd4386381899eb3778f9ccd6 | 80630e6ac3ed348a2a6445e90754bb6198cfe65a | refs/heads/master | 2021-05-11T09:56:45.382526 | 2018-01-19T07:08:00 | 2018-01-19T07:08:00 | 118,088,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
# 引入sqlalchemy模块
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
# 进入pymysql模块,用于替代sqlalchemy底层的my... | [
"1007821300@qq.com"
] | 1007821300@qq.com |
7f5466358e1afe8affcb50531035a634f09d47f2 | 3e3bf98840d133e56f0d0eb16ba85678ddd6ca45 | /.history/iss_20200102114952.py | b10444b89fa1b6c3096e6c74cc748aa78096e84a | [] | no_license | Imraj423/backend-iss-location-assessment | a05d3cc229a5fc4857483ae466348c1f8c23c234 | b0565c089a445ccffcb8d0aab3c0be3bb0c1d5b8 | refs/heads/master | 2020-12-03T17:04:58.512124 | 2020-06-24T16:02:02 | 2020-06-24T16:02:02 | 231,400,854 | 0 | 0 | null | 2020-06-24T16:02:04 | 2020-01-02T14:43:44 | null | UTF-8 | Python | false | false | 920 | py | import requests
import turtle
import time
screen = turtle.Screen()
image = "iss.gif"
screen.addshape(image)
raf = turtle.Turtle()
raf.shape(image)
raf.setheading(90)
raf.penup()
screen.bgpic("map.gif")
screen.screensize(4000, 3000)
screen.setup(width=800, height=600, startx=0, starty=0)
screen.exitonclick()
while Tru... | [
"dahqniss@gmail.com"
] | dahqniss@gmail.com |
a802808f5187909756b07ccfd2d5e6956da34179 | 866b7169c069c153bacfa7961dce8909aa391faa | /blog/admin.py | e7b63a18af39c397f3075c4067021ab8e245f26b | [] | no_license | nikolasribeiro/pagina-jovenes-40 | d2502b5d1569000eb7dc059f62b66978ea8642ab | 5618cbc1ac03f6dd47eba6360dbdbb2ead70f268 | refs/heads/main | 2023-03-08T18:45:08.323432 | 2021-02-27T22:36:47 | 2021-02-27T22:36:47 | 336,833,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from django.contrib import admin
from .models import Blog, Categoria
# Import Export para guardar datos
from import_export import resources
from import_export.admin import ImportExportModelAdmin
# Clases del import Export
class BlogResource(resources.ModelResource):
class Meta:
model = Blog
class Blog... | [
"nikolasribeiro2@outlook.com"
] | nikolasribeiro2@outlook.com |
cf43f252196aa5e91466d9092828816745be5ca3 | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs25/gs25/asgi.py | cb53a37a73a74e22db638ccc220b4e981d1b6bca | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for gs25 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
c67b2260e2dab5a6ed7a5447cb5d23fbae2047c7 | 07131e91dcf2529e9c7058f8a8f239d419c8f7e0 | /1447.simplified-fractions.py | 240c2196f222b390151a2ea343df329835207f3d | [] | no_license | Code-Wen/LeetCode_Notes | 5194c5c5306cb9f4a0fac85e06fefe6c02d65d44 | 791fc1b43beef89d668788de6d12f5c643431b8f | refs/heads/master | 2021-07-04T14:41:00.830723 | 2020-09-27T16:31:22 | 2020-09-27T16:31:22 | 178,456,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | #
# @lc app=leetcode id=1447 lang=python3
#
# [1447] Simplified Fractions
#
# https://leetcode.com/problems/simplified-fractions/description/
#
# algorithms
# Medium (59.85%)
# Likes: 50
# Dislikes: 6
# Total Accepted: 7.5K
# Total Submissions: 12.5K
# Testcase Example: '2\r'
#
# Given an integer n, return a lis... | [
"chenxu.wen.math@gmail.com"
] | chenxu.wen.math@gmail.com |
6924ccab05426697554fea2c956596a548469849 | 4d2475135f5fc9cea73572b16f59bfdc7232e407 | /prob130_surrounded_regions.py | cbb05c421a1740056d03c472983e5335f0f064ce | [] | no_license | Hu-Wenchao/leetcode | 5fa0ae474aadaba372756d234bc5ec397c8dba50 | 31b2b4dc1e5c3b1c53b333fe30b98ed04b0bdacc | refs/heads/master | 2021-06-24T04:57:45.340001 | 2017-06-17T02:33:09 | 2017-06-17T02:33:09 | 45,328,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | """
Given a 2D board containing 'X' and 'O', capture
all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's
in that surrounded region.
For example,
X X X X
X O O X
X X O X
X O X X
After running your function, the board should be:
X X X X
X X X X
X X X X
X O X X
"""
class Solution(objec... | [
"huwcbill@gmail.com"
] | huwcbill@gmail.com |
08219127157ebde6d147ef569a41948422a2de14 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Fitbit/Sleep/__init__.py | 69ab238a19c2f3b9dae489cc14501cebfa600295 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | from DeleteSleepLog import *
from LogSleep import *
from GetSleep import *
| [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
73e6a2ec930cc79de0a569f1fe7e1d0881098d19 | 4a52362d2a46c747af74e3c321b1bd9d73bd0116 | /virtual/bin/static | fcf01443e92188fc7d4641feefe749e4664b5659 | [
"MIT"
] | permissive | TonyKioko/PichaZa | 1420242b48c204637a166778084aaa4cb3776938 | 8e2e8f3d002a624fe64ce089e4581265080975d6 | refs/heads/master | 2020-03-30T01:31:53.034302 | 2018-10-03T07:35:30 | 2018-10-03T07:35:30 | 150,580,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | #!/home/tony/Desktop/PichaZa/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from static import command
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(command())
| [
"tonykioko384@gmail.com"
] | tonykioko384@gmail.com | |
a754658047ec2d9bd7b8997aa6df168e5080f297 | 0fc2b99fd8414dbce5f1f6057b9b800c968d5d05 | /tests/pysge/test_pysge.py | a54c3b00256e1b2b635b0b89ce3728218a840e3b | [
"MIT"
] | permissive | widdowquinn/lpbio | 9df898cb9580f62da1f66d5736cbf7a984633561 | 8b95642396d05a56c1c54389e3de6d88d7cbffb5 | refs/heads/master | 2020-03-29T02:08:56.675473 | 2019-11-07T14:27:44 | 2019-11-07T14:27:44 | 149,422,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,938 | py | # -*- coding: utf-8 -*-
"""Tests of SGE job submission"""
import shutil
import time
import unittest
import pytest
from lpbio import pysge
class TestPysge(unittest.TestCase):
"""Class collecting tests for pysge"""
@staticmethod
def test_create_job():
"""Create Job for SGE-like scheduler"""
... | [
"leighton.pritchard@hutton.ac.uk"
] | leighton.pritchard@hutton.ac.uk |
d2297f166ccb241eecdd47f1c9b46e9d9faad85c | 11a246743073e9d2cb550f9144f59b95afebf195 | /kattis/chopin.py | 67513e777cb40682ed9aa5468bad04aa7e93f38a | [] | no_license | ankitpriyarup/online-judge | b5b779c26439369cedc05c045af5511cbc3c980f | 8a00ec141142c129bfa13a68dbf704091eae9588 | refs/heads/master | 2020-09-05T02:46:56.377213 | 2019-10-27T20:12:25 | 2019-10-27T20:12:25 | 219,959,932 | 0 | 1 | null | 2019-11-06T09:30:58 | 2019-11-06T09:30:57 | null | UTF-8 | Python | false | false | 538 | py | import sys
def main():
tc = 1
flip = {'major': {}, 'minor': {}}
flip['A#'] = 'Bb'
flip['Bb'] = 'A#'
flip['C#'] = 'Db'
flip['Db'] = 'C#'
flip['D#'] = 'Eb'
flip['Eb'] = 'D#'
flip['F#'] = 'Gb'
flip['Gb'] = 'F#'
flip['G#'] = 'Ab'
flip['Ab'] = 'G#'
for line in sys.stdin:
... | [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
e0049f98e7e82d3f7e4ed64035a39d25d6443025 | d1c67f2031d657902acef4411877d75b992eab91 | /swagger_client/models/list_escalations_response.py | f2b5efd0d2aa78275881ff42e8022c09b496ba2d | [] | no_license | Certn/opsgenie-python | c6e6a7f42394499e5224d679cc9a449042fcf9c3 | bd5f402f97d591e4082b38c938cbabca4cf29787 | refs/heads/master | 2023-01-01T10:45:13.132455 | 2020-10-27T17:40:01 | 2020-10-27T17:40:01 | 307,769,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | # coding: utf-8
"""
Opsgenie REST API
Opsgenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ListEscalationsResponse(object):
"""NOTE: This class... | [
"john@oram.ca"
] | john@oram.ca |
8fde5030c14e3eb60ee0aae8b332acfc19a8dc8b | 758bf41e46a3093f4923af603f1f7f8063408b9c | /website/testFromRemoteRepo/_bsch3398/museum/python/user.py | 719bf82b3ee747cef3765681b6702717b4d1b1a9 | [] | no_license | mpetyx/mpetyx.com | 4033d97b21c9227a6ba505980fd0c1b57254e8fb | d50c379b4fe09e0135656573f7049225fc90ae36 | refs/heads/master | 2021-01-10T19:50:15.488371 | 2014-01-22T09:04:14 | 2014-01-22T09:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | #!/usr/local/bin/python
from util import *
import connect
import sessions
#django for templates only
from django.conf import settings
from django.template import Template, Context
methods = ("login", "logout", "add", "delete", "view", "update")
def login(fields, cookie):
if fields.has_key('user') and fields.ha... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
49ef083dd7476bf8ff926498dd04773df7b9d6f1 | f7c4084ddb4b26ac6005e569c907e94ce63f9993 | /项目/api_sh/data_01/migrations/0001_initial.py | 991a987ed1f657a88f79ba7cc71819dc786de534 | [] | no_license | LDZ-RGZN/- | 01caeb008bab16e1f7dd1c02137def2e030e1636 | 696be7f7a33f009eac92dff504365eb386060df1 | refs/heads/master | 2020-04-13T14:56:43.565470 | 2019-01-13T11:19:28 | 2019-01-13T11:19:28 | 162,986,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-01-08 11:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"2654213432@qq.com"
] | 2654213432@qq.com |
a448f9c388862144f132bcfef5eeb24bb2bad601 | 638af6b8c580eeae23fc1034882c4b514195137a | /Packages/vcs_legacy/Test/test_ps_hatching.py | 4716cae2fa5f0c4e53cb057cd6ace51ee97ef4e6 | [] | no_license | doutriaux1/uvcdat | 83684a86b514b8cac4d8900a503fc13d557fc4d2 | 37e9635f988696c346b4c3cdb49144d1e21dab5d | refs/heads/master | 2021-01-17T07:57:22.897539 | 2015-02-02T22:52:12 | 2015-02-02T22:52:12 | 14,878,320 | 1 | 0 | null | 2015-02-19T20:54:25 | 2013-12-02T23:44:46 | C | UTF-8 | Python | false | false | 792 | py | # Adapted for numpy/ma/cdms2 by convertcdms.py
import cdms2 as cdms,vcs_legacy,sys,time,support,os
bg=support.bg
x=vcs_legacy.init()
x.portrait()
#x.setdefaultfont(2)
f=cdms.open(os.path.join(cdms.__path__[0],'..','..','..','..','sample_data','clt.nc'))
s=f('clt')
iso = x.createisofill('my')
levs = range(0,95,5)
#pri... | [
"doutriaux1@llnl.gov"
] | doutriaux1@llnl.gov |
c3fc957bd8157028fc72a63f5e48786b003b968b | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /77/77.combinations.664188670.Wrong-Answer.leetcode.python3.py | f9d4b9c263f19faa1a2c5bbe5831661b9d091441 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | class Solution(object):
def combine(self, n, k):
res = []
self.get_combine(res, [], n, k, 1)
return res
def get_combine(self, res, prefix, n, k, start):
if k == 0:
res.append(list(prefix))
for idx in range(start, n + 1):
self.get_combine(res, pref... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
35651e65aea695ef813cc1faf53c12e1c4efeff5 | cbe264842df4eae3569b28ed4aae9489014ed23c | /codeit/algorithm/greedy_min_fee.py | cc107882b08662f5008275ceceac29457af32609 | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | def min_fee(pages_to_print):
sorted_pages_to_print = sorted(pages_to_print)
total_fee = 0
while sorted_pages_to_print:
size = len(sorted_pages_to_print)
minute = sorted_pages_to_print.pop(0)
total_fee += size * minute
return total_fee
if __name__ == '__main__':
from util ... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
df3c79870df90f3021b5a630eb28b3efd6fa07c0 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/numenta_nupic/nupic-master/tests/unit/nupic/algorithms/sp_overlap_test.py | 1ca3af5d62178bc471696f4ea91f01904d2a56cf | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 7,048 | py | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | [
"659338505@qq.com"
] | 659338505@qq.com |
d56407a6b0db2c1f4b194d83c021e874ad9414d2 | 4e7db10524c938c8c6e687521def2889e20ec646 | /P16/1-7.py | 62f18ba79452ebca3058388918cdc5cc264b5f6c | [] | no_license | mpigrobot/python | e5cf60ca438e0d5e63a1e87a266a9e255bc07271 | bf9262657a7401f37de38318db768e630fab97a9 | refs/heads/master | 2020-03-15T15:37:03.228080 | 2018-03-31T07:33:07 | 2018-03-31T07:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | #!/usr/bin/env python
# coding:utf-8
import sys
sys.path.append("../")
import jieba
print ", ".join(jieba.cut("大连美容美发学校中君意是你值得信赖的选择"))
jieba.load_userdict( 'C:\Users\Administrator\Desktop\dir1.txt')
print ", ".join(jieba.cut("大连美容美发学校中君意是你值得信赖的选择"))
# jieba.suggest_freq('君意', True)
jieba.add_word("君意", freq ... | [
"noreply@github.com"
] | mpigrobot.noreply@github.com |
eda674ee22d94b233e6ae2676f25b8efc5cdcd5b | ca5e3595a9949abba08c642842166f82d768c153 | /modulation.py | f70357fbf07fdbf03eccb00b5de4dd5781fa470c | [] | no_license | MaksimKulya/PromaX | f36980300ec564a0c8d523f3e07ebf9ed2a9b262 | e723cf4390f9cdcc4bbda627dff90a2185322a54 | refs/heads/master | 2023-06-25T13:13:09.968726 | 2021-07-13T15:09:37 | 2021-07-13T15:09:37 | 385,638,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import matplotlib.pyplot as plt
import math
import cmath
import pylab
from matplotlib import mlab
from PIL import Image
import numpy as np
import scipy.constants
import numba as nb
pi=math.pi
@nb.njit
def modulation(Nx,Ny,am,ph,nu,n,c,h):
AM = np.zeros(shape=(nu.shape[0], Nx, Ny))
PH = np.zeros(shape=(nu.sha... | [
"maxk2350@yandex.ru"
] | maxk2350@yandex.ru |
182d7ea8a9a297586f8be5758698b81f665b8e65 | 5c7da7dabdc076ad7113ccd20561a8bbf5f9a70e | /portfolios/migrations/0007_auto_20200215_1347.py | 9bae61e5b98ca60a0561156c6c192a93b6cb9cd2 | [] | no_license | aqcloudacio/cloudaciofeez | 2499fb5fc5334fa871daab2abea6c34bfa8c7667 | 8399560ece9aa10a6d6801f42c027dca26a65936 | refs/heads/master | 2023-02-27T22:36:20.501159 | 2021-02-11T00:03:46 | 2021-02-11T00:03:46 | 337,887,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 2.2.7 on 2020-02-15 02:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('portfolios', '0006_auto_20200215_1344'),
]
operations = [
migrations.AlterField(
model_name='po... | [
"alejandro.quintero@clouxter.com"
] | alejandro.quintero@clouxter.com |
8ebe16558fbb73183b625591be5a7e29dd52634b | 393ccacef32461f5d7f4b21419a7c695df9c62a7 | /lpo/sfmail/postcodes/39.cgi | 1e6fe51c8664d405a7ca266965e9036946713c72 | [] | no_license | emoshu-yuta-okuma/nakagawa-dent-hp | ebc6c66efc624a256f0d7e30c2e26b9aae162cd7 | e83e8c7060881b7267f90ca3f2c599d614a219a1 | refs/heads/master | 2023-01-14T12:39:19.874341 | 2020-11-12T06:33:00 | 2020-11-12T06:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95,999 | cgi | 20202,399,3990000,ナガノケン,マツモトシ,イカニケイサイガナイバアイ,長野県,松本市,以下に掲載がない場合,0,0,0,0,0,0
20202,39974,3997402,ナガノケン,マツモトシ,アイダ,長野県,松本市,会田,0,0,0,0,0,0
20202,390,3900812,ナガノケン,マツモトシ,アガタ,長野県,松本市,県,0,0,1,0,0,0
20202,39974,3997415,ナガノケン,マツモトシ,アカヌタ,長野県,松本市,赤怒田,0,0,0,0,0,0
20202,390,3900802,ナガノケン,マツモトシ,アサヒ,長野県,松本市,旭,0,0,1,0,0,0
2020... | [
"y.dream.nest@icloud.com"
] | y.dream.nest@icloud.com |
8315a7cb937f1b86b30bb22599caaae7a371e7c0 | 1b2407f35191917818ea7f276079aa8f62429770 | /nova/tests/unit/virt/test_hardware.py | 9d85366dd1edae4fdf8faabf36f4efe2a65ce33c | [
"Apache-2.0"
] | permissive | ISCAS-VDI/nova-base | 67838b54230d250b71fd1067c4a754afbc258883 | dbb6bba94f8a3eae5ed420d8af3431ab116c3fa7 | refs/heads/master | 2021-01-20T19:08:51.403722 | 2016-06-07T06:46:54 | 2016-06-07T06:46:54 | 60,588,545 | 0 | 1 | Apache-2.0 | 2020-07-24T00:41:15 | 2016-06-07T06:38:23 | Python | UTF-8 | Python | false | false | 122,166 | py | # Copyright 2014 Red Hat, 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, ... | [
"wangfeng@nfs.iscas.ac.cn"
] | wangfeng@nfs.iscas.ac.cn |
855afa2e49764022f6489b06d28787448896f33d | 84a96dbd96e926ebb5c658e3cb897db276c32d6c | /tensorflow/python/keras/optimizer_v2/adamax.py | 9166f637c1e9a7f1cefb35436a6db667ff59ab84 | [
"Apache-2.0"
] | permissive | MothCreations/gavlanWheels | bc9189092847369ad291d1c7d3f4144dd2239359 | 01d8a43b45a26afec27b971f686f79c108fe08f9 | refs/heads/master | 2022-12-06T09:27:49.458800 | 2020-10-13T21:56:40 | 2020-10-13T21:56:40 | 249,206,716 | 6 | 5 | Apache-2.0 | 2022-11-21T22:39:47 | 2020-03-22T14:57:45 | C++ | UTF-8 | Python | false | false | 8,043 | py | # Copyright 2018 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5e873a127a5b816d0d8b4e502262fb066ca2608d | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/demo/sampler/features/trees/TreeSingleSelect.py | d07a2e355077b83ac72f563a77bb096ebf2612c1 | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py |
from muntjac.ui.tree import Tree
from muntjac.demo.sampler.features.trees.TreeMultiSelect import TreeMultiSelect
from muntjac.demo.sampler.features.trees.TreeActions import TreeActions
from muntjac.demo.sampler.APIResource import APIResource
from muntjac.demo.sampler.Feature import Feature, Version
class TreeSingle... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
3fb6faabd50d6e4fec8f682bbab921a976447f7b | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/UI/__init___parts/TaskDialogResult.py | 6464317c49a8ed24e79672214c635e272cf50cb8 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | class TaskDialogResult(Enum,IComparable,IFormattable,IConvertible):
"""
Enum to specify the task dialog result.
enum TaskDialogResult,values: Cancel (2),Close (8),CommandLink1 (1001),CommandLink2 (1002),CommandLink3 (1003),CommandLink4 (1004),No (7),None (0),Ok (1),Retry (4),Yes (6)
"""
def __eq__(self,*args):... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
a6a2cdc64be78791ddd99b63741b386489d36ecf | 5746d26f891270c1bb407a244d9a942534298d96 | /fastreid/data/build.py | e7005a90fcb391336d9acc7f3280546059c9cbf6 | [
"Apache-2.0"
] | permissive | winterxx/fast-reid | 1463253c43876249dd55a3adb0a3e71fa8037aa3 | 727a7468311949efbbc7be360c2c1afaf440bb22 | refs/heads/master | 2022-10-20T17:50:39.245472 | 2020-06-16T03:46:22 | 2020-06-16T03:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | # encoding: utf-8
"""
@author: l1aoxingyu
@contact: sherlockliao01@gmail.com
"""
import torch
from torch._six import container_abcs, string_classes, int_classes
from torch.utils.data import DataLoader
from . import samplers
from .common import CommDataset
from .datasets import DATASET_REGISTRY
from .transforms impor... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
5350c7e34a18d8cebb9c9bcc45be9ec798fde418 | 684a7d56589f7b96002646dfc26ba2de52eb7d80 | /source/callback/eval_mscoco.py | ecc1b5db5b7e1be53cffa13367cc079c536f8f70 | [
"Apache-2.0"
] | permissive | adewin/lambda-deep-learning-demo | 7a42b935ca1ab1e92a0170bf28c7e526cffa5cb6 | ebbbd63c0abf87a1a4155b17cef145039b7a1ef7 | refs/heads/master | 2020-07-08T13:15:51.476791 | 2019-04-26T21:25:44 | 2019-04-26T21:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | """
Copyright 2018 Lambda Labs. All Rights Reserved.
Licensed under
==========================================================================
"""
import os
import numpy as np
from scipy import misc
import tensorflow as tf
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from .callback imp... | [
"cl.chuanli@gmail.com"
] | cl.chuanli@gmail.com |
d7a7d2dea431fd8d3dc35b48022975e66ec20183 | f281d0d6431c1b45c6e5ebfff5856c374af4b130 | /DAY001~099/DAY46-BOJ2533-사회망 서비스(SNS)/younghoon.py | 38fcc0c3116cb0e7f54d7a6dd1b9073362b4c486 | [] | no_license | tachyon83/code-rhino | ec802dc91dce20980fac401b26165a487494adb4 | b1af000f5798cd12ecdab36aeb9c7a36f91c1101 | refs/heads/master | 2022-08-13T09:10:16.369287 | 2022-07-30T11:27:34 | 2022-07-30T11:27:34 | 292,142,812 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | '''
이해못했습니당 ㅠ
dp공부를 더하고 봐야겠어요
'''
import sys
sys.setrecursionlimit(10**9)
N=int(sys.stdin.readline())
Tree=[[] for _ in range(N+1)]
check=[0 for _ in range(N+1)]
for _ in range(N-1):
u,v=map(int,sys.stdin.readline().split())
Tree[u].append(v)
Tree[v].append(u)
DP=[[0,0] for _ in range(N+1)]
check=[True... | [
"noreply@github.com"
] | tachyon83.noreply@github.com |
9a74952d6bcbbe9d6c9c34e92a33ccbe56808a6b | 70e9a7da3d4e2a41b30544516e166dab2495253c | /payment_trustcode/controllers/main.py | 050edccfc195b6c8248b0c16dcd7b39d3caf7dfa | [
"MIT"
] | permissive | Trust-Code/odoo-brasil | bf06ea58a4e0376cb5c297c18bf48eaf97104e54 | d456a10e32f56e259061afbd989942ea1aae2c2d | refs/heads/16.0 | 2023-08-31T16:06:21.038792 | 2023-01-26T19:31:31 | 2023-01-26T19:31:31 | 72,882,959 | 206 | 253 | MIT | 2023-08-18T17:05:49 | 2016-11-04T20:28:03 | Python | UTF-8 | Python | false | false | 757 | py | import logging
from odoo import http
from odoo.http import request
from werkzeug.utils import redirect
_logger = logging.getLogger(__name__)
class IuguController(http.Controller):
_notify_url = '/iugu/notificacao/'
@http.route(
'/iugu/notificacao/', type='http', auth="none",
methods=['GET', ... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
18480acf2489cd737fa1a54137dc34a18873c149 | fc43470de13ff8f03105efc2a3660a1ed6a1a553 | /LeetCode/207_CourseSchedule.py | 168da2eb51e923ae31c007d923cd1b462ab06a0c | [] | no_license | youseop/Problem_solutions | 5a05597f188b4ef8f7d8483b46bf05fbf2158d01 | 1fba638d9520bca4354bca01f194f80b159e26aa | refs/heads/master | 2023-06-24T05:12:45.060086 | 2021-07-24T14:22:33 | 2021-07-24T14:22:33 | 298,317,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | class Solution:
def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
from collections import deque as dq
course = list(0 for _ in range(numCourses))
need = dict()
for i in range(numCourses):
need[i] = []
for a, b in prerequisites:
... | [
"66366941+youseop@users.noreply.github.com"
] | 66366941+youseop@users.noreply.github.com |
aa316048e3e95c342aba666bf410bbb7cf9b543b | a667b52cb8d2ec857c55d33f04fc0e81d36dc681 | /options/data/real/Reco16_Run179101_DV.py | 4672a9ee45d24e2d7f95dfea3e8b6b5847ee3163 | [] | no_license | wenyanyin/CP_violation_simulation | 639d73333a3795654275cb43cc7dad7c742d1be1 | 7b93b2fe1050fb30d0b809b758cd5a3b2824b875 | refs/heads/master | 2022-04-29T14:19:23.744004 | 2022-04-01T13:05:18 | 2022-04-01T13:05:18 | 168,570,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from Configurables import DaVinci
from Gaudi.Configuration import importOptions
DaVinci().DataType = '2016'
DaVinci().InputType = 'RDST'
DaVinci().DDDBtag = 'dddb-20150724'
DaVinci().CondDBtag = 'cond-20170325'
importOptions('$APPCONFIGOPTS/DaVinci/DV-RawEventJuggler-0_3-to-4_2.py')
| [
"Michael.Alexander@glasgow.ac.uk"
] | Michael.Alexander@glasgow.ac.uk |
8c5587a7e9df6274c708d09a4a745a6b314aece2 | 02c14fbb23c4c0aef37557e5ba80c688baff4561 | /cloudml-template/examples/census-classification/trainer/task.py | 877b58e2b4c21ede11847e1ae17307ddfe46be1a | [
"Apache-2.0"
] | permissive | cfezequiel/cloudml-samples | c7555c1b6119de41011014d83c2f752428e20f7f | 332662361dc522caad7382499d5a48d3a3a40c6c | refs/heads/master | 2020-05-02T16:07:59.513696 | 2019-04-13T08:01:56 | 2019-04-13T08:01:56 | 178,061,163 | 3 | 0 | Apache-2.0 | 2019-04-13T08:01:57 | 2019-03-27T19:27:26 | Python | UTF-8 | Python | false | false | 11,839 | py | #!/usr/bin/env python
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"khalid.m.salama@gmail.com"
] | khalid.m.salama@gmail.com |
65b74da4eede267474cc9a56a3e2901994358f6a | 06c367fe2d2233c6efb64f323e15bebd7f48c625 | /saleor/product/urls.py | c3159a1923f41052ea09b230dba75e681991402d | [
"BSD-3-Clause"
] | permissive | AkioSky/FishMart | ce630bc4addf63bc105e4f3e13e92c15b119b558 | 1d01d7e79812dc7cccb1b26ffc6457af6104d9f2 | refs/heads/master | 2022-12-11T16:13:38.277080 | 2019-04-22T03:44:22 | 2019-04-22T03:44:22 | 182,615,627 | 0 | 0 | BSD-3-Clause | 2022-12-08T01:44:37 | 2019-04-22T03:20:03 | Python | UTF-8 | Python | false | false | 585 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.product_list, name='list'),
url(r'^(?P<slug>[a-z0-9-_]+?)-(?P<product_id>[0-9]+)/$',
views.product_details, name='details'),
url(r'^category/(?P<slug>[a-z0-9-_]+?)-(?P<category_id>[0-9]+)/$',
views.catego... | [
"whitebirdinbluesky1990@gmail.com"
] | whitebirdinbluesky1990@gmail.com |
5221a3cd94c2ccee498f920816799911eaf1cb15 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/277/103384/submittedfiles/principal.py | e2edee6fa3b2efd552caa85372bac86a66d41972 | [] | 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 | 522 | py | # 1. Ler uma matriz m,n de inteiros
while(True):
m = int(input('Digite a quantidade de linhas: '))
if m >= 1 and m <= 100:
break
else:
print('Numero invalido. Digite entre 1 e 100 (inclusive)')
while(True):
n = int(input('Digite a quantidade de colunas: '))
if n >= 1 and n <= 100:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3aacfc56559b1cc3148120eb9b169bee48276dd4 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1536+690/sdB_pg_1536+690_lc.py | 110380af2de8d87ee8d50b1b95d32ee08d79b9b4 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[234.203458,68.869067], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1536+690/sdB_pg_1536+690_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
ea3a6a6002d4c5c1dd9374b6e70e4f7feb25bf0a | 41f39d013ae3cb2b3ca4230c77b9037cc9c894f6 | /gym/gym/envs/tests/spec_list.py | b9596408afb70ecdad341bf20530ecc72bf0ef7c | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | sokol1412/rllab_hierarchical_rl | 162aec9bb06e271d12333fa072fb44d692c26301 | 6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57 | refs/heads/master | 2020-03-07T07:37:39.510301 | 2018-08-19T11:54:56 | 2018-08-19T11:54:56 | 127,353,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | from gym.gym import envs
import os
import logging
logger = logging.getLogger(__name__)
def should_skip_env_spec_for_tests(spec):
# We skip tests for envs that require dependencies or are otherwise
# troublesome to run frequently
ep = spec._entry_point
# Skip mujoco tests for pull request CI
... | [
"wlasek1412@gmail.com"
] | wlasek1412@gmail.com |
e279ab7f4f8a7694db03f67ed2b49a5684138c0b | 70bee1e4e770398ae7ad9323bd9ea06f279e2796 | /openapi_client/models/types_console_certificate_settings.py | ce30f655952ee5e232890ddeccf76d3bd9a86194 | [] | no_license | hi-artem/twistlock-py | c84b420b1e582b3c4cf3631eb72dac6d659d4746 | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | refs/heads/main | 2023-07-18T07:57:57.705014 | 2021-08-22T04:36:33 | 2021-08-22T04:36:33 | 398,637,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,974 | py | # coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfulla... | [
"aakatev@virtru.com"
] | aakatev@virtru.com |
bf08004a8dc519aed4684436e2e47168caab9220 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L37/37-67_wat_20Abox/set_1ns_equi_m.py | 9a30abf2ff76750baf8c5f509e5e70f035965f6b | [] | 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 | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L37/wat_20Abox/ti_one-step/37_67/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.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]
for j... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
1055636efad751d50373b46a2e7170cabd726762 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_124/121.py | 1ee579e02a9298b03bc8eb97a5888b8339bc66a9 | [] | 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 | 1,380 | py | import math
def test(rank, left, right, n, x, y) :
if n == 0 :
if x > 0 :
if right > y :
return 1.0
else :
return 0.0
else :
if left > y :
return 1.0
else :
return 0.0
#... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3736b3a7e4549a3f825f3fb53da537c76c8e2684 | c0156da1c81a3a76e397974399c7345d082eca9b | /synapse/federation/send_queue.py | 4d65d4aeeab80478457d8631d3a88ff23fd13109 | [
"Apache-2.0"
] | permissive | leanhvu86/matrix-server | 1823c60fc6ba5ed489bb5720474c6b56a9aec688 | 6e16fc53dfebaeaf222ff5a371ccffcc65de3818 | refs/heads/master | 2023-05-09T01:21:37.774510 | 2021-05-21T15:10:48 | 2021-05-21T15:10:48 | 369,569,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,268 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# 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 applicab... | [
"leanhvu86@gmail.com"
] | leanhvu86@gmail.com |
73e9576f7c22061ccd62f5111e442fa156109f2d | 38cacbe9ec2f8ea4540f5aed31da60ac3595c08b | /tests/utils.py | b2b5b9aa0b054a7399086693022be53f9da50f24 | [
"Apache-2.0"
] | permissive | naure/YaP | 14bac663cdf31bda58dd5288f1f297ffa164a742 | e4f9c8b00a463b4fedceb6d9241dd9c723607562 | refs/heads/master | 2020-04-06T06:56:17.027479 | 2016-08-23T19:34:15 | 2016-08-23T19:34:15 | 24,347,882 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import difflib
def red(s):
return '\033[91m' + s + '\033[0m'
def green(s):
return '\033[92m' + s + '\033[0m'
def color_diffline(line):
if line.startswith('-'): # Red
return red(line)
if line.startswith('+'): # Green
return green(line)
return line
def diff(a, b, **kwargs):
... | [
"devnull@localhost"
] | devnull@localhost |
60112dc2b60f73bf2d1353313923ac3433aa5be3 | 30cffb7452220c2ac2961dd2e0f42e3b359a59c0 | /simscale_sdk/models/ground_relative.py | 9f70ec5cb7f1b769bb77f048419ec92fffa6e3f3 | [
"MIT"
] | permissive | vpurcarea/simscale-python-sdk | 0bf892d8824f8d4599caa0f345d5ba28e038f5eb | 6f2d12b2d21142bd854042c0fb402c2c797629e4 | refs/heads/master | 2023-03-14T04:31:06.226337 | 2021-03-03T16:20:01 | 2021-03-03T16:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,290 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class GroundRelative(object):
"""NOTE: This class is auto generated b... | [
"simscale"
] | simscale |
6e14b31178f64e5288bfaa4ef92323615e3ab96c | ed6cb6f58b36f16d38e0f7909173c67c15575a3f | /smart_compress/models/base.py | a381b2ad5ac4abdb3dfa1faf51075fcd05ebbe9f | [] | no_license | gthparch/etri-quant | 4698e50ed1f835ced5b69f928cda5bc2e357657f | 36cfb72f50937b65762fac0f12f044714b755a66 | refs/heads/main | 2023-08-14T21:42:10.007259 | 2021-10-09T01:28:40 | 2021-10-09T01:28:40 | 415,169,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,904 | py | from abc import abstractmethod
from argparse import ArgumentParser, Namespace
from typing import Iterator, Type, Union
import pytorch_lightning as pl
import torch
import torch.nn.functional as F
from argparse_utils.mapping import mapping_action
from smart_compress.util.pytorch.hooks import wrap_optimizer
from torch im... | [
"caojiashen24@gmail.com"
] | caojiashen24@gmail.com |
4e7a822623cae02b8a770d73d3e214da5a0056c0 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks1216.py | 05847acaccb6e806629fb44d584e05d7924634a3 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,579 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of continuous features (E, t, dca)
n_features = 3
geom_dim = 3
class SelfAttn(nn.Module):
""" Self attention Layer"""
def __init__(self, dim):
super().__init__()
self.query_conv =... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
6cd382d97e1da0433636db1787089416dd634124 | e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6 | /tests/unit/modules/network/fortios/test_fortios_system_ipv6_neighbor_cache.py | f808f626a882242f8f534d39d78eb5419e5e659d | [] | no_license | ansible-collection-migration/misc.not_a_real_collection | b3ef8090c59de9ac30aca083c746ec3595d7f5f5 | 7ab1af924a3db4ada2f714b09bb392614344cb1e | refs/heads/master | 2020-12-18T13:48:51.849567 | 2020-01-22T17:39:18 | 2020-01-22T17:39:18 | 235,400,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,122 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
bc0fa8f250c68c7f999971227b923c04b645ab61 | 4768e4ad67416e8b93344ccf647954398fd69561 | /microblog/db_helpers.py | 3a122e3cead9c5f0c55ae35f8a93a6433a264d6e | [] | no_license | cleartext/Enterprise-Microblogging-Server | ee0624c004faa8c6ade282a28949fe9a17438e89 | befff4b9ec64b395a9ef55b52ed563a4168bc07f | refs/heads/master | 2016-09-06T16:23:39.454558 | 2011-01-25T21:56:46 | 2011-01-25T21:56:46 | 1,288,330 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | """
Different database helpers, to retrive
information about users.
"""
from microblog.models import User
from microblog.exceptions import UserNotFound
def get_user_by_jid(jid, session):
jid = jid.split('/', 1)[0]
user = session.query(User).filter(User.jid==jid).scalar()
if user is None:
raise User... | [
"svetlyak.40wt@gmail.com"
] | svetlyak.40wt@gmail.com |
f5a746feee39941cb9838d70afb17bbd77fcc3db | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnsayer.py | 4694c011ef4b512409e0535d1ae2bf4e83b67b7f | [] | 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 | 102 | py | ii = [('AubePRP2.py', 1), ('PettTHE.py', 2), ('RoscTTI2.py', 1), ('WadeJEB.py', 1), ('GodwWLN.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
9bfec149acfe5c6dd3952a7c0436ce971c6faaee | ff44af64d1b03f0b04b4a9482409081810223deb | /hydrus/client/gui/ClientGUIListBoxes.py | 09240e4c7b349d2205023bd7dbdfcda1d0da6520 | [
"WTFPL"
] | permissive | 106FaceEater106/hydrus | 090f81f6c0a300b116e72ace57e7567e357dccef | 8d7fd303345f6ed781e85cff63279885b2499c68 | refs/heads/master | 2022-09-10T05:02:12.060440 | 2020-05-27T21:27:52 | 2020-05-27T21:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104,865 | py | import collections
import os
import typing
from qtpy import QtCore as QC
from qtpy import QtWidgets as QW
from qtpy import QtGui as QG
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusExceptions
from hydrus.core import HydrusGlobals as HG
from hydrus.core ... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
a4de822d452f9b30465f5be889f1f3b10fb5bd39 | 6c10c6e229014dc3bf14efaec2ea8bf07c406752 | /AILearning/ComputerVision/ImageClassification.py | 5ddaebaa3e190d8957c87cd97df64729df342429 | [] | no_license | GuyRobot/AIPythonExamples | e59c6edb355d9cadee2b3f19a087b1b656956262 | 4acdd0d4966e31a616910554bc075b641aa152df | refs/heads/master | 2021-05-21T13:05:49.615593 | 2021-02-28T06:41:04 | 2021-02-28T06:41:04 | 252,662,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,674 | py | import collections
from d2l import AllDeepLearning as d2l
from mxnet import gluon, init, nd, autograd
from mxnet.gluon import nn
import os
import pandas as pd
import shutil
import time
import math
import tarfile
from pathlib import Path
data_dir = "E:/Python_Data/cifar-10/"
# tiny_data_dir = "E:/Python_Data/kaggle_cif... | [
"bluexker@gmail.com"
] | bluexker@gmail.com |
0ff320ce0727df5f0904b4620d4c6d0545a34571 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_mirroring.py | a70d8db0f6d067749196aa854f55063eb436422f | [
"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 | 226 | py |
#calss header
class _MIRRORING():
def __init__(self,):
self.name = "MIRRORING"
self.definitions = mirror
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['mirror']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b4c1978dceeb02f1e9f67909e5ca91c0b929cef9 | b007d88e6726452ffa8fe80300614f311ae5b318 | /educative.io/coding_patterns/two_pointers/triplet_sum_to_zero.py | cf9fb664ace0958b7075ee5471e82813d78f042d | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | """
Given an array of unsorted numbers, find all unique triplets in it that add up to zero.
Example 1:
Input: [-3, 0, 1, 2, -1, 1, -2]
Output: [-3, 1, 2], [-2, 0, 2], [-2, 1, 1], [-1, 0, 1]
Explanation: There are four unique triplets whose sum is equal to zero.
Example 2:
Input: [-5, 2, -1, -2, 3]
Output: [[-5, 2, 3... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
8f3d58a6187c5c0b08864b3b0efa195d47915b34 | dabf4121ac793c2cfe87ff525a8a0f7305ea2c59 | /plugins/maya/publish/extract_pointcache_abc.py | a086790b49e5224c1d72527853aaeadeeda9c52b | [
"MIT"
] | permissive | Lynn5160/reveries-config | 9d91210ebde47a69bb00614f95341a7ce313118f | 1928e4d41acc4861ffa3260fa855ca77561285b0 | refs/heads/master | 2022-11-13T21:13:47.665939 | 2020-07-02T08:24:21 | 2020-07-02T08:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,148 | py |
import contextlib
import pyblish.api
class ExtractPointCacheABC(pyblish.api.InstancePlugin):
"""
"""
order = pyblish.api.ExtractorOrder
hosts = ["maya"]
label = "Extract PointCache (abc)"
families = [
"reveries.pointcache.abc",
]
def process(self, instance):
from may... | [
"davidlatwe@gmail.com"
] | davidlatwe@gmail.com |
499c1470a1433ed4086dcaf206216e5fda9b4ec6 | a839135eae95f745f1d9edb370ac459854042cce | /tests/test_feed.py | 4b9c19439fe949c370936b6b86e25b4acde5b1bb | [
"MIT"
] | permissive | d21d3q/thermalprinter | 8afae538fa81055bf47710390af1c213b86455fc | a502fe8a7b7ab5a0773e92a37e6539f73b34b950 | refs/heads/master | 2023-03-16T01:49:52.478726 | 2022-06-02T10:52:23 | 2022-06-02T10:52:23 | 164,908,229 | 0 | 0 | MIT | 2019-01-09T17:31:32 | 2019-01-09T17:31:25 | Python | UTF-8 | Python | false | false | 771 | py | # coding: utf-8
import pytest
from thermalprinter.exceptions import ThermalPrinterValueError
def test_changing_no_value(printer):
printer.feed()
assert printer.feeds == 1
def test_changing_good_value(printer):
printer.feed(42)
assert printer.feeds == 42 + 1
def test_bad_value__not_int(printer):
... | [
"contact@tiger-222.fr"
] | contact@tiger-222.fr |
756caf90edd534e5f336c64ff1742c1aa610a6d9 | 945f9c5c34b42fd7863c525f7e54d2c88a5950e6 | /pyppl_strict.py | c29178d57ce1b3515b5241aa48a033f133e73c5d | [
"MIT"
] | permissive | stjordanis/pyppl_strict | 0c517a4e803e039b09602c385a75cbcd773514fc | efd4d361ddda3f95b1249cee612ef9f5d7b46123 | refs/heads/master | 2022-09-28T02:09:19.641392 | 2020-06-06T05:14:33 | 2020-06-06T05:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,010 | py | """More strict check of job success for PyPPL
Features:
1. make sure all outputs have been generated
2. allow custom returncode settings
3. allow a custom script to check the output file
"""
from os import utime
import random
import cmdy
from pyppl.plugin import hookimpl
from pyppl.config import config
from pyppl.jobmg... | [
"pwwang@pwwang.com"
] | pwwang@pwwang.com |
a5fb8ff0526b379fe6f367eb993bd6f0943b7aac | f8b4461f66801fa624ec1798c4547b6f5c9bdf51 | /SpaceInvaders/train.py | e950d4b70255c9c88363bf6d9d3eb624142b5460 | [] | no_license | jcw024/NEAT-retro | 5c713aea81efecc108c88e7dde434586c66e35a1 | fdf9a6044e934fb658ad86cad2730690b7af8975 | refs/heads/master | 2021-10-24T13:57:41.696033 | 2021-10-23T02:42:49 | 2021-10-23T02:42:49 | 165,330,293 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | #! /usr/bin/env python
from __future__ import division
import retro
import numpy as np
import cv2
import neat
import pickle
import cProfile
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--checkpoint', '-c', type=str, help='checkpoint file to continue previous run')
args = parser.parse_args()... | [
"="
] | = |
ebe5fe916109b377ee1b3e2552daf2bebbd35c57 | 2989c0d93d88da28a17bc37acca5f0086baab580 | /thesis_scripts/yumi_main/source/camera_robotCAL_astra.py | 04a555379cceaa993da2f930ebe019bdae0a531a | [] | no_license | catree/Ms-Thesis-CVUT | 5307f8c77517de3a39579591206021f4300a8455 | 558122adf3a57ef627087ac84e9452aedb80f6cb | refs/heads/master | 2020-07-11T11:37:36.469246 | 2019-06-23T21:21:34 | 2019-06-23T21:21:34 | 204,523,422 | 1 | 0 | null | 2019-08-26T19:08:51 | 2019-08-26T17:08:51 | null | UTF-8 | Python | false | false | 9,830 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Cesar Sinchiguano <cesarsinchiguano@hotmail.es>
#
# Distributed under terms of the MIT License license.
"""
Finally I got in xyz coordinates according to ROS
"""
import sys
sys.path.insert(0, '/home/casch/yumi_depends_ws/src/thesis_p... | [
"cesarsinchiguano@hotmail.es"
] | cesarsinchiguano@hotmail.es |
0e0a01939fd310d7aafb5cccf0c79513c9cf03ab | a7bc6a7c45c58ac08e295b77d4a19769bfd97463 | /NMT/Transformers_NMT/process_data.py | 98081e75fabdfaea0b0488852ea04fb70cffe3ca | [] | no_license | pnageshkar/NLP_pytorch_project | cc2a3fb8a41e7d2d8a794561e1b9a971b36f2cfa | 57d2ac65a0cf21dca43a9329f6c25e6a23854e15 | refs/heads/master | 2022-11-14T14:59:03.099067 | 2020-07-09T09:05:10 | 2020-07-09T09:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,056 | py | """
@file : process_data.py
@author: xiaolu
@time : 2019-12-26
"""
'''
主要功能:
1. 对中文文本和英文文本建立词典 然后存到vocab.pkl
2. 将训练集和验证集转化为id序列 然后存到data.pkl
'''
import os
import pickle
from collections import Counter
import jieba
import nltk
from tqdm import tqdm
from config import Config
from utils import normalizeString,... | [
"lu.xiao@tcl.com"
] | lu.xiao@tcl.com |
ea1091477d699b137e6ab824d5bb4743d7cd9fe0 | 18f672d3239d199770756ebb8000f6544b5093fb | /stock/migrations/0002_product_name_short.py | ea5dd79e743fe0fc8e7ce026a967bf1d7ae275ab | [
"Apache-2.0"
] | permissive | pkimber/old-stock-migrated-to-gitlab | a8cc4adca8c90fe9fff134ff5fd31b37e914d3db | e712dd19684cdc2028bfea42c373c19ab3aab152 | refs/heads/master | 2021-06-15T10:58:03.884840 | 2017-04-13T15:23:00 | 2017-04-13T15:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-30 12:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stock', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"code@pkimber.net"
] | code@pkimber.net |
d8e6164c4728fb4b27177e08f4714d8ae4094824 | 10123c03954bfd57e6b9ee0acbe93e61c11dc6d0 | /Permutations.py | 01368d7730607adce93caeb2b458812778a12f72 | [] | no_license | ramchinta/python | 4a720d27fd137d32d83326338ad1748c17cd5998 | e82305a822ea200086a0978a29c18ab65a3b18fb | refs/heads/master | 2020-09-02T06:49:30.365372 | 2020-05-09T08:22:57 | 2020-05-09T08:22:57 | 219,160,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | '''Given a collection of distinct integers, return all possible permutations.
Example:
Input: [1,2,3]
Output:
[
[1,2,3],
[1,3,2],
[2,1,3],
[2,3,1],
[3,1,2],
[3,2,1]
]'''
class Solution:
def permute(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
... | [
"mithrachinta@gmail.com"
] | mithrachinta@gmail.com |
9ea9c27397cba8d779b2f23ebe41b720d863300d | 632efa9e1991bc632aaba4783e05c942afc77712 | /tests/py/test_goal.py | e180004421eec2fb754be4f7d4fe2dadeaa2aba3 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | astiob/liberapay.com | 82e2785b17a104197c483bf5dd1c1cc85cc1cb26 | 29842f7aeaaaca99f4427ff43ebdefd41223ff9c | refs/heads/master | 2020-04-05T23:39:24.843313 | 2016-04-19T13:02:07 | 2016-04-19T13:02:07 | 56,925,959 | 0 | 1 | null | 2016-04-23T15:22:00 | 2016-04-23T15:22:00 | null | UTF-8 | Python | false | false | 2,309 | py | from __future__ import print_function, unicode_literals
from decimal import Decimal
from liberapay.testing import Harness
class Tests(Harness):
def setUp(self):
self.alice = self.make_participant('alice')
def change_goal(self, goal, goal_custom="", auth_as="alice"):
return self.client.PxST... | [
"changaco@changaco.oy.lc"
] | changaco@changaco.oy.lc |
f596c523a1306f6053d5fbe033879f5d0178fc5c | 3c5c4c4fb296d08e9e984c4a60ae4fa147293e9a | /ceres/wallet/wallet_block_store.py | 5893e5e48d9f02ddc7a36cdca3c52cb93e78a186 | [
"Apache-2.0"
] | permissive | signingup/ceres-combineharvester | a8874ab11145e7ba2223b85483b96dea01054ad0 | aad918a03a4a522e0e2f3bac104d19d693d6bf79 | refs/heads/main | 2023-07-25T04:11:13.765471 | 2021-09-09T14:59:48 | 2021-09-09T14:59:48 | 404,918,382 | 1 | 0 | Apache-2.0 | 2021-09-10T01:22:20 | 2021-09-10T01:22:20 | null | UTF-8 | Python | false | false | 12,924 | py | from dataclasses import dataclass
from typing import Dict, List, Optional, Tuple
import aiosqlite
from ceres.consensus.block_record import BlockRecord
from ceres.types.blockchain_format.sized_bytes import bytes32
from ceres.types.blockchain_format.sub_epoch_summary import SubEpochSummary
from ceres.types.coin_spend i... | [
"hulatang_eric@163.com"
] | hulatang_eric@163.com |
086dd62330fcf5b767d3e54b7e8ca44c0db75ec7 | ec1aa6a0217c29301b08c8b9559be1f8a346502b | /correctiv_eurosfueraerzte/admin/__init__.py | e4eabaa7c8211dc838ab3b52a39e8e2ede241a5f | [
"MIT"
] | permissive | correctiv/correctiv-eurosfueraerzte | 091039881130fa6c7a78811cdc9bf00893aa6906 | 291c358d65eccf06034e409d888de56a4545c7b7 | refs/heads/master | 2022-12-16T03:24:41.366597 | 2017-08-16T13:37:33 | 2017-08-16T13:37:33 | 53,336,927 | 5 | 0 | MIT | 2022-11-22T01:53:29 | 2016-03-07T15:39:45 | Python | UTF-8 | Python | false | false | 788 | py | from django.contrib import admin
from ..models import (PharmaCompany, Drug, ObservationalStudy,
PaymentRecipient, PharmaPayment, ZeroDoctor,
ZeroDocSubmission)
from .base import (PharmaCompanyAdmin, DrugAdmin, ObservationalStudyAdmin,
PaymentRecipientAdmin, ... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
f7f852b199e0f51ab15fa49c3bcdb5463ef18a76 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /NbZ2cMeEfH3KpQRku_24.py | d4f52eab2e0c8c08f9daf43571dcc4231657dce1 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | """
You are given a list of `0`s and `1`s, like the one below:
[0, 1, 0, 0, 0, 1, 1, 1, 0, 1]
# The first element, a 0, and the last element, a 1 are both unhappy.
# The second element, a 1 is unhappy.
# The second-to-last element, a 0 is unhappy.
# All other numbers in this list are happy.... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c14bcc28f82bc83a691ba3359d6e052753d8c34e | 7d852b8d7b8a6ad7fc9c39957e1097509d08e607 | /cf/mixin/propertiesdata.py | ac31edf878b91a44748c62b5dc8097973d19b920 | [
"MIT"
] | permissive | AJamesPhillips/cf-python | ca0a7ca8681fe928f069d5809bf067d064265e38 | 4631bc4ba3c0cb51dcd18905116440007e291e6b | refs/heads/master | 2020-09-20T10:04:38.336267 | 2019-11-27T14:07:53 | 2019-11-27T14:07:53 | 224,445,029 | 0 | 0 | MIT | 2019-11-27T14:08:11 | 2019-11-27T14:08:10 | null | UTF-8 | Python | false | false | 133,553 | py | from functools import partial as functools_partial
from numpy import array as numpy_array
from numpy import result_type as numpy_result_type
from numpy import vectorize as numpy_vectorize
from ..cfdatetime import dt
from ..functions import equivalent as cf_equivalent
from ..functions import inspect ... | [
"d.c.hassell@reading.ac.uk"
] | d.c.hassell@reading.ac.uk |
fccf0b7bd873beb81a2e03f845b1ab61e0cd8002 | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/funding/migrations/0023_bankpayoutaccount.py | 4c2896a6cfd4e6e3a3b9b656a801977f9e27dd97 | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 1,430 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-08-26 10:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('funding', '0022_auto_20190804_1022'),
]
operation... | [
"loek@goodup.com"
] | loek@goodup.com |
c4fe86c6132760476a28ff976caa14c7b657506f | 691793de7d07b17918d076b319281c706f7275c0 | /test/test_notification_event.py | 547cb7800d3e17e7eddff3c860fb253bd77ae619 | [
"MIT"
] | permissive | signingtoday/signingtoday-sdk-python | 1ddfae5340690c80760c500436631d4a8ff9c87f | ed267279622fb59f2ad8fa289157fc9cdf9d8a5b | refs/heads/master | 2020-12-03T15:32:35.755222 | 2020-03-24T08:27:11 | 2020-03-24T08:27:11 | 231,372,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | # coding: utf-8
"""
Signing Today Web
*Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more Digital Signatures to Your document, *Signing Today* is the right choice. You prepare Your documents, *Signing Today* takes care of all the rest: send invitatio... | [
"smartcloud@bit4id.com"
] | smartcloud@bit4id.com |
6c5d71530c58702155e5b75c3fe0457827dc44a5 | b8e885e1546dfb7a45dc7da7718d73ae4103196e | /nebula/__init__.py | 7fd8272fa8e9757aa84f2b70df4bef4fdf4bb229 | [] | no_license | dannon/nebula | b4655b3b5401c528d25ae973763c4dd82d367ab6 | 5ca94404894f9a64b8adf2afbc37381757ae6b7a | refs/heads/master | 2021-01-18T16:00:41.768529 | 2014-09-23T20:29:55 | 2014-09-23T20:29:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py |
# 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, software
# distributed under the L... | [
"kellrott@gmail.com"
] | kellrott@gmail.com |
0d5998dc0bdef8074798becd45da509feac2c687 | 2f0aa66e14c6595289f6a0de2bdf71e9922052a7 | /nextApi/company/serializers.py | a8e40069f87047ad03eef4ae796f22982d9f0f9f | [] | no_license | aimethierry/NextApi | 8f83a2b0f499fdf5118eb930baa051584cfd9aa5 | 90884ee6d900ce71116b40276dda0e97bec0b521 | refs/heads/master | 2022-12-11T09:03:54.981284 | 2020-09-19T12:40:36 | 2020-09-19T12:40:36 | 296,866,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from rest_framework import serializers
from .models import Company
class companySerializer(serializers.ModelSerializer):
class Meta:
model = Company
fields = ['name', 'country', 'city', 'street', 'pbox', 'description']
| [
"aime.thierry97@gmail.com"
] | aime.thierry97@gmail.com |
89859a5f2de10fec32b6d37f696243b99ef2ff8e | 0c785a2601f2b02c1636d57c70039f0c4f08294a | /pybles/PySrc/tests/test_jyserver.py | 81f3ce332de8e93c0ed3f6cf8c9c62c15242b1c1 | [] | no_license | SoftwareEngineeringToolDemos/ICSE-2012-CodeBubbles | bc26d9655fbd56e5f61364db1c176a3539653d7f | 6da209c1ff0f7fbfa958c97dc22ec478b2b5219c | refs/heads/master | 2021-01-17T13:35:48.729810 | 2016-06-24T19:42:07 | 2016-06-24T19:42:07 | 45,094,073 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,869 | py | '''
@author Fabio Zadrozny
'''
import sys
import unittest
import socket
import urllib
IS_JYTHON = sys.platform.find('java') != -1
if IS_JYTHON:
import os
#make it as if we were executing from the directory above this one (so that we can use jycompletionserver
#without the need for it being in the p... | [
"you@example.com"
] | you@example.com |
e6f76838cc8948c487e9b5d7f982f891fd930d1a | 7c74ceb9f8addcc0816d012e0b84b174b96e0def | /src/azure-cli/azure/cli/command_modules/aro/_rbac.py | 3b993a002cd0239d028eae1e6aec6d2af2013b6b | [
"MIT",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | microsoft/azure-cli | 4c826290e7a6f6bd27da3829b05e4f02ff6dc8d9 | 9ba64b33f6f78e2c3e42f8a147f59484300e8779 | refs/heads/dev | 2023-08-31T08:51:39.526556 | 2022-11-28T19:08:23 | 2022-11-28T19:08:23 | 370,900,439 | 7 | 7 | MIT | 2023-08-01T23:34:50 | 2021-05-26T03:59:41 | Python | UTF-8 | Python | false | false | 2,862 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
52ac0359f5fb4a6ae85782c49c80f98062649017 | 34a70bf642b6f678dce2b22efc598656a1a7d90a | /GraphCodes/CyclesUndirectedGraph.py | 5a36ee8efbc7fa46ab572f4fc8f242ead3212579 | [] | no_license | CodeForContribute/Algos-DataStructures | ce89a313b3e32de57f23b263966a84bb020e6a18 | d0ddc7c8f94270f9269a9a5233b3a07fe59c9a1f | refs/heads/master | 2022-03-28T03:08:17.934077 | 2019-11-23T21:58:03 | 2019-11-23T21:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.vertices = vertices
self.graph = defaultdict(list)
def addEdge(self, u, v):
self.graph[u].append(v)
# me Complexity of this method is same as time complexity of DFS traversal which is O(V+E)
d... | [
"RAUSHAN.KUMAR2@otis.COM"
] | RAUSHAN.KUMAR2@otis.COM |
b107848bc925c50961146c951860c3bfc5fbe2c3 | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/137/E.py | 7c09e79bfacdc5cdd6e89aa3d749feeb7e189c9a | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | from collections import deque
import sys
input = sys.stdin.readline
def main():
N, M, P = map(int, input().split())
edge = []
g = [[] for _ in range(N)]
rg = [[] for _ in range(N)]
for _ in range(M):
A, B, C = map(int, input().split())
A -= 1
B -= 1
C -= P
C... | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
a09fbeb5fff9be004c863cc1d188a6c2e4edecd2 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /T30-turtle-带轴sin(x).py | 65b1abeeb749519d38055915ef35d8a1c0f3e5ca | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | import math
from turtle import *
N = 100
def f(x):
return x
def jumpto(x, y):
penup()
goto(x,y)
def line(x1, y1, x2, y2):
jumpto(x1, y1)
pendown()
goto(x2, y2)
def coosys():
width(4)
pencolor('red')
line(-N, 0, N+1, 0)
pencolor('blue')
line(0, -2,... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
a24ea528d1d4837e64a95d27a224929645603346 | 90c2619937019bb1145edfb2d9d6a7cdea460b57 | /src/783.py | 4a993223e7ea44eab55e13ecca14d8d860f897c5 | [
"MIT"
] | permissive | zhaoyi3264/leetcode-solutions | 2d289a7e5c74cfe7f8b019c6056ce16485ae057b | 1a3a2d441cdd07a17e80b0ea43b7b266844f530c | refs/heads/main | 2023-06-03T11:35:25.054669 | 2021-06-28T02:58:07 | 2021-06-28T02:58:07 | 349,618,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
prev = -float('inf')
ans = float('inf')
def minDiffInBST(self, root: TreeNode) -> int:
... | [
"zhaoyi3264@gmail.com"
] | zhaoyi3264@gmail.com |
51f1741be15eb364a9879aef8b51ed191d5ebdfa | de577e64440d2c330ff0018e8bfb7cf3abf11b70 | /fsleyes/plugins/tools/addroihistogram.py | e388e0aa2128585e355eae1a475c08d34bb2f652 | [
"Apache-2.0",
"CC-BY-3.0",
"BSD-3-Clause"
] | permissive | CGSchwarzMayo/fsleyes | bb887bf8e8dd46bb9e0e3d5c3028d97811fabad1 | 37b45d034d60660b6de3e4bdf5dd6349ed6d853b | refs/heads/master | 2023-09-01T01:39:38.508051 | 2023-08-21T18:21:34 | 2023-08-21T18:21:34 | 272,476,938 | 0 | 0 | NOASSERTION | 2020-06-15T15:34:36 | 2020-06-15T15:34:34 | null | UTF-8 | Python | false | false | 5,615 | py | #!/usr/bin/env python
#
# addroihistogram.py - The AddROIHistogramAction class.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides the :class:`AddROIHistogramAction` class, an
action used by the :class:`.HistogramPanel`.
"""
import wx
import numpy as np
import fsl.data.image ... | [
"pauldmccarthy@gmail.com"
] | pauldmccarthy@gmail.com |
ff1b4b20c92851e1bdcfd180c5b9f4b46b22dbdb | 0ea15da8de03fa9ad7acce50c03824ced868a4e7 | /awesome_itech_project/awesome_itech_project/wsgi.py | e4fd12ce9b44444d43b7c3da64df723fa319c0de | [] | no_license | Zhouhao12345/AwesomeITECH | 6b23d2c40c2c74be237eba2396b83188b7750e13 | 57f1f9bc304f407edbcb9f64ff289037d9aff7f2 | refs/heads/master | 2021-01-10T14:43:04.994235 | 2016-03-25T21:15:09 | 2016-03-25T21:15:09 | 52,460,370 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for awesome_itech_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "awesome_itech_project.se... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b7d41e8d6776f9362fcd567214b789af65441908 | 1719920a92f7194766624474b98d59ef8d6eddaf | /models/mobile_app_content_file.py | 51e891805d2376f4dff51e5a5f0d891a13e2d963 | [
"MIT"
] | permissive | MIchaelMainer/msgraph-v10-models-python | cfa5e3a65ba675383975a99779763211ed9fa0a9 | adad66363ebe151be2332f3ef74a664584385748 | refs/heads/master | 2020-03-19T12:51:06.370673 | 2018-06-08T00:16:12 | 2018-06-08T00:16:12 | 136,544,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,626 | py | # -*- coding: utf-8 -*-
'''
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
'''
from __future__ import unicode_literals
from ..model.mobile_app_con... | [
"mmainer@microsoft.com"
] | mmainer@microsoft.com |
ff268df9cf570e57179bf90ed24e13ec67a171d6 | 98ac0b139301285ece1a4bc9f13b75433d263419 | /torchreid/models/mlfn.py | ec712d66f781745c4f0c329560cfd572515eda3e | [
"MIT"
] | permissive | sovrasov/deep-person-reid | eb0e6b2f0bb3fa6dc22205fd443fd583f9951cd2 | 79773b88986c26e9ac2407af5999923426298a8f | refs/heads/master | 2021-09-13T04:31:15.620950 | 2019-11-14T08:06:34 | 2019-11-14T08:06:34 | 202,522,569 | 1 | 1 | MIT | 2019-11-14T08:06:36 | 2019-08-15T10:35:17 | Python | UTF-8 | Python | false | false | 7,569 | py | from __future__ import absolute_import
from __future__ import division
__all__ = ['mlfn']
import torch
from torch import nn
from torch.nn import functional as F
import torch.utils.model_zoo as model_zoo
model_urls = {
# training epoch = 5, top1 = 51.6
'imagenet': 'https://mega.nz/#!YHxAhaxC!yu9E6zWl0x5zscSo... | [
"k.zhou@qmul.ac.uk"
] | k.zhou@qmul.ac.uk |
4fab87f0958d35670c3b721e447b2960328e7a17 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v8/resources/types/change_event.py | 078c3f918e59efb2c2a1f5be9e63f15de9c21c82 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 11,419 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
ca0e2147614ffa23c1d12256ceb2c465f8ef9ee1 | 8cefaf15f2b70bc3457047351151f85dbffc191e | /tools.py | 2a0c12b25219e29de93b58540ba2a51db4d1e70a | [] | no_license | tjacek/ortho_selection | 183fa86088d94f343b191538493035ad31c4d1d7 | ee923bfda63262ce62033f8e633f1ac37804ce21 | refs/heads/master | 2023-01-21T09:18:07.671478 | 2020-12-02T21:53:22 | 2020-12-02T21:53:22 | 265,209,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | import itertools
import feats
def filtered_dict(names,dic):
return { name_i:dic[name_i] for name_i in names}
def split(names,selector=None):
if(type(names)==dict):
train,test=split(names.keys(),selector)
return filtered_dict(train,names),filtered_dict(test,names)
if(not selector):
... | [
"tjacek@agh.edu.pl"
] | tjacek@agh.edu.pl |
892a16eacf42bc8b91b6898224179f9044e23c40 | 4dc5944ffad7f251b467200ba5101000561c2bdf | /iniciante/2879.py | 0dab20c1683c9fc7cb5621f11332df7ce287b7bd | [] | no_license | DyogoBendo/URI-Python | 3215337229fdb5ef1a446231925c72da4d1ea64b | 40376e0fbb2e7dd97ba316a20863826b4753c601 | refs/heads/master | 2023-06-03T08:36:06.745086 | 2021-06-16T02:00:11 | 2021-06-16T02:00:11 | 314,667,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | if __name__ == "__main__":
n = int(input())
w = 0
for i in range(n):
p = int(input())
if p != 1:
w += 1
print(w) | [
"dyogoromagnabendo@gmail.com"
] | dyogoromagnabendo@gmail.com |
89049661b471aab41331bcd78d322b1768555aa0 | 44e14881c8e248c347dd81f0574c4f306c684d64 | /mysite/settings.py | c800c4c0e67641a4ccd20b759ee29dff8311daf4 | [] | no_license | eduarde/OrderHelperApp | f38af40fc492c6300c3ac70ba2e740789b1d7261 | 83938a7f50519f45dcbb96d6dbf1ea49559e28fa | refs/heads/master | 2021-01-10T12:30:47.142918 | 2016-03-17T20:05:38 | 2016-03-17T20:05:38 | 52,556,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
impor... | [
"eduard.erja@gmail.com"
] | eduard.erja@gmail.com |
2ea70bfaa953a1c8cc5b12b1a97ff742bf1dc11c | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/picnic/test_services.py | bc80ff73a11f0e084c64a9bd9984de5caa683527 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 6,777 | py | """Tests for the Picnic services."""
from unittest.mock import MagicMock, patch
import pytest
from homeassistant.components.picnic import CONF_COUNTRY_CODE, DOMAIN
from homeassistant.components.picnic.const import SERVICE_ADD_PRODUCT_TO_CART
from homeassistant.components.picnic.services import PicnicServiceException
... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
dfe1ced20ccf2b601d73682bc0dc97808d4d7108 | 4e82bbef275a42ea7c9d58cab546de938fd82064 | /pywad/browser/firefox.py | 3f6db16f9a6599f59f12f7e7f4568f41eea8103a | [] | no_license | TakesxiSximada/pywad | 9a1f115f92f362ebaf5ee4767dd6b468ba9a1f51 | 8ad88595a8f00f4232c24167b5517db8e7c4993e | refs/heads/master | 2016-09-02T04:39:17.736770 | 2015-03-16T09:37:45 | 2015-03-16T09:37:45 | 27,847,444 | 2 | 0 | null | 2015-03-16T09:34:31 | 2014-12-11T00:57:55 | Python | UTF-8 | Python | false | false | 2,066 | py | # -*- coding: utf-8 -*-
from selenium.webdriver import Firefox, Proxy, FirefoxProfile
class FirefoxFactory(object):
"""The borwser factory class of Firefox.
"""
default_profile = {
'security.warn_entering_secure': False,
'security.warn_entering_secure.show_once': True,
'security.w... | [
"takesxi.sximada@gmail.com"
] | takesxi.sximada@gmail.com |
618d07f2b7895b24d0458ce034dfafb50ecff6dd | 39597cb5c9a04470381b630a070217506e054d3b | /deadfish.py | 018611f4b61da3bb3a2a40c0f60595dc75f65877 | [] | no_license | tahentx/gridshift | bc3aef88ac7736f62d187c486d079543ce0b8d68 | 9cc8fcc06f0784a321faee103f8ccfe3b3aa13d2 | refs/heads/master | 2021-06-28T23:05:20.059776 | 2020-05-17T16:46:46 | 2020-05-17T16:46:46 | 237,519,217 | 0 | 0 | null | 2021-06-10T15:47:36 | 2020-01-31T21:28:49 | Jupyter Notebook | UTF-8 | Python | false | false | 488 | py | def parse(data):
data = list(data)
box = []
value = 5
for char in data:
if char == "i":
value = value + 1
box.append(value)
elif char == "d":
value = value - 1
box.append(value)
elif char == "s":
value = value ** 2
... | [
"hendricks.ta@gmail.com"
] | hendricks.ta@gmail.com |
f576cc3486e53efcdc3ec4c131c5bba9f36f9abd | bd08d0532f20b7285b437c9bf620de1bbcd5b9ea | /aalh_iit_jdoylewitgencollection/debug-convert-dates.py | bd1f624cc039e31df7b49158095233069740cbae | [
"Unlicense"
] | permissive | johndewees/iitmigration | a9e8a31ba6ceb541ce12c22fd612596cc243dbca | 4dadfbecda719d6e7d60af076a231aedec3c862f | refs/heads/main | 2023-03-14T17:06:58.777683 | 2021-03-27T20:44:58 | 2021-03-27T20:44:58 | 320,086,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | from openpyxl import load_workbook
filename = 'aalh_iit_jdoylewitgencollection.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 31
maximumcol = 31
minimumrow = 7
maximumrow = 200
iterationrow = 7
targetcol = 31
for row in ws.iter_rows(min_row=minimumrow, min_col=minimumcol,... | [
"noreply@github.com"
] | johndewees.noreply@github.com |
05377152968e7bb7a8e5d0c27cb1d6ff1ab8d0c6 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-policysimulator/google/cloud/policysimulator_v1/services/simulator/client.py | ae3999eec2b3489fc83fb3e8a06a8c1b4416a267 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 39,404 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
d08c52d6ec07887f972f0b6586973801cc248350 | 6cbaade56c5db347d1be9a3422a69af52df39b97 | /python_workspace/3_bigdata/02_Standardization_Analysis/2_Excel/12_excel_introspect_all_workbooks.py | c11c104903944b5e2737168189535a1e3837ade5 | [] | no_license | baewonje/iot_bigdata_- | b54e3772f64b9695efee8632183590628b679e11 | 2ce1af67d2f05abeb2ecd442b7299f349bdb9753 | refs/heads/master | 2020-09-06T09:53:53.018320 | 2019-12-06T08:19:33 | 2019-12-06T08:19:33 | 220,390,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # !/usr/bin/env python 3
import glob
import sys
import os
from xlrd import open_workbook
input_directory = sys.argv[1] # Parameters = .
workbook_counter = 0
for input_file in glob.glob(os.path.join(input_directory, '*.xls*')):
workbook = open_workbook(input_file)
print('Workbook: {}'.format(o... | [
"50129576+baewonje@users.noreply.github.com"
] | 50129576+baewonje@users.noreply.github.com |
863ee150019c6ff7cf81360895900a5538763127 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/keyvault/v20161001/secret.py | a96895debc5f3cf376aad0b19747acf8f1dd3b64 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,848 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
e08c2dc8691e3a89398eb76dc78a075bebb81438 | 7e616a3b1928940467ec09a82b52d5b4d83984a1 | /MODULE1/Activities/PREFECT/create_dw.py | 1dede11f56bea15c470fed5c431d3cb08e61a576 | [] | no_license | gustavo32/DataEngineeringBootcamp | 70e4c2fb06a387418718df2929b89820a0a76c0d | 704dbe11f33f27ab9eda5649990685f153048429 | refs/heads/main | 2023-01-28T17:38:36.182545 | 2020-12-07T20:12:37 | 2020-12-07T20:12:37 | 316,643,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | from datetime import datetime, timedelta
import pendulum
import prefect
from prefect import task, Flow
from prefect.schedules import CronSchedule
import pandas as pd
from io import BytesIO
import zipfile
import requests
import sqlalchemy
import psycopg2
schedule = CronSchedule(
cron= '*/10 * * * *',
start_date... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.