blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
330b9a16243835ebf2e6255abc9c539afae9e81c | 9c3a23eddc4104d2b60252e6b7934983e174f319 | /avalon/cli/__init__.py | 5746e913881469c57ccf04f6d792b80eabc3bcae | [
"MIT"
] | permissive | 56quarters/avalonms | b5e6e7949eee7f06b99061895c8ca11acaa154a0 | 2291f8457ca86f2e963d518abbdce04af02d9054 | refs/heads/master | 2021-10-19T06:43:23.052941 | 2019-02-18T21:52:51 | 2019-02-18T21:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # -*- coding: utf-8 -*-
#
# Avalon Music Server
#
# Copyright 2012-2015 TSH Labs <projects@tshlabs.org>
#
# Available under the MIT license. See LICENSE for details.
#
"""CLI entry points associated with the Avalon Music Server."""
from __future__ import absolute_import, print_function, unicode_literals
import sign... | [
"nick@tshlabs.org"
] | nick@tshlabs.org |
43441c1fa1062719c7a1743f55dffdb8e2db487a | 8b9108ecf99a88ebd9995fd91aadc9c0a1258ef0 | /tests/test_type.py | e0a395087c0ccb7a8f814153d9e157d73b25e9de | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | nkoep/python-libjit | 5129abe331b266433bfe0b4358a09197be92b914 | 6ca42dc44432cd54c61e6066d382b7f5a9d58f38 | refs/heads/master | 2021-01-01T19:20:33.277266 | 2014-06-18T15:42:10 | 2014-06-18T15:42:10 | 20,837,857 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,455 | py | import unittest
import jit
class TestType(unittest.TestCase):
def test_constructors(self):
with self.assertRaises(TypeError):
jit.Type()
def test_create_struct(self):
struct = jit.Type.create_struct([jit.Type.INT, jit.Type.INT])
self.assertTrue(struct.is_struct())
def... | [
"niklas.koep@gmail.com"
] | niklas.koep@gmail.com |
bfe3839ba8029e94971e49a4a32139d7695702fd | 765fedd094cd56a6cefac498b88a06f91b7ae473 | /lib/xlayers/super_transformer.py | f21ac54abf14290d245e7e84c075a81de6d44017 | [
"MIT"
] | permissive | xgmiao/AutoDL-Projects | ed74220b1b779adfc98c848c87510bc3982bde15 | 0dbbc286c9f56136291590136fffd513af881c36 | refs/heads/main | 2023-04-27T17:04:09.115305 | 2021-05-10T06:14:06 | 2021-05-10T06:14:06 | 366,212,937 | 1 | 0 | MIT | 2021-05-11T00:41:13 | 2021-05-11T00:41:12 | null | UTF-8 | Python | false | false | 4,402 | py | #####################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021.03 #
#####################################################
from __future__ import division
from __future__ import print_function
import math
from functools import partial
from typing import Optional, Callable
import... | [
"280835372@qq.com"
] | 280835372@qq.com |
fb6470f29aaad7c213cae0d37ef84b08e9684089 | 07ee05b02ab05fc4e6088109bf6617bd71bbd335 | /pycheribuild/projects/soaap.py | fb5019e47a254245c571f7c4908f270e6a2b1807 | [
"BSD-2-Clause"
] | permissive | dodsonmg/cheribuild | 666b4203cca7096a04e2e47e6f5504b38325fca6 | 88a86ea4d90f2f79a40e87df8154ad1fa41d8510 | refs/heads/master | 2021-08-26T07:49:26.339185 | 2020-06-19T13:12:01 | 2020-06-19T13:45:05 | 253,057,878 | 0 | 0 | NOASSERTION | 2020-04-04T17:24:37 | 2020-04-04T17:24:37 | null | UTF-8 | Python | false | false | 3,082 | py | #
# Copyright (c) 2016 Alex Richardson
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# Redistribution and use in source and binary ... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
75d0c7d478ec0b15d343bd9228b13d4c9db5ab79 | bf72f86417cff663557addf8f9ff31c5192637c5 | /lists/tests/test_forms.py | 588e4230ead7c74a38153da9c19dc6508104a699 | [] | no_license | robbystk/python-tdd | 6cbf95353fd7a195a4110bb450b981b9fb21f2bc | 8eeaa4f811b4d5f921933992669c3f8fb8414354 | refs/heads/master | 2021-06-25T05:40:55.588090 | 2019-10-14T03:51:39 | 2019-10-14T03:51:39 | 170,801,167 | 0 | 0 | null | 2021-06-10T22:05:34 | 2019-02-15T04:20:12 | JavaScript | UTF-8 | Python | false | false | 2,115 | py | from django.test import TestCase
from lists.forms import (
DUPLICATE_ITEM_ERROR, EMPTY_ITEM_ERROR,
ExistingListItemForm, ItemForm
)
from lists.models import List, Item
class ItemFormTest(TestCase):
def test_form_item_input_has_placeholder_and_css_classes(self):
form = ItemForm()
... | [
"robbystk@gmail.com"
] | robbystk@gmail.com |
cbd307d49d75f544592ce8a8994cc5decdb75ceb | 0a09d4dec96def19ef33ace4815eddcad48878c3 | /archive/NLTK/NLTK获得文本语料和词汇资源.py | 3bd91044b57ba3d268b8a2ab914ec1445d39d463 | [] | no_license | amssj/python | 216522e32e0af137ef76bd41a4b91b7571ab4ff7 | f5211c9d083813f4d5a3c48faab79806104e3f4a | refs/heads/master | 2022-12-06T13:01:15.477782 | 2020-08-26T06:23:47 | 2020-08-26T06:23:47 | 288,282,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py |
import nltk
nltk.corpus.gutenberg.fileids()
emma = nltk.corpus.gutenberg.words('austen-emma.txt')
print(len(emma))
from nltk.corpus import gutenberg
gutenberg.fileids()
emma = gutenberg.words('austen-emma.txt')
print(emma)
macbeth_sentences = gutenberg.sents('shakespeare-macbeth.txt')
macbeth_sentences
print(macbeth... | [
"69820922+amssj@users.noreply.github.com"
] | 69820922+amssj@users.noreply.github.com |
56e30790d5f002830a86c58b9c70e5831cfd7695 | f94106bb5cd3f5e60242cf75ac2424dd8ba0df3e | /moduloInventario/admin.py | 5263d4e3fedf56a3bdc16e50dc98eff3359ca2db | [] | no_license | rianjara/Ing.Software | c09be82a8434699f9c8444c1d1c769fcf4e782e8 | 673ee35780db329e720771c0d23f1bc579ae54b4 | refs/heads/master | 2020-05-18T16:59:36.496459 | 2013-08-21T05:00:17 | 2013-08-21T05:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.contrib import admin
from moduloInventario.models import Item, Categoria, Proveedor, Orden_Compra, Detalle_Orden_Compra
admin.site.register(Item)
admin.site.register(Categoria)
admin.site.register(Proveedor)
admin.site.register(Orden_Compra)
admin.site.register(Detalle_Orden_Compra) | [
"Administrador@edgar-PC"
] | Administrador@edgar-PC |
e0a57f279a8faf560f53f63bbed103fe897a86a5 | f9e9aa5cef137e6a0b869ebbab90ac5d6289461b | /__init__.py | 0af5fc107874d56c97b3349ba834386df4a2dc3d | [
"MIT"
] | permissive | rupesh28/pollytts | c6836ce859cb440dbe9493e84c9cfccb2ea23b56 | 279bd4bc1a06d2f893880fc3426d1411c59ac886 | refs/heads/master | 2022-07-17T21:14:21.705786 | 2020-05-19T05:44:46 | 2020-05-19T05:44:46 | 265,155,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,635 | py | # -*- coding: utf-8 -*-
# MIT License
#
# Copyright (c) [year] [fullname]
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
#... | [
"noreply@github.com"
] | rupesh28.noreply@github.com |
5eb0df4fd2be9efb632d9ef3d2abe2cbf0c37bfa | 16acd0b785e23c9b05f374b186d537ad43a90cb5 | /shop/migrations/0002_remove_product_owner.py | 351ea1b6f94344455e5858e9012e17372f5605e2 | [] | no_license | utkarshwebllisto/ecommerce | 83edfab1767d2705a0ab6d20b9e807fe6826548b | d57aa9ed19aeefc7ebbdbece582145ae864d1f69 | refs/heads/master | 2021-01-03T10:52:08.477539 | 2020-02-26T12:44:56 | 2020-02-26T12:44:56 | 237,432,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # Generated by Django 3.0.3 on 2020-02-21 07:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='product',
name='owner',
),
]
| [
"utkarsh.webllisto@gmail.com"
] | utkarsh.webllisto@gmail.com |
41a01e4a689a804503dada113ac3115d9fcef976 | 9670126c5636e6b0f123cd5cd7bd794b1d0a5cd2 | /app212/serializers/tick_request_serializer.py | 7a179b90e01f89cb1bce107efc11923efec575d1 | [] | no_license | mikegordo/app212 | c64f6cd8ec18d7d55cad42111f73da91ec71b401 | 4e53627dbbeeb1508a8153a5857df5fd0664fdeb | refs/heads/master | 2023-05-02T13:08:00.983346 | 2021-05-24T06:02:38 | 2021-05-24T06:02:38 | 370,244,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from rest_framework import serializers
from app212.models import Tick
class TickRequestSerializer(serializers.ModelSerializer):
class Meta:
model = Tick
fields = ['payload']
payload = serializers.JSONField(required=False, allow_null=True)
| [
"himor.cre@gmail.com"
] | himor.cre@gmail.com |
179c76e3d89998854ba16ce18f04f81ebb3f6231 | 4ea40fecde97e048e9f1731354080b949b9c3736 | /model/group_policy.py | 91316163fca25cb3c4239e9e60f78861d2f5df18 | [] | no_license | znnby1997/magent_workspace | 93e2ab92bbeabb861e694481f9f90eeb354a82fa | 5db34580c69c82d305c8c590e20a1e079ff85ab5 | refs/heads/master | 2023-05-30T19:27:35.120533 | 2021-06-21T13:32:47 | 2021-06-21T13:32:47 | 278,375,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class GroupPolicy(nn.Module):
def __init__(self, input_shape, n_groups, hidden_dim):
super().__init__()
self.tokens_fc = nn.Sequential(
nn.Linear(input_shape, hidden_dim),
nn.ReLU(),
nn.Linear(hi... | [
"1025142964@qq.com"
] | 1025142964@qq.com |
0714bc8e4f734c3c75dfd51b1b71364a7e4b6331 | a9a534ecbcdd55b1859ef4f401901f36c2a8e5ed | /applications/home/forms.py | 606a720676a7ade7dc3752a34cdbaf5fa8918900 | [] | no_license | arielmamaniorellana/cursoprodj | bdb251c0f57c1eaf824ffe4b70cb13a77a5140f9 | 1061928612b0a45be3319dc275af8f1291d54b4a | refs/heads/main | 2023-08-15T03:08:09.400783 | 2021-09-25T16:40:43 | 2021-09-25T16:40:43 | 395,439,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from django import forms
from django.forms import widgets
from .models import Prueba
class PruebaForm(forms.ModelForm):
class Meta:
model = Prueba
fields = (
'titulo',
'subtitulo',
'cantidad',
)
widgets = {
'titulo': forms.TextIn... | [
"arielmamaniorellana12@gmail.com"
] | arielmamaniorellana12@gmail.com |
a4a326f14f26006a00f0a145175cb0dc8be59b7b | cbfe19d792781de4b481fb97580c4da9e6fe3e6f | /decisiontree.py | c721be5d463f78cc5d49b055a667615498b62f45 | [] | no_license | khan133/decisiontree | c3c7cb1b1cc8911487e4734dd1dc73c94d7864c7 | b33e79b4d9e0c789b501f12318701d618c68a9e3 | refs/heads/master | 2020-03-17T22:10:22.264782 | 2018-05-18T18:41:27 | 2018-05-18T18:41:27 | 133,991,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,235 | py | import sys
import math
import pandas as pd
class Node():
def __init__(self, value):
self.value = value
self.left = None
self.right = None
self.total = 0
self.above = 0
class decision():
myRootNode = Node(None)
def start(self):
#self.listOfAttributesAlrea... | [
"noreply@github.com"
] | khan133.noreply@github.com |
e9529270c8f8e0c4bb0813644eeb51d0564f5e22 | fa8dc1924aeef19f4a1e6aae2b182de8f6e41f1b | /Model-zyc/nets/vgg.py | a13944a07178ad90aa85a13dc431d8d348cd18d4 | [] | no_license | Lihit/Ensemble | 6ae9afe7fd14cabae9696caad4404614c43e3315 | c0aaf72847b163779566641c8508c90f6de38b2e | refs/heads/master | 2021-05-16T03:48:51.444886 | 2017-10-11T05:03:31 | 2017-10-11T05:03:31 | 105,557,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,895 | py | # Copyright 2016 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 applicable ... | [
"wenshaoguo0611@gmail.com"
] | wenshaoguo0611@gmail.com |
aa7b969ccbcabe0b29f5cc0015b585b72fd68b6c | 2ecc2b5c89191176cb331f23a2c5bb19abbad744 | /bff/api/reaction.py | a1c9724fd27d22c54e7a9e27431be8788a252185 | [] | no_license | Jonas1302/BotsForFuture | 4f4c403ec7e4ba04bdf5f142293cb47979b11ce8 | 59a8e00750ce2f76cb6a22a8731944872fd967bb | refs/heads/master | 2021-07-25T17:29:32.138162 | 2020-08-24T12:37:47 | 2020-08-24T12:37:47 | 212,149,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | import logging
from bff import api
logger = logging.getLogger(__name__)
class Reaction:
def __init__(self, user_id, post_id, emoji_name, **kwargs):
self.user_id = user_id
self.post_id = post_id
self.emoji = emoji_name
self.__dict__.update(kwargs)
self._user = None
self._post = None
def __eq__(self, o... | [
"Jones132@posteo.net"
] | Jones132@posteo.net |
f1268d47ba9fd932f12ba63aa3026b6f2fc2a852 | 76a197bd6836456ec556b916f58760e3452ed54e | /datascraper.py | ccb982dd9cd690394148946f33349786091a09ca | [
"MIT"
] | permissive | enmerk4r/NoLA-Scraper | 965700f94a4b6c9ae13dd75df649bb7fc0e70fa0 | 140348cf006ed83d28a727f7ef67380022a9abff | refs/heads/master | 2020-12-02T12:14:10.073570 | 2020-01-05T05:39:41 | 2020-01-05T05:39:41 | 231,003,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,389 | py | from selenium import webdriver
from dataframe import *
import os
import unicodedata
import re
from pprint import pprint
import urllib3
import time
import datetime
import uuid
from selenium.common.exceptions import UnexpectedAlertPresentException
class Scraper:
def __init__(self,
imgFolder="downloads",
do... | [
"p.i.g.a.c.h@gmail.com"
] | p.i.g.a.c.h@gmail.com |
03b906259971701d5257068ee3953200042c73a4 | 7b90a37a7917ca349161fc216f5d4ff7fedc9710 | /nesting_usage.py | c8e99e09b0e7beac646801a77c5a14334514f9f7 | [] | no_license | gavin176/MyLocustDemo | cc022f1099dbf9eb6551d5b500e14b1da16cf5b8 | 6e2522a23ebd93d70f30c55b372c811cb433edcc | refs/heads/master | 2021-09-05T07:10:39.046012 | 2018-01-25T03:37:53 | 2018-01-25T03:37:53 | 110,953,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | from locust import HttpLocust, TaskSet, task
class NestingTask(TaskSet):
@task
def visit_sogou(self):
url = "https://www.sogou.com"
print(url)
with self.client.get(url, catch_response=True,verify=False,name="sogou") as response:
if response.status_code == 200:
... | [
"noreply@github.com"
] | gavin176.noreply@github.com |
ac3159bfe8a35361c4c3bd6e3994a05d66ae7ad1 | 99f9ed11c5eb1ee5a2a4800ad856eee2e9730018 | /sqlalchemy_model_convert/sqlalchemy_model_convert.py | 80430eb4df129a80249997c3c5a6f0db8049fe3a | [] | no_license | persistty/sqlalchemy-model-convert | c2e5712b22f204cf1961af286ad30a7dcdef7c88 | e6641c1b56fbe25fdd2997c6a45a530b10be6bbc | refs/heads/master | 2020-04-06T17:37:33.746769 | 2019-06-23T13:02:45 | 2019-06-23T13:02:45 | 157,667,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | class ModelConvert(object):
"""Model transform class,Convert the object to the corresponding dictionary"""
@classmethod
def key_values_list(cls, models, related_models=[], ignore_fields=[]):
"""
Convert the list of objects into a dictionary list
:param models: List of objects to conv... | [
"liutangyongpersist@163.com"
] | liutangyongpersist@163.com |
fa253fce90a0b39ec7f500eb477e5b5a9a787010 | b063645c5b004e7b834a95ee706c5122833cc6ce | /Tugas5/Pratikum2/Pratikum2_1.py | 50e856dc01be5a0c28ffb35e8ccf8d41c13f18ce | [] | no_license | bgspamungkas/Python | 53bf1fc7df96f2b29936c640f0f4a5251025c9d6 | 597979aa42374ed5fd9c5964a715f02d9f535db5 | refs/heads/main | 2023-02-19T23:35:02.053816 | 2021-01-13T04:11:45 | 2021-01-13T04:11:45 | 303,153,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | def luasSegitiga (a,t):
luas = a * t / 2
return luas
alas = 10
tinggi = 20
print('Luas segitiga dg alas ',alas,
' dan tinggi ', tinggi,
' adalah ', luasSegitiga(alas,tinggi))
| [
"noreply@github.com"
] | bgspamungkas.noreply@github.com |
340491cc31993dd884863ac140ddac1957461a1d | 8e41426add05eac5959f4fb38561d1f3b18b5c05 | /refinery/tool_manager/urls.py | 76251a192fcf34bd4302527426433e39c847853d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | refinery-platform/refinery-platform | ae2f299807b5f5d537d9bbc4b1f9a866d48b7245 | b005e75cb79e8bfebbdf10da2b5d9d0062a5a661 | refs/heads/develop | 2023-01-24T01:32:29.178787 | 2019-12-09T15:54:19 | 2019-12-09T15:54:19 | 2,838,735 | 40 | 16 | NOASSERTION | 2023-01-11T19:52:35 | 2011-11-23T20:23:20 | Python | UTF-8 | Python | false | false | 328 | py | from rest_framework.routers import DefaultRouter
from . import views
# DRF url routing
router = DefaultRouter()
router.register(r'tools', views.ToolsViewSet, base_name='tools')
router.register(r'tool_definitions', views.ToolDefinitionsViewSet,
base_name='tooldefinitions')
tool_manager_api_urls = rout... | [
"noreply@github.com"
] | refinery-platform.noreply@github.com |
598635ea594828d0c6926f5727c90391600b8821 | a71e863867a067746e4360f34f86ef1e317b1410 | /geocodemonkey/__init__.py | 886c4909485a9b1bfb8c0fb6c954768e01b234b0 | [
"MIT"
] | permissive | loftylabs/django-geocodemonkey | 9029c6dce88c7bae6b0636c077ae36decd7e32cc | 40133c67ad86ef0e61601f77e5b20c6146256d5f | refs/heads/master | 2020-04-08T09:05:04.802096 | 2014-04-20T17:14:37 | 2014-04-20T17:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | import re
import logging
from django.conf import settings
from django.core.cache import cache
from django.core.exceptions import ImproperlyConfigured
from django.utils.encoding import smart_str
from django.utils.timezone import now
from geopy import geocoders as geopy_geocoders
from geopy.exc import GeocoderServiceErr... | [
"casey.kinsey@gmail.com"
] | casey.kinsey@gmail.com |
04acd2d89b3ce66cb091b31f095e7ff5cde99fad | fe952ac535cdea8ee5d55fec1715db5aadad8e89 | /scripts/preprocess_sp500.py | bb236919ca2be94183f61ca3238f96ee92936db8 | [] | no_license | Eva0417/tstl | c34dec884c41f7bad4b5afd725e62ba204556151 | f3497acd31f303ae8eef25eaa3b370e64e717e8b | refs/heads/master | 2023-06-11T18:42:20.055326 | 2021-07-01T23:12:22 | 2021-07-01T23:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,319 | py | import os
import sys
import argparse
import random
from scipy.io import wavfile
import numpy as np
import pandas as pd
import datetime
import shutil
scriptDir = os.path.dirname(os.path.realpath(__file__)) + "/"
TRAINING_PERCENTAGE = 70
TEST_PERCENTAGE = 15
VALIDATION_PERCENTAGE = 15
WINDOW_SIZE = 50 # We use first ... | [
"kecoeco@gmail.com"
] | kecoeco@gmail.com |
91d4f7f60cf0b51713c487a36192d9e70940c691 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03209/s568907509.py | a0f73fe21eee5f624d2d75824f89e6519534dec9 | [] | 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 | 1,089 | py | #!/usr/bin/env python3
import sys
def solve(N: int, X: int):
# a_0 = 1
# a_{n+1} = 2 * a_n + 3
# b_0 = 1
# b_{n+1} = 2 * b_n + 1
# a_n = 2**(n+2) - 3
# b_n = 2**(n+1) - 1
def f(N: int, X: int):
aN = 2 ** (N + 2) - 3
bN = 2 ** (N + 1) - 1
if X >= aN:
ret... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f6203131ffbaad18fea774003e59e49a64b3bf9 | 840fe85b48fc7c9b4862bd506091d51c6055f68f | /calcD.py | f14183b16525b79f390e44649d96b4f7266ba001 | [] | no_license | TheXpingu1n/calcD | 805a19287f203bb5de104da516c12b40d8a8128e | cea0e2f061897a0b2ac727d55c587fa8757f093d | refs/heads/main | 2023-01-10T19:21:51.130478 | 2020-11-13T12:47:08 | 2020-11-13T12:47:08 | 312,128,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,745 | py | #coded by : Azad Mohammed
import math
import pyfiglet
import termcolor
print(termcolor.colored(pyfiglet.figlet_format('calcD'), color = 'green'))
pi = math.pi
e = math.exp
tan = math.tan
cos = math.cos
sin = math.sin
class Calculate_Areas2D:
def circle_area(self) :
rad = input('Please inser... | [
"noreply@github.com"
] | TheXpingu1n.noreply@github.com |
d157fefef96b07270738959f77b7cff2930c4a46 | ad44e43f263e9678b0b72b0ab9cfd9350c97075d | /Day2/acceptinput.py | c589900d63258f7673dc45ddeff86ecef83c407a | [] | no_license | mahesstp/python | cc95fe587baed83c241c5439ace6382a8c870082 | 9f93cd98a1855294d82a4121177eec5dc1509078 | refs/heads/master | 2020-04-02T21:49:49.286662 | 2018-08-31T11:46:26 | 2018-08-31T11:46:26 | 154,812,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/python
from secondfile import *
def acceptInput():
firstValue = input ('Enter your first float number: ')
secondValue = input ('Enter your second float number: ')
print ( 'Type of firstValue is ' + str( type(firstValue) ) )
return firstValue, secondValue
def addNumbers(firstNumber, seco... | [
"mail2jegan@gmail.com"
] | mail2jegan@gmail.com |
e849afe585c0d25de97fbe749f49c5c34a0b092c | 71f2d0d97146650975f066191b1851a13a3de43c | /Classes_and_Object_Programs/cls9.py | da0f9251d350fb85cc28080c8223cacd0a2a5b50 | [
"MIT"
] | permissive | saratkumar17mss040/Python-lab-programs | 84e8537927498aeeb12e52e614cdaae489a7fe91 | a2faa190acaaa30d92d4c801fd53fdc668c3c394 | refs/heads/master | 2023-01-13T06:09:24.358203 | 2020-11-18T04:43:14 | 2020-11-18T04:43:14 | 289,944,123 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # encapsulation - protected members - 1
class Person:
def __init__(self):
self._name = 'sam'
class Student(Person):
def __init__(self):
Person.__init__(self)
print(self._name)
s = Student()
p = Person()
print(p._name)
print(s._name)
| [
"sarathdon9245@gmail.com"
] | sarathdon9245@gmail.com |
0c8767bb5641218069611b38304e4fa40d8d3439 | f7334f229bb73926903cef6ee5ba7a9d27349f56 | /webempresa/social/migrations/0001_initial.py | 52e2ff8b2aac685ef639ab66f5b9801d7b580164 | [] | no_license | monikafg/web-empresa-curso-django-2 | e52408d9b0171e81c3366b4ed78178e97ffae867 | d6cc5b074f19156c034ce80c964c558267853d82 | refs/heads/master | 2020-04-07T23:24:14.793136 | 2018-11-23T10:50:35 | 2018-11-23T10:50:35 | 158,811,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # Generated by Django 2.0.2 on 2018-10-31 12:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Link',
fields=[
('id', models.AutoField(aut... | [
"monicafreygrimm@gmail.com"
] | monicafreygrimm@gmail.com |
bc60600bbd7f640a50d61ab429393bf190b0de37 | 6c81fbea3c897b97fed56f97c1bc657b632beb04 | /classifier/Basic_ML_base/classify.py | feb5b1df7e5517e185732e2869ada6cb48e09182 | [] | no_license | JCai2017/SecurityProject | 00e0c992ee802e52673a36580b28dd27cf181f12 | 25d0a0a497127dc30fe883115cdca0770643f796 | refs/heads/master | 2021-08-30T12:14:30.418667 | 2017-12-17T21:18:47 | 2017-12-17T21:18:47 | 110,923,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | import numpy as np
import pandas as pd
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import LSTM
from keras.preprocessing import sequence
from keras.utils.np_utils import to_categorical
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection ... | [
"aytung94@gmail.com"
] | aytung94@gmail.com |
eeb74448f321c85c0bb760e02b2d6afb1a90ebdc | 5274373dcbfbc2b7fd16050cfab1ac3f378c57bb | /prepare.py | a4facf27a4b64e9a61cf98ea3f819f28bcb5c057 | [] | no_license | MainaliB/time-series-exercises | 7a1e8d4370c5140c3d50c70e478352dec7afffb0 | 00dafb61347f9037882b47696a00a68fab2cf72f | refs/heads/main | 2023-01-05T14:54:57.984526 | 2020-11-03T02:58:24 | 2020-11-03T02:58:24 | 306,452,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py |
import pandas as pd
from datetime import timedelta, datetime
import numpy as np
import matplotlib.pyplot as plt
import warnings
warnings.filterwarnings("ignore")
def prep_sales_df(df):
'''Takes in a dataframe, performs necessary date time conversion, sets date as index, creates new
columns(months, day... | [
"bibek.mainali20@gmail.com"
] | bibek.mainali20@gmail.com |
5ed038d04b8958a97134dbddf90e1607c7731360 | 4f6d7307a00d5a5ddecc12203a7d8ebc4a9ae95b | /api/permissions.py | 23b1901230d259a29d2dbdf9cd74d2f68ba7a592 | [] | no_license | Cscotttaakan/DjangoRestAPITutorial | d67728fb48d1ae346b61a3d7afae8f1999ef168b | 9fe67d315b257a8d6584c5cfc18ff8339ac46e5f | refs/heads/master | 2020-04-12T21:31:44.155967 | 2018-12-22T21:40:25 | 2018-12-22T21:40:25 | 162,764,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from rest_framework.permissions import BasePermission
from .models import Bucketlist
class IsOwner(BasePermission):
def has_object_permission(self, request, view, obj):
if isinstance(obj, Bucketlist):
return obj.owner == request.user
return obj.owner == request.user
| [
"cscott_taakan@yahoo.com"
] | cscott_taakan@yahoo.com |
de7ff038bc97d99b5b5417effac204ade6feffef | d9796881c5f39d8057bf9e5b47b5825b052b37eb | /FrostGem/settings.py | 4ccaf8aecc9b166d2b5b54270d54f33692d870bb | [] | no_license | RedaAbuKhamdi/FrostGem | d16f5f611a748cd107438ad0e6a06b787d408e28 | b3746b9ce747ae23316930eb1b4d6cd1044db030 | refs/heads/master | 2023-06-05T23:58:13.307815 | 2021-06-29T16:24:54 | 2021-06-29T16:24:54 | 381,429,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,518 | py | """
Django settings for FrostGem project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"30412098+RedaAbuKhamdi@users.noreply.github.com"
] | 30412098+RedaAbuKhamdi@users.noreply.github.com |
d8c69bbd5692d0ee667598a089bd5b101c022a65 | bf57ecee77df0a08f2456a05918d6585c68a92ea | /JITNet/datasets/osvos_dataset.py | 06ca304be21304d431803ec5615adc91c47061e6 | [] | no_license | abollu779/Multiple-Object-Tracking | 8d0f602976b2fb5d40d0539a0e4a43f080656f21 | 0be5a067a3f469f73b804a9a03c8b4157ece1d54 | refs/heads/master | 2022-11-05T18:11:02.001614 | 2019-05-08T16:55:16 | 2019-05-08T16:55:16 | 181,527,805 | 0 | 1 | null | 2022-10-12T02:46:24 | 2019-04-15T16:43:13 | Jupyter Notebook | UTF-8 | Python | false | false | 7,463 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from PIL import Image
import os
import numpy as np
import sys
import cv2
# Mask R-CNN utilities
sys.path.append(os.path.realpath('./datasets'))
sys.path.append(os.path.realpath('./utils'))
from mask_rcnn_tfr... | [
"abollu779@gmail.com"
] | abollu779@gmail.com |
5a03ac597a444bda5ed3fc444cbe62979129c614 | 5a200273e064fe8b2d4b4b69be80c8e32df3ed9f | /ch09-pagination/app/__init__.py | 7139b2a2578530df0e2576e09e5fe6d49cfa846b | [] | no_license | NajibAdan/flask-tutorial | d05ede626b43b2924a314aa45584566bfd0cda7d | e4711668571eea7424f8babf71bbc8b76838cca1 | refs/heads/master | 2022-07-08T19:32:49.332757 | 2020-05-05T13:13:19 | 2020-05-05T13:13:19 | 257,529,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(a... | [
"najibadan@airmail.cc"
] | najibadan@airmail.cc |
0fd1806e5506112797a8cb6495adf054e9cb9c25 | 9fb6b17f3e07ca1c35d453103954c82d5d17a37d | /http_check/datadog_checks/http_check/__about__.py | 61058f8e0152dea5457cd85007db7b668ce2746d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | acvejic/integrations-core | 0fc205b6388e0065f419c22a7af7d68fb68869ea | 8ff1157f63acc649f15a169906f4a5f27508fcf7 | refs/heads/master | 2023-01-04T15:37:48.124433 | 2020-10-28T13:35:29 | 2020-10-28T13:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
__version__ = "4.11.0"
| [
"noreply@github.com"
] | acvejic.noreply@github.com |
4b6a0a46e3adc9f8de24088b29069bac7537fcb8 | f92fd5ba7ec30729dada169f7684e2edf565c139 | /test/case/player/TestPlayImgsDelete.py | 260981fb6ac07740c9cabc4022522ba95fdab5f5 | [] | no_license | rico-o/autoTest | 6ea0c83ab3ef60bf8ee13d00f61995d3357f4c37 | 6ca03420faf1b0523a567eed11a8212796ee3d35 | refs/heads/master | 2022-03-30T14:34:55.787787 | 2020-02-08T11:46:23 | 2020-02-08T11:46:23 | 218,439,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from test.pages.PlayerPage import *
import unittest
from test.common.Common import *
class TestPlayerImgs_delete(unittest.TestCase):
"""运动员图片批量删除"""
@classmethod # 类方法
def setUpClass(cls):
cls.player = PlayerPage()
cls.player.login()
cls.player.iframe1()
cls.player.base_set... | [
"53588251+rico-o@users.noreply.github.com"
] | 53588251+rico-o@users.noreply.github.com |
b0be8f2a55bbc9929898b604c25ab9a0f3e565a7 | dff1473735f229f54561bb4c7f390472108c1839 | /ActFunctions/softsign.py | 135c05f361716f8375da34dfaac129fbb8f172ea | [] | no_license | HenryGJackson/DecisionTree | 7d3f8bf669c4a6fe62d0b5255b87da20ad835004 | 4ca0cb93511bba6b758655b993527d0dd177c6e6 | refs/heads/master | 2021-01-20T08:43:30.670445 | 2017-05-08T07:17:10 | 2017-05-08T07:17:10 | 90,184,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | class softsign:
# Soft sign ActFunctions f(x) = x / (1 + |x|)
def __init__(self):
self.coeff = 1
self.range = [-1, 1]
def __str__(self):
return "Function: Soft Sign Function"
def setParam(self, value):
self.coeff = value
def evaluate(self, value):
if value ... | [
"jacksonhg95@gmail.com"
] | jacksonhg95@gmail.com |
b58f3c6a1b6de08b96f1eb51373d4641c2ab4815 | 4f0db9e506a11dc75828cf26cfd60e1a5d745d54 | /monthcalc.py | 3d6769b6275f9e0f3669d3fc57ee37755c672f2c | [] | no_license | keerthankkr/test-upload | 832cf878afbafcd78bf0ed9e660c2fd2ab162d34 | d771475cd8745c2630461259432baad47ddd137a | refs/heads/master | 2023-06-21T18:24:10.231281 | 2021-07-15T12:25:15 | 2021-07-15T12:25:15 | 386,279,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from datetime import date
import sys
def twelve_month_apart(date1,date2):
try:
d1 = date.fromisoformat(date1)
d2 = date.fromisoformat(date2)
except ValueError:
print('ERROR: Invalid date or incorrect date format. Provide valid dates in YYYY-MM-DD fomat e.g. 2019-04-30.')
sys.ex... | [
"keerthankumarreddy141998@gmail.com"
] | keerthankumarreddy141998@gmail.com |
cfdbc02514bd83216de38f1fa8a6cfdf0d52f7b5 | bdbf67a9f144bbc2afc97aef34a7784702cc95e1 | /configs/reppoints_v2/reppoints_v2_r101_fpn_giou_mstrain_2x_coco.py | 845f5ddd7fe8b188f6a655b0999ddf8f3854010b | [
"MIT"
] | permissive | peterkim0622/RepPointsV2 | 15e1f5454c1583ab2f224108a23ef2af5c4522c6 | 36e1e54549061a735831d776781cb64caf6de68a | refs/heads/master | 2023-03-21T12:43:31.902169 | 2020-11-20T17:33:37 | 2020-11-20T17:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | _base_ = './reppoints_v2_r50_fpn_giou_mstrain_2x_coco.py'
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
no... | [
"scalsol@163.com"
] | scalsol@163.com |
063d2c8f294ea7ce2df64b3c217d7f5d7d860ab8 | 21615505744aa59e7200d4c34da664706306aa03 | /model_training/get_models.py | 8f4e4472fc16daf109eb13c19649cdd359172796 | [] | no_license | Scintillare/piecesofcode | 48e23f3d5445ec9d366aa3e881e47d18ef1ef551 | feaabcfb7f9f65cd0e6344eccafa045032eaf8e9 | refs/heads/main | 2023-04-27T16:04:48.743624 | 2021-05-19T21:48:00 | 2021-05-19T21:48:00 | 351,194,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import torch
import torch.nn as nn
from torchvision import transforms, datasets, models
def get_resnet(num_classes):
model = models.resnet101(pretrained=True)
n_inputs = model.fc.in_features
model.fc = nn.Sequential(
nn.Linear(n_inputs, 256), nn.ReLU(), nn.Dropout(0.2),
nn.Linear(256, num_c... | [
"scintiamon@gmail.com"
] | scintiamon@gmail.com |
2e291852953cee8a6272452abcadb5b633bcb264 | ba7be445410aa58f8cee5e64a38a4f701d50408b | /sell_npc/actions.py | c7616f88eb017d7169021ed04a11179da3d5155f | [] | no_license | MattyM92/scripts | 99214d6108cce5bff707d1acee566438a91b101f | f0bdea3eebe4e83bd3a73a2be5d5456ad8d7ac90 | refs/heads/master | 2023-01-11T00:04:57.821007 | 2020-11-07T18:03:30 | 2020-11-07T18:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,560 | py | #Load Custom functions
from lib import *
import global_actions
def waypoint_action(client, action):
def withdraw_items_to_backpack(backpack, depot):
# Returns true if withdraw was successful
dest = client.get_container(backpack)
if not dest:
print('Could not find backpack', ba... | [
"kaden.lothar@yahoo.com"
] | kaden.lothar@yahoo.com |
f9c5eb8dcf7029ff417d9f814c947b5b96afe7e3 | 57235e5fbd29dc5e0b3f24649e15a48935edd65f | /boa3_test/test_sc/arithmetic_test/AddBoa2TestVoid.py | a258a7f83bf8253d84701620af37b12201d4e5af | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | DanPopa46/neo3-boa | ae75543bdc4e0aeadf45578b6b5e4c45b9253557 | e4ef340744b5bd25ade26f847eac50789b97f3e9 | refs/heads/development | 2023-04-01T19:25:08.216180 | 2021-04-15T17:45:38 | 2021-04-15T17:45:38 | 358,663,228 | 0 | 0 | Apache-2.0 | 2021-04-16T16:46:46 | 2021-04-16T16:46:31 | null | UTF-8 | Python | false | false | 74 | py | from boa3.builtin import public
@public
def main(m: int):
c = m + 2
| [
"lucas.uezu@simpli.com.br"
] | lucas.uezu@simpli.com.br |
c561330fc9fb62e44382bc258536ed2c656fad33 | cd3e72282679d00c33fdb8a1500e59e0c735c86b | /qa_data_preprocessing.py | 01eb131875dd90b042357de156962af872da7ebd | [] | no_license | amirharati/Trump_tweeter_bot | c4bbbf5b3a954a0b44c44393c9968106ec8fdfa6 | 23c46116000c4dcb54d900913d63ae0d8f035633 | refs/heads/master | 2021-04-26T23:49:23.632245 | 2018-08-23T05:20:43 | 2018-08-23T05:20:43 | 123,863,041 | 0 | 0 | null | 2018-03-22T02:04:40 | 2018-03-05T04:06:30 | Python | UTF-8 | Python | false | false | 1,377 | py | # qa_data_preprocessing.py
# Amir Harati, Aug 2018
"""
data preprocessing for question/answers pairs.
"""
import sys
def main(q_file, a_file, bpe_voc_file, word2id, wordid_questions, wordid_answers):
q_data = [line.strip() for line in open(q_file)]
a_data = [line.strip() for line in open(a_file)]
words = [... | [
"amir.harati@gmail.com"
] | amir.harati@gmail.com |
5d31302c9abdc959a722e47913347d4d059a2d45 | bda6ce4cfe2263e97c93f37f554eb05e85adee92 | /011-020/013.py | ab9710fd9937cc380ab650ab844d748491b57ab3 | [] | no_license | Cybersheralt/Project-Euler-HackerRank | 5d59dcc039d01ddfb5a594b560c4ceea3b23ed01 | ab19bcc07cf4817798f6418f49c212b2eedcd08e | refs/heads/main | 2023-05-27T16:00:51.266750 | 2021-06-14T06:50:31 | 2021-06-14T06:50:31 | 364,251,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | n = int(input())
nums = []
for i in range(n):
nums.append(int(input()))
print(str(sum(nums))[:10])
| [
"noreply@github.com"
] | Cybersheralt.noreply@github.com |
dcf66511f02b0bd6fa496e59a1438b8b6f10a669 | d982053fc7dfc016e541b507de29755320d59e84 | /podstanovka_skloneniy.py | 8fbb67caaae6f1aec8df27d4742c7ac42d511597 | [] | no_license | MikhaeleDem/python_training_cource | cbfbeca8afc4a1f3f145990094ce0d1c916df864 | 63ada5be4e3ad6cc3ce8f7fa074514f499045dec | refs/heads/master | 2023-06-02T18:08:04.036982 | 2021-06-16T12:54:21 | 2021-06-16T12:54:21 | 373,197,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | """Проверка правильности окончания в зависимости от числа"""
a = int(input())
if a % 10 == 1 and a // 10 != 11 and a // 10 != 1\
and a // 10 != 21 and a // 10 != 31 and a // 10 != 41 and a // 10 != 51 and a // 10 != 61 and a // 10 != 71 and a // 10 != 81 and a // 10 != 91:
print(a, 'программист')
elif (a % ... | [
"m.dannicov@mail.ru"
] | m.dannicov@mail.ru |
30a7caa176be289d1ea59edf66de5b3ea7a4c75c | 22e767950423c0ab8efd6a474d38157e799669f2 | /main.py | 598aaa7542231012b4e2d8600f382d097523c062 | [] | no_license | richardphi1618/file-sorter | 907196415214fc397944874c2fbf4a3458218773 | de2ca1f761ecca72b4adc48f3703eaabd97f603d | refs/heads/main | 2023-04-06T11:29:13.928664 | 2021-04-19T23:38:58 | 2021-04-19T23:38:58 | 359,619,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import os
import shutil
import csv
csv_file = input("\nEnter your list: ")
#csv_file = "photostofind.csv"
src_dir = input("Enter your source folder: ")
#src_dir = "ada"
full_path = os.path.realpath(__file__)
home = os.path.dirname(full_path)
#print(home)
from_folder = home + "\\" + src_dir
to_folder = home + "\\... | [
"richardphi1618@gmail.com"
] | richardphi1618@gmail.com |
e981ad2971bf95bb5ad26fb4b7a1eb93a1732c2b | 73f6ba42a793d18ad5b4c44cfdc278e51aa1b9b0 | /perum/views.py | e8828e9cea66ce406f19303c074bfd490595440b | [] | no_license | akbarlintang/perumahan | e14eb922a86c76581d8faae5700ff21e83ba13ee | 66c908a382bc32e9b9abc69b3a6f22eab12d8d2c | refs/heads/main | 2022-12-30T08:11:23.856824 | 2020-10-22T15:33:30 | 2020-10-22T15:33:30 | 306,377,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,587 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.db.models import Sum
from django.forms import inlineformset_factory
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators impor... | [
"lintangajiakbar@gmail.com"
] | lintangajiakbar@gmail.com |
199c48d52a688d764373e6cc606a68fcb43fd61e | 37afd293bc9ded594d4d0864dbd82bcfabf1b2a6 | /FGSM_v16.py | 484ca7338259d03b3f7c3188669421338a6ad746 | [] | no_license | AndroidDevelopersTools/SAI-FGSM | 670257fb5412a95475fb348f6ff2aa9615c4ff1b | f5a3e9f51d7d860af5acbd9f474e6866f6574a35 | refs/heads/main | 2023-06-10T14:18:50.370169 | 2021-07-05T13:09:52 | 2021-07-05T13:09:52 | 327,304,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,884 | py | import tensorflow as tf
import matplotlib as mpl
import matplotlib.pyplot as plt
import math
import numpy as np
import os
from tensorflow.keras.preprocessing.image import load_img, img_to_array
import gc
import threading
# mpl.rcParams['figure.figsize'] = (8, 8)
# mpl.rcParams['axes.grid'] = False
gpus = t... | [
"noreply@github.com"
] | AndroidDevelopersTools.noreply@github.com |
f197a1991b3cedfa9127889007e6604fa8b13673 | 3f6016a16b58be6ddfa001500bb1580151b8ede1 | /12306/Main.py | 87c0d2757682da98a08fc2a1d84106765f281f21 | [] | no_license | stayli117/PyProjects | d48ffed5dd94b8d80c6cfa539bcc155281e08916 | 0814a3b2551a0500be90dff4e73cd624f0134333 | refs/heads/master | 2020-03-28T10:15:28.512525 | 2018-09-10T03:40:15 | 2018-09-10T03:40:15 | 148,095,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # coding: utf-8
# -*- coding: UTF-8 -*
"""Train tickets query via command-line.
Usage:
tickets [-gdtkz] <from> <to> <date> [--n=1]
Options:
-h,--help 显示帮助菜单
-g 高铁
-d 动车
-t 特快
-k 快速
-z 直达
--n=<kn> 连续查询天数... | [
"stayli117@163.com"
] | stayli117@163.com |
da8a60005ee0d90d5161d29d43ab645a9a723b5a | aecf6829c070b8ea6365c1cc783aff91094e8048 | /9_web_server/server.py | 15f6509d366ac97c16c6789a3589fc0f34e319c6 | [] | no_license | KolchinaAsya/UNIX | 7cc8eef2c0ed0e26e4e744013f8ee4fe417933a6 | 027e59a1911adb506aafc58db338ec1beb0b2c4a | refs/heads/main | 2023-05-21T21:58:32.822009 | 2021-06-09T12:39:19 | 2021-06-09T12:39:19 | 355,810,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | import logging
import socket
import configparser
import threading
import time
def get_new_response(conn,MAX,DIRECTORY):
"""
Функция реализует GET-запрос от клиента и передает данные разного типа
"""
while True:
logging.info("CONNECTION WITH "+str(conn))
data = conn.recv(MAX)
try:
msg = d... | [
"kolchina.asya@list.ru"
] | kolchina.asya@list.ru |
a5ecdd7ea2524f019fae09e68c82b2da283f1301 | 04b6fe7ad42a7872e024317f9e490483da1186b7 | /TestCase/test_03_set_category.py | 2f68f7f64ab64364500b4570f131ac5494080a85 | [] | no_license | QUPSBD/Appium_Python | 896ed2fb3f7e6b5ba6e3e371de623b0a030a1428 | d47b324d381ec4f66245434fcdef64a8f31d77c2 | refs/heads/master | 2023-05-09T01:18:43.121771 | 2021-06-03T17:13:10 | 2021-06-03T17:13:10 | 373,581,592 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from Pages.home_page import HomePage
from TestCase.base_test import BaseTest
class TestSetCategory(BaseTest):
def test_intro(self):
homepage = HomePage(self.driver)
homepage.test_set_category()
# python3 -m unittest TestCase.test_03_set_category
| [
"sh.qups@gmail.com"
] | sh.qups@gmail.com |
b29f38581517653bee0d5d847bf5be11288f212e | b44fee80dd22adad1d8ec3e166789579ec7579c7 | /plot_params.py | 1e272d4202d96fca783370a7213fd9b9d6394d78 | [] | no_license | kimds91/growplot | e8f8c504bd955a06f230bdf336f259ad854b5d77 | ce92bf8f755d2f7710f687b2909758d88ebdfeb4 | refs/heads/master | 2021-06-26T09:36:28.592821 | 2020-11-23T00:17:05 | 2020-11-23T00:17:05 | 141,829,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,872 | py | from scipy.optimize import curve_fit
from math import log
from scipy import stats
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse, Rectangle
plt.rcParams['svg.fonttype'] = 'none'
import seaborn as sns
import pandas as pd
import sys
import argparse
#font = {'f... | [
"andy.watkins2@gmail.com"
] | andy.watkins2@gmail.com |
d46cce93334a04c9ef82afc0f189bf9671eeb38e | dcdf8a7edb8a765707459a540997750402f65bea | /test/functional/p2p_pos_fakestake.py | e0b805152981bf94db4ca0fec1fdedf73bfd28b4 | [
"MIT"
] | permissive | ifinmakassar/BitalGO | a313fa0e2015cc02fa3dc8d63d8d3a692dd8b019 | f8f5e126a7c808f72ff85b32e28c09a45fe684ca | refs/heads/master | 2022-04-06T12:33:49.209408 | 2020-03-16T06:15:12 | 2020-03-16T06:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The BitalGo Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Covers the scenario of a PoS block where the coinstake input prevout is already spent.
'''
from time impo... | [
"kyzer@traebit.ca"
] | kyzer@traebit.ca |
93f4bd22d4f2bd236632acc4fe534cb04a3954bb | 66fbb969c8844f6a0db7cf8939c3412516bf54ca | /min_stack.py | f010c0465b1a9022ba8d0b7065f5b842d1107edf | [] | no_license | chunweiliu/leetcode2 | 67a86d5a0d8c3ffe41f53a46b0e5960edc64c56d | 086b7c9b3651a0e70c5794f6c264eb975cc90363 | refs/heads/master | 2021-01-19T08:13:12.667448 | 2017-04-08T06:02:35 | 2017-04-08T06:02:35 | 87,612,004 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | """Design a stack that can get the min value
Time: O(1) for all operations
Space: O(n)
"""
class MinStack(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.stack = []
def push(self, x):
"""
:type x: int
:rtype: void
... | [
"gtoniliu@gmail.com"
] | gtoniliu@gmail.com |
cc2adeccf0056d1ea67abfdf21ae86dbf06d38d3 | 16427e5c6ee8d1baab1696f2eb8635dda7460147 | /ass/time.py | 6fb5292b8a9acf313ae2da1cbd7bdcbb2b18ed07 | [] | no_license | threemay/python3_study | 21ab425825e064a12bcde739415865d37356b3d0 | 3a563ccf7ec48fc6c3dda76d4c05382a215bed4f | refs/heads/master | 2022-02-02T21:19:47.349976 | 2019-07-20T05:38:05 | 2019-07-20T05:38:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import time
print(time.localtime())
#while True:
# time.sleep(1)
# print(time.strftime('%H:%M:%S',time.localtime()))
Hour = int(input("pls input h: "))
Minute = int(input("pls input m: "))
Second = int(input("pls input second: "))
while True:
time.sleep(1)
t = time.localtime()
print(t[3],t[4],t[5])
... | [
"254363807@qq.com"
] | 254363807@qq.com |
2c3bfbc6432bf9d34345b24b769176cb31759ffc | 7308f089e45b71497d1f79d90a9502282bb30f7c | /TestEngines/mysql.py | 7edb4ed88589715eadb9f2d1eb0bd14cce41ac5c | [] | no_license | braveswang/v2test | 804c7e86fa787040cea00ff895e171152bd7c242 | e1543e4dfe61f90bad7d3bfac8bd133f3563e3d4 | refs/heads/master | 2023-05-13T11:20:22.625318 | 2018-07-18T09:32:37 | 2018-07-18T09:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pymysql.cursors
from TestEngines.config import *
class Test:
def __init__(self):
self.connection = pymysql.connect(
host=CONFIG.get('MYSQL', 'HOST'),
port=int(CONFIG.get('MYSQL', 'PORT')),
user=CONFIG.get('MYSQL', 'U... | [
"deepjia@gmail.com"
] | deepjia@gmail.com |
4caed74a60c8e498f398a39b567023f66b6fd454 | 306a8a2475b0d86b016be948b368dd44da3d109a | /bounties/migrations/0011_auto_20160902_1553.py | 8ee1b2dfe8da46c27c1185a88f079294b7471230 | [] | no_license | kgfig/onepiecebounties | fb9093a026b653d3ec114fdc812f0471c6c04485 | 305a9b022aa078f1fec70da45d9263aca16b564a | refs/heads/master | 2020-12-03T04:17:19.073372 | 2016-09-18T01:30:04 | 2016-09-18T01:30:04 | 95,845,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('bounties', '0010_auto_20160902_1511'),
]
operations = [
migrations.AlterField(
model_name='pirate',
... | [
"kathleengay.figueroa@gmail.com"
] | kathleengay.figueroa@gmail.com |
eb97059c8e8392710252eef94beb2c0179e9b4d7 | d7a1cab0b158b550d278d416f3d93c2b2a48e106 | /blissutil.py | 11887f8c3dd7a54e04393373812156158a64bc87 | [
"MIT"
] | permissive | pirmoradian/BLISS | 624d03a0f1c4dfd0b2106abcbea2b702a911ed15 | efe029fe2ec6409712c000c9bfca2bd6c1dac6c0 | refs/heads/master | 2018-06-06T07:19:34.289490 | 2018-05-30T17:47:30 | 2018-05-30T17:47:30 | 125,905,557 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,865 | py | import matplotlib.pyplot as plt
#from scipy import stats,polyval
import numpy as np
from operator import itemgetter
import pickle
import copy
import re
__all__ = ['UtilDict', 'FileReader']
#***************************************
class UtilDict(object):
'''containing the utility functions used for dictionary'''
def ... | [
"sahar.pirmoradian@gmail.com"
] | sahar.pirmoradian@gmail.com |
bc223b451fec6f8d4802803c50b9f1f0a299af89 | 7912b6cccb6b4d9e7b1c1a4d3f196f8da352ff11 | /computer_guesses_number.py | 98b9d7f0e44557a6adf6365deb58b50b1a036b7a | [] | no_license | panatale1/teaching | 22090d4f3226f6d1a06b71458638dced4840af41 | e25364aa43f31542ab105fdf44781d8da9fd4ff7 | refs/heads/master | 2020-03-17T06:50:54.189972 | 2019-07-27T19:45:00 | 2019-07-27T19:45:00 | 133,371,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | def guess_number(low, high):
if low == high:
return low
mid = (high + low) / 2
response = raw_input("Is your number {}?(yes/no) ".format(mid))
if response.lower()[0] == 'y':
return mid
response = raw_input("Is your number larger than {}?(yes/no) ".format(mid))
if response.lower()... | [
"panatale1@gmail.com"
] | panatale1@gmail.com |
145dd83ff13b43d5878b3eb0f4de0a6748d7ed10 | ac47074bcf749273941ab01213bb6d1f59c40c99 | /project/multi_factor/alpha_model/exposure/alpha_daily_tsrank9.py | 5454e25583fa2b1f682220d7cd8d614d685f6e42 | [] | no_license | xuzhihua95/quant | c5561e2b08370610f58662f2871f1f1490681be2 | c7e312c70d5f400b7e777d2ff4c9f6f223eabfee | refs/heads/master | 2020-05-19T17:04:08.796981 | 2019-04-24T02:50:29 | 2019-04-24T02:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | import pandas as pd
from quant.stock.date import Date
from quant.stock.stock import Stock
from quant.project.multi_factor.alpha_model.exposure.alpha_factor import AlphaFactor
class AlphaDailyTsRank9(AlphaFactor):
"""
高频因子
ts_rank(rank(low),9)
首先计算每日股票最低价在股票池内的排名,再计算时间上述排名在最近9天的排名
"""
def __... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
e04bd468aa4464b615e74973bec338036d840146 | 6c7b19ad3119ca7f5f7e2e59102900faa06a268d | /uncle_lesson_ep6.py | 22299036b7a251a8ebb065ed43028f107e4c17d1 | [] | no_license | pui-ml/expense | ad2a8f1d9788ff61b4bf7894af30fe6bde3d83a1 | 585f0a92b70a105bc2629e5c3116483b00a0fe41 | refs/heads/main | 2023-08-10T23:06:13.045386 | 2021-09-26T15:24:32 | 2021-09-26T15:24:32 | 409,151,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,998 | py | from tkinter import *
from tkinter import ttk, messagebox
import csv
from datetime import datetime
import sys
GUI = Tk()
GUI.title("Expense Tracker")
GUI.geometry("500x500+200+100")
########### menu bar ###############
menu_bar = Menu(GUI)
GUI.config(menu=menu_bar)
# file menu
file_menu = Menu(menu_ba... | [
"noreply@github.com"
] | pui-ml.noreply@github.com |
39d1e88a3987aea0b3a27768b630796c94cb3239 | e3f4e9e7252bec042fd97076faef0a94251a3201 | /shopapi/routers/user.py | c7a34eac150d43acace6cc6a1b783351ae193ac6 | [] | no_license | eshopapi/python-api | 95f64c2777867ce3d246d2e1aa6addd0039953a3 | 0d2cc82dba94384541be2507701b5b9b34634e5f | refs/heads/master | 2023-03-26T11:44:47.631281 | 2021-03-27T00:59:25 | 2021-03-27T00:59:25 | 347,774,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | """User-related API endpoints
"""
import logging
from typing import List
from fastapi import APIRouter, Depends
from shopapi.helpers import dependencies as deps, exceptions
from shopapi.schemas import models, schemas, api
from shopapi import actions
logger = logging.getLogger(__name__)
router = APIRouter(prefix="/us... | [
"info@tomasvotava.eu"
] | info@tomasvotava.eu |
6abff99c7fff4207e881dc321edeb8ebe67ca815 | 49eed26edb54813b3dce4dc41a512c57e2822b36 | /plugins/rex_socketio_chat/ServerEngine/src/setup_engine.py | 64a28ee202d5d64fe6b3572ac8c21c67b19a9022 | [] | no_license | JohnnySheffield/C2_Plugins_Rex | b41d2620c5fdd870f1f233ed243b3dbf96923070 | c723550cb36540209fa71415dbfa91be328a139a | refs/heads/master | 2021-01-18T13:29:58.342134 | 2013-04-28T01:01:23 | 2013-04-28T01:01:23 | 9,702,925 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py |
# setup.py
from distutils.core import setup
import py2exe
# We need to import the glob module to search for all files.
import glob
# Remove the build folder, a bit slower but ensures that build contains the latest
import shutil
shutil.rmtree("build", ignore_errors=True)
# my setup.py is based on one generated wit... | [
"binhua.tein@gmail.com"
] | binhua.tein@gmail.com |
d0a03cd0e5641548a9237b8af49e0d2aed2252f2 | 6ba4546aaad6e468b86244d51619aabce58e3c63 | /yqpass-v1.5/backend/resmanage/models.py | b6786510de58b2c2ba25cb218d8a8f483c25c201 | [] | no_license | LezBaishi/yqpass | 3840d9f48f2809e8617002e5a8ff9492f10ec202 | 7131e418c01095ec0248a28afc06998cd2d7505c | refs/heads/master | 2022-10-31T18:24:15.278290 | 2018-10-23T12:05:44 | 2018-10-23T12:05:44 | 140,539,352 | 1 | 1 | null | 2022-10-10T23:01:09 | 2018-07-11T07:39:25 | Vue | UTF-8 | Python | false | false | 8,349 | py | from django.db import models
__author__ = 'mc'
# Create your models here.
class BuildingInfo(models.Model):
"""
楼栋信息表
"""
building = models.CharField("楼栋", max_length=50)
creator = models.CharField('创建人', max_length=50, default='admin')
gmt_created = models.DateTimeField('创建时间', auto_now_add... | [
"645034308@qq.com"
] | 645034308@qq.com |
4ceb1169b17f5ecb87cbe8ecf513094aca5757fb | 9bcba8f3162eacea872dbadc9990a164f945f70a | /Packages/comandos/less_compile.py | ac8f39c84ef170e6388339bb635164f8cb30228a | [] | no_license | programadorsito/Packages | a4cb568219dbc10a69e15a2832ef52d19eb83061 | af748327f128ed90bb146dc12bb53b76ccb609fd | refs/heads/master | 2021-01-10T04:41:38.676159 | 2016-04-06T07:52:45 | 2016-04-06T07:52:45 | 55,560,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py |
import sublime, os, platform
import sublime_plugin
import subprocess
import webbrowser
from subprocess import PIPE, Popen
class LessCompileCommand(sublime_plugin.TextCommand):
def run(self, edit):
window=sublime.active_window()
view=window.active_view()
view.run_command("ejecuta... | [
"Mac@MacBook-de-Mac.local"
] | Mac@MacBook-de-Mac.local |
f5a916d3b329f603a68d398034bffd51f8825d94 | d14c8419786129124c4a81a9f2f6ba963ada0f0b | /labs/lab05/tests/q2_4_3b.py | 60ed30a13337d549a04a972bee75259718fe307b | [] | no_license | ucsb-ds/ds1-w21-content | 5ad4421ae106de2c2e3d9a9a22f3580cd26757b5 | 1ab3d43d3b66d7eb5774dab3ff23e0bc848241bd | refs/heads/main | 2023-03-13T19:11:14.271885 | 2021-03-08T17:48:22 | 2021-03-08T17:48:22 | 329,216,349 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | test = { 'name': 'q2_4_3b',
'points': 1,
'suites': [ { 'cases': [{'code': '>>> (gave_away_all_guys > 0) and (gave_away_all_guys < 5)\nTrue', 'hidden': False, 'locked': False}],
'scored': True,
'setup': '',
'teardown': '',
... | [
"swsolis@ucsb.edu"
] | swsolis@ucsb.edu |
717ab242e9964182526ed036becb8eea6cc752fe | 63deaf056c59db72a1df338fddaa99453a4fbb6f | /test/test_connector.py | 494b213949352d927cf752325ead0afd05b1498f | [
"Apache-2.0"
] | permissive | aantti/haystack | 60efb46b090fdaf3b00e14e9b16afb617107a7fe | 6f6f2357fdef9e98850a7ffcd80f18b05aa7cfaf | refs/heads/master | 2023-08-20T23:41:10.416841 | 2021-10-26T09:47:25 | 2021-10-26T09:47:25 | 339,123,743 | 0 | 1 | Apache-2.0 | 2021-02-16T15:15:18 | 2021-02-15T15:39:59 | null | UTF-8 | Python | false | false | 4,525 | py | import json
from pathlib import Path
from re import search
import pytest
from haystack.connector import Crawler
def test_crawler_url_none_exception(tmp_path):
tmp_dir = tmp_path / "crawled_files"
with pytest.raises(ValueError):
Crawler(tmp_dir).crawl()
def test_crawler_depth(tmp_path):
tmp_dir ... | [
"noreply@github.com"
] | aantti.noreply@github.com |
c7d1a3d4c7e7cae5223344a1b29d7b2c57fc9ff2 | 23cda8710dc83ca1d26e8f9160e5c537871ef532 | /blend.py | 9c30792ef264212be4d5b698dc31313a6dd45d16 | [] | no_license | neeraj71/Recommender-system-EPFL | 676f352ef6557609f637c9d122f36d53c3f97d64 | ee930555e93ae7014485df5b97fd179f41bd2b42 | refs/heads/master | 2020-04-26T23:58:52.324859 | 2019-03-05T14:31:24 | 2019-03-05T14:31:24 | 173,920,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | import numpy as np
import os
import pickle
def blend_train(als=None, sgd=None, user__mean=None, knn_user=None, knn_item=None, svd=None, svdpp=None, nnmf=None, alpha=None, label=None):
"""
This function train blending model for our prediction of algorithms
:param als: is prediction array of als algrithm w... | [
"neeraj.yadav@epfl.ch"
] | neeraj.yadav@epfl.ch |
356e9ad348952f8b101d113adef955cd75ab0c98 | c7e67a9c5e7b420adec05469945d523489cf36bc | /CalculIndicateurs.py | 18e804871ebd2bf36f56cf4bf6d3f316443c9b03 | [] | no_license | nicolasjammaron/skyhawk | b8669950e7a8b207c61b8018c30eac37de583f30 | c75bfc49730ed913d03ef03c9812c888d772efd9 | refs/heads/master | 2021-01-21T08:32:52.991034 | 2017-06-09T15:07:38 | 2017-06-09T15:07:38 | 91,631,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | import talib
class CalculIndicateurs :
def __init__(self):
super().__init__()
self.emaNumbers = [5,8,13]
self.data
self.emaDico = {'5':None,'8':None,'13':None}
self.macd = {'macd':None,'signal':None,'hist':None}
def updateMACD(self):
macdvalues = talib.MACD(sel... | [
"nicolas.jammaron@ensimag.grenoble-inp.fr"
] | nicolas.jammaron@ensimag.grenoble-inp.fr |
4c83e71c46773026b582981edca312904a019d88 | 72c5105f2ba72d06899db5a557027daee7273f9b | /aproxy/__init__.py | 6cefd260df678679a1e7767f67b70bf3d72d6a13 | [
"MIT"
] | permissive | FrodeHus/aproxy | 2e8d3ee4e870256ac21087cc9edef54949d153f4 | bcb7041f445a6ad8f32cddc56604661fbe4e0b46 | refs/heads/master | 2021-04-15T01:45:45.732899 | 2020-05-20T07:11:32 | 2020-05-20T07:11:32 | 249,284,213 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import aproxy.version
__version__ = aproxy.version.__version__ | [
"frode.hus@outlook.com"
] | frode.hus@outlook.com |
33982be657ad93c9136ef94cb9ff6b50e2c5d92d | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.51/3/1569573233.py | bec2553682ba5fd391a6449b21a128a3f4e8303c | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import functools
import typing
import string
import random
import pytest
def schaltjahr(x: int):
"""Gibt an ob sich das eingegebene Jahr um ein Schaltjahr handelt.
Agrs:
int: das jahr
Return:
True wenn es stimmt ansonsten False
"""
if x // 4 or (x // 100 and not x // 400):
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
6ee5673a5b8a8462eae94ba73cee74e3b013a4a5 | 810c20e76f6e5aabce8046379178bb8bf4b6252f | /shoeapp/migrations/0001_initial.py | 838e8358e582af527ca89657255020cff78b7144 | [
"MIT"
] | permissive | pbuzzo/shoestore | ac8d96abc824c3656de6dc59131b5a648cd884bf | 58d95f9eaa8452f051a72f407f0637ebd96a4ec6 | refs/heads/master | 2022-11-14T04:39:52.858524 | 2020-07-02T15:15:55 | 2020-07-02T15:15:55 | 272,740,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | # Generated by Django 3.0.7 on 2020-06-19 00:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Manufacturer',
fields=[
... | [
"pbuzzo04@gmail.com"
] | pbuzzo04@gmail.com |
f605f8081c067463f69d9c75df0f55e1116d7458 | 0aea5cbe160131697297415ac526826f68d77b25 | /python/tutorials/lists/lists_intro.py | 324dba22fd3a6b0ff88b0a517dea3e6919ee50d6 | [] | no_license | Xenolithes/Algorithims | 61df1ac4dbb2480c3d9d9423be7bad64cf7b4575 | f4f9898e8e13c8e62328c504bc236f33c431e38c | refs/heads/master | 2023-03-15T13:15:11.756664 | 2021-11-28T17:31:26 | 2021-11-28T17:31:26 | 228,446,345 | 0 | 0 | null | 2023-03-06T12:35:23 | 2019-12-16T18:08:37 | Python | UTF-8 | Python | false | false | 404 | py | computer_parts = ["computer", "monitor", "keyboard", "mouse", "mouse mat"]
for part in computer_parts:
print(part)
print(computer_parts[2])
print(computer_parts[:3])
print(computer_parts[-1])
# Strings and Lists are both sequences
# The big differeneces between strings and lists is
# Strings are immutable meani... | [
"evan.schweitzer.hratx44@gmail.com"
] | evan.schweitzer.hratx44@gmail.com |
ff8d003eb83c85ec20fd29307cfa44507cee252a | b6e569f75870c331f69b7d55ee8f8e3e4355f51c | /account/views.py | 914f15b982625e3dd870db5b5671c177d0059982 | [] | no_license | begimai123/MYBLOG | e390b62efaa0e78060babdb3ce4c1fca95109dde | 3ae47766af8e0bfdfeadf209c9a7902392cc206c | refs/heads/master | 2023-04-13T02:13:21.094426 | 2021-04-27T04:53:37 | 2021-04-27T04:53:37 | 361,983,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | from django.shortcuts import render
from rest_framework import status
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.generics import get_object_or_404
from rest_framework.response import Response
from rest_framework.views import APIView
from .models import MyUser
from .serializers impor... | [
"begimaidosieva1@gmail.com"
] | begimaidosieva1@gmail.com |
533dcf1322f8166627a2158712fc9355dd632898 | d087f90c6e64cb74c9f61a1dbc807662896e7ce9 | /Domains/Algorithms/sWAP cASE/main.py | 4f612d828d504e95cd9361bfcd55369b65995e8f | [] | no_license | youfeng243/hackerrank | e7c26e56f30731ee27ac17b19712362c53a3bb94 | 913ec6db9a861c9f97726dde24488c10db63d23c | refs/heads/master | 2021-01-10T01:08:38.413900 | 2016-02-29T14:24:25 | 2016-02-29T14:24:25 | 49,575,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | '''
from __future__ import print_function
text = raw_input()
textlen = len(text)
for i in xrange(textlen):
if text[i].islower():
print (text[i].upper(),sep="",end="")
else:
print (text[i].lower(),sep="",end="")
for i in text:
if i.islower():
print (i.upper(),sep="",end="")... | [
"youfeng243@163.com"
] | youfeng243@163.com |
83195e00d218aa30e013968d9740532fab773cf2 | d30b45d4f5abc90434970d3280cd70a3c8a70690 | /bin/pip | 7c804f5eb1f36b261b935011acbfd931893b3173 | [] | no_license | ivan2375/venv01blog | 9883a5f796a9cc0e85368b78be5fd73cf86b6759 | b696ace9310a08380e53ef82ced3c8eca7df1d9d | refs/heads/master | 2021-01-19T17:49:57.767251 | 2017-08-22T17:48:08 | 2017-08-22T17:48:08 | 101,089,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/Users/ivan.hsu/Documents/ProgrammingProjects/Python/Venv01/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ivan.hsu@IvanMBP15.local"
] | ivan.hsu@IvanMBP15.local | |
e7e466f95b12b358ad6e38e3f1a752e07fb850ae | 6bcd16a2468ccaa6f0abe2d534094727258e7023 | /dateevent_daemon | 46f289359df7cb8e42acb789cac700051a56ad6e | [] | no_license | Cermit/DateEvent | 939112de3293274e221f84a8d2b578e7ea2464cb | 6111e259eecbd9719ad2893d9684177b61d7c3e5 | refs/heads/master | 2020-06-03T13:41:50.549888 | 2012-03-05T18:55:32 | 2012-03-05T18:55:32 | 2,715,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,800 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import os
import sys
if os.path.exists('/usr/share/dateevent'):
sys.path.append("/usr/share/dateevent")
import ConfigParser
import subprocess
import dbus
import dbus.mainloop.glib
from sqlite3 import *
from time import time
from datetime import datetime
from eventfeed i... | [
"boris@pohlers-web.de"
] | boris@pohlers-web.de | |
95faae4c3d99f9fe7b0b38261ca6ed324dd109f9 | 4bae4a5ff3089ea478a536c6f9d10803f0a1058b | /poste/views.py | 2a5ac69fb743f7c35c7969b6bd6486ebd002865a | [] | no_license | mohamed-amine-maaroufi/social-network-django | db6a36bbb6519361ed5b44f5f91ec1f6615a9970 | 4c8fe63a7060427c172b7cede4c5a44258de10d1 | refs/heads/master | 2021-08-28T18:26:05.297170 | 2017-12-12T23:23:17 | 2017-12-12T23:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | from django.contrib.auth.decorators import login_required
from django.http import JsonResponse
from django.utils import timezone
from django.shortcuts import render, get_object_or_404
from django.shortcuts import render, redirect
# Create your views here.
from django.views.decorators.http import require_POST
from pos... | [
"aminemaaroufi40@gmail.com"
] | aminemaaroufi40@gmail.com |
e6494ca65bec7c312419a5a0650ba71912aa229e | 84e661d5d293ec0c544fedab7727767f01e7ddcf | /security/utils.py | 38eb674978ff268071338f7811f0de31645f8423 | [
"BSD-3-Clause"
] | permissive | groundupnews/gu | ea6734fcb9509efc407061e35724dfe8ba056044 | 4c036e79fd735dcb1e5a4f15322cdf87dc015a42 | refs/heads/master | 2023-08-31T13:13:47.178119 | 2023-08-18T11:42:58 | 2023-08-18T11:42:58 | 48,944,009 | 21 | 23 | BSD-3-Clause | 2023-09-14T13:06:42 | 2016-01-03T11:56:48 | JavaScript | UTF-8 | Python | false | false | 698 | py | from django.contrib.auth.password_validation import MinimumLengthValidator
class StaffMinimumLengthValidator(MinimumLengthValidator):
def __init__(self, staff_min_length=14,
other_min_length=9):
self.staff_min_length = staff_min_length
self.other_min_lengt... | [
"nathangeffen@gmail.com"
] | nathangeffen@gmail.com |
7f5235ef055eb553258319be0bcf2c6a64bb75c9 | c5d1c3754b46b1509177add5ac1a532832bd6322 | /quickstart.py | d356df68cc8d27f748adcade53ef5991637d7563 | [] | no_license | aylanismello/boost-instagram | f2d3ee011a63bcec154b63d1e89d10542b4b0e12 | bec82f95edcf6458cf8e7bfe5a19f5fd98807971 | refs/heads/master | 2022-07-16T13:33:05.655302 | 2020-05-12T02:11:55 | 2020-05-12T02:11:55 | 263,208,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,184 | py | # https://github.com/timgrossmann/InstaPy/blob/master/DOCUMENTATION.md
# https://github.com/InstaPy/instapy-quickstart/tree/master/quickstart_templates
# Blocking likes issue: https://github.com/timgrossmann/InstaPy/issues/4609
import csv
import random, os, sys
from dotenv import load_dotenv
# imports
from instapy im... | [
"aylanismello@gmail.com"
] | aylanismello@gmail.com |
eef72f6b51880660e4b1ce6582030f3c8b68cbff | 235746e7bdb0cc4b11e9eda6878a85828853b7c7 | /PlayAssetDelivery/BundletoolScriptSample/generate_asset_pack.py | 27e7f8222032aca7b08a7536af942d4b0effce68 | [
"Apache-2.0"
] | permissive | android/app-bundle-samples | 0a156df874331f2588f867050c439c5f7808e7ee | a72d67aa462b3f081cc101437110ae9f91b403cc | refs/heads/main | 2023-08-16T00:25:19.290817 | 2023-03-22T14:14:32 | 2023-03-22T14:17:46 | 206,879,574 | 710 | 360 | Apache-2.0 | 2023-03-22T14:17:48 | 2019-09-06T21:54:59 | C++ | UTF-8 | Python | false | false | 5,775 | py | #!/usr/bin/env python3
#
# Copyright 2021 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 ... | [
"agiuglia@google.com"
] | agiuglia@google.com |
2756de0d21cdc922c2a96026b315a55640b2ece7 | 38941ac80bb2473baa8558d870daa53459688f35 | /utils/config.py | 63264514746eb4a8e452699b4875471da5b6c57a | [] | no_license | waxiao1214/flask | 15ce2a710322e4b288c444bef9e365492fdbb626 | f2f8aa551a9236ed9c64bc27d62741b363c043a8 | refs/heads/master | 2022-04-06T00:28:58.500293 | 2020-02-05T17:47:34 | 2020-02-05T17:47:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from solariat_bottle import settings
class SettingsProxy(object):
""" Simple proxy to combine solariat_bottle.settings with Flask.config
"""
def __init__(self, config):
self._config = config
def __getitem__(self, name):
null = object()
item = settings.get_var(name, null)
... | [
"henryza1994@outlook.com"
] | henryza1994@outlook.com |
cde8bc25a08de424823ffe9ff194c2c48cdbd611 | a9192511e74c524f1b8f16b186e683fd8e849e95 | /4.2 shopping/shopping.py | e78ac9e2cb7c85bebe4984ed9fd277c26319823d | [] | no_license | NguyenLeVo/cs80 | 32fd212b2c9ba7a421a2977e390ef5b89f83a9c4 | 677ae97e00040631f6954dca36e3e6f35d415572 | refs/heads/master | 2022-11-10T01:21:58.790057 | 2020-06-28T20:07:46 | 2020-06-28T20:07:46 | 275,659,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,637 | py | # Write an AI to predict whether online shopping customers will complete a purchase.
# Supervised Learning - Classification
import csv
import sys
import calendar
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.linear_model import Perceptron # Perce... | [
"NguyenLeVo@github.com"
] | NguyenLeVo@github.com |
f59fbe13735d62fa7d62c13cfbf744ecdd25f38e | c2cbbbb5157cd780d6a2ceecd53f2fdf7b5726c9 | /portfolio/models.py | 0e8aa06f5b4773ba74c0f94e50956c408497d5b4 | [] | no_license | Efukuda/efsREST | d588151d99ca0292f19319f1a330e5d6503e52eb | 6dda452fe78ad6e4a346ba79bee819175ed21846 | refs/heads/master | 2020-09-10T17:56:18.908468 | 2019-11-14T21:10:30 | 2019-11-14T21:10:30 | 221,787,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Customer(models.Model):
name = models.CharField(max_length=50)
address = models.CharField(max_length=200)
cust_number = models.IntegerField(blank=False, null=False)
city = models.CharField(max_length=50)
... | [
"efukuda@unomaha.edu"
] | efukuda@unomaha.edu |
716cb71d2926d73b6c87c5c97ecc84f2d03c90c9 | 474b327e28a0aebaff65b2d8156cd2fa83b2aad1 | /python/index.py | 4f8ce5d2306234626b017badfb26b107034ba3de | [] | no_license | harishvenkatram/demo1 | 0e2889c7b132d880f1ef108078b0ba979999fa4d | 4d1438d933a31b92b42d471d8c53f9c682797451 | refs/heads/master | 2022-12-04T02:44:35.926423 | 2020-08-24T03:29:06 | 2020-08-24T03:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | #!C:\Users\UMANG KEJRIWAL\AppData\Local\Programs\Python\Python38-32\python
print ()
import cgi
print("Umang")
| [
"noreply@github.com"
] | harishvenkatram.noreply@github.com |
b120efee5779518f4a6c6d97bfd7c808094ce080 | 419a5e8678eb1788d026cde793d108010a6d620e | /Project1/fresh_tomatoes.py | 9c6747a766fdc9dd3582487b5e41da7de4b3b365 | [] | no_license | thuzarwin/Udacity-Full-Stack-Web-Developer-Nanodegree | 67065b9b8983f1ad39c9d2d612d54fcb83b8f1a5 | 7dd1409c6e0f5f7542a103cea062b76966482279 | refs/heads/master | 2021-06-08T05:15:24.236832 | 2016-10-04T04:53:35 | 2016-10-04T04:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,696 | py | import webbrowser
import os
import re
import entertainment_center
# Styles and scripting for the page
main_page_head = '''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Fresh Tomatoes!</title>
<!-- Bootstrap 3 -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/boot... | [
"gerrywu@utexas.edu"
] | gerrywu@utexas.edu |
d9c4f7f505a201081de9b7f4da64e67fe884cecb | 2231edd55bb0e23471ccd2f4c543e0b67f1aa678 | /src/C3/3-8.py | 9e9f1786cdc82fa6e4e0e97642f4b5c3b4fad3f7 | [] | no_license | johnhuzhy/StellaPythonExam | 665d8f906be7cc973b66bc8a8f84d177ed87b178 | 52d4fb09da1e19fc825a59de1f9ab23c4dbe2409 | refs/heads/master | 2022-11-10T22:02:04.298075 | 2020-06-25T11:10:30 | 2020-06-25T11:10:30 | 265,241,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | #这个break结束的是第二层循环,第一层循环还会去执行1,2,3
#else语句是和第一层for搭配的,所以会出力else里的内容
b=[['apple','orange','banana','grape'],(1,2,3)]
for y in b:
for z in y:
if z=='orange':
break
print(z)
else:
print('fruit is gone')
| [
"johnho560@gmail.com"
] | johnho560@gmail.com |
af5e2fb5643a8c3f17b041036b893ffe89a19e84 | 1e9e5f745e34b4e490a090fa658ecc9084b2142e | /cancertype_prediction/learn_and_predict_tcga_split_cancertypes_optim.py | f40ba083bb5062ae7661fd395cf65cde2feb74ef | [
"MIT"
] | permissive | DPBayes/dp-representation-transfer | 588ccf78c49dbcdfc941054254716cf120c6c66d | 0c8389cc36659a7606bceac2531eaef7663ac49c | refs/heads/master | 2020-04-30T21:11:51.418433 | 2019-03-22T13:48:19 | 2019-03-22T13:48:19 | 177,088,165 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,755 | py | '''
Representation learning testing for TCGA data.
Set all parameters in this script & run with parameter "batch" or "local".
'''
import numpy as np
import logging
import datetime
import time
import math
from common import expInterp, ensure_dir_exists, pretty_duration
import batch
from types import SimpleNamespace
#... | [
"mixheikk@LM8-MAT-01.local"
] | mixheikk@LM8-MAT-01.local |
734ccbece3793fccf093f76b9406ba61a8eecd2c | 85f513c638304a04243ba361ae0c3cf59910bdbb | /indglobal_employee/models/hr_employee.py | 502a39fd27a725b22ccc9a76e0e732327efe83f7 | [] | no_license | Raghupathy15/Posiflex | 0c27058559755336a7a79f8c4cea3c3e06842431 | 9551dd52aa93f6b46258bd7cc07f05e2532b6d92 | refs/heads/main | 2023-01-22T19:53:17.344864 | 2020-12-09T09:34:36 | 2020-12-09T09:34:36 | 319,907,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,039 | py | from datetime import datetime, timedelta
from odoo import models, fields,api, _
class HrEmployeePrivate(models.Model):
_inherit = 'hr.employee'
emp_id = fields.Char(string='Emp ID')
work_email = fields.Char('Work Email',required=True)
user_level = fields.Selection([('admin', 'Admin'),('sales_head', 'Sales Head'),... | [
"raghupathy@emxcelsolutions.com"
] | raghupathy@emxcelsolutions.com |
a7ba89bcca1697463abe9959caa34d1f86a6b2cb | e1d9897c9daa5067b2572b6cbe871bfc3193ecfe | /groups/admin.py | df270398b93798dec953106ed6f5aeb9634db460 | [] | no_license | andreas-andersen/wishlist | 2816db7cf47ec07190c0423e5774b9fdcfc8bdaf | 5fac4503485817f8a2b73f07aa6e56f73cba08ca | refs/heads/main | 2023-07-01T05:55:31.298843 | 2021-08-10T18:06:01 | 2021-08-10T18:06:01 | 384,810,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | from django.contrib import admin
from django.contrib.auth.models import Group
from .forms import (
CustomGroupAdminForm,
AssignmentAdminForm,
AssignmentsAdminForm,
)
from .models import (
CustomGroup,
Assignment,
Assignments,
)
class CustomGroupAdmin(admin.ModelAdmin):
form = CustomGroupAdm... | [
"andreas.andersen@gmail.com"
] | andreas.andersen@gmail.com |
5054475bccaf0879e8a054dc1c76c35c7c5437a1 | fdf66fa44ebfb24c138ad9cd9c14ec4850f696cb | /ladim_plugins/sedimentation/ibm.py | 4d887aa9e9f6b720c9d999301bc19f2dc1c77529 | [
"MIT"
] | permissive | mcarvajalino/ladim_plugins | 71ffb62abe4a1829fbf9670da7dad9c6d9e498ba | a83ca24f41400e42d2beaddad455fdfdb7a3e1cd | refs/heads/master | 2022-11-24T13:34:49.970967 | 2020-07-20T14:25:27 | 2020-07-20T14:25:27 | 278,305,441 | 0 | 0 | MIT | 2020-07-09T08:18:36 | 2020-07-09T08:18:35 | null | UTF-8 | Python | false | false | 4,848 | py | import numpy as np
class IBM:
def __init__(self, config):
# Time before a particle is taken out of the simulation [seconds]
self.lifespan = config['ibm']['lifespan']
# Vertical mixing [m*2/s]
self.D = config['ibm']['vertical_mixing'] # 0.001 m2/s -- 0.01 m2/s (?)
self.tau... | [
"paal.naeverlid.saevik@hi.no"
] | paal.naeverlid.saevik@hi.no |
4166a69a49c224c29b3c6e48f4a46bf539ccb102 | 3daaa4fca3c829d4654c3cd1fe0fc9215c8d31ee | /build/env/bin/pycolor | 3fa70750c308cfd16d35d81a0267b67a049b31d6 | [
"Apache-2.0"
] | permissive | yongshengwang/hue | 0f8e41793ae8c1165860846fd2edb599e70a35a1 | 7d2a85f4269e8a3b5fd817bf52db80c8c98c76c7 | refs/heads/master | 2021-01-17T08:59:49.760232 | 2015-09-17T00:56:59 | 2015-09-17T00:56:59 | 42,576,621 | 0 | 0 | null | 2015-09-16T09:05:36 | 2015-09-16T09:05:36 | null | UTF-8 | Python | false | false | 321 | #!/home/tiny/hue/build/env/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==0.10','console_scripts','pycolor'
__requires__ = 'ipython==0.10'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('ipython==0.10', 'console_scripts', 'pycolor')()
)... | [
"wysnight@gmail.com"
] | wysnight@gmail.com | |
bb495c4beaa3e9dc52378f1884975061abdacc69 | bc0a3e754509416b33501deb272801c119842c2d | /pur_beurre/functional_tests/tests.py | 6029c076e1dcc51ec286cd5b8cb6a74ed66effef | [] | no_license | oliviernes/oc_P8 | 88374759eafb1f3f35e35cfc205c8ec38ca90a74 | 4671b8ff76ba2a7d99fd043772249ca2778ae11f | refs/heads/master | 2023-08-11T23:11:53.304025 | 2020-10-25T19:19:39 | 2020-10-25T19:19:39 | 248,483,352 | 0 | 0 | null | 2021-09-22T19:35:51 | 2020-03-19T11:16:04 | CSS | UTF-8 | Python | false | false | 8,389 | py | """Functional tests"""
import time
from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class NewVisitorTest(LiveServerTestCase):
"""Class testing a new user visiting the Pur Beurre website"""
fixtures = ["dumpy_content_fixtures"]
def... | [
"olivier.nesme@gmail.com"
] | olivier.nesme@gmail.com |
d6cd2c0b41c0f13605d7b9fff2cf085d44260e30 | 9cf434b6ee59ab22496ee031fb4ab145bbaff1a2 | /tranque_v1.8.4_source/backend/src/alerts/modules/ef/m2/desplazamiento_deformacion_muro/C4.py | f4cd5ac1032141486d6824cc375ae30512c1ed27 | [] | no_license | oliverhernandezmoreno/SourcesOH | f2ff1a5e3377f0ac1fb8b3153d99d0ee703700b7 | 5d9ca5ab1caceafd4d11207139c9e56210156ef8 | refs/heads/master | 2023-01-05T02:51:25.172103 | 2020-08-27T14:39:34 | 2020-08-27T14:39:34 | 64,422,812 | 0 | 1 | null | 2022-12-30T17:25:10 | 2016-07-28T19:33:44 | JavaScript | UTF-8 | Python | false | false | 656 | py | from django.db.models import Q
from alerts.modules import base
from alerts.modules.base import spread
from targets.models import DataSource
from .base import DesplazamientoDeformacionController
from alerts.modules.base_states import EVENT_STATES
from alerts.modules.utils import single_state_create
@spread(DataSource,... | [
"oliverhernandezmoreno@gmail.com"
] | oliverhernandezmoreno@gmail.com |
5fcd07dbaf13100556f96409f7c098f0889be097 | 39e678fb9200560f9135ef3cb18c93f2a118fe9c | /svm/svm.py | c5001383c4e4f68913b80b5aacb4f07db83489c9 | [] | no_license | devikrishnan/Prediction-Model---Diabetes | 7061cbaa9a3fae4c0b02f9cec1752fb38dddadf8 | 533d0bfd90ef9b24cf46933311f3f6c6272f5c46 | refs/heads/master | 2021-09-07T07:08:12.572746 | 2018-02-19T10:33:18 | 2018-02-19T10:33:18 | 105,686,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | from __future__ import print_function
import pandas as pd
import numpy as np
from sklearn import datasets
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from sklearn.model_selection import GridSearchCV
from sklearn.metrics import classification_report
from sklearn.svm import SV... | [
"devikrishnan67@gmail.com"
] | devikrishnan67@gmail.com |
acfbf5087c276f5a595830928c51cc2d5546c02a | 2fbba2e0dd9afe5fbde70bd0d907b34cda5265ae | /lesson5/excersise3.py | 299f887d87c8d7c353adb26e3def81196585f892 | [] | no_license | htr2/pynetme | c3655fe6cf51c9a50dc69425410ef89088f4d8c4 | 59de01967cbab4f746e28bf4c929e02975bcf0d6 | refs/heads/master | 2020-03-27T00:25:52.258387 | 2019-07-29T10:08:56 | 2019-07-29T10:08:56 | 145,622,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | #/usr/bin/env python
"""
Similar to lesson3, exercise4 write a function that normalizes a MAC address to the following
format:
01:23:45:67:89:AB
This function should handle the lower-case to upper-case conversion.
It should also handle converting from '0000.aaaa.bbbb' and from '00-00-aa-aa-bb-bb' formats.
The function ... | [
"hvoelksen@gmail.com"
] | hvoelksen@gmail.com |
b7d59052bc35ff4ff1b5a0faa8b6f4383e22edad | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /platform/bq/third_party/google/auth/credentials.py | f3014a08d291f6cf1e635a17f5d8b3ed1381593a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 13,988 | py | #!/usr/bin/env python
# Copyright 2016 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 ... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
ade1e463d92aaf8de7ffcf2b58ea3cefa5b27722 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/metric/metrics.py | d399cb2052498529f41a3617a60b9a221b5d837c | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 28,621 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
cbe80998335946c7b3add27c0670ae2dba4ea8a5 | 3f2c58ba20a4c176d18eed4b699806bb79db1b9a | /Stacks and Queues/Stack Min.py | 56d937d022a731cfc5509d6547a67eea8410c089 | [] | no_license | Kabileshj/college-works | ffa67dc923335854c0fee53f7ea737f8639e5f52 | 96c49540339fcaa898f621a92e1c14c57042ab61 | refs/heads/master | 2022-11-12T22:12:39.849885 | 2020-07-09T15:59:39 | 2020-07-09T15:59:39 | 240,673,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | class Node:
def __init__(self, value):
self.value = value
self.next = None
def __str__(self):
return "Node({})".format(self.value)
__repr__ = __str__
class Stack:
def __init__(self):
self.top = None
self.count = 0
self.minimum = None
def __str__(self):
temp = self.top ... | [
"noreply@github.com"
] | Kabileshj.noreply@github.com |
8874932836a21ac4c38e9b9e7da1f1da049b0afc | 64b7ce2f4d2d24d24f7e169a58fe69257078984c | /buffpy/__init__.py | 183065769855aea39bd77235e47028371189e1e5 | [
"MIT"
] | permissive | holdenk/buffer-python | 055d444c385ea6e6ee285bb348b0c19ebda304c1 | 001a3bffda8736f32a8ffae3d26af9b79b2a3680 | refs/heads/master | 2020-03-29T20:50:58.408856 | 2018-09-26T19:25:51 | 2018-09-26T19:25:51 | 150,334,500 | 1 | 0 | MIT | 2018-09-25T22:02:00 | 2018-09-25T22:01:59 | null | UTF-8 | Python | false | false | 43 | py | from .api import *
from .response import *
| [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
7691a901b311b39403ab979b2a4a02e22bf8cbf3 | 3492b97a904d7397c13c03334d0abe23484024bc | /edts/wizard/signature_wizard.py | c24588177933775b7382ca64c429096aacf78979 | [] | no_license | hassanfadl/vendor_portal_app | e578262ae25261e6740e4329cb45168ec2e790b4 | ebf8f4f7452190c986fbc9c225b8660fe0bd4bd4 | refs/heads/main | 2023-08-23T10:12:07.838305 | 2021-10-30T04:44:40 | 2021-10-30T04:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | from odoo import fields, models, api
from datetime import datetime
class EDTSSignatureWizard(models.TransientModel):
_name = 'edts.signature.wizard'
_description = 'EDTS Signature Wizard'
account_move_id = fields.Many2one('account.move', string='Account Move')
liquidation_reference_id = fields.Many2o... | [
"dennisboysilva@gmail.com"
] | dennisboysilva@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.