blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38c9c9d16e3bf55d6a64c4cff2c45d96b020bb26 | b7c05c98c75c4f2ed849fb0f9f2454e33c289cf1 | /immunocore/immunocore_app/views/test_serialized_views.py | dc0f7eac2f85f5852515e50a1631d5907cf81bcc | [] | no_license | enric-serra-sanz/immunocore_app | 15a8dcb02e020edf2bf308d7751fe10f15386a56 | fca18545de132a145b8ddc89fd320c3e4c190957 | refs/heads/master | 2021-05-22T14:04:50.270425 | 2020-04-04T10:20:14 | 2020-04-04T10:20:14 | 252,956,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from django.test import TestCase
from rest_framework.viewsets import GenericViewSet
from rest_framework.mixins import (
CreateModelMixin,
ListModelMixin,
RetrieveModelMixin,
UpdateModelMixin,
)
from .serialized_views import GeneViewSet
class GeneViewSetTestCase(TestCase):
def setUp(self):
... | [
"enricserrasanz@gmail.com"
] | enricserrasanz@gmail.com |
d0c0ada98ca93fd50965148c85fac09b8295da92 | 4a28995530e5766675869266704fa3b59e6b9908 | /bravo/tests/infini/test_packets.py | f50d0439be585dfeb0bfd3b52df85d8a54feeb0c | [
"MIT"
] | permissive | CyberFlameGO/bravo | e732dc87309e98e52fb02195d542f3105486b9c8 | 7be5d792871a8447499911fa1502c6a7c1437dc3 | refs/heads/master | 2021-12-04T02:04:00.138404 | 2014-09-09T04:43:18 | 2014-09-09T04:43:18 | 415,181,334 | 0 | 0 | NOASSERTION | 2023-08-16T22:12:36 | 2021-10-09T02:34:28 | null | UTF-8 | Python | false | false | 989 | py | from twisted.trial import unittest
from bravo.infini.packets import packets, parse_packets
class TestInfiniPacketParsing(unittest.TestCase):
def test_ping(self):
raw = "\x00\x01\x00\x00\x00\x06\x00\x10\x00\x4d\x3c\x7d\x7c"
parsed = packets[0].parse(raw)
self.assertEqual(parsed.header.iden... | [
"MostAwesomeDude@gmail.com"
] | MostAwesomeDude@gmail.com |
2f897852f4c5d72497a3da7fcc8a2d2c6ffee6d6 | 2c9b638b9efac1ce53e6a3f1b859d3e4cb606d92 | /tests_unit/test_cli_support.py | 326a2fd4290e5a3ad978b941c67e8e2fd96a89ad | [
"CC0-1.0"
] | permissive | HalfDeadPie/labelord_halfdeadpie | 3a6087d6e9cb3f7f0bc4e29195389c5d6852101a | d7d33c520926c6919a330e62a6336841ce881853 | refs/heads/master | 2021-03-19T16:53:57.588418 | 2017-11-30T12:51:32 | 2017-11-30T12:51:32 | 107,234,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | import pytest
import click
from labelord import cli_support
from labelord.cli_support import Label, is_named
from tests_unit.conftest import invoker
def create_label():
"""Test the label creating"""
label = Label('test','black')
assert label.n == 'test'
assert label.c == 'black'
@pytest.mark.paramet... | [
"stefusim@fit.cvut.cz"
] | stefusim@fit.cvut.cz |
655336405110736f512110ebd9c030bcf75f08fa | c09b2a634dabfc458f1d0aae9bf792b4d3bf6a3a | /treehouse/Django/learning_site/courses/migrations/0002_step.py | 68a908dce3b00227124bdda8aec3cf6cd7d9558e | [] | no_license | kadensungbincho/Online_Lectures | 539bed24e344a6815e090cd0bda194db9fa801cd | 21afbfe9c4c41a9041ffedaf51c6c980c6e743bb | refs/heads/master | 2023-01-12T18:59:05.128000 | 2022-02-20T13:04:45 | 2022-02-20T13:04:45 | 124,209,787 | 2 | 1 | null | 2023-01-07T20:04:16 | 2018-03-07T09:11:09 | Jupyter Notebook | UTF-8 | Python | false | false | 825 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-17 01:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0001_initial'),
]
operations = [
... | [
"kadensungbincho@gmail.com"
] | kadensungbincho@gmail.com |
e2a6c5df7b7cd9517f22a4bb01c0c90576fa220c | 20abb5de118e1bb821152125c0cd176a4c905336 | /src/sicuro/nazgul.py | c6992a209a576f601e5325da15c4f54e70f71e89 | [
"MIT"
] | permissive | beenum22/sicuro | c8dc3447d1cfb1df83340aaa1ea68a627ab6f5f4 | 48860ff37ad1669ba64b8a4a9089f03e85e6e747 | refs/heads/master | 2021-06-19T12:11:18.465776 | 2021-04-02T18:52:27 | 2021-04-02T18:52:27 | 145,160,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from Crypto.Protocol.KDF import PBKDF2
from Crypto import Random
from Crypto.Util.Padding import pad,unpad
from Crypto.Random import get_random_bytes
from Crypto.Cipher import AES
import base64
import logging
import codecs
logger = logging.getLogger(__name__)
class Nazgul(object):
def __init__(self, key, data):
... | [
"muneeb@ng-voice.com"
] | muneeb@ng-voice.com |
039cac7b768bb157fd2e8b5309799b9bf104f879 | 7fd44c4d6bb626926221d8d9620bf96740df11ae | /141_LinkedListCycle.py | 7d505056fe99ae102554a5a49b6a5e18b81ae364 | [] | no_license | mansidabhole/leetcode | 0bd280c781cfadd99cdd427304fa55e33de62998 | af75400aba89dc0be88a18a030b942005eb6278a | refs/heads/master | 2020-04-15T18:23:47.724617 | 2019-02-16T20:56:07 | 2019-02-16T20:56:07 | 164,911,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def hasCycle(self, head):
if not head:
return False
ptr1=head
ptr2=ptr1.next
while (ptr2!= None and ptr2!... | [
"prdmansi@gmail.com"
] | prdmansi@gmail.com |
fd3a588f74b00bfeeca3294cbcecee86898db09f | 50e8fbf1f9d0edba1a427644dacdee6f9228605e | /blog/urls.py | 6d38c09b638c73cfec2458916f65abbfe338272a | [] | no_license | kratzjgy/regex_url | 60995fa8a2106efe948eebf0e6f6d98119432518 | e22c7a9e4344ac22b6a842dd46c85431038fb307 | refs/heads/master | 2020-04-18T07:08:52.724742 | 2019-01-24T10:37:28 | 2019-01-24T10:37:28 | 167,350,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.post_list),
]
| [
"guyoungjung@Guui-MacBook-Pro.local"
] | guyoungjung@Guui-MacBook-Pro.local |
eafec4733775b023c1b2b9de75a58d4fa681f74c | 6c53847f9956edc8f31b23c24b1786d1b9789f03 | /gps-server-master/setup.py | d313f9422a4ec8e4b70cb05bc8e2ad640ac49b23 | [] | no_license | kunal1510010/Quikmile | c64a9264798cf834aaf32ecb4653b9b81dab0dd5 | 244d2749eb8438ce858de51c088a52ca3de58992 | refs/heads/master | 2022-12-12T08:03:50.628252 | 2018-11-29T15:24:46 | 2018-11-29T15:24:46 | 159,226,383 | 0 | 0 | null | 2022-12-08T02:27:44 | 2018-11-26T20:10:20 | Python | UTF-8 | Python | false | false | 580 | py | from pip.download import PipSession
from pip.req import parse_requirements
from setuptools import setup, find_packages
install_reqs = parse_requirements("./requirements.txt", session=PipSession())
install_requires = [str(ir.req).split('==')[0] for ir in install_reqs]
setup(
name='gps-server',
packages=find_pac... | [
"kunal1510010@gmail.com"
] | kunal1510010@gmail.com |
388fdd600f19350ec4bd6f994220942643805af6 | d0e804a5afcd3f934ea043745820ab31069b34f6 | /page_object_pattern/utils/search_data.py | d6c6412ca263581bf304d3a90cc562525e64f30f | [] | no_license | juliawalczak/hotel_search_test | 79103c1ecc32cb2386c5118fcaf2b6f0e1f3968e | 9f69418b3843c2fd2bffba136e92b024ad96ef48 | refs/heads/master | 2020-07-11T12:59:58.442184 | 2019-08-26T19:21:24 | 2019-08-26T19:21:24 | 193,751,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | class SearchData:
def __init__(self, city, check_in, check_out, adults, child):
self.city = city
self.check_in = check_in
self.check_out = check_out
self.adults = adults
self.child = child
| [
"juliawalczak@users.noreply.github.com"
] | juliawalczak@users.noreply.github.com |
f62bc53a14e0b7d7234b908408e75bfd098b82f0 | 8675d3d3486358b29ec416b647e6c654223ebed3 | /commandSearch.py | c3da464bf1c053653288f60b33d125593a7298b9 | [] | no_license | hatchetProject/LipstickMiniProgram | 72a8f00362857a2a7069936cbad979c49bd8d5d5 | f514dbd332a15239b46cc65205fc340a40739dfe | refs/heads/master | 2020-04-19T23:50:38.762238 | 2019-02-01T04:11:45 | 2019-02-01T04:11:45 | 168,507,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,139 | py | def parseCommand(command,brand):
allowed_opt = ['title', 'brand', 'language','site','name']
command_dict = {}
opt = 'contents'
q=command.split()
try:
high=float(str(q[-1]))
q.pop()
except:
high=99999
try:
low=float(str(q[-1]))
q.pop()
except:
low=0
if brand!="1":... | [
"noreply@github.com"
] | noreply@github.com |
155ca21a031843068751b8ddbdcfbf24f351ae2c | 5f5ca75e5056f11d3d0420bae9f4ed83a355fb1f | /Products/migrations/0001_initial.py | a444af5decc61d0b8cd04af42e5c479055026c37 | [] | no_license | abhigupta19/Restapp | 8278231c9b76b1a757729530c9d0d96f42cdb4a8 | c280b1ed146ea0b968b8f874af3053ecabeb9999 | refs/heads/master | 2020-04-21T03:03:11.401902 | 2019-02-05T16:31:14 | 2019-02-05T16:31:14 | 169,273,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # Generated by Django 2.1.5 on 2019-02-05 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"17ume005@lnmiit.ac.in"
] | 17ume005@lnmiit.ac.in |
88e6c63af8d731a52a4a1dadce908166c7b8ca15 | d966c2cd810790d929c10d92a45f6687ed7fd468 | /b2ls_cnn2.py | 4bc3825b29cef6185dcdfa87287a4ae84301b60b | [] | no_license | caiomarcos/codes | aa58ed0a78f24c577ec3d891a1326176a97b224a | 888f52238e4ea010c9ccec86df5a923bd3dc4ed1 | refs/heads/master | 2023-07-25T14:58:37.415688 | 2021-09-01T20:46:24 | 2021-09-01T20:46:24 | 272,705,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,626 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 29 11:06:52 2020
@author: caiom
"""
# %%
# Importing modules
import numpy as np
import pandas as pd
from keras.utils import np_utils
import scipy.io
import scipy.signal
import matplotlib.pyplot as plt
from scipy.fftpack import fft
from sklearn.model_selection import train... | [
"caiomarcos@gmail.com"
] | caiomarcos@gmail.com |
080640d2f5b64be243b6d27525601a1e140be296 | 8c47b5b1e8af14561f83801ced1dac98d19d4fd9 | /ui/main.py | 8c67863ed1a3d21f6557ba6e88a6824f387f8c6e | [] | no_license | rightmousebutton/sandbox | 4662b7040fe5853b27d0cd027509b49bac27cd48 | ddaa04b1f09418b39a0795aaae5aeaf1684cb4b1 | refs/heads/master | 2021-01-01T17:04:11.781987 | 2017-07-22T00:32:12 | 2017-07-22T00:32:12 | 97,994,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | """
PEP8 linting test file
"""
def my_funnc():
"""
My test fucntion
PEP8 might take a little getting used to
"""
print("Hello world!")
print('what')
print("why")
| [
"rightmousebutton@gmail.com"
] | rightmousebutton@gmail.com |
49869b77fef23d2b4bef119a349bac2b3c4b8258 | b315056385e631e4b5a250d3c7e1c0ae32c479f0 | /illumiprocessor/__init__.py | bf0b82f71bf8a5dda73842deac3484f6c1ff42aa | [] | no_license | mkweskin/illumiprocessor | e7e20cb0d24a1d7cc89e5519e08c3e435c32a070 | 4e37e037c7b9db8c89bbafe21ca9b59ed7630211 | refs/heads/master | 2021-09-15T16:34:00.846218 | 2018-06-06T19:35:43 | 2018-06-06T19:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import
__version__ = "2.0.9"
| [
"brant@faircloth-lab.org"
] | brant@faircloth-lab.org |
89e3c5c2c55d178ad61eb93db58ca05320bd60b7 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /devel/.private/play_motion_msgs/lib/python2.7/dist-packages/play_motion_msgs/msg/_PlayMotionActionGoal.py | a5370afc34256859512ca7341d9f7c63bf486bcb | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,736 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from play_motion_msgs/PlayMotionActionGoal.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import actionlib_msgs.msg
import genpy
import play_motion_msgs.msg... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
ef164c0ec66eb86a5c0846948db758b2ec2c7a55 | 6c1b0055ea9041f0b034f0d6cba1b0fcb52c7dd3 | /tests/snuba/api/serializers/test_group.py | c9b10a121afa0b44c23b5a2cc1728c1fd6ea232c | [
"BSD-2-Clause"
] | permissive | restinpeaceinout/sentry | dd9ed768063215356c43ed028d38114c59e380d8 | e0cd92edbd4b65fd83ac5a1ffcb75aa9bb495d50 | refs/heads/master | 2023-08-23T06:55:57.057527 | 2020-10-21T20:18:51 | 2020-10-21T20:18:51 | 163,629,379 | 0 | 0 | BSD-3-Clause | 2023-09-14T06:58:58 | 2018-12-31T01:15:32 | Python | UTF-8 | Python | false | false | 12,169 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import six
from datetime import timedelta
from django.utils import timezone
from mock import patch
from sentry.api.serializers import serialize
from sentry.api.serializers.models.group import GroupSerializerSnuba
from sentry.models import (
GroupLi... | [
"macqueen@users.noreply.github.com"
] | macqueen@users.noreply.github.com |
526da7b66b7f3a0e2d31d78cfa9e1e610ce48f3b | 15e6385746ccf4b8eb6c6e302aca236021bb8781 | /BinaryTree and Divide and Conquer/le257_binaryTreePaths.py | 04f6722ba0b8cd3e57bdecab9d2bbb33d805064f | [] | no_license | akb46mayu/Data-Structures-and-Algorithms | 11c4bbddc9b4d286e1aeaa9481eb6a620cd54746 | de98494e14fff3e2a468da681c48d60b4d1445a1 | refs/heads/master | 2021-01-12T09:51:32.618362 | 2018-05-16T16:37:18 | 2018-05-16T16:37:18 | 76,279,268 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | """
Given a binary tree, return all root-to-leaf paths.
For example, given the following binary tree:
1
/ \
2 3
\
5
All root-to-leaf paths are:
["1->2->5", "1->3"]
"""
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left... | [
"noreply@github.com"
] | noreply@github.com |
09a1bd8a7dcd1624936316d0b0f5d12d27a0b11a | 02beff788d4852f688d161e3551288400d1fec74 | /problem.py | 0f2e43b8a893e21cde1fb9ea1951330af72a04bc | [] | no_license | muraliadithya/Synthesis | e7ddeae59371ae84432e950ce60bb114acaab322 | 7cf477f8b4d9977bb063a5c748f1e56f659f7807 | refs/heads/master | 2022-01-19T23:08:25.368269 | 2019-05-21T17:56:00 | 2019-05-21T17:56:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | from parsetree import *
from absformula_datatypes import *
from absformula_gen import *
from rels import *
from objs_and_imgs import *
from io import *
from utilities import *
from alternaterels import *
#from smtoutput import *
import sys
# Dictionary has to store the following key-value pairs:
# elem -> points to ... | [
"murali24adithya@gmail.com"
] | murali24adithya@gmail.com |
0fa27f3dbde72413f62234e535780a75528a0a78 | 95c136abf286d1c7a4a344a21f41f7127c8e3ea9 | /computer_architecture/task_2/traceConverter.py | 22d1daee72a7e246885258cfda2bf65045c6a655 | [] | no_license | lynnewallace/university_projects | 16bb31ecca173a1cc643207aaa6d32321a9e82af | 5ea7e188d1c9c07bf03ab4754388dbaf1308207f | refs/heads/master | 2021-01-21T04:25:07.576928 | 2016-07-30T20:39:37 | 2016-07-30T20:39:43 | 10,479,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | #s0829961
#traceConverter.py
#takes in argument - filename
#collects information about the cache configuration and creates a list of traces
#this is given to the cache simulator
import collections
import sys
class TraceConverter:
def converter(self,filename):
#create tuples to hold cache and access info... | [
"lwallace890@gmail.com"
] | lwallace890@gmail.com |
f3be71e40920fcd037077a0ccc436e53172b0db7 | 65bf0dab76d3b45c41b4b9ddd6e427366511111e | /stringJoinerExample.py | 8be28dc85bb6760c8467aac284f1b44b4612e607 | [] | no_license | chilango-o/python_learning | 34beec252d687f3f4fd2a7608acbaf3970a0bb69 | e7cb8d71b7055e9293145f98af38fa01888d9176 | refs/heads/master | 2022-11-30T15:15:35.708155 | 2020-08-11T01:24:14 | 2020-08-11T01:24:14 | 285,450,439 | 0 | 1 | null | 2020-08-11T01:24:15 | 2020-08-06T02:11:39 | Python | UTF-8 | Python | false | false | 171 | py | def strJoiner(str1):
print(str1)
str2 = 'world'
str1 += str2
print(str1)
return str1
exmpl = 'hello'
result = strJoiner(exmpl)
#print(result) | [
"ismael@ca.taly.st"
] | ismael@ca.taly.st |
81e1f2e42200c29c59d886f7ef9b518383a36c1b | 18ad52cad842741c37a98f2653fa05b6deea4c25 | /venv/task 2.py | c3d59022bc3bfcdf9e1056af0627e2126cb27d77 | [] | no_license | MaryAyla/training-101 | dffd343a48ddae5f2e63121af3a51eb3eaeaa936 | bfac2e575bc3369467f73b0271703567c344b7b4 | refs/heads/master | 2020-04-25T23:44:40.140432 | 2019-02-28T17:22:03 | 2019-02-28T17:22:03 | 173,155,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #implement a functuin that takes as input three variables,and returns the largest of the three.Do this without using
# the pythonmax () function.
def large_var(x):
var=[J,K,L]
var.sort()
largest=var[-1]
return largest
J=int(input("please enter variable1: \n"))
K=int(input("please enter variable2: \n" ))... | [
"carolinemwende92@gmail.com"
] | carolinemwende92@gmail.com |
ec1d247a817e6d22d13b5965cb4b2e0360ee1127 | f31f7578de53a376606d2b76b00fb5bfc78616b6 | /management/views.py | 1aca4165feafd8200b8a2ba4d05dd90e2203df0f | [] | no_license | Narongded/dormlab | d1b6eac2b1c5b9e3854fdac8a3a80593f4daf593 | a679aab6dbc201d537dfb22164879e6e73b4ca83 | refs/heads/master | 2023-04-15T07:03:57.730961 | 2021-04-25T16:06:41 | 2021-04-25T16:06:41 | 263,393,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,747 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from .models import Room, Contracting,... | [
"32951598+Narongded@users.noreply.github.com"
] | 32951598+Narongded@users.noreply.github.com |
5f17776f0d418e002f2e8eccfa4a50e6b6f107f7 | 58e506bcaba3cd6700ac761eca41d73a9758f50d | /saltlint/rules/StateDeprecationDockerNetworkPresent.py | 2d0bc6d3700f599c03ed5d0a2d63d28fc4b6dad0 | [
"MIT"
] | permissive | Poulpatine/salt-lint | f4b604197a70e645b1c5aec2d1137ecd17b8c908 | 304917d95d2730e7df8bd7b5dd29a3bd77c80250 | refs/heads/main | 2023-02-13T14:30:26.094334 | 2020-12-09T20:35:57 | 2020-12-09T20:35:57 | 326,970,587 | 0 | 0 | NOASSERTION | 2021-01-05T10:56:22 | 2021-01-05T10:56:22 | null | UTF-8 | Python | false | false | 287 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020 Warpnet B.V.
from saltlint.linter.rule import DeprecationRule
class StateDeprecationDockerNetworkPresent(DeprecationRule):
id = '911'
state = 'docker.network_present'
deprecated_since = '2017.7.0'
version_added = 'develop'
| [
"noreply@github.com"
] | noreply@github.com |
774f3fd0d4383002a851674e0c6523e3f88ca729 | 3dbd97d57f5d73b9665db20a926a67459ad9282a | /penny flip.py | 8650c6fdbc7722179af162f8743a76bd07c1b616 | [] | no_license | hnoskcaj/WOrk | 91b22d08ed8c9948f90bcadefb913af2331c9824 | a68c1e29153adecaa6c982b967dee24010172cec | refs/heads/master | 2021-07-15T14:58:41.602561 | 2019-01-30T15:35:14 | 2019-01-30T15:35:14 | 147,697,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import random as r
while round < 10:
ticker = 0
while count < 10
x = randint(0,1)
if x == 1:
ticker += 1
count += 1
ticker += 1 | [
"43040830+hnoskcaj@users.noreply.github.com"
] | 43040830+hnoskcaj@users.noreply.github.com |
8eb48d9b6970ac7654c600e508e62f7a55ccac7b | d7c3ec781db5a1019c6695b4f7a336e774a87525 | /src/webscrape.py | dc6f2c64afc4af0d080ae7d75259231413a1505e | [] | no_license | awkyu/YahooWebScrapeTest | ae73a254700c2e238c602222e98bf95b3a74eb8b | 0c33cdc5faf21e42633f220c2904145cd10895f3 | refs/heads/main | 2023-02-19T08:21:56.827108 | 2021-01-21T07:14:55 | 2021-01-21T07:14:55 | 331,541,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,046 | py | import requests
from bs4 import BeautifulSoup
from collections import deque
import pandas as pd
import numpy as np
class YahooWebScrapeInstance:
"""
An Instance of a webscrape of recent prices of a given stock symbol
Ex: YahooWebScrapeInstance('ISRG')
"""
def __init__(self, stock_symbol):
... | [
"awkyu@ncsu.edu"
] | awkyu@ncsu.edu |
2131681365efc05ba1105dd453257b1ea60ea71e | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/compute/org_security_policies/associations/create_associations_test.py | d67314583ec45ddf3221e10dda33832b9c249e68 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 4,684 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
828d680c2d1538b21c4b8b9195efc0e26cac2b28 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2023/0321_40_Combination_Sum_II/myunghak.py | 8d64f62cc7c6d9a896ef5565521251d1cff3a514 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 796 | py | # 답보고 풀었습니다. 풀이 안해주셔도 되요
from collections import deque
class Solution:
def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]:
def backtrack(start, target):
if target == 0:
result.append(list(dq))
return
fo... | [
"noreply@github.com"
] | noreply@github.com |
70d66948b2005ab7cc105c4e0b5de97bf1cc8383 | 584aefa111a279250bde4d2d0fa3fc64fda8706b | /models/layers/layers.py | 87a1bd515be2a7423a0309a1e2f3c7cf306793cc | [] | no_license | shotakikuchi/GenerativeDeepLearning | cce2b851ba722b44432566a7b5bc02d1c950c0f7 | a67bc43986df63065e81a3a840160e25099653bc | refs/heads/master | 2020-07-02T16:43:09.508058 | 2019-08-17T13:10:14 | 2019-08-17T13:10:14 | 201,592,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import tensorflow as tf
from keras.layers import Layer, InputSpec
class ReflectionPadding2D(Layer):
def __init__(self, padding=(1, 1), **kwargs):
self.padding = tuple(padding)
self.input_spec = [InputSpec(ndim=4)]
super(ReflectionPadding2D, self).__init__(**kwargs)
def compute_output... | [
"goodtime683@icloud.com"
] | goodtime683@icloud.com |
722e3760e308ddbb94ac87c3a97c479c48429f9c | cc5226e149aa9717f0073a1b60e2a752d4e8389f | /registry/registry/urls.py | 9b238ff0ebd80060115baafb77a3c9e6c89e5577 | [] | no_license | manojvarmarudraraju/CivilRegistry | 44856d4a613b4b1e9e3b110c4b4c0107e3932c14 | f8e53d06f870bc88ae88253fcbe3849be49c2fa0 | refs/heads/master | 2023-01-22T12:07:10.284442 | 2020-11-28T12:31:46 | 2020-11-28T12:31:46 | 316,729,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """CivilRegistry URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"manojrudraraju007@gmail.com"
] | manojrudraraju007@gmail.com |
09de35b9c9569a3d6a18907aa2a1c17e263a55cb | 32f34baaa620d6ec945a08c842123a8872c7a2a5 | /blog/admin.py | 31122591ac74349107d324ee346326f92261f9a7 | [] | no_license | devArist/bankapp_kivy | e3590723643d30746c3ffce9d70868b3524b6e30 | 701db3a856722a618fbcfa8fbd0b606415265ca9 | refs/heads/main | 2023-07-18T06:38:00.148288 | 2021-08-27T14:05:47 | 2021-08-27T14:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.contrib import admin
from blog import models
from django.utils.safestring import mark_safe
# Register your models here.
@admin.register(models.Blog)
class BlogAdmin(admin.ModelAdmin):
list_display = ('title', 'imageblog')
search_fields = ('title',)
def imageblog(self, obj):
return ma... | [
"aridev97@gmail.com"
] | aridev97@gmail.com |
24e44fad7a0778bc157f14c04038f3d5ea2422d8 | 0f1e33ad30fc9b23f21ade9dee267592c1d430e6 | /pollsapp/apps.py | d0981b7af17696c289d1dc6edf3e6c60c7eb3853 | [] | no_license | yoshi47/poll | 7ddec1e567a9a6711ddcf852bbb533ec9dd0373e | cff7c7ae49546469740c4b816c8fef2b5f5d78ff | refs/heads/master | 2023-07-05T20:05:52.499237 | 2020-05-29T06:13:54 | 2020-05-29T06:13:54 | 267,043,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class PollsConfig(AppConfig):
name = 'pollsapp'
| [
"yoshix47@gmail.com"
] | yoshix47@gmail.com |
e0e5613b292d5c751dd9129c0ea1d1af5c946c44 | 47c9aaeb2088b8852344aab2435d52252f9dd692 | /CoLinSimulation/te.py | 711c9a0ddcf86cd99c20ac2b69b312920bad2b83 | [] | no_license | scheeloong/Multi-arm-Banidt-Exp3 | 608a910821cef9d949c94737d8d6a476c23e984b | 9afe8390c8ac42bb92462d05d96650fb1363f842 | refs/heads/master | 2020-03-24T13:25:10.322575 | 2015-08-07T14:43:33 | 2015-08-07T14:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import numpy as np
from scipy.linalg import sqrtm
import matplotlib.pyplot as plt
from scipy.optimize import minimize
import math
def vectorize(M):
temp = []
for i in range(M.shape[0]*M.shape[1]):
temp.append(M.T.item(i))
V = np.asarray(temp)
return V
def matrixize(V, C_dimension):
temp = np.zeros(shape = (C_d... | [
"qw2ky@virginia.edu"
] | qw2ky@virginia.edu |
fa3f251fb424199862c850ed710955fcd5306df6 | b6cd2e9cfd560e369193bcb6f5744097adcd1f21 | /system/core/adb/test_device.py | c893ad42ddded053ee20a2a869b026ca68283dcc | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | peterdocter/ShakaAapt | 452eff61aea0cecd929baba12b2f2f87502055f1 | 3e54e864a526bbbe78f3ce3c3e0862772f091f21 | refs/heads/master | 2021-01-16T20:43:13.361947 | 2015-09-22T21:47:43 | 2015-09-22T21:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,020 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015 The Android Open Source Project
#
# 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/LI... | [
"rover12421@163.com"
] | rover12421@163.com |
84556777071ffab5b8c1f579290547ce3213c2be | 600864e8ce22adc886dfde3ede6b4306832b4c24 | /aws/fetch_params.py | 53781266fe7a31eda5a3a090a09e19e0c4559507 | [] | no_license | BenVosper/scripts | d8096211cd4ad7535fae634c0b53680a6c5f9626 | 37b4fea9aafa355f993cc3bf672b20422fb248dc | refs/heads/master | 2022-06-18T08:24:44.235239 | 2022-05-30T10:56:31 | 2022-05-30T10:58:31 | 136,738,763 | 0 | 0 | null | 2019-02-23T23:35:26 | 2018-06-09T16:16:55 | Python | UTF-8 | Python | false | false | 4,123 | py | """
A command-line utility for fetching Parameter Store parameters via the AWS CLI.
Allows the names, types and values of all parameters matching a given name filter to be collected.
Usage:
Provide:
<name-prefix> - The string by which to filter parameters
Returns an array containing the names, type... | [
"ben-vosper@hotmail.com"
] | ben-vosper@hotmail.com |
cb5972ea2c35dab37bc02e33f2ec04b71cbf05a5 | 0cd020286a25a8570e09ecc972cc485dd9f7fb1d | /SDE_VAE/SDE_VAE_Tools.py | 9e131ec48657a58bda26fc88ee1c5855a70196b4 | [] | no_license | WN1695173791/SML-Projekt | 5873b5ad13868ab6426167fafc4787e84ad56405 | 8a57aab6e04d6c7bd4b9d1b3719ef5cd52555cab | refs/heads/main | 2023-02-28T00:45:51.714951 | 2021-02-06T16:49:31 | 2021-02-06T16:49:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | #import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from math import sin, cos, sqrt, pi, floor, ceil, exp, log
from keras import backend as K
########################################################
# Definition der SDE_VAE
class SDE_Variational_Autoencoder(tf.keras.Model):
def __init__(s... | [
"ben.deitmar@gmail.com"
] | ben.deitmar@gmail.com |
f66055e54866e6ecf77b3f08988306d49b6c3816 | cdd97d82cff251227505da45f1a144fb71ffd190 | /그래프 이론/탑승구.py | 80ac4e5c4beb5b861fb1157c342c8ce0672e9008 | [] | no_license | Silky-ai/codingtest_book_2020 | 92b4977ffa0b70ccc03b1e3d4d2cd2aa6cd39ba1 | 40c3a4f1e520bf8ef6d4f4858895075f85036a47 | refs/heads/master | 2023-02-24T04:56:17.403958 | 2021-02-02T13:09:36 | 2021-02-02T13:09:36 | 333,051,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | def find_root(root,x):
if(root[x]!=x):
root[x]=find_root(root,root[x])
return root[x]
def union(root,a,b):
a=find_root(root,a)
b=find_root(root,b)
if(a<b):
root[b]=a
else:
root[a]=b
g=int(input())
p=int(input())
root=[0]*(g+1)
for i in range(1,g+1):
root[i]=i
cnt=0... | [
"59557453+GRAIM-ai@users.noreply.github.com"
] | 59557453+GRAIM-ai@users.noreply.github.com |
6e7970e14a305c5d63ae53fcbed1e414bdc0030c | 9cf34ee45a809c7344d716ce9ecc8cdcb368a373 | /challenges/difficult/Challenge_1/solution.py | 50ba9b505b8e4e40e5fc69535f99f30857f28009 | [] | no_license | Domlenart/DailyProgrammer | e5fed1d05303563b8e920ea33d7bebddfe5ab9b0 | 933abeadd6262a3916414bcb635213054952972b | refs/heads/master | 2021-09-07T05:33:15.856422 | 2018-02-18T04:40:53 | 2018-02-18T04:40:54 | 119,336,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import random
def guess_number(low=0, high=100):
guess = random.randint(low, high)
print('Is your number %s' % guess)
user_input = input('> ')
if user_input == 'correct':
pass
elif user_input == 'higher':
guess_number(low=guess, high=high)
elif user_input == 'lower':
gu... | [
"dl7cz@virginia.edu"
] | dl7cz@virginia.edu |
6094e58198120626f12f5aa95fe32e016cc64ba5 | 20ed6e74d227e097a924e050bc82682381739fc7 | /src/tx/functional/list.py | 45c2627a517eeef89d294e0f38dfc335f6b719e2 | [
"MIT"
] | permissive | RENCI/tx-functional | c341f38293a889e125824822c47b0d1f1f3f87fb | 45427ab06b7d029940e250a5f189997a8111d3f0 | refs/heads/master | 2022-12-11T11:53:34.830442 | 2020-09-05T17:56:40 | 2020-09-05T17:56:40 | 264,998,389 | 1 | 1 | null | 2020-05-18T17:14:53 | 2020-05-18T16:32:09 | Python | UTF-8 | Python | false | false | 717 | py | from .traversable import Traversable
from typing import Generic, TypeVar, Callable, Any, List
from .functor import Functor
from .applicative import Applicative
from .utils import foldl, foldr, Arrow
S = TypeVar("S")
T = TypeVar("T")
def rec(ma: List[S], b: T, f: Callable[[S, T], T]) -> T:
return foldr(f, b, ma... | [
"xuh@cs.unc.edu"
] | xuh@cs.unc.edu |
a1078caacaf90cd14c52f3b2707f82b5a6964bf6 | 1d530e305d94eb98b64dadbfdcc60cbb0f978d76 | /stopWatch.py | 314ddaf863e11773d98a01e3488f2d815e817120 | [] | no_license | RuiQin/small-games | 04601f6ece4f0ac52ce655b1e2b15f622ea6b723 | 94e2cd187f2300bcdac0237d3dac21ba7802aacc | refs/heads/master | 2020-04-12T17:44:14.450082 | 2015-08-04T17:52:43 | 2015-08-04T17:52:43 | 38,903,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | # a simple digital stopwatch that keeps track of the time in tenths of a second.
# The stopwatch contains "Start", "Stop" and "Reset" buttons. It has two numerical
# counters that keep track of the number of times that you have stopped the watch
# and how many times you manage to stop the watch on a whole second ... | [
"qinr@Ruis-MacBook-Pro.local"
] | qinr@Ruis-MacBook-Pro.local |
d38a7dcfe11397a978284947158981999ed82f30 | fdac3070794339b9401a2d6217896b4fc713ecb6 | /codeSnippets/settings.py | eafc6f85d2ed7efb777e432ef1aa6031e570bebc | [] | no_license | rixgithub/codeSnippets | d8c41783f7114042d1bdde075e4079e7d4263208 | 86e7c6f3a45e08d409130d6be0ddedb6027bcaa6 | refs/heads/master | 2021-01-11T13:38:14.772393 | 2017-06-22T22:16:06 | 2017-06-22T22:16:06 | 95,042,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | """
Django settings for codeSnippets project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"rickygrams@me.com"
] | rickygrams@me.com |
933a002ab324b2adef7d0dbfa19291d879c51704 | 35788f5ca40e5b9e14d4700084e0f3a7fd7f3033 | /basic/conversion-teacher.py | a8f091bdf171ca3f3c8dc193324984e020ad5ccf | [] | no_license | yunnyisgood/django-monaco | 0c097385c0497b2bcbd66571f16a84d53b4913db | b83e9702a064f81d76be35a2e8f4c02c03b5255e | refs/heads/master | 2023-05-23T03:53:26.934348 | 2021-06-14T14:29:43 | 2021-06-14T14:29:43 | 370,548,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | import pandas as pd
class Conversion(object):
df = pd.DataFrame()
# dp = ()
@staticmethod
def dp_create() -> ():
# 여기서 프로퍼티(self)를 사용하지 않는다 -> 객체 메소드가 아닌 staticmethod
return (1, 2, 3, 4, 5, 6, 7, 8, 9)
@staticmethod
def dp_to_list(dp) -> []:
return list(dp)
@stat... | [
"cyeon0801@gmail.com"
] | cyeon0801@gmail.com |
2a15671d6f800b0ed904eda1e0736d12f02e3e02 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/39/usersdata/120/13433/submittedfiles/dec2bin.py | 9a40134fda961c27492e0c85f0f6f823e4b3bc9e | [] | 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 | 260 | py | # -*- coding: utf-8 -*-
from __future__ import division
d=input('digite um numero na base decimal:')
cont=0
k=d
while k>0:
k=k//2
cont+=1
n=cont
i=0
soma=0
r=d
while i<=(n-1):
r=d%2
d=d//d
b=r*(10**i)
i+=1
soma=soma+b
print soma | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b51b8b4d7c792b1c3bb79c05f7d237634d8c856c | 5e71bda80490b3bca95fa421c0f188349746609b | /node_modules/webpack-dev-server/node_modules/fsevents/build/config.gypi | 0a130cca9746272f8852bf9ac39f507a47bfb148 | [
"MIT"
] | permissive | alianneElm/MovieList-Vue | c0adb139377b0f52304b3ff13a39e4a5b4b4466b | f144cd660e3e48205564288c9b04a4c0c3504a38 | refs/heads/main | 2023-04-06T02:57:11.526076 | 2021-04-18T20:40:11 | 2021-04-18T20:40:11 | 359,247,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,730 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"alianneelm@yahoo.se"
] | alianneelm@yahoo.se |
f323beb0e47d540bf20969a4f448b82fc3bec9a2 | f2385eaf6166509beec9c98963f43af2b029d3cb | /test_cases/documents/hibari1121_sample.py | eb5c5d985df24357d3fc423c68a3ba79ac3b27c6 | [] | no_license | tilmitt11191/tensorFlow_test | 84d169f3023b5a77322746105c58889b2b8a923a | 851f2436486eeb8ef4d7924bd8f8ca94b8d5e6a8 | refs/heads/master | 2021-01-24T18:58:31.033058 | 2017-06-21T08:11:20 | 2017-06-21T08:11:20 | 86,155,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py |
"""http://hibari1121.blog.fc2.com/blog-entry-57.html ."""
from gensim import corpora, models
import numpy as np
from numpy import random
random.seed(555)
from scipy.cluster.vq import vq, kmeans, whiten
from sklearn.decomposition import TruncatedSVD
from collections import defaultdict
article = open('data.txt')
model... | [
"tilmitt11@yahoo.co.jp"
] | tilmitt11@yahoo.co.jp |
7e64a456bfd4f4beeaeaa4529eea9d1ba73dbc57 | c4c65934631c68808671de8c0a967f3a8f704849 | /FEFLOW_ReadFEMASCII_Plot_Mesh.py | a35fed113549d41a126acb56ac61a2b3cca4ec4d | [] | no_license | Coastal0/FEFLOWtoPyGIMLI | a7e5fa811a3fb827ceb0a72a760ff5ec34a994b1 | 7aae1b7fda4ef8cf9b7329d741d7e6621c35b2d3 | refs/heads/master | 2021-06-22T23:23:04.526649 | 2018-11-08T06:34:07 | 2018-11-08T06:34:07 | 156,659,487 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 18 09:59:17 2018
@author: 264401k
"""
import numpy as np
from tqdm import tqdm
from matplotlib.patches import Polygon
from matplotlib.collections import PatchCollection
import matplotlib.pyplot as plt
import tkinter as tk
from tkinter import filedialog
... | [
"noreply@github.com"
] | noreply@github.com |
808711b65837914e0d6b719cad3c202f61270ca7 | 5bc152ca6df9f7759ae631e24a99581c49e763d9 | /24-reverse-linked-list.py | 89ea767391dd0c927d6d962a8cda4fdbb0a01bf9 | [] | no_license | aowongster/interview-cake | aa909a2f3ec2f74860e11764f9bc0b2141b94978 | 20eb849442f5783abf9102231af34e0ec4524f3f | refs/heads/master | 2021-01-22T20:50:26.845610 | 2017-04-04T04:58:00 | 2017-04-04T04:58:00 | 85,368,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | #!/bin/python
"""
Write a function for reversing a linked list ↴ . Do it in-place ↴ .
Your function will have one input: the head of the list.
Your function should return the new head of the list.
"""
class LinkedListNode:
def __init__(self, value):
self.value = value
self.next = None
def __... | [
"awong@webroot.com"
] | awong@webroot.com |
1b8ca6d4285b1bf2ba6e8ef64cd2e7b25a83d932 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/idlelib/idle_test/test_pathbrowser.py | c74b4f69f1a9d7f33751f283cef5ff88fc8318bc | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 652 | py | # 2015.11.10 21:36:26 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/idlelib/idle_test/test_pathbrowser.py
import unittest
import idlelib.PathBrowser as PathBrowser
class PathBrowserTest(unittest.TestCase):
def test_DirBrowserTreeItem(self):
d = PathBrowser.DirBrowserTreeItem('')
... | [
"info@webium.sk"
] | info@webium.sk |
78c0fd97049faf0fe92e5e044a45d78deffaa5ee | f3e4a2f95b57cb4bddc5c883aece32702090fd83 | /src/config.py | 7c85f691ccce737ae57b43b5300f9f56e9a48dd9 | [] | no_license | brooklinsantosh/Credit-Card-Lead-Prediction | acf9c056f8946e5090e1706121ca4c3a699c5ef8 | 6f39f43807c3eea435a6bff16147b4d549873d1e | refs/heads/master | 2023-05-08T16:24:03.718330 | 2021-06-02T14:15:13 | 2021-06-02T14:15:13 | 373,078,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | TRAINING_DATA = "../input/train_s3TEQDk.csv"
TEST_DATA = "../input/test_mSzZ8RL.csv"
SAMPLE_SUBMISSION = "../input/sample_submission_eyYijxG.csv"
TOTAL = "../input/total.csv"
TRAIN_PRED = "../model_preds/train_pred_df.csv"
TEST_PRED= "../model_preds/test_pred_df.csv"
OUTPUT = "../output/final_sub.csv"
TRAIN_DROP =... | [
"brooklinsantosh@gmail.com"
] | brooklinsantosh@gmail.com |
be9830d4aef891a087416064e6c7f656a5bac301 | 78d5c1a653c8c88cd0f5a06d8fcab485607775ef | /submission/mp/states/sequences.py | 8c772d9dd69c192a5b5de75d20c3eb262a204623 | [
"BSD-3-Clause"
] | permissive | ipab-rad/RRC21 | 9eb0e36cabc3372fd15366a76f1484fabb60e11a | 32aa3108eadd2fef527ea4150064a476f0661e73 | refs/heads/master | 2023-09-04T05:57:30.725292 | 2021-07-27T13:29:16 | 2021-07-27T13:29:16 | 380,518,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,316 | py | from mp.align_rotation import roll_and_pitch_aligned, get_yaw_diff
from .base_states import *
from .state_machine import State
import numpy as np
class CenteringPrimitiveState(State):
"""
This class implements a primitive state to center the object in the
robotic arena.
"""
def __init__(self, env)... | [
"adityakamireddypalli@gmail.com"
] | adityakamireddypalli@gmail.com |
8c9d4bf9ba9fcab03cab1e236d1a6a8d2b04ecc2 | b4c4bb7ea302084cc0a381595bbc2a3563e48e4d | /reports/graphs/diaperchange_lifetimes.py | d095f1adbae5f044487828099b4c29197e5bd24b | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | niti15/baby | a97f31729bd00e473cf8918d9d59eef2cb720b88 | 74c6dab8243a9b69c41e76d1025b5592969bfc20 | refs/heads/master | 2022-12-15T17:44:59.356097 | 2018-02-05T11:45:27 | 2018-02-05T11:45:27 | 119,700,928 | 0 | 0 | BSD-2-Clause | 2022-12-07T23:48:27 | 2018-01-31T14:53:29 | Python | UTF-8 | Python | false | false | 1,359 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import plotly.offline as plotly
import plotly.graph_objs as go
from reports import utils
def diaperchange_lifetimes(changes):
"""
Create a graph showing how long diapers last (time between changes).
:param changes: a QuerySet of Diaper Chan... | [
"systems@cogzidel.com"
] | systems@cogzidel.com |
7316502afc84f5131380f552c1cb161afa993ec6 | dae2e18c9076d91680ef5e9ee9ad7aa155d5071d | /dm_control/locomotion/walkers/rodent.py | b9d29b106f66945117f6a5596d42b2300a243d74 | [
"Apache-2.0"
] | permissive | wangsd01/dm_control | 5c233770524ef2fbb4c358d619934e2d76b990bf | d6f9cb4e4a616d1e1d3bd8944bc89541434f1d49 | refs/heads/master | 2023-08-16T16:08:28.134204 | 2023-07-20T11:24:16 | 2023-07-20T11:25:09 | 293,401,717 | 0 | 0 | Apache-2.0 | 2020-09-07T02:23:31 | 2020-09-07T02:23:30 | null | UTF-8 | Python | false | false | 12,164 | py | # Copyright 2020 The dm_control 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 or agreed to i... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f6ed307305ac991a2a922af645d6169197b603d8 | d2fedd2085cbdbd5e54228abf0633001989787cc | /36.COUNT PALINDROMIC SUBSEQUENCE IN A RANGE.py | 55ab57ce87bc84e1d63299856106adef6cff022f | [] | no_license | KumarAmbuj/dynamic-programing-intermediate | 228d25205d370ebc329eaf6ffbcfbc2853b18abe | 4b40f322f57762e0cf264fb2024ae56d1fa3243b | refs/heads/main | 2023-02-23T20:42:26.865855 | 2021-01-23T11:10:44 | 2021-01-23T11:10:44 | 332,188,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | def findpalindromicsequence(s,l,r):
n=len(s)
dp=[[False for j in range(len(s))] for i in range(len(s))]
for g in range(len(s)):
i=0
for j in range(g,len(s)):
if g==0:
dp[i][j]=True
elif g==1:
if s[i]==s[j]:
... | [
"noreply@github.com"
] | noreply@github.com |
4d8240418304f9dfa0c726444e602ff8ba10a354 | 3b5e38435817b253c1e39b1ec9a51b17988d8f06 | /note/models.py | 0408ff9642afebf31f65c03c367a36a7ec067715 | [] | no_license | leanneshen1/misdj001 | aff0d867076c16388e36d01296322799b6139caf | 13f210de4c0da72c485a75cff1911071fa9cbb4c | refs/heads/master | 2020-08-07T17:47:45.624719 | 2019-10-09T02:31:31 | 2019-10-09T02:31:31 | 213,541,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.db import models
class Note(models.Model):
subject = models.CharField(max_length=200)
def __str__(self):
return self.subject
| [
"maganda.shen@163.com"
] | maganda.shen@163.com |
6ed907d8b507075175b110effbb758d21929ba79 | a4109644a2b9c6b678e124db6a4c9d891fea5258 | /workspace/.c9/metadata/workspace/quiz.py | 1905f75cb8acad56f1ea083066b53be308d651a6 | [] | no_license | Vic18256/file_io | b1adde9e9b9c84146ed8a952a4db0f6f278a4ebd | a943fd1f6f994729e49793223d40c6be8e54546c | refs/heads/master | 2020-04-04T13:49:07.662703 | 2018-11-26T20:40:16 | 2018-11-26T20:40:16 | 155,976,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,902 | py | {"filter":false,"title":"quiz.py","tooltip":"/quiz.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":0,"column":3},"end":{"row":0,"column":4},"action":"insert","lines":[" "],"id":4}],[{"start":{"row":0,"column":4},"end":{"row":0,"column":5},"action":"insert","lines":["o"],"id":5}],[{"start":{"row":... | [
"vherkan@hotmail.co.uk"
] | vherkan@hotmail.co.uk |
4ba7eb4c93322b4a6cb0198db2f99d512c637e26 | 62566ada9a992e02aeda4a2e3b550feded07c43b | /day_12/main.py | 96e70c65a0c8913ef440a2f1eb0c3bd5aeab3442 | [] | no_license | JaviCeRodriguez/30DaysOfPython | be3ec4c986e39159766a1bcfa28bb01c751d1771 | 9f5bedfda9e2d921d44f74403997a35eb9f4cb34 | refs/heads/main | 2023-08-22T19:15:01.879909 | 2021-10-09T04:29:02 | 2021-10-09T04:29:02 | 400,647,270 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from mymodule import generate_full_name as fullname, sum_two_nums as total, person as p, gravity as g
print(fullname('Asabneh','Yetayeh'))
print(total(1, 9))
mass = 100;
weight = mass * g
print(weight)
print(p)
print(p['firstname']) | [
"javicerodriguez@gmail.com"
] | javicerodriguez@gmail.com |
e840f131967a1a2aa72cd017fbbfeaea45a46fbc | 2f212f2f36a644bcf7466997e2e579012fb763e8 | /Diploma/Programm/additional tools/convert_to_yolo.py | 3e6ea97430299496c699bd24ecfef230982f6f05 | [] | no_license | Lolimpo/SibSUTIS | 07cfebf8df8b9ed23f456083ff867b900fb4f00c | b91ec2099ade6cacad7c67f3496ac25312eb196f | refs/heads/master | 2023-06-19T00:30:25.306618 | 2021-07-18T07:17:31 | 2021-07-18T07:17:31 | 252,069,521 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | import pandas as pd
import os
import cv2
import numpy as np
os.cur
full_path_to_ts_dataset = 'C:\\Users\\Lolimpo\\Desktop\\dataset'
# Считываем всю информацию о дата-сете
ann1 = pd.read_csv(full_path_to_ts_dataset + '\\' + 'rtsd-d1-gt\\danger\\test_gt.csv')
ann2 = pd.read_csv(full_path_to_ts_dataset + '\\' + 'rtsd-d1... | [
"thelol1mpo@gmail.com"
] | thelol1mpo@gmail.com |
0babdd6176150c28235bd4cf2d6996b00ec5a1a7 | d99c38bb459b28ba3b8246b138133f30dc78ba73 | /app/core/wires_plat_api.py | 7bec797ca825cd0e6cd7711e68cb694161278f14 | [] | no_license | NubeIO/rubix-updater-gui | 591dc6bb8071ddb0a79773d212710d9eb720e67b | 45a0f4fe9098b0c0592cd5af9503d023525b1503 | refs/heads/master | 2023-06-14T08:30:41.960793 | 2021-07-09T00:58:31 | 2021-07-09T00:58:31 | 368,785,963 | 0 | 0 | null | 2021-07-09T00:58:32 | 2021-05-19T07:47:46 | Python | UTF-8 | Python | false | false | 1,790 | py | import requests
from config.load_config import get_config_wires_plat_settings
import logging
logging.basicConfig(level=logging.INFO)
_get_config_wires_plat_settings = get_config_wires_plat_settings()
class WiresPlatApi:
@staticmethod
def get_token(host, **kwargs):
port = kwargs.get('port') or 1414
... | [
"aidan@enviroservices.com.au"
] | aidan@enviroservices.com.au |
c6fcad8aeaf833189d8109305026c27dfa450421 | 086302376bbc84bdb359a28da78acab01615a328 | /backend/Respond/wsgi.py | 1b33ab8af8436913bcb317a46d085b5d9eb5c671 | [] | no_license | dpakach/Respond | 8210fe884d314c4af3aa722f61c5af9eaf7598c7 | ada3fe3d7051157bd48766815f6a19c91fca2e19 | refs/heads/master | 2020-03-23T03:14:37.248996 | 2018-07-20T04:25:02 | 2018-07-20T04:25:02 | 141,018,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for Respond 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"suagatchhetri@outlook.com"
] | suagatchhetri@outlook.com |
c1f3622841b368a38cc2ebbc1a891f60adedeaff | c8d0af17dfb5f82359b950b9bf9628cacf248d53 | /models/Self_attention.py | f6249eb1b2ed7d7d1ac6b50439df04c85b2881bb | [] | no_license | impossible-g/UTR_VAE | 80505d88b8c1a0ffa9cccbf307f83fa06eec1f00 | 27a81c3e6db9282b02f50d674c0720bd60afabad | refs/heads/master | 2023-07-15T21:18:04.425891 | 2021-08-30T10:51:43 | 2021-08-30T10:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | import os
import sys
import torch
from torch import nn
import numpy as np
class self_attention(nn.Module):
def __init__(self,in_channel,n_head,d_k,d_v):
super(self_attention,self).__init__()
self.n_head=n_head
self.d_k = d_k
self.d_v = d_v
self.W_dict = nn.ModuleDict({... | [
"zhengwzh5@hotmail.com"
] | zhengwzh5@hotmail.com |
6ef1cd3f1417f100c9ab4f5ac11bb974ecbe5dc1 | a29f5c26a248cde56230e6927327374c025fd8e2 | /interviews/tests.py | d10c26b4d103d41a25eb1b6e313ddda14dc5b514 | [
"MIT"
] | permissive | Fabrice-64/advocacy_project | c30d737b25416043ed1b3c2ff19c28a1ccb94602 | 33eb8b71e057ea197be578020436defb015fa000 | refs/heads/master | 2023-06-02T08:38:44.276478 | 2021-06-16T10:29:01 | 2021-06-16T10:29:01 | 347,987,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,881 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Permission
from django.urls import reverse, reverse_lazy
from . import views as views
from .models import AdvocacyTopic, Interview
from accounts.models import CustomUser, Volunteer
from offici... | [
"fab.jaouen@gmail.com"
] | fab.jaouen@gmail.com |
17e41741acf2c53e5af3b84136bdd4fb2cea28cd | ed6b358cfaf9bc61dab608b117c2cf0abcf90854 | /xichuangzhu/controllers/user.py | 5cf56bb8f0920a95c7c74bd335ae0e05c71f22c6 | [] | no_license | wallaceyuan/xichuangzhu | faa8fdec2a670661165d351ac3311126c8fc91e3 | ec45aa8b3f4b1e6b9b70537e270be89e97034c99 | refs/heads/master | 2021-01-20T21:34:45.949361 | 2014-05-23T07:29:50 | 2014-05-23T07:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | # coding: utf-8
from __future__ import division
from flask import render_template, Blueprint, g
from ..models import User, CollectWork, CollectWorkImage, Work, WorkImage, WorkReview
from ..utils import check_is_me
from ..permissions import user_permission
bp = Blueprint('user', __name__)
@bp.route('/<user_... | [
"hustlzp@qq.com"
] | hustlzp@qq.com |
222eea60698393376e39f1fc3b4dc16e8a1c3622 | 3946c00734cd9dde10fdd65e4efffe996b3bf0ab | /assignment1/.env/lib/python3.6/re.py | e0360328bf93f6713edf6e2573877c5869ac9467 | [] | no_license | lngoquy1/cs224n | 4c6b2f42c782fc21c35e22c168ad3df2afe90089 | 3f7d909620d4a5d9d0ff41947c7007cbde8c8023 | refs/heads/master | 2021-05-14T15:10:37.760640 | 2018-01-29T16:39:00 | 2018-01-29T16:39:00 | 115,986,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | /Users/lngoquy/anaconda3/lib/python3.6/re.py | [
"lngoquy@dhcp-130-58-101-187.swarthmore.edu"
] | lngoquy@dhcp-130-58-101-187.swarthmore.edu |
9a664b18fefd64286b0e208e92d999686b3a752d | f1139cc97ca2a80596c7875209ab48c2e7248901 | /gqt/__init__.py | ec508e47d60e3d159e2a523fbf9cef76da1a53c2 | [] | no_license | kevin-gorman/python-gqt | 62c35337a7c61e7fb69df4392812f0b9210f9224 | 0ed09bb7f7053d66c6665c849df9c6978a69131c | refs/heads/master | 2020-07-09T17:33:40.447510 | 2019-08-23T21:40:27 | 2019-08-23T21:40:27 | 204,035,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | #
import gqt
__version__ = "1.1.3"
| [
"ec2-user@ip-172-31-77-213.ec2.internal"
] | ec2-user@ip-172-31-77-213.ec2.internal |
038145a20a13ec8648825e53fb8d55bc3e899e5e | 585699fb489bc420fcdc048d2ac15577a695a40d | /mesh-clusterer/clustering/metrics/g_mean.py | a755ab3928eb146484d749979bff9fb171c6864e | [] | no_license | langus0/imgrid | fbcae3368cd3c15eecdb0d95ba8824df7232ceb7 | d12c2a8c34b494ef048528818e324f48997eac7e | refs/heads/master | 2021-01-10T00:04:03.894826 | 2017-09-21T11:35:06 | 2017-09-21T11:35:06 | 91,773,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | from clustering.metrics.metric import Metric
from clustering.cube_classifiers.probability_cube_classifier import RARE, OUTLIER, BORDERLINE, SAFE
from sklearn import metrics
from numpy import roots
class GMeanMetric(Metric):
def __init__(self, pred, real):
self.predicted_types = pred
self.true_type... | [
"langus0@op.pl"
] | langus0@op.pl |
23eb382c9c0d71b35a734f40f3ad2b00d640b3c2 | 3f689ebd1ac2ce8dda26c9e3759b3875af971094 | /bookmarks_tests.py | 3651d60355fc02ac6536aac90d8ff73f040a6965 | [] | no_license | Kotova25/some | 63d0a3a2b40d49e5ea7f7fe781a04ac8fcd28d3f | 112a9a66c66e124ef66a4e3cf68293559ffd68cb | refs/heads/master | 2021-01-25T09:21:02.774173 | 2017-06-20T16:16:08 | 2017-06-20T16:16:08 | 93,822,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | import unittest
import my_driver
import locators
import test_data
class BookmarksTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
desired_caps = {'platformName': 'Android', 'platformVersion': '6.0.1', 'deviceName': 'Xiaomi Redmi 4X',
'appActivity': 'by.onliner.ab.act... | [
"kseniakotova@Steves-iMac.onliner"
] | kseniakotova@Steves-iMac.onliner |
14a6cd7453423dd03d0693d805d2fc50b2c1606e | 708709f0fffa72a4ceb8cdc7741baf0dcbddb6e3 | /programa5.3.py | e526f4de746ab0ff299b362a01663562eb46e5c9 | [] | no_license | guidiamond/EP_Desoft | aeb575232cfc7cd4569dcc095360282b4c5acb78 | a70af0cc611daaf037d70e98932a92299793ecc6 | refs/heads/master | 2020-03-10T12:57:41.230892 | 2018-04-27T02:56:38 | 2018-04-27T02:56:38 | 129,388,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,955 | py | import json
from pprint import pprint
with open('estoque.json', 'r') as arquivo:
dicionario = json.loads(arquivo.read())
loja = input("Digite o nome da loja ")
print("0 - sair\n1 - adicionar item\n2 - remover item\n3 - alterar item\n4 - imprimir estoque\n5 - listar estoques faltando\n6 - imprimir valor... | [
"noreply@github.com"
] | noreply@github.com |
44d907b9a568613000577d7c233cfdfa14a4213a | 032117bbf248a76abd25fcc2355bc8ade84fa76a | /django/theproject2/pro3/app3/views.py | be4a8ac1bbf617042c03024c19496ce33a98df2b | [] | no_license | shefaligoel136/python_summer_training | ba8f28f6af008584b4239c73d466e4e9d35b4b01 | 0b97fea050342fe4ed95b18c5f7ed885a6c8ca23 | refs/heads/master | 2022-11-13T07:22:32.855717 | 2020-07-06T08:33:19 | 2020-07-06T08:33:19 | 277,480,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from django.shortcuts import render
def home(request):
return render(request,'temphtml.html')
def solve1(request):
val1 = float(request.POST['num1'])
val2 = float(request.POST['num2'])
op = request.POST['op']
if(op=='+'):
ans = val1+val2
return render(request,'temphtml.html',{'res':ans})
elif(op=='-'):
a... | [
"goel136shefali@gmail.com"
] | goel136shefali@gmail.com |
4002037e6ff65321410d74bb23f3e16449ae369c | 948473303f12b3b20415d7ab6c8279627ce101ae | /loss.py | ea59fffc850917167ba1fa96bec6e83d7d907538 | [] | no_license | zhushaoquan/DeepHash-pytorch | 9869469ae9fc59b26ed9a1a3c383f5d9a2b12b2f | 534f6fe6a647e16eca33c3deb716e435d235c067 | refs/heads/master | 2020-07-31T07:21:54.924924 | 2019-07-09T05:26:48 | 2019-07-09T05:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | import numpy as np
import torch
import torch.nn as nn
from torch.autograd import Variable
from util.distance import distance
def pairwise_loss(output, label, alpha=1.0, class_num=1.0, l_threshold=15.0):
'''https://github.com/thuml/HashNet/issues/27#issuecomment-494265209'''
bits = output.shape[1]
similari... | [
"675121663@qq.com"
] | 675121663@qq.com |
a2208e819022c58d477bc8b02086551161c2b251 | b3b67cc0e23a100236d122ed189a532970411a56 | /comp_parser.py | dbd0245ff25dea73ddb509925ca959ea3de4c2fc | [] | no_license | Wind-of-fortune/scraper | c11c3d0406b8d8a0d25bb721acf8a8eb68bff84d | 50bba3e81a08531533156c1efb727fab22016740 | refs/heads/master | 2020-04-13T08:33:53.395256 | 2018-12-25T13:24:19 | 2018-12-25T13:24:19 | 163,084,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,671 | py | # -*- coding: utf-8 -*-
import time
import scrapy
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from settings import domain, url
class CompParserSpider(scrapy.Spider):
name = 'comp_parser'
allowed_domains = domain
start_urls = url
price_dict = {}
def parse(self... | [
"Wind-of-fortune2@yandex.ru"
] | Wind-of-fortune2@yandex.ru |
021d4d6b0648bc241ba3b27dcad750941f8b51b9 | 8e8ccbf973ddc425fcb4470862b75e796a68848e | /BasicPython/list.py | fa0ad80c3e406fa85b1efcfe4aa844238708df4d | [] | no_license | PlabonKumarsaha/Linear-Regression-ML-Project- | 741cc3ed61adbf996b4bb6c19cff1394f1f5b082 | 89726cb8cf31fc480bb51368e464e0341147ec93 | refs/heads/master | 2021-07-20T06:54:22.473262 | 2021-05-12T18:10:02 | 2021-05-12T18:10:02 | 248,820,191 | 0 | 0 | null | 2020-03-20T17:59:40 | 2020-03-20T17:59:40 | null | UTF-8 | Python | false | false | 1,229 | py | class Person:
# __ is for encalpusaltion
def __init__(self, person_name: str, date_of_birth, height : int =120):
self.__name = person_name
self.__date_of_birth = date_of_birth
self.__height = height
def getName(self):
return self.__name
def setName(self, updat... | [
"noreply@github.com"
] | noreply@github.com |
99aadc30ade96f7a2b39bb1935c8d592ccd03ed7 | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/test/test_policy_v1beta1_id_range.py | 6e5e62b8e765d805b6eb01144abad5213e8a04c2 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 1,030 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
c7dc9b5a1a8d2b3ad996bdd6dafd48b86bcfc5c6 | dac595b344f486f8eda9d812052a6e414401880f | /first-tensorflow-neuronal-net.py | 17b4c588f503d92085d13f43a5bc68f1e364d1f6 | [
"MIT"
] | permissive | Vergil592/first-tensorflow-neural-net | e9b4bd74d866dd1fbf9cc9bd0d038a58df526bc4 | 4c1013ebc202438da549821dcd1170ccc5489319 | refs/heads/master | 2020-03-14T10:41:46.814380 | 2018-05-22T20:34:18 | 2018-05-22T20:34:18 | 131,573,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | import matplotlib.pyplot as plt
import tensorflow as tf
# import numpy as np
from sklearn.model_selection import train_test_split
from generate_data import *
if __name__ == '__main__':
# Number of row per class
row_per_class = 200
# Number of hidden neur
nb_hidden_neur = 3
# Gene... | [
"noreply@github.com"
] | noreply@github.com |
5d75963102d3bdef86f0100897fd2f959dd0d477 | 26b55d14788cdb304e5b0a87e0ca42b460bdd7a4 | /bom/helpers.py | a4134fe92c7a9c04c66d5731e5e44d7d4c7266cb | [
"MIT"
] | permissive | JasChimni/django-bom | 6f0c9568d0cee7df51828512d8da1c7d844e9e4e | cbe6c79c931503b6a5d81a53487190430c9a0461 | refs/heads/master | 2020-04-16T21:26:17.894808 | 2019-04-18T01:24:11 | 2019-04-18T01:24:11 | 165,925,761 | 1 | 0 | null | 2019-01-15T21:23:12 | 2019-01-15T21:23:12 | null | UTF-8 | Python | false | false | 5,146 | py | from bom.models import Part, PartClass, Seller, SellerPart, Subpart, \
Manufacturer, Organization, ManufacturerPart, PartChangeHistory, Assembly
def create_a_fake_organization(user, free=False):
org = Organization(
name="Atlas",
subscription='F' if free else 'P',
owner=user)
org.sa... | [
"mpkasp@gmail.com"
] | mpkasp@gmail.com |
ff60581243148821c05ad3c7d119f8f54162d2c1 | fafb10ff1b5ec8dcd3c131649afa9baa80159770 | /password.py | b873790aaf3464f365923513fb67ba9dd5799129 | [
"MIT"
] | permissive | pombredanne/webkit-vuln-finder | 94f182fb7a40e8f35cce6ed08598a97435d3bad7 | 5da9e457b5bfd3715d1d97811cf21750dc9b1082 | refs/heads/master | 2021-04-28T18:07:43.793971 | 2017-10-21T02:24:35 | 2017-10-21T02:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | username = "thatOneGuy"
password = "correcthorsebatterystaple"
| [
"noreply@github.com"
] | noreply@github.com |
6bcccf0e1056a8d1dbff85a195eca7d20e39a5f7 | a27901490fe12dfe9c09cfab7319fa214ea84944 | /hadoop习题1.py | 634a2f69360d1545af91cac7d8645fca48faf1f9 | [] | no_license | emilyzhang2016/python | ebe0f8aed6d2f84befd36e553d5d5f380001b940 | 06800e787dbc42435e4a27f53c1cbe7015c93e90 | refs/heads/master | 2021-01-18T03:57:43.105728 | 2017-03-22T09:11:02 | 2017-03-22T09:11:02 | 85,774,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | #coding:utf-8
import sys
pre_product_no = ""
pre_lac_id = ""
pre_start_time = ""
pre_staytime = 0
pre_moment = ""
pre_user_id = ""
pre_country_id = ""
pre_city_id = ""
def process(line):
global pre_product_no
global pre_lac_id
global pre_row_list
global pre_staytime
global pre_moment
global pre_user_id... | [
"303191026@qq.com"
] | 303191026@qq.com |
fee3cffcb228633e1b9f6ead7560f7d86ce2e990 | c1e5c036c0edb31947bde9785f66f2dc9b302d26 | /OpenCV_Python_Tutorials/04. Image Processing in OpenCV/video.py | 2609c542677acee6e8c6d70553baef56487f8cdd | [] | no_license | bonghanwith/study_python_opencv | 0462d3e73d1d511b38b435d817bf5322dfafd3f1 | 4d717ed575935eb48b9f6a419b518fbb33c3c68b | refs/heads/master | 2020-03-30T07:19:08.818496 | 2018-12-04T12:20:26 | 2018-12-04T12:20:26 | 150,931,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,064 | py | #!/usr/bin/env python
'''
Video capture sample.
Sample shows how VideoCapture class can be used to acquire video
frames from a camera of a movie file. Also the sample provides
an example of procedural video generation by an object, mimicking
the VideoCapture interface (see Chess class).
'create_capture' is a conveni... | [
"bonghanwith@gamil.com"
] | bonghanwith@gamil.com |
702a70db4abd20986ee29956d55f77c6c0a6fe65 | aed1aad7de40bbd06bd95533e42bb349795cc9dc | /dpytools/menus.py | 08474ce95fa3dc7cbaa1474eeb861143de971488 | [
"MIT"
] | permissive | BotNC/dpytools | ef1e1efb86fa57748282927008f5bf69c22f3276 | acac1f18aaf734774826895f35943b540d111785 | refs/heads/master | 2023-05-04T15:36:32.062773 | 2021-05-17T04:13:41 | 2021-05-17T04:13:41 | 368,151,209 | 0 | 0 | MIT | 2021-05-17T10:52:07 | 2021-05-17T10:52:07 | null | UTF-8 | Python | false | false | 10,846 | py | # -*- coding: utf-8 -*-
"""
This module holds functions for displaying different kinds of menus.
All menus are reaction based.
"""
import asyncio
from copy import copy
from typing import List, Optional, Union
import discord
from discord import Embed
from discord.ext import commands
from discord.ext.commands import C... | [
"62080903+chrisdewa@users.noreply.github.com"
] | 62080903+chrisdewa@users.noreply.github.com |
2175a66e56fec5a6b38b8d8c9b58684e11ae83a5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02721/s005838488.py | 67b4f1efce6fc3f21eede2e8af273a37d4a09818 | [] | 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 | 344 | py | n , k , c = map(int,input().split())
s = input()
L = []
R = []
i = 0
j = n-1
while i<n and len(L)<k :
if s[i] == "o" :
L.append(i)
i += c
i += 1
while j>-1 and len(R)<k :
if s[j] == "o" :
R.append(j)
j -= c
j -= 1
R.reverse()
for x in range(k):
if R[x] == L[x... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6948cc313fa0512fc82294009144393cea255e2 | e13ee69afaa89364c622a98fd79cc738e4750efd | /jenkins_publisher_bitbucket/bitbucket.py | d0fad6548d2aeab23a0c50c5aca405a3203f8844 | [
"MIT"
] | permissive | bobtfish/jenkins-publisher-bitbucket | d0fdaa1ecbf9075389f83331b1403c8de70f698a | 7da8f5922195b89b5c1cf3e39ae1d1731382447d | refs/heads/master | 2021-01-23T09:45:34.572230 | 2017-09-06T11:32:43 | 2017-09-06T11:32:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | import xml.etree.ElementTree as XML
def bitbucket_publisher(parser, xml_parent, data):
"""yaml: bitbucket
Example::
publishers:
- bitbucket:
notify-start: true
notify-finish: true
override-latest-build: false
credentials-id: <optional>
... | [
"tdoran@yelp.com"
] | tdoran@yelp.com |
0b7ee26886f4f9e94c9d8d1ccee28f0e3eeef598 | 286ae27eccd770c7f01abc998293dcba48239582 | /EShop/forms.py | a6e26e7f13db7e41276a000a7562dc4a40bfcad8 | [] | no_license | alexsandrinia/djangoshop | 1b0f468276845901bb6b638a6c984eb0e4b67334 | d598b3704cc57b865fac5a3f8a0b2b3c361d7754 | refs/heads/master | 2020-04-09T19:56:26.195767 | 2018-12-05T18:00:19 | 2018-12-05T18:00:19 | 160,558,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | #-*- coding: utf-8 -*-
from django import forms
from django.utils import timezone
from django.contrib.auth.models import User
class LoginForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget = forms.PasswordInput)
def __init__(self, *args, **kwargs):
super(LoginForm, self).__init__(*arg... | [
"alexsandrinia@gmail.com"
] | alexsandrinia@gmail.com |
6528f2aef6ccb83cf7c93281d60781f7bd740da3 | 4912cbd47c19c58d142e6833911d70f5ea037357 | /question_bank/length-of-last-word/length-of-last-word.py | 802c71d7fdb456bf98226e268e3f524641dbadf5 | [
"Apache-2.0"
] | permissive | yatengLG/leetcode-python | a09a17cd9e60cafd9ff8ca9c068f5b70719c436f | 5d48aecb578c86d69835368fad3d9cc21961c226 | refs/heads/master | 2023-07-13T16:10:01.920716 | 2021-09-06T02:51:46 | 2021-09-06T02:51:46 | 286,969,109 | 13 | 6 | null | 2021-02-16T10:19:44 | 2020-08-12T09:13:02 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# @Author : LG
"""
执行用时:32 ms, 在所有 Python3 提交中击败了96.39% 的用户
内存消耗:13.3 MB, 在所有 Python3 提交中击败了73.72% 的用户
解题思路:
见代码注释
"""
class Solution:
def lengthOfLastWord(self, s: str) -> int:
s = s.rstrip(' ') # 去除右侧空格
words = s.split(' ') # 以空格划开单词
return len(words[-1]... | [
"767624851@qq.com"
] | 767624851@qq.com |
e3fb004fa5df040901bc7c513e3f8b7adbd90b15 | 8b31681bd4352ced089ddd3c98ec0af95aa7f9ab | /python/django/bin/pip3.8 | 3aa59365dcfaac43bf799c8298139db0047fdb13 | [] | no_license | gcampa/tutoring | e91e2f34329c99381c3ee9fe0b312b573d0ed5f3 | e80f9d945d87cf8a759c2f1bdf4a9be1c4836141 | refs/heads/main | 2023-07-07T15:20:53.800273 | 2021-08-15T15:22:41 | 2021-08-15T15:22:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | 8 | #!/Users/ericel123/Documents/tutoring/python/django/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ericel123new@gmail.com"
] | ericel123new@gmail.com |
ad2446622a7dd1f3f7e6f4ac47d23ce5415341b0 | 5aaa4918e58b6633eef8f8aa4aa77c8aacc27849 | /Project1/python_implementation/stop_and_wait/middleware.py | 24f47e148eb1a8ce84bd8a1f20e7343d67bf3ddd | [] | no_license | mariosangelis/Distributed-Systems-Projects | 1ec24322df1c161b3f29dda435a396167d1d5909 | e905ec0ff6f798c268d60bc14641454cc96180ab | refs/heads/main | 2023-06-08T08:12:07.334348 | 2021-06-26T20:40:53 | 2021-06-26T20:40:53 | 353,731,206 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,965 | py | #Asynchronous request-reply model with semantics at most once and load balancing service
#Angelis Marios-2406
import socket
from socket import AF_INET, SOCK_DGRAM
import pickle
import threading
import time
import random
import struct
lock = threading.Lock()
sender_list=[]
receiver_list=[]
reply_list=[]
sequence_number_... | [
"noreply@github.com"
] | noreply@github.com |
171430aa6e72848779736e903cf664b836f0d045 | 9ab9d9a3883471763edbceea59a0e83170581b5f | /eggs/Parsley-1.1-py2.7.egg/terml/test/test_terml.py | efb9991a475a1bc684728f0d8bc302bd17366807 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asmmhossain/phyG | 24dc211dad5b3e89c87ff384e841f2e98bbd52db | 023f505b705ab953f502cbc55e90612047867583 | refs/heads/master | 2022-11-21T12:43:46.172725 | 2014-02-14T12:33:08 | 2014-02-14T12:33:08 | 13,800,552 | 0 | 1 | NOASSERTION | 2020-07-25T21:05:41 | 2013-10-23T11:04:25 | Python | UTF-8 | Python | false | false | 6,108 | py | from twisted.trial import unittest
from ometa.runtime import ParseError
from terml.nodes import Tag, Term, coerceToTerm, TermMaker
from terml.parser import TermLParser, character, parseTerm
class TermMakerTests(unittest.TestCase):
def test_make(self):
m = TermMaker()
t1 = m.Foo(1, 'a', m.Baz())
... | [
"mukarram819@gmail.com"
] | mukarram819@gmail.com |
44e1bf520bea5d5ff5d78aace42d1de451a26c11 | bbdda19c16f20bd1682bdc4b3376fba865843b88 | /Trajectory Extraction/2) getDemographics.py | 0218eaa6e4ec634a755ae3e0a2c8ec19f698fae3 | [] | no_license | Aidan-Gilson/Opioid-Trajectories | 2784d124ac05c0e41c48c1d971350ef0f0d8f5f3 | 7a33f7c914faa8f883fc5295dcaf5e13a35c9140 | refs/heads/master | 2022-12-07T00:30:58.078263 | 2020-09-02T15:15:31 | 2020-09-02T15:15:31 | 292,317,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | # Step 2
'''Extracts the demographic information from the CSV for all the patients who had at least one encounter in the Yale Healthcare system'''
import csv
import json
import math
patient_to_demographics = {}
demographics_to_patient = {}
races = set()
sexes = set()
ages = set()
# Groups the ages into decades of ... | [
"aidangilson@gmail.com"
] | aidangilson@gmail.com |
3e99bde13b9275c37392065bcce7d9a4fb67e948 | 3de2a746243ad1cb000994a06a0f9699db9a901f | /agc016a.py | 049fcd1810826d416cc69758d1fa09b721e56213 | [] | no_license | takumi152/atcoder | 71d726ffdf2542d8abac0d9817afaff911db7c6c | ebac94f1227974aa2e6bf372e18605518de46441 | refs/heads/master | 2022-10-30T12:14:41.742596 | 2022-09-29T19:49:32 | 2022-09-29T19:49:32 | 181,502,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py |
def main():
buf = input()
s = buf
characters = []
for i in s:
if not i in characters:
characters.append(i)
min_iter_count = 999
for i in characters:
iter_count = 0
t = s
while True:
flag = False
new_t = ""
... | [
"takumi152@hotmail.com"
] | takumi152@hotmail.com |
2a70f939bb918247a58b5f730b01e761da755f2d | 0a6f1217573c4f307bd9e7516f1c9c69ca6f55af | /migrations/versions/fc5a80c372d5_.py | 2742c32e2cc1ef9bad0fc8381a4b05a39b18fa28 | [] | no_license | linekermsouza/todoapp | 5c9ec9d0f365b6df54555241c1b8ab9fe5b365fe | 3baf76763f6269371e9144bed1ef200a5524518e | refs/heads/master | 2023-05-31T20:46:30.343353 | 2021-07-05T00:02:30 | 2021-07-05T00:02:30 | 382,725,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | """empty message
Revision ID: fc5a80c372d5
Revises: 13a457bafd6b
Create Date: 2021-07-03 21:43:33.603249
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fc5a80c372d5'
down_revision = '13a457bafd6b'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"linekermsouza@gmail.com"
] | linekermsouza@gmail.com |
f547fc4a4459306a8df8fb1167c77c44aebd7a83 | 7b84194c9f2cf36d0f287ea1ab261871d23d2b36 | /CININ_cluster/tranceiver.py | 840dfc1f68c87a10af3fd8a6036e24b4fb37a24e | [] | no_license | saizhang0218/CININ | 0c1242771cf14c27561d45eb0d4c91d3f0635147 | 8080e0d9ded4e893ff15439c69359edbf4934aa7 | refs/heads/master | 2020-09-22T14:40:56.195042 | 2019-12-05T07:11:40 | 2019-12-05T07:11:40 | 225,243,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import time
import socket
def rec_UDP():
UDP_PORT = 8810
UDP_IP = "0.0.0.0"
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))
data = "".encode()
counter = 0
#while (data.decode())!="FINISH!":
while (counter<100):
data, addr = sock.recvfrom(1024... | [
"noreply@github.com"
] | noreply@github.com |
bc302fa0a64682905a0fdd94ab2a654da7f34c8d | 0653882a76da71bc7068d6f4698d45982f1c19b8 | /client/frame/create_room.py | d406442eb78a4c5ff9ac72906b1704878e4fefc9 | [
"MIT"
] | permissive | firmanmm/tic-tac-royale | b655ecbfffc154f1d20cfa3333c7f3ebf10e8a61 | 83c3bb88cd31a34eeceeac3d42aaa302598f52e9 | refs/heads/master | 2020-09-21T22:57:08.694306 | 2019-12-13T01:37:41 | 2019-12-13T01:37:41 | 224,962,869 | 0 | 0 | MIT | 2019-12-13T01:37:42 | 2019-11-30T05:11:24 | Python | UTF-8 | Python | false | false | 1,692 | py | import tkinter as tki
import tkinter.font as tkf
import tkinter.ttk as ttk
import client.asset.font as fontMod
import client.frame.base as baseMod
import client.frame.stack as stackMod
import client.client as clientMod
class CreateRoom(baseMod.IBase):
def __init__(self, stackFrame: stackMod.FrameStack, client: cli... | [
"maulana.firman56@gmail.com"
] | maulana.firman56@gmail.com |
31a4fa2f4e3d61e550041ea39e8c9d96f5eb0e47 | 860c16b6f4eb612f2f62a4ff073ad4b930eaa38a | /planscore/districts.py | 3968cb6d5de2eba3e2111de19d64cc011017ffb9 | [] | no_license | johndpope/PlanScore | d1f0c93e8e11e8ed7486a0932653c23b17c5eaaa | a0c62a4f75d577ee21c297199ce974cc8ec8167a | refs/heads/master | 2021-01-25T04:15:17.529051 | 2017-06-03T03:06:56 | 2017-06-03T03:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,508 | py | import collections, json, io, gzip, statistics, time, base64, posixpath, pickle
from osgeo import ogr
import boto3, botocore.exceptions
from . import prepare_state, score, data
ogr.UseExceptions()
FUNCTION_NAME = 'PlanScore-RunDistrict'
class Partial:
''' Partially-calculated district sums, used by consume_tiles... | [
"mike@teczno.com"
] | mike@teczno.com |
4215782066fdb3a091396c175573f090d54eddd8 | e0eb81aef84ee0929aa3dfc166f29a343251c35b | /seafile-pro-server-7.0.10/seafile/lib64/python2.7/site-packages/seaserv/service.py | 22c3074bbc3cfbf09a97427884dab3e8cbecc014 | [] | no_license | Sandra-Z/filesharing | 414fc56abe2f87b80ea390e0814a0bf86148a2bf | 0e4e637f0c78f96949796b480b51df72d859c4ff | refs/heads/master | 2022-12-11T12:28:07.155281 | 2019-11-19T08:39:51 | 2019-11-19T08:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,415 | py | from datetime import datetime
import json
import logging
import os
import sys
import ConfigParser
from urlparse import urlparse
import ccnet
import seafile
import re
from pysearpc import SearpcError
_DEBUG = 'SEAFILE_DEBUG' in os.environ
ENVIRONMENT_VARIABLES = ('CCNET_CONF_DIR', 'SEAFILE_CONF_DIR')
# Used to fix b... | [
"deutschland.gray@gmail.com"
] | deutschland.gray@gmail.com |
3a857eb9827e5248085daa2c2f6dd53371617c84 | 18bcf8301ac258aa1c099576161c6a24417587f2 | /mycode-python/added/Problem24_swapPairs.py | ce31c137e8b11c1f4c7904e47301efbf54ec1184 | [] | no_license | gyx2110/algorithm-book | 5247201100a0dc349331b8eed1c04280ee9fad40 | 08e57726e0c44378be093609a06f9d2b9155d47a | refs/heads/master | 2020-05-09T16:09:58.423406 | 2019-11-12T12:29:33 | 2019-11-12T12:29:33 | 181,260,817 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | class Solution(object):
def swapPairs(self, head):
if head==None or head.next==None:
return head
next = head.next
head.next = self.swapPairs(next.next)
next.next = head
return next | [
"gyx2110@163.com"
] | gyx2110@163.com |
df9fa59d0c39ecde8e9b13f6e6f770c8407bcb92 | 24ce5a9988aa0b1b6b57746a93a8fe2b7c7554bc | /scrna_pipeline/nebula/smart-seq2/old_pipeline/scripts/umi_counts.py | f8b3d97be8006d0673e7e1bbb9063878365f959b | [
"MIT"
] | permissive | JarningGau/NGS_pipeline | 7394a3ecc3158fa396c0ff3ed363084e910742d0 | 0e9012f4e68bbc8ce2b1c2f1df5af012e68e0ba2 | refs/heads/master | 2020-07-07T13:35:45.357610 | 2019-09-06T11:35:35 | 2019-09-06T11:35:35 | 203,363,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import sys
counts = {}
if len(sys.argv) > 1:
file_in = sys.argv[1]
with open(file_in) as fi:
for line in fi:
fields = line.strip().split("\t")
key = "\t".join(fields[0:2])
counts[key] = counts.get(key, 0) + int(fields[-1])
else:
for line in sys.stdin:
... | [
"jarninggau@gmail.com"
] | jarninggau@gmail.com |
7c59e31ca0d13b28a24fab145e51eb8cfcda9c53 | 1aa9bf1de3c7ede88a109c603651758cb9e9f987 | /monitor/monitor_test.py | 3e136711058a569ca51a592ed69aa5e3fb5f0636 | [
"Apache-2.0"
] | permissive | nickbattam/picamon | 906990d75e2443cf1635bc2a5baa1503a343a5f4 | 3c554f5dc203e614c72c75086e67ed6fe45d5992 | refs/heads/master | 2020-05-22T02:45:41.161405 | 2018-01-16T11:19:54 | 2018-01-16T11:19:54 | 30,070,108 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | #!/usr/bin/python
import unittest
from mock import patch, MagicMock, PropertyMock
from monitor import Monitor
class MonitorUpdateTest(unittest.TestCase):
def setUp(self):
with patch('monitor.pv.PV'):
mock_plotter = MagicMock()
self.monitor = Monitor("MYNAME", mock_plotter)
... | [
"nicholas.battam@diamond.ac.uk"
] | nicholas.battam@diamond.ac.uk |
db98b0a26f25a423e53c03f1992c31d9045d7c35 | e726ab798046af263e4c922c9c7353328b09ca89 | /deep_networks/models/dragan.py | 1cebca01cbcee1074de33ef00cdef7e9aafb799f | [
"Apache-2.0"
] | permissive | se4u/DeepNetworks | 2cfdeb9bdac220b216c104517b9a159a5a1400f6 | 693db0a0148f425b5dbe8d1c69d069dfcf3b6e76 | refs/heads/master | 2020-03-28T09:41:54.490881 | 2018-09-18T20:50:37 | 2018-09-18T20:50:37 | 148,052,896 | 0 | 0 | Apache-2.0 | 2018-09-09T18:15:29 | 2018-09-09T18:15:29 | null | UTF-8 | Python | false | false | 10,937 | py | """
Deep Regret Analytic Generative Adversarial Networks
"""
import datetime
import os
import numpy as np
import tensorflow as tf
from .base import GANModel
from .blocks import BasicGenerator, BasicDiscriminator
from ..ops import dragan_perturb
from ..train import IncrementalAverage
class DRAGAN(GANModel):
def... | [
"shaform@gmail.com"
] | shaform@gmail.com |
d0a9f0186567fd5f7c2ac16546562ad0b95fd604 | fe29f99c072c23d6b2277a18bf946469dfdd44f4 | /models/train_classifier_random_forest.py | e705b5d89b13541dedcbfc428c3be95a4d50790a | [] | no_license | lisfon/Disaster-Response-Pipeline | 037bc7257efc7c965fd983eab95b7c595bf8e305 | 88d47181b856c9fbb2d701f25afa7603376f00cb | refs/heads/main | 2023-03-01T22:10:23.941331 | 2021-02-05T17:14:53 | 2021-02-05T17:14:53 | 334,662,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,071 | py | import sys
import pandas as pd
import numpy as np
import nltk
import re
import pickle
from sqlalchemy import create_engine
nltk.download(['wordnet', 'punkt'])
from nltk.tokenize import word_tokenize
from nltk.stem import WordNetLemmatizer
from sklearn.pipeline import Pipeline, FeatureUnion
from sklearn.feature_extracti... | [
"noreply@github.com"
] | noreply@github.com |
774306cf9ce344f307f4521dcbba6affcc217381 | 1f2b8c070eee289bb62b290148c5e56f9a5a0c0c | /tests/linker_test.py | a7b135a09ad0e62d67111a2a51e5a81b1a883dac | [
"MIT"
] | permissive | albert12132/templar | 15c134d499edaada69404cf742e7a5a4b61831de | 39851c89730ab69e5c73d0a46adca2a44ecc4165 | refs/heads/master | 2021-05-16T02:39:12.561228 | 2016-10-08T03:54:03 | 2016-10-08T03:54:03 | 19,789,382 | 6 | 6 | MIT | 2021-03-19T21:29:09 | 2014-05-14T17:36:49 | Python | UTF-8 | Python | false | false | 14,073 | py | """Tests template/linker/blocks.py"""
from templar.linker import link
from templar.linker import get_block_dict
from templar.linker import Block
from templar.linker import SourceNotFound
from templar.linker import InvalidBlockName
from templar.linker import IncludeNonExistentBlock
from templar.linker import CyclicalIn... | [
"joyyjeng@gmail.com"
] | joyyjeng@gmail.com |
3ced8e8db5b35b2e309d07ef0a3f4466418f47cd | 6b0cc1bef24bd56a907447909d0387f075387a65 | /fold_class_v06/parent_package/package2/format_expression.py | e6e24aa5f834a76369cca61ed695d9239c0b6edf | [] | no_license | vilerts/lu_python | 416112e5be6207450cc2da3c4d6fa177c1b2bbbd | 7be1501b160ffc6ce7e7a1b95c0db8eaca426934 | refs/heads/main | 2023-04-01T08:44:56.852219 | 2021-04-10T11:46:57 | 2021-04-10T11:46:57 | 338,582,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | def formatResult(var1,var2,operator,result):
return f"{var1}{operator}{var2}={result}"
| [
"noreply@github.com"
] | noreply@github.com |
90fb3d0f41e8ef893dcba8eb07565e63eab33256 | 66c3ff83c3e3e63bf8642742356f6c1817a30eca | /.vim/tmp/neocomplete/include_cache/=+home=+abel=+proyectos=+django=+ventas=+ventas=+settings.py | 8daa573333992dd219d46614e2d6841793e10cab | [] | no_license | pacifi/vim | 0a708e8bc741b4510a8da37da0d0e1eabb05ec83 | 22e706704357b961acb584e74689c7080e86a800 | refs/heads/master | 2021-05-20T17:18:10.481921 | 2020-08-06T12:38:58 | 2020-08-06T12:38:58 | 30,074,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | [{'word': 'ALLOWED_HOSTS', 'menu': '[I]', 'kind': 'v', 'abbr': 'ALLOWED_HOSTS = []'}, {'word': 'BASE_DIR', 'menu': '[I]', 'kind': 'v', 'abbr': 'BASE_DIR = os.path.dirname(os.path.dirname(__file__))'}, {'word': 'DATABASES', 'menu': '[I]', 'kind': 'v', 'abbr': 'DATABASES = {'}, {'word': 'DEBUG', 'menu': '[I]', 'kind': 'v... | [
"pacifi.bnr@gmail.com"
] | pacifi.bnr@gmail.com |
9a6d6d49eb6c478512af36816a3c6cbe130b178f | 35fa487f9dc07edfd6807a539fc10847338c082b | /clients/platform/v0/python/platform_pb2.py | 293d9d62f81906e4eb86ea1b34d9034281dd7701 | [
"MIT"
] | permissive | jantmueller/dapi-grpc | 55c59119879b9f8fbd13efe1f9b98df81cb64893 | 91d890d899a9fff0157b26d5b1df1c0114005244 | refs/heads/master | 2023-08-11T02:14:10.183853 | 2021-07-08T14:58:11 | 2021-07-08T14:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 59,765 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: platform.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refl... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.