hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
5ab5784bbbc538f34c90612509e8b5b982eb2672
470
ex
Elixir
web/views/bill_view.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
web/views/bill_view.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
web/views/bill_view.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
defmodule Caravan.BillView do use Caravan.Web, :view require Ecto.Query alias Ecto.Query alias Caravan.Repo alias Caravan.BillQuery alias Caravan.UserQuery alias Caravan.BillItemView alias Caravan.BillMemberView def member_names(bill) do UserQuery.by_bill(bill.id) |> Query.select([:name])...
18.076923
48
0.706383
5ab59f9395cc2c6a684fe234aa0e10e65485a13b
2,027
ex
Elixir
lib/erlef_web/router.ex
adolfont/website
265eef1e2d0d23ce71a0ba51c35b22d2f6260658
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/router.ex
adolfont/website
265eef1e2d0d23ce71a0ba51c35b22d2f6260658
[ "Apache-2.0" ]
null
null
null
lib/erlef_web/router.ex
adolfont/website
265eef1e2d0d23ce71a0ba51c35b22d2f6260658
[ "Apache-2.0" ]
null
null
null
defmodule ErlefWeb.Router do use ErlefWeb, :router @trusted_sources ~w(www.google.com www.googletagmanager.com www.google-analytics.com fonts.gstatic.com fonts.googleapis.com use.fontawesome.com stackpath.bootstrapcdn.com use.fontawesome.com platform.twitter.com code.jquery.com platform.twitter.com...
32.693548
111
0.699063
5ab5bf219ef20a5edf82d9d88f110a0eaba8e9d6
876
ex
Elixir
clients/redis/lib/google_api/redis/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/redis/lib/google_api/redis/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/redis/lib/google_api/redis/v1/metadata.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.444444
74
0.756849
5ab5ca245ae4d8a916e8d1be07b12c052e3cd932
2,351
exs
Elixir
test/faktory_worker/job/batch_integration_test.exs
vitalsource/faktory_worker
03633c0ddcd2752aa771afbe0757f6e03352254b
[ "MIT" ]
null
null
null
test/faktory_worker/job/batch_integration_test.exs
vitalsource/faktory_worker
03633c0ddcd2752aa771afbe0757f6e03352254b
[ "MIT" ]
null
null
null
test/faktory_worker/job/batch_integration_test.exs
vitalsource/faktory_worker
03633c0ddcd2752aa771afbe0757f6e03352254b
[ "MIT" ]
null
null
null
defmodule FaktoryWorker.BatchIntegrationTest do use ExUnit.Case @moduletag :enterprise import FaktoryWorker.FaktoryTestHelpers alias FaktoryWorker.{Random, DefaultWorker, Batch} setup :flush_faktory! setup do faktory_name = :"Test_#{Random.string()}" faktory_opts = [ name: faktory_name, ...
23.989796
87
0.621438
5ab5cfd8d1ede06007174a5fd8a6561700b7337a
945
ex
Elixir
lib/ex_polygon/rest/locales.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
lib/ex_polygon/rest/locales.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
lib/ex_polygon/rest/locales.ex
aai/ex_polygon
3bd6d8d0f1fbe4cd3fa939751c5ff00813eeeba3
[ "MIT" ]
null
null
null
defmodule ExPolygon.Rest.Locales do @moduledoc """ Returns a call to "Locales" Polygon.io """ @type locale :: ExPolygon.Locale.t() @type api_key :: ExPolygon.Rest.HTTPClient.api_key() @type shared_error_reasons :: ExPolygon.Rest.HTTPClient.shared_error_reasons() @path "/v2/reference/locales" @spec qu...
26.25
94
0.651852
5ab5f1172459d3d661ccda0363f5554327c6f05f
1,422
ex
Elixir
lib/ripper.ex
ourway/ripper
f3628631a836fc1caa7f7cfe374e3b599ebc4aff
[ "MIT" ]
null
null
null
lib/ripper.ex
ourway/ripper
f3628631a836fc1caa7f7cfe374e3b599ebc4aff
[ "MIT" ]
null
null
null
lib/ripper.ex
ourway/ripper
f3628631a836fc1caa7f7cfe374e3b599ebc4aff
[ "MIT" ]
null
null
null
defmodule Ripper do alias Porcelain.Process, as: Proc @moduledoc """ Ripper is a simple module to deal with TCP packets and http requests. By default, Ripper reads 1 packet. Simple usage is: ## Send request req = Ripper.request("8000") ## cURL and make a request and then read the out...
18.710526
79
0.57173
5ab5f2b8af1dea38f7aa31c3017e63e867885383
370
ex
Elixir
lib/shipstation/structs/webhook.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
4
2017-03-28T19:21:48.000Z
2022-02-11T05:12:07.000Z
lib/shipstation/structs/webhook.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
1
2018-10-05T14:55:55.000Z
2018-10-05T14:55:55.000Z
lib/shipstation/structs/webhook.ex
christopherlai/shipstation
d784f43830df3d1650d9ccd68aca28cd2d995214
[ "MIT" ]
3
2018-10-05T14:04:02.000Z
2021-11-11T10:22:46.000Z
defmodule Shipstation.Structs.Webhook do @moduledoc ~s""" Parameters used when describing a webhook """ @type t :: %Shipstation.Structs.Webhook{ target_url: String.t, event: String.t, store_id: integer, friendly_name: String.t } defstruct target_url: nil, event: nil, ...
20.555556
43
0.632432
5ab6022d0ce994b8e7bf37e17a2abba09921ece9
361
ex
Elixir
lib/home_web/helpers/svg_helper.ex
aoswalt/portfolio-web-site
9869da8caf9d1d31a1d82e60f437ec0513a84748
[ "MIT" ]
1
2020-07-23T12:54:25.000Z
2020-07-23T12:54:25.000Z
lib/home_web/helpers/svg_helper.ex
aoswalt/adamoswalt.com
9869da8caf9d1d31a1d82e60f437ec0513a84748
[ "MIT" ]
null
null
null
lib/home_web/helpers/svg_helper.ex
aoswalt/adamoswalt.com
9869da8caf9d1d31a1d82e60f437ec0513a84748
[ "MIT" ]
null
null
null
defmodule HomeWeb.Helpers.SvgHelper do use Phoenix.HTML alias HomeWeb.Router.Helpers, as: Routes def svg_icon(conn, name, opts \\ []) do classes = Keyword.get(opts, :class, "") <> " icon" content_tag(:svg, class: classes, height: 32, width: 32) do tag(:use, href: Routes.static_path(conn, "/images...
25.785714
77
0.65651
5ab61438ad7afae9167856d96d2a1b5a7b376b87
6,660
ex
Elixir
apps/opentelemetry_api/lib/open_telemetry/tracer.ex
fr0stbyte/opentelemetry-erlang
bc898b869b17e5a934277c826ceea4c66c572ef5
[ "Apache-2.0" ]
null
null
null
apps/opentelemetry_api/lib/open_telemetry/tracer.ex
fr0stbyte/opentelemetry-erlang
bc898b869b17e5a934277c826ceea4c66c572ef5
[ "Apache-2.0" ]
null
null
null
apps/opentelemetry_api/lib/open_telemetry/tracer.ex
fr0stbyte/opentelemetry-erlang
bc898b869b17e5a934277c826ceea4c66c572ef5
[ "Apache-2.0" ]
null
null
null
defmodule OpenTelemetry.Tracer do @moduledoc """ This module contains macros for Tracer operations around the lifecycle of the Spans within a Trace. The Tracer is able to start a new Span as a child of the active Span of the current process, set a different Span to be the current Span by passing the Span's con...
32.647059
101
0.695345
5ab648af82e7af5d20097a65d2e6ab548c9b115b
9,851
exs
Elixir
farmbot_celery_script/test/farmbot_celery_script/compiler_test.exs
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
farmbot_celery_script/test/farmbot_celery_script/compiler_test.exs
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
farmbot_celery_script/test/farmbot_celery_script/compiler_test.exs
elbow-jason/farmbot_os
f5dfc8f58a309285ca3d441b1b7272f15315b2a9
[ "MIT" ]
null
null
null
defmodule FarmbotCeleryScript.CompilerTest do use ExUnit.Case, async: true alias FarmbotCeleryScript.{AST, Compiler} # Only required to compile alias FarmbotCeleryScript.SysCalls, warn: false alias FarmbotCeleryScript.Compiler.IdentifierSanitizer test "compiles a sequence with unbound variables" do seq...
27.212707
109
0.52553
5ab64dc11703b47cf25517d07eddd70a7c258cb6
372
exs
Elixir
src/dguweb/priv/repo/migrations/20160815131433_create_upload.exs
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
2
2016-08-09T16:46:52.000Z
2016-08-09T16:46:59.000Z
src/dguweb/priv/repo/migrations/20160815131433_create_upload.exs
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
48
2016-07-14T15:12:41.000Z
2016-09-27T16:19:54.000Z
src/dguweb/priv/repo/migrations/20160815131433_create_upload.exs
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
1
2021-04-10T21:23:44.000Z
2021-04-10T21:23:44.000Z
defmodule DGUWeb.Repo.Migrations.CreateUpload do use Ecto.Migration def change do create table(:uploads) do add :url, :string add :dataset, :string add :publisher, :string add :content_type, :string add :path, :string add :warnings, {:array, :string} add :errors, {:arr...
19.578947
48
0.620968
5ab6722070f10631f38c8b612e25f0a969ebd6e0
2,390
ex
Elixir
lib/litelist/auth/auth.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T15:46:49.000Z
2021-01-13T15:46:49.000Z
lib/litelist/auth/auth.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
1
2021-01-13T16:42:24.000Z
2021-01-13T16:42:24.000Z
lib/litelist/auth/auth.ex
saycel/Litelist
2a1f67385523e5388c431c307b4052a6f8778818
[ "MIT" ]
null
null
null
defmodule Litelist.Auth do @moduledoc """ The Auth context. """ import Ecto.Query, warn: false alias Litelist.Repo alias Litelist.Auth.Neighbor alias Bcrypt @doc """ Returns the list of neighbors. ## Examples iex> list_neighbors() [%Neighbor{}, ...] """ def list_neighbors do ...
19.430894
78
0.633473
5ab6726b125369364dbf9e283e6ebb516b6f5747
627
ex
Elixir
lib/genotype/id.ex
BradLyman/nergle
7de7a8ea73b3f5aa038409d0eb0c29cbd06a8876
[ "MIT" ]
null
null
null
lib/genotype/id.ex
BradLyman/nergle
7de7a8ea73b3f5aa038409d0eb0c29cbd06a8876
[ "MIT" ]
null
null
null
lib/genotype/id.ex
BradLyman/nergle
7de7a8ea73b3f5aa038409d0eb0c29cbd06a8876
[ "MIT" ]
null
null
null
defmodule Genotype.Id do @moduledoc """ This module provides methods for constructing IDs for genotype elements. ## Examples iex> id = Genotype.Id.unique "some_prefix" iex> Genotype.Id.is_id? id true iex> Genotype.Id.is_id? "this isn't an id" false """ @id_pattern ~r/(\w+)-(-?)(\d+)/ ...
20.225806
74
0.634769
5ab68b113d025cb5bc61f56ca78babe290be715c
747
ex
Elixir
lib/inflex/camelize.ex
ayarulin/inflex
bad65894c191dc050ce18c456ae17bc7ef139298
[ "Apache-2.0" ]
null
null
null
lib/inflex/camelize.ex
ayarulin/inflex
bad65894c191dc050ce18c456ae17bc7ef139298
[ "Apache-2.0" ]
null
null
null
lib/inflex/camelize.ex
ayarulin/inflex
bad65894c191dc050ce18c456ae17bc7ef139298
[ "Apache-2.0" ]
null
null
null
defmodule Inflex.Camelize do defmacro __using__([]) do quote do import unquote __MODULE__ def camelize(word, option\\:upper) do case Regex.split(~r/(?:^|[-_])/, to_string(word)) do [ word ] -> word words -> words |> camelize_list(option) |> ...
26.678571
60
0.563588
5ab70898b252134f699417ab6ef4956e594a89ff
1,260
exs
Elixir
test/json_schema_test_suite/draft7/default_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
49
2018-06-05T09:42:19.000Z
2022-02-15T12:50:51.000Z
test/json_schema_test_suite/draft7/default_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
152
2017-06-11T13:43:06.000Z
2022-01-09T17:13:45.000Z
test/json_schema_test_suite/draft7/default_test.exs
kianmeng/xema
a990d64fb4bcd708249514daa55426ee003da25d
[ "MIT" ]
6
2019-05-31T05:41:47.000Z
2021-12-14T08:09:36.000Z
defmodule JsonSchemaTestSuite.Draft7.DefaultTest do use ExUnit.Case import Xema, only: [valid?: 2] describe ~s|invalid type for default| do setup do %{ schema: Xema.from_json_schema( %{"properties" => %{"foo" => %{"default" => [], "type" => "integer"}}}, draft...
24.230769
84
0.511111
5ab722dccb413a7e34954a9375b843c5b5b3308f
135
exs
Elixir
priv/client.exs
HanakJakub/elixir-grpc
faf0ba91ce09375a42f25d15ab37dccb63e27f87
[ "MIT" ]
null
null
null
priv/client.exs
HanakJakub/elixir-grpc
faf0ba91ce09375a42f25d15ab37dccb63e27f87
[ "MIT" ]
null
null
null
priv/client.exs
HanakJakub/elixir-grpc
faf0ba91ce09375a42f25d15ab37dccb63e27f87
[ "MIT" ]
null
null
null
opts = [interceptors: [GRPC.Logger.Client]] {:ok, channel} = GRPC.Stub.connect("localhost:50051", opts) Grpctest.Client.main(channel)
27
59
0.733333
5ab743ac08612ad2714e5d28e6e75a9ae15dc685
17,397
ex
Elixir
lib/cldr/number/backend/format.ex
jeroenvisser101/cldr_numbers
9a529817fe8d9f61be330fa970a5a0ffa443a177
[ "Apache-2.0" ]
null
null
null
lib/cldr/number/backend/format.ex
jeroenvisser101/cldr_numbers
9a529817fe8d9f61be330fa970a5a0ffa443a177
[ "Apache-2.0" ]
null
null
null
lib/cldr/number/backend/format.ex
jeroenvisser101/cldr_numbers
9a529817fe8d9f61be330fa970a5a0ffa443a177
[ "Apache-2.0" ]
null
null
null
defmodule Cldr.Number.Backend.Format do @moduledoc false def define_number_module(config) do module = inspect(__MODULE__) backend = config.backend config = Macro.escape(config) number_system = Module.concat(backend, Number.System) quote location: :keep, bind_quoted: [ mo...
37.574514
107
0.554636
5ab75b4715fa454d14ec1ecdb917ab77d7b78f25
32,195
ex
Elixir
lib/elixir/lib/protocol.ex
moogle19/elixir
91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/protocol.ex
moogle19/elixir
91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/protocol.ex
moogle19/elixir
91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47
[ "Apache-2.0" ]
null
null
null
defmodule Protocol do @moduledoc ~S""" Reference and functions for working with protocols. A protocol specifies an API that should be defined by its implementations. A protocol is defined with `Kernel.defprotocol/2` and its implementations with `Kernel.defimpl/3`. ## A real case In Elixir, we have two ...
30.487689
121
0.649231
5ab75fb31c5b879fc91a5b9bbac0ac62a22995d6
814
ex
Elixir
lib/erflow/model/running_tasks.ex
roi-levoso/erflow
e8683fd93720703ea706af8f2317376dba3b401f
[ "MIT" ]
null
null
null
lib/erflow/model/running_tasks.ex
roi-levoso/erflow
e8683fd93720703ea706af8f2317376dba3b401f
[ "MIT" ]
null
null
null
lib/erflow/model/running_tasks.ex
roi-levoso/erflow
e8683fd93720703ea706af8f2317376dba3b401f
[ "MIT" ]
null
null
null
defmodule Erflow.Model.RunningTask do use Ecto.Schema import Ecto.Changeset @primary_key {:runningtask_id, :binary_id, autogenerate: true} schema "running_tasks" do field :start_time, :utc_datetime field :end_time, :utc_datetime field :status, :string belongs_to :job, Erflow.Model.Job, refere...
30.148148
102
0.723587
5ab77539e0733aca8df8c1e775dd0e91714d53ef
1,652
exs
Elixir
generate.exs
vrcca/aws-codegen
74765a9b11772bd08bd6109f68d51a77def225de
[ "Apache-2.0" ]
38
2018-05-31T15:07:24.000Z
2022-03-08T23:43:15.000Z
generate.exs
vrcca/aws-codegen
74765a9b11772bd08bd6109f68d51a77def225de
[ "Apache-2.0" ]
61
2018-09-13T11:33:35.000Z
2022-02-22T15:25:37.000Z
generate.exs
vrcca/aws-codegen
74765a9b11772bd08bd6109f68d51a77def225de
[ "Apache-2.0" ]
31
2018-04-10T20:01:07.000Z
2022-02-14T18:43:59.000Z
language = Enum.at(System.argv, 0) unless Enum.member?(["elixir", "erlang"], language) do raise """ Please, specify either elixir or erlang in the first argument: mix run generate.exs elixir or, for erlang: mix run generate.exs erlang """ end spec_path = Enum.at(System.argv, 1, "../aws-sdk-go/models...
25.415385
110
0.701574
5ab78099bed606e284a05e8f1498fb0fce03a010
1,592
ex
Elixir
web/web.ex
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
web/web.ex
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
web/web.ex
cavneb/elixir_casts
c650a2850825e0305387b95ba6a7eb386e984097
[ "MIT" ]
null
null
null
defmodule ElixirCasts.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use ElixirCasts.Web, :controller use ElixirCasts.Web, :view The definitions below will be executed for every view, controller, etc, so k...
20.675325
88
0.665201
5ab78d14a9cfd59ca22038db8ca6c35fedde1cc8
1,182
ex
Elixir
elixir-phoenix/lib/helloworld_web/channels/user_socket.ex
saurav1991/interview-boilerplates
9e0abf64d9cc0a97df0e3be9483108b3920679e1
[ "MIT" ]
null
null
null
elixir-phoenix/lib/helloworld_web/channels/user_socket.ex
saurav1991/interview-boilerplates
9e0abf64d9cc0a97df0e3be9483108b3920679e1
[ "MIT" ]
null
null
null
elixir-phoenix/lib/helloworld_web/channels/user_socket.ex
saurav1991/interview-boilerplates
9e0abf64d9cc0a97df0e3be9483108b3920679e1
[ "MIT" ]
null
null
null
defmodule HelloworldWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", HelloworldWeb.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify...
31.105263
85
0.705584
5ab7df7da54422ff0ac50486504d3e778750336a
205
ex
Elixir
parser_sdk/lib/parser_sdk.ex
flixbi/element-parsers
b92ef1cff139130acbac4f40d0d48568a3de6590
[ "MIT" ]
1
2021-11-10T18:06:59.000Z
2021-11-10T18:06:59.000Z
parser_sdk/lib/parser_sdk.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
parser_sdk/lib/parser_sdk.ex
SeppPenner/element-parsers
8a2594e0f15ca7177f6782d0441f25e3e55b8416
[ "MIT" ]
null
null
null
defmodule ParserSdk do @moduledoc """ Documentation for ParserSdk. """ @doc """ Hello world. ## Examples iex> ParserSdk.hello() :world """ def hello do :world end end
10.789474
30
0.57561
5ab7e7ce63db856c025614055bd0de5f9992014e
3,109
ex
Elixir
lib/xplane_cmd.ex
robinhilliard/elixplane
8b2e5151f2ac3d19a77089da5c32e0e6b47a3d33
[ "MIT" ]
5
2018-10-01T17:15:21.000Z
2021-05-24T19:13:46.000Z
lib/xplane_cmd.ex
robinhilliard/elixplane
8b2e5151f2ac3d19a77089da5c32e0e6b47a3d33
[ "MIT" ]
null
null
null
lib/xplane_cmd.ex
robinhilliard/elixplane
8b2e5151f2ac3d19a77089da5c32e0e6b47a3d33
[ "MIT" ]
null
null
null
defmodule XPlane.Cmd do @moduledoc """ Send X-Plane commands. """ @listen_port 59001 use GenServer # API @doc """ Start GenServer controlling port used to send commands to a specific X-Plane instance. ## Parameters - instance: X-Plane instance from list returned by `XPlane...
22.693431
88
0.597298
5ab7fc3e27a400e8da794be64108d52a605917e1
1,171
exs
Elixir
mix.exs
akoutmos/server_timing_plug
fde29096c1fe4957694fe06f607a5d10adaff989
[ "MIT" ]
7
2020-03-26T04:53:28.000Z
2022-03-10T04:45:32.000Z
mix.exs
akoutmos/server_timing_plug
fde29096c1fe4957694fe06f607a5d10adaff989
[ "MIT" ]
null
null
null
mix.exs
akoutmos/server_timing_plug
fde29096c1fe4957694fe06f607a5d10adaff989
[ "MIT" ]
null
null
null
defmodule ServerTimingPlug.MixProject do use Mix.Project def project do [ app: :server_timing_plug, version: "0.1.0", elixir: "~> 1.9", name: "ServerTimingPlug", source_url: "https://github.com/akoutmos/server_timing_plug", homepage_url: "https://hex.pm/packages/server_timin...
24.395833
92
0.590094
5ab80c8503068b1a21dd16918de3117a97104349
308
exs
Elixir
apps/local_ledger/config/dev.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
322
2018-02-28T07:38:44.000Z
2020-05-27T23:09:55.000Z
apps/local_ledger/config/dev.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
643
2018-02-28T12:05:20.000Z
2020-05-22T08:34:38.000Z
apps/local_ledger/config/dev.exs
vanmil/ewallet
6c1aca95a83e0a9d93007670a40d8c45764a8122
[ "Apache-2.0" ]
63
2018-02-28T10:57:06.000Z
2020-05-27T23:10:38.000Z
use Mix.Config unless IEx.started?() do config :local_ledger, LocalLedger.Scheduler, global: true, jobs: [ cache_all_wallets: [ schedule: "0 2 * * *", task: {LocalLedger.Balance, :cache_all, []}, run_strategy: {Quantum.RunStrategy.Random, :cluster} ] ] end
22
60
0.603896
5ab82160baa2b966d1b2fb46e68222e60d107f51
4,183
exs
Elixir
apps/tai/test/tai/venue_adapters/okex/stream/process_auth/order_test.exs
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2019-12-19T05:16:26.000Z
2019-12-19T05:16:26.000Z
apps/tai/test/tai/venue_adapters/okex/stream/process_auth/order_test.exs
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
null
null
null
apps/tai/test/tai/venue_adapters/okex/stream/process_auth/order_test.exs
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
1
2020-05-03T23:32:11.000Z
2020-05-03T23:32:11.000Z
defmodule Tai.VenueAdapters.OkEx.Stream.ProcessAuth.OrderTest do use ExUnit.Case, async: false import Tai.TestSupport.Assertions.Event alias Tai.VenueAdapters.OkEx.Stream.ProcessAuth alias Tai.VenueAdapters.OkEx.ClientId alias Tai.Events setup do on_exit(fn -> :ok = Application.stop(:tai) end...
29.666667
87
0.636385
5ab83b61cd1b6b2c76240eef2b13c31052377fc0
917
ex
Elixir
test/support/channel_case.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
5
2016-07-05T20:31:46.000Z
2021-03-20T20:11:48.000Z
test/support/channel_case.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
null
null
null
test/support/channel_case.ex
rawcodehq/webmonitor
1397c74cb04434d18eb08e447c2c91d23ca97962
[ "MIT" ]
1
2016-07-18T23:00:46.000Z
2016-07-18T23:00:46.000Z
defmodule Webmonitor.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot ...
24.131579
61
0.712105
5ab8c62f5f0b038fc0c30c2dc430d7f655c36db6
13,885
ex
Elixir
lib/myxql/connection.ex
ludwikbukowski/myxql
51a770a6bf32c0ea0c69307117cfd6e4738d09f6
[ "Apache-2.0" ]
null
null
null
lib/myxql/connection.ex
ludwikbukowski/myxql
51a770a6bf32c0ea0c69307117cfd6e4738d09f6
[ "Apache-2.0" ]
null
null
null
lib/myxql/connection.ex
ludwikbukowski/myxql
51a770a6bf32c0ea0c69307117cfd6e4738d09f6
[ "Apache-2.0" ]
null
null
null
defmodule MyXQL.Connection do @moduledoc false use DBConnection import MyXQL.Protocol.{Flags, Records} alias MyXQL.{Client, Cursor, Query, Protocol, Result, TextQuery} @disconnect_on_error_codes [ :ER_MAX_PREPARED_STMT_COUNT_REACHED ] defstruct [ :sock, :connection_id, cursors: %{}, ...
27.49505
95
0.635578
5ab8e7436ed542497646d5c4b799c434933f6264
1,795
ex
Elixir
clients/search_console/lib/google_api/search_console/v1/model/api_data_row.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/search_console/lib/google_api/search_console/v1/model/api_data_row.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/search_console/lib/google_api/search_console/v1/model/api_data_row.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing, s...
30.423729
75
0.662953
5ab8f07a7b215a3817a82b1c4e6d01de070aa48e
1,714
exs
Elixir
test/tyyppi/struct_test.exs
am-kantox/tyyppi
0dedffa6cfb0a728b78a8fb34807cc48f0b079e1
[ "MIT" ]
13
2020-07-19T21:02:29.000Z
2021-07-16T12:02:45.000Z
test/tyyppi/struct_test.exs
am-kantox/tyyppi
0dedffa6cfb0a728b78a8fb34807cc48f0b079e1
[ "MIT" ]
8
2020-07-20T12:41:51.000Z
2021-03-17T06:46:44.000Z
test/tyyppi/struct_test.exs
am-kantox/tyyppi
0dedffa6cfb0a728b78a8fb34807cc48f0b079e1
[ "MIT" ]
null
null
null
defmodule Test.Tyyppi.Struct do use ExUnit.Case alias Tyyppi.{Stats, T} doctest Tyyppi.Struct setup_all do ast = quote do use Boundary require Tyyppi.Struct @type my_type :: :ok | {:error, term()} Tyyppi.Struct.defstruct(foo: atom(), bar: GenServer.on_start(), baz: ...
25.969697
96
0.569428
5ab907d1794444e54dc1bfdbaa2b7aacfd0f096c
874
exs
Elixir
test/mmdb2/result/asn_test.exs
tcitworld/adapter_mmdb2
965fd00ce2ba3d11d1749047f97fa2ccaeaaf533
[ "Apache-2.0" ]
3
2018-03-03T18:59:55.000Z
2020-12-31T19:36:59.000Z
test/mmdb2/result/asn_test.exs
tcitworld/adapter_mmdb2
965fd00ce2ba3d11d1749047f97fa2ccaeaaf533
[ "Apache-2.0" ]
3
2019-07-17T12:55:41.000Z
2020-08-31T18:55:15.000Z
test/mmdb2/result/asn_test.exs
tcitworld/adapter_mmdb2
965fd00ce2ba3d11d1749047f97fa2ccaeaaf533
[ "Apache-2.0" ]
4
2019-07-15T10:07:16.000Z
2021-09-22T15:46:04.000Z
defmodule Geolix.Adapter.MMDB2.Result.ASNTest do use ExUnit.Case, async: true alias Geolix.Adapter.MMDB2.Result.ASN test "result type" do assert %ASN{} = Geolix.lookup("1.128.0.0", where: :fixture_asn) end test "ipv4 lookup" do ip = {1, 128, 0, 0} result = Geolix.lookup(ip, where: :fixture_asn)...
23
75
0.656751
5ab90b51733335ee483590c2fd5ccccf524c62f7
1,550
ex
Elixir
lib/fen_gen_web/endpoint.ex
imsekun/fengen
d24e6583c9aa662a27f8d884b261ec24d4a85807
[ "MIT" ]
2
2021-05-28T19:33:52.000Z
2021-05-28T21:10:19.000Z
lib/fen_gen_web/endpoint.ex
hsek/fen_gen
d24e6583c9aa662a27f8d884b261ec24d4a85807
[ "MIT" ]
20
2021-05-12T15:26:50.000Z
2021-05-29T14:42:47.000Z
lib/fen_gen_web/endpoint.ex
imsekun/fengen
d24e6583c9aa662a27f8d884b261ec24d4a85807
[ "MIT" ]
null
null
null
defmodule FenGenWeb.Endpoint do use Phoenix.Endpoint, otp_app: :fen_gen # The session will be stored in the cookie and signed, # this means its contents can be read but not tampered with. # Set :encryption_salt if you would also like to encrypt it. @session_options [ store: :cookie, key: "_fen_gen_ke...
28.703704
97
0.716129
5ab926f0efeef2a95ab1cc800d2b82c402289f60
2,652
exs
Elixir
test/bucket_shards_test.exs
gridgentoo/key_value_store
6c8e18d583c844aaf1b493387aa28ba2435c610f
[ "MIT" ]
98
2016-09-06T03:56:38.000Z
2021-06-17T06:49:47.000Z
test/bucket_shards_test.exs
gridgentoo/key_value_store
6c8e18d583c844aaf1b493387aa28ba2435c610f
[ "MIT" ]
5
2016-12-01T13:17:36.000Z
2017-04-04T11:20:37.000Z
test/bucket_shards_test.exs
gridgentoo/key_value_store
6c8e18d583c844aaf1b493387aa28ba2435c610f
[ "MIT" ]
7
2016-09-10T04:00:58.000Z
2018-06-06T13:03:07.000Z
defmodule KVX.Bucket.ShardsTest do use ExUnit.Case use KVX.Bucket doctest KVX @bucket __MODULE__ require Ex2ms setup do @bucket = @bucket |> new([n_shards: 4]) |> flush on_exit fn -> assert_raise ArgumentError, fn -> @bucket |> delete |> find_all end ...
21.387097
83
0.550528
5ab94996c7f28fcedfa297449b753ac81915b448
11,271
ex
Elixir
lib/mix/tasks/hex.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
824
2015-01-05T09:12:36.000Z
2022-03-28T12:02:29.000Z
lib/mix/tasks/hex.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
737
2015-01-01T05:48:46.000Z
2022-03-29T12:56:12.000Z
lib/mix/tasks/hex.ex
hrzndhrn/hex
f74e2ed979e74130bdc4a6974660aa986333f33f
[ "Apache-2.0" ]
220
2015-03-14T17:55:11.000Z
2022-03-23T22:17:07.000Z
defmodule Mix.Tasks.Hex do use Mix.Task @apikey_tag "HEXAPIKEY" @shortdoc "Prints Hex help information" @moduledoc """ Prints Hex tasks and their information. $ mix hex See `mix help hex.config` to see all available configuration options. """ @impl true def run(_args) do Hex.start() ...
26.457746
121
0.628604
5ab9a7cf94183e7cbe6e622f2368881a438e8421
1,264
exs
Elixir
test/auto_api/commands/offroad_command_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
test/auto_api/commands/offroad_command_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
test/auto_api/commands/offroad_command_test.exs
nonninz/auto-api-elixir
53e11542043285e94bbb5a0a3b8ffff0b1b47167
[ "MIT" ]
null
null
null
# AutoAPI # The MIT License # # Copyright (c) 2018- High-Mobility GmbH (https://high-mobility.com) # # 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 lim...
46.814815
79
0.779272
5ab9aa6417646be4c15b1bc586cc9489d1dafafa
2,201
ex
Elixir
lib/teslamate_web.ex
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
1
2021-11-03T02:08:43.000Z
2021-11-03T02:08:43.000Z
lib/teslamate_web.ex
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
171
2020-07-08T18:42:57.000Z
2022-03-23T00:55:30.000Z
lib/teslamate_web.ex
kuma/teslamate
ea175fddb49cc08070182455e0073c3dcfcb3b4c
[ "MIT" ]
1
2021-03-26T15:46:37.000Z
2021-03-26T15:46:37.000Z
defmodule TeslaMateWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use TeslaMateWeb, :controller use TeslaMateWeb, :view The definitions below will be executed for every view, contro...
22.232323
83
0.686052
5ab9acce1a782ae7016c1259a9f5da4d5bb9ea1e
274
exs
Elixir
config/test.exs
meltingice/nanocrawler-phoenix
2477e8cb63a04d89eeda676c474e9b89c29da0e5
[ "MIT" ]
1
2020-04-19T07:48:46.000Z
2020-04-19T07:48:46.000Z
config/test.exs
meltingice/nanocrawler-phoenix
2477e8cb63a04d89eeda676c474e9b89c29da0e5
[ "MIT" ]
2
2021-03-09T20:27:19.000Z
2021-05-10T17:32:50.000Z
config/test.exs
meltingice/nanocrawler-phoenix
2477e8cb63a04d89eeda676c474e9b89c29da0e5
[ "MIT" ]
null
null
null
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :nanocrawler, NanocrawlerWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
24.909091
56
0.744526
5ab9c19119f986146258e5b3b0bb358c4a64233e
1,214
ex
Elixir
elixir/lib/sensedata_web/views/error_helpers.ex
samuelmesq/graphql_languages
f19158ba3a60bc1a6b3a0bcc7d8380002ebef151
[ "BSD-3-Clause" ]
null
null
null
elixir/lib/sensedata_web/views/error_helpers.ex
samuelmesq/graphql_languages
f19158ba3a60bc1a6b3a0bcc7d8380002ebef151
[ "BSD-3-Clause" ]
2
2021-01-08T13:31:06.000Z
2021-01-08T13:31:07.000Z
elixir/lib/sensedata_web/views/error_helpers.ex
samuelmesq/graphql_languages
f19158ba3a60bc1a6b3a0bcc7d8380002ebef151
[ "BSD-3-Clause" ]
1
2019-09-07T03:20:29.000Z
2019-09-07T03:20:29.000Z
defmodule SensedataWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ @doc """ Translates an error message using gettext. """ def translate_error({msg, opts}) do # When using gettext, we typically pass the strings we want # to translate as a static ar...
35.705882
78
0.673806
5ab9ca675515e1cdd6c406e35872718289bddf4e
1,115
exs
Elixir
config/config.exs
apopiak/portal
b800331b55277880aed4632bd1b8488cca5016f8
[ "MIT" ]
1
2021-12-14T22:51:43.000Z
2021-12-14T22:51:43.000Z
howistart/portal/config/config.exs
hckrtst/elixir-kata
6bee22e46443207aee77418e62ceec2569fffdba
[ "MIT" ]
null
null
null
howistart/portal/config/config.exs
hckrtst/elixir-kata
6bee22e46443207aee77418e62ceec2569fffdba
[ "MIT" ]
1
2021-12-14T22:50:30.000Z
2021-12-14T22:50:30.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
35.967742
73
0.750673
5ab9d977607bcbac3962bcee336b35d43f324e7c
758
exs
Elixir
astreu/deps/google_protos/mix.exs
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/google_protos/mix.exs
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
astreu/deps/google_protos/mix.exs
wesleimp/Astreu
4d430733e7ecc8b3eba8e27811a152aa2c6d79c1
[ "Apache-2.0" ]
null
null
null
defmodule GoogleProtos.MixProject do use Mix.Project def project do [ app: :google_protos, name: "Google Protos", version: "0.1.0", elixir: "~> 1.4", start_permanent: Mix.env() == :prod, deps: deps(), description: "Protos by Google", package: package() ] en...
18.95
71
0.538259
5ab9dca3bdeb9a3df3e444a2df1c4188a87a88f5
746
ex
Elixir
apps/opentelemetry_api_experimental/lib/opentelemetry_api_experimental/sum_observer.ex
marpo60/opentelemetry-erlang
28b383da8ee595606c20c2e5b867349a3d525b4e
[ "Apache-2.0" ]
209
2019-05-14T00:46:18.000Z
2022-03-29T21:14:21.000Z
apps/opentelemetry_api_experimental/lib/opentelemetry_api_experimental/sum_observer.ex
marpo60/opentelemetry-erlang
28b383da8ee595606c20c2e5b867349a3d525b4e
[ "Apache-2.0" ]
327
2019-07-13T15:36:31.000Z
2022-03-31T23:39:02.000Z
apps/opentelemetry_api_experimental/lib/opentelemetry_api_experimental/sum_observer.ex
marpo60/opentelemetry-erlang
28b383da8ee595606c20c2e5b867349a3d525b4e
[ "Apache-2.0" ]
53
2019-06-19T20:17:44.000Z
2022-03-04T19:07:27.000Z
defmodule OpenTelemetry.SumObserver do @moduledoc """ require OpenTelemetry.SumObserver OpenTelemetry.SumObserver.set_callback("some.counter", &OpenTelemetry.SumObserver.observe(&1, 33, [])) """ defmacro new(name, opts \\ %{}) do quote do :otel_sum_observer.new(:opentelemetry.get_meter(__...
26.642857
108
0.705094
5ab9de68440969c7494d651b058fb01b535964fd
1,414
ex
Elixir
lib/crawler/crawler_actions.ex
masato25/my104job_crawler
6a11f988f30cd9ec8d43d143e7bbc5c333113c38
[ "Apache-2.0" ]
null
null
null
lib/crawler/crawler_actions.ex
masato25/my104job_crawler
6a11f988f30cd9ec8d43d143e7bbc5c333113c38
[ "Apache-2.0" ]
null
null
null
lib/crawler/crawler_actions.ex
masato25/my104job_crawler
6a11f988f30cd9ec8d43d143e7bbc5c333113c38
[ "Apache-2.0" ]
null
null
null
defmodule Crawler.CrawlerAction do use GenServer def new(url \\ "http://www.104.com.tw/i/apis/jobsearch.cfm?cat=2007001000&sltp=S&slmin=50000&slmax=150000&fmt=8&page=1&pgsz=25" ) do GenServer.start_link(__MODULE__, url) end def init(url) do {:ok, getcontext(url)} end def getcontext(url) do re...
26.185185
143
0.666902
5ab9fb0c6831bf9b17342d02ae2c2ade4bc2f1d9
1,879
exs
Elixir
mix.exs
tableturn/bamboo
149b013a5348f7456d4e54daaee0c78ba9c799cc
[ "MIT" ]
null
null
null
mix.exs
tableturn/bamboo
149b013a5348f7456d4e54daaee0c78ba9c799cc
[ "MIT" ]
null
null
null
mix.exs
tableturn/bamboo
149b013a5348f7456d4e54daaee0c78ba9c799cc
[ "MIT" ]
null
null
null
defmodule Bamboo.Mixfile do use Mix.Project @project_url "https://github.com/thoughtbot/bamboo" def project do [ app: :bamboo, version: "1.4.0", elixir: "~> 1.2", source_url: @project_url, homepage_url: @project_url, compilers: compilers(Mix.env()), test_coverage: [...
27.632353
95
0.569984
5ab9fd9aac1e3ca5f6363bff8f36f1e016e54bac
253
ex
Elixir
phoenix_tutorial/web/controllers/hello_controller.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
phoenix_tutorial/web/controllers/hello_controller.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
phoenix_tutorial/web/controllers/hello_controller.ex
metabrain/elixir-playground
0c114ee8a8cb2d610f54b9cca83cbe6917226c33
[ "MIT" ]
null
null
null
defmodule PhoenixTutorial.HelloController do use PhoenixTutorial.Web, :controller def index(conn, _params) do render conn, "index.html" end def show(conn, %{"messenger" => messenger}) do render conn, "show.html", messenger: messenger end end
21.083333
48
0.743083
5aba050725852947678920b190dad28e9b649b38
1,209
exs
Elixir
config/prod.secret.exs
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
config/prod.secret.exs
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
config/prod.secret.exs
patatoid/kommissar
c6c06ba29257ba7641daf03e8e4a94fa967ecfd6
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config database_url = System.get_env("DATABASE_URL") || raise """ envi...
31
76
0.727047
5aba0d6d2eabbe4e473eb90163952b8937aedaa1
375
ex
Elixir
lib/rasa_nlg/model/tracker_active_form.ex
r26D/rasa-nlg-elixir
1f6728cba5e3039ea509b2b93f12d92db4414313
[ "Apache-2.0" ]
null
null
null
lib/rasa_nlg/model/tracker_active_form.ex
r26D/rasa-nlg-elixir
1f6728cba5e3039ea509b2b93f12d92db4414313
[ "Apache-2.0" ]
null
null
null
lib/rasa_nlg/model/tracker_active_form.ex
r26D/rasa-nlg-elixir
1f6728cba5e3039ea509b2b93f12d92db4414313
[ "Apache-2.0" ]
null
null
null
defmodule RasaNLG.Model.TrackerActiveForm do @moduledoc """ Name of the active form """ @derive [Poison.Encoder] defstruct [ :name, :validate ] @type t :: %__MODULE__{ name: String.t | nil, validate: boolean() | nil } end defimpl Poison.Decoder, for: RasaNLG.Model.TrackerActiveForm do...
15.625
63
0.658667
5aba4ed54be86f1999ee99401440c65b70962cae
1,486
exs
Elixir
apps/discovery_api/config/config.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
1
2021-04-05T19:17:18.000Z
2021-04-05T19:17:18.000Z
apps/discovery_api/config/config.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
11
2020-01-07T15:43:42.000Z
2020-12-22T15:23:25.000Z
apps/discovery_api/config/config.exs
SmartColumbusOS/smartcitiesdata
c8553d34631c822b034945eebf396994bf1001ff
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :prestige, :session_opts, user: "discovery-api", catalog: "hive", schema: "default" config :discovery_api, DiscoveryApiWeb.Endpoint, secret_key_base: "7Qfvr6quFJ6Qks3FGiLMnm/eNV8K66yMVpkU46lCZ2rKj0YR9ksjxsB+SX3qHZre", render_errors: [view: DiscoveryApiWeb.ErrorView, accepts: ~w(json)],...
30.326531
88
0.743607
5aba76eb176a047fd79944964927492c2359e6c1
6,601
ex
Elixir
apps/omg_api/lib/block_queue.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_api/lib/block_queue.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
apps/omg_api/lib/block_queue.ex
SingularityMatrix/elixir-omg
7db3fcc3adfa303e30ff7703148cc5110b587d20
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
38.377907
162
0.678534
5aba90dde10a6e143e49d74d44ee5139fbc6687e
270
exs
Elixir
test/control_web/views/layout_view_test.exs
irvingreid/control
07c661ed2e12bc60d53311ed2c7259efc8e88f96
[ "BSD-3-Clause" ]
null
null
null
test/control_web/views/layout_view_test.exs
irvingreid/control
07c661ed2e12bc60d53311ed2c7259efc8e88f96
[ "BSD-3-Clause" ]
null
null
null
test/control_web/views/layout_view_test.exs
irvingreid/control
07c661ed2e12bc60d53311ed2c7259efc8e88f96
[ "BSD-3-Clause" ]
null
null
null
defmodule ControlWeb.LayoutViewTest do use ControlWeb.ConnCase, async: true # When testing helpers, you may want to import Phoenix.HTML and # use functions such as safe_to_string() to convert the helper # result into an HTML string. # import Phoenix.HTML end
30
65
0.766667
5abab51f01f5b36763c6a20e1559f4aa6bac7584
52
ex
Elixir
testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/DecimalFloat.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/DecimalFloat.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/matched_and_operation_parsing_test_case/DecimalFloat.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
1.2e-3 && 4.5e+6 1.2e-3 &&& 4.5e+6 1.2e-3 and 4.5e+6
17.333333
17
0.519231
5abae2523117a2ede40e31a99b1d477126f20c57
17,745
ex
Elixir
lib/periodic.ex
QuinnWilton/parent
7c4c983a38c25a409e8fb61c57daf8a8c083a275
[ "MIT" ]
null
null
null
lib/periodic.ex
QuinnWilton/parent
7c4c983a38c25a409e8fb61c57daf8a8c083a275
[ "MIT" ]
null
null
null
lib/periodic.ex
QuinnWilton/parent
7c4c983a38c25a409e8fb61c57daf8a8c083a275
[ "MIT" ]
null
null
null
defmodule Periodic do @moduledoc """ Periodic job execution. ## Quick start It is recommended (but not required) to implement the job in a dedicated module. For example: defmodule SomeCleanup do def child_spec(_arg) do Periodic.child_spec( id: __MODULE__, run: ...
37.595339
126
0.683573
5abae44391a67049ce70b313dfb503c81182da3d
2,414
ex
Elixir
lib/rdf/xsd/datatypes/any_uri.ex
pukkamustard/rdf-ex
c459d8e7fa548fdfad82643338b68decf380a296
[ "MIT" ]
null
null
null
lib/rdf/xsd/datatypes/any_uri.ex
pukkamustard/rdf-ex
c459d8e7fa548fdfad82643338b68decf380a296
[ "MIT" ]
null
null
null
lib/rdf/xsd/datatypes/any_uri.ex
pukkamustard/rdf-ex
c459d8e7fa548fdfad82643338b68decf380a296
[ "MIT" ]
null
null
null
defmodule RDF.XSD.AnyURI do @moduledoc """ `RDF.XSD.Datatype` for XSD anyURIs. See: <http://www.w3.org/TR/xmlschema11-2/#anyURI> """ @type valid_value :: URI.t() use RDF.XSD.Datatype.Primitive, name: "anyURI", id: RDF.Utils.Bootstrapping.xsd_iri("anyURI") alias RDF.{IRI, XSD} import RDF.Gua...
27.123596
83
0.717896
5abaf9bf2dcad0940687cd018ac1b3af8ffc9ddd
1,452
exs
Elixir
config/dev.exs
aleciavogel/ueberauth_example
ef281e2ed6b81f1361677da7ab55abe560608cc2
[ "MIT" ]
null
null
null
config/dev.exs
aleciavogel/ueberauth_example
ef281e2ed6b81f1361677da7ab55abe560608cc2
[ "MIT" ]
null
null
null
config/dev.exs
aleciavogel/ueberauth_example
ef281e2ed6b81f1361677da7ab55abe560608cc2
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :ueberauth_example, UeberauthExampleWeb.Endpoint...
29.04
60
0.71832
5abb0deb564ca731feb3e8bf848f091e32f214ad
3,176
exs
Elixir
alcarin_api/apps/alcarin_web/test/alcarin_web/controllers/character_feed_controller_test.exs
alcarin-org/alcarin-elixir
a04d4e043790a7773745e0fba7098e1c06362896
[ "MIT" ]
null
null
null
alcarin_api/apps/alcarin_web/test/alcarin_web/controllers/character_feed_controller_test.exs
alcarin-org/alcarin-elixir
a04d4e043790a7773745e0fba7098e1c06362896
[ "MIT" ]
3
2018-05-26T10:36:22.000Z
2018-05-26T13:48:36.000Z
alcarin_api/apps/alcarin_web/test/alcarin_web/controllers/character_feed_controller_test.exs
alcarin-org/alcarin-elixir
a04d4e043790a7773745e0fba7098e1c06362896
[ "MIT" ]
null
null
null
defmodule AlcarinWeb.CharacterFeedControllerTest do use AlcarinWeb.ConnCase alias Alcarin.GameEvents @moduletag :ctrl_case @moduletag :feed_case # @create_attrs %{} # @update_attrs %{} # @invalid_attrs %{} def fixture(:character_feed) do game_events = Enum.map(1..3, &GameEvents.create_speak_even...
30.538462
98
0.608942
5abb3623943ba92b3975bbf23dc11d4a5f1436bc
2,301
ex
Elixir
lib/blockchain_api/query/gateway_transaction.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
17
2019-11-03T03:02:41.000Z
2022-01-13T17:03:32.000Z
lib/blockchain_api/query/gateway_transaction.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
5
2019-11-07T23:26:53.000Z
2020-11-24T21:45:35.000Z
lib/blockchain_api/query/gateway_transaction.ex
pakorn186c/blockchain-api
3c9fbc892e645f9bb144414f3da36749603f37bc
[ "Apache-2.0" ]
11
2019-12-04T07:03:16.000Z
2022-01-13T17:03:50.000Z
defmodule BlockchainAPI.Query.GatewayTransaction do @moduledoc false import Ecto.Query, warn: false alias BlockchainAPI.{ Repo, Util, Schema.GatewayTransaction, Schema.LocationTransaction, Schema.Transaction, Schema.Hotspot } def list(_params) do query = from( g in ...
24.741935
70
0.543242
5abb8fc26b066d9a8182ea179c1de92e03f755eb
298
exs
Elixir
test/presence/list/charlist_test.exs
mchadwick/presence
af48961b9b8dc1a16eeb11c488ae0538abb17f99
[ "MIT" ]
null
null
null
test/presence/list/charlist_test.exs
mchadwick/presence
af48961b9b8dc1a16eeb11c488ae0538abb17f99
[ "MIT" ]
null
null
null
test/presence/list/charlist_test.exs
mchadwick/presence
af48961b9b8dc1a16eeb11c488ae0538abb17f99
[ "MIT" ]
null
null
null
defmodule CharlistPresenceTest do use Presence.TestCase, only: [presence: 1] test "presence for blank charlist" do charlist = ' ' assert presence(charlist) == nil end test "presence for non-blank charlist" do charlist = 'a' assert presence(charlist) == charlist end end
21.285714
44
0.694631
5abbb9aa0a3e7f3e8e7b4278041b860c64485676
3,511
exs
Elixir
test/plug/crypto/message_verifier_test.exs
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
test/plug/crypto/message_verifier_test.exs
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
test/plug/crypto/message_verifier_test.exs
wojtekmach/plug
e9afab6c10f173d55b13bd78c64526fb21495b39
[ "Apache-2.0" ]
null
null
null
defmodule Plug.Crypto.MessageVerifierTest do use ExUnit.Case, async: true alias Plug.Crypto.MessageVerifier, as: MV test "generates a signed message" do [protected, payload, signature] = String.split MV.sign("hello world", "secret"), "." assert Base.url_decode64(protected, padding: false) == {:ok, "HS25...
52.402985
103
0.642552
5abbd26f5c6f41dc084f892ee192870cb37fb071
1,086
exs
Elixir
clients/games_configuration/test/test_helper.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/games_configuration/test/test_helper.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/games_configuration/test/test_helper.exs
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 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 agreed to in writing, s...
30.166667
83
0.744015
5abbe086d05a4f480aec9726e23aa8f9788add58
12,564
ex
Elixir
lib/hanzi.ex
kianmeng/hanyutils
d6b9ef5579856e540484987c8f0860b363327b67
[ "MIT" ]
null
null
null
lib/hanzi.ex
kianmeng/hanyutils
d6b9ef5579856e540484987c8f0860b363327b67
[ "MIT" ]
null
null
null
lib/hanzi.ex
kianmeng/hanyutils
d6b9ef5579856e540484987c8f0860b363327b67
[ "MIT" ]
null
null
null
defmodule Hanzi do @moduledoc """ Han/Chinese character (汉字) utilities and conversion to Pinyin lists. The main goal of this module is to convert strings containing Han characters into a `t:Pinyin.pinyin_list/0`. In turn, such a list can be formatted by the functions present in the `Pinyin` module (i.e. `Pin...
35.897143
186
0.629099
5abbe90bb40e36cb72fdf9265eca210da92d2f19
4,502
ex
Elixir
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/google_service_accounts.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/google_service_accounts.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/storage_transfer/lib/google_api/storage_transfer/v1/api/google_service_accounts.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing, s...
42.074766
196
0.664371
5abbff767f3d45301ae27246e47f79bac3f52103
2,447
exs
Elixir
config/dev.exs
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
null
null
null
config/dev.exs
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
6
2021-09-07T15:10:50.000Z
2021-10-31T02:56:08.000Z
config/dev.exs
joaothallis/name-of-the-day
839411b6eb28cefd1b74e2f4e6eafcbb7b7bfd82
[ "MIT" ]
null
null
null
import Config # Configure your database config :name_of_the_day, NameOfTheDay.Repo, username: "postgres", password: "postgres", database: "name_of_the_day_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debuggin...
32.626667
86
0.719248
5abc10f8efb79769d9b27fca4319fac9528ec10d
2,298
ex
Elixir
lib/matchmaker/default/matchmaking.ex
skylerparr/playfab_ex
b6a049511bc3466cea5959797425bffc099239de
[ "MIT" ]
1
2021-12-21T14:22:12.000Z
2021-12-21T14:22:12.000Z
lib/matchmaker/default/matchmaking.ex
skylerparr/playfab_ex
b6a049511bc3466cea5959797425bffc099239de
[ "MIT" ]
null
null
null
lib/matchmaker/default/matchmaking.ex
skylerparr/playfab_ex
b6a049511bc3466cea5959797425bffc099239de
[ "MIT" ]
null
null
null
defmodule PlayfabEx.Matchmaker.Default.Matchmaking do @doc """ Validates a user with the PlayFab service @link https://api.playfab.com/documentation/matchmaker/method/AuthUser """ @spec auth_user(map()) :: {:ok, map} | {:error, String.t} def auth_user(params) do fetch("Matchmaker/AuthUser", params) ...
31.479452
171
0.694517
5abc21d613e46d5252a840434e146a983fd51f25
911
ex
Elixir
lib/ex_ncurses/nif.ex
jfreeze/ex_ncurses
6c3fa58cf369ed9c5023e6f39262c9e7c67c195d
[ "MIT" ]
76
2016-01-02T22:03:13.000Z
2022-03-10T19:49:01.000Z
lib/ex_ncurses/nif.ex
jfreeze/ex_ncurses
6c3fa58cf369ed9c5023e6f39262c9e7c67c195d
[ "MIT" ]
13
2018-03-28T14:18:58.000Z
2021-01-04T16:21:14.000Z
lib/ex_ncurses/nif.ex
jfreeze/ex_ncurses
6c3fa58cf369ed9c5023e6f39262c9e7c67c195d
[ "MIT" ]
19
2016-03-02T07:04:18.000Z
2021-03-08T02:45:42.000Z
defmodule ExNcurses.Nif do @moduledoc false @compile {:autoload, false} @on_load {:load_nif, 0} def load_nif() do Application.app_dir(:ex_ncurses, "priv/ex_ncurses") |> to_charlist |> :erlang.load_nif(0) end @doc """ Initialize ncurses on the specified terminal. """ def newterm(_term, _t...
23.358974
70
0.667398
5abc250d4cbfc386c862e50f26f66d1f0523bbd9
874
ex
Elixir
apps/wechat_base/lib/wechat_base/api/endpoint/arg.ex
secretworry/exwechat
2d3a8bf03135eebd58452122c2f7b3718b5f5b3d
[ "Apache-2.0" ]
null
null
null
apps/wechat_base/lib/wechat_base/api/endpoint/arg.ex
secretworry/exwechat
2d3a8bf03135eebd58452122c2f7b3718b5f5b3d
[ "Apache-2.0" ]
null
null
null
apps/wechat_base/lib/wechat_base/api/endpoint/arg.ex
secretworry/exwechat
2d3a8bf03135eebd58452122c2f7b3718b5f5b3d
[ "Apache-2.0" ]
null
null
null
defmodule WechatBase.Api.Endpoint.Arg do alias __MODULE__ @type error :: {String.t, Keyword.t} defmodule Validator do @type opts_t :: any @callback init(opts :: any) :: opts_t @callback validate(any, opts_t) :: :ok | {:error, {String.t, Keyword.t}} end @type t :: %__MODULE__{ name: String.t...
26.484848
76
0.600686
5abc4800098a8850cd0c579051892632f0006bc1
5,348
ex
Elixir
lib/snor/executor.ex
biswarupchakravarty/snor
134929f08971d9903f347459c31aad9f43a5cc85
[ "MIT" ]
null
null
null
lib/snor/executor.ex
biswarupchakravarty/snor
134929f08971d9903f347459c31aad9f43a5cc85
[ "MIT" ]
null
null
null
lib/snor/executor.ex
biswarupchakravarty/snor
134929f08971d9903f347459c31aad9f43a5cc85
[ "MIT" ]
null
null
null
defmodule Snor.Executor do @moduledoc """ Module for executing a list of parsed nodes. """ alias Snor.{Parser, Utils} @typedoc "The map provided to the template" @type data :: %{optional(any) => any} @doc "Convert a list of tokens into a string" @spec execute([Parser.parsed_node()], data, module()) ::...
26.344828
88
0.557592
5abc71f07e2073b79a896c9ba0dbd85dc8b8d84a
1,286
ex
Elixir
lib/jumubase_web/controllers/internal/page_controller.ex
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
2
2019-01-20T07:03:30.000Z
2019-04-11T10:20:14.000Z
lib/jumubase_web/controllers/internal/page_controller.ex
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
6
2018-09-20T05:52:14.000Z
2019-04-23T19:27:39.000Z
lib/jumubase_web/controllers/internal/page_controller.ex
richeterre/jumubase-phoenix
7584f890af117d496971b5284bf9de798e22266f
[ "MIT" ]
null
null
null
defmodule JumubaseWeb.Internal.PageController do use JumubaseWeb, :controller alias Jumubase.Foundation alias Jumubase.Foundation.Contest alias JumubaseWeb.Internal.Permit plug :add_home_breadcrumb def home(%Plug.Conn{assigns: %{current_user: user}} = conn, _params) do permitted = Permit.scope_contest...
26.791667
73
0.695956
5abc8d86cb2cae522019ba1a09432bec802e93f9
1,746
ex
Elixir
weathervane_api/web/controllers/observation_controller.ex
dtanner/weathervane-api
d4308fc73cb34da57ef6d60bc3b6e5ff633f0a0a
[ "MIT" ]
null
null
null
weathervane_api/web/controllers/observation_controller.ex
dtanner/weathervane-api
d4308fc73cb34da57ef6d60bc3b6e5ff633f0a0a
[ "MIT" ]
null
null
null
weathervane_api/web/controllers/observation_controller.ex
dtanner/weathervane-api
d4308fc73cb34da57ef6d60bc3b6e5ff633f0a0a
[ "MIT" ]
null
null
null
defmodule WeathervaneApi.ObservationController do use WeathervaneApi.Web, :controller alias WeathervaneApi.Observation alias WeathervaneApi.ObservationParams import WeathervaneApi.Helpers, only: [changeset_errors: 1, scrub_get_params: 2] plug :scrub_get_params def index(conn, params) do # def index(con...
31.178571
127
0.623139
5abcc29de24efb322c6b2af21abfb8496612830b
792
ex
Elixir
learn/OTPAndPhoenix/islands_interface/test/support/channel_case.ex
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
learn/OTPAndPhoenix/islands_interface/test/support/channel_case.ex
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
learn/OTPAndPhoenix/islands_interface/test/support/channel_case.ex
idfumg/ElixirSynopsis
74c668d84300812dd41eb18772aecfb89bc7628b
[ "MIT" ]
null
null
null
defmodule IslandsInterfaceWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case int...
23.294118
58
0.732323
5abcd5092e239ec39e77181d3fc07dc42e55c4c6
1,137
ex
Elixir
languages/elixir/exercises/concept/dna-encoding/.meta/example.ex
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
3
2020-07-25T06:24:00.000Z
2020-09-14T17:39:11.000Z
languages/elixir/exercises/concept/dna-encoding/.meta/example.ex
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
45
2020-01-24T17:04:52.000Z
2020-11-24T17:50:18.000Z
languages/elixir/exercises/concept/dna-encoding/.meta/example.ex
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
1
2020-04-20T11:41:55.000Z
2020-04-20T11:41:55.000Z
defmodule DNA do @moduledoc """ Example solution for the `bitstrings` exercise. Written by Tim Austin, tim@neenjaw.com, June 2020. | NucleicAcid | Bits | | ----------- | ---- | | ' ' | 0000 | | A | 0001 | | C | 0010 | | G | 0100 | | T | 1000 |...
25.840909
98
0.597186
5abceabee8916b5a353a880df93d14249dcf41c9
698
exs
Elixir
test/namespaces_test.exs
fhaynes/exkube
c713cdce9efe22fa432855c8e41a28b18c10967b
[ "Apache-2.0" ]
2
2017-06-29T01:25:25.000Z
2017-07-16T13:29:16.000Z
test/namespaces_test.exs
fhaynes/exkube
c713cdce9efe22fa432855c8e41a28b18c10967b
[ "Apache-2.0" ]
null
null
null
test/namespaces_test.exs
fhaynes/exkube
c713cdce9efe22fa432855c8e41a28b18c10967b
[ "Apache-2.0" ]
null
null
null
defmodule Exkube.NamespacesTest do @moduledoc """ Tests for the Namespaces module """ use ExUnit.Case, async: true alias Exkube.Namespaces require Logger test "can list namespaces", %{} do result = Namespaces.all assert elem(result, 0) == :ok end test "can get one namespace", %{} do resu...
24.928571
60
0.65043
5abd09cded658f27484f5be382fc85bf793207ed
980
exs
Elixir
mix.exs
ScrimpyCat/SimpleMarkdownExtensionCLI
9694d96f2fce5d500f10e39c428ae01952e95aec
[ "BSD-2-Clause" ]
null
null
null
mix.exs
ScrimpyCat/SimpleMarkdownExtensionCLI
9694d96f2fce5d500f10e39c428ae01952e95aec
[ "BSD-2-Clause" ]
null
null
null
mix.exs
ScrimpyCat/SimpleMarkdownExtensionCLI
9694d96f2fce5d500f10e39c428ae01952e95aec
[ "BSD-2-Clause" ]
null
null
null
defmodule SimpleMarkdownExtensionCLI.Mixfile do use Mix.Project def project do [ app: :simple_markdown_extension_cli, description: "An extension for SimpleMarkdown to add renderer for CLI output.", version: "0.1.4", elixir: "~> 1.5", start_per...
26.486486
94
0.536735
5abd26d0cc0141f0e991c78f17aaae43640594be
7,367
exs
Elixir
test/dutu/quota_test.exs
charl3sj/dutu
dbc56c863f5874137175ba4ede34f3ff69a004a6
[ "MIT" ]
null
null
null
test/dutu/quota_test.exs
charl3sj/dutu
dbc56c863f5874137175ba4ede34f3ff69a004a6
[ "MIT" ]
null
null
null
test/dutu/quota_test.exs
charl3sj/dutu
dbc56c863f5874137175ba4ede34f3ff69a004a6
[ "MIT" ]
null
null
null
defmodule Dutu.QuotaTest do use Dutu.DataCase, async: true alias Dutu.DietTracker.Quota describe "validate_min_limits" do test "throws error when per_day conflicts with per_week" do invalid_attrs = %{min: %Quota.Limit{per_day: 1, per_week: 3}} changeset = Quota.changeset(%Quota{}, invalid_attrs) ...
37.586735
99
0.644631
5abd3d44a86fe3f088f11521e92924daf79c8b77
1,550
ex
Elixir
lib/cloudex/uploaded_image.ex
edouardmenayde/cloudex
dedac7b19eef68e6d68e0a18d39a2229e2459658
[ "WTFPL" ]
null
null
null
lib/cloudex/uploaded_image.ex
edouardmenayde/cloudex
dedac7b19eef68e6d68e0a18d39a2229e2459658
[ "WTFPL" ]
null
null
null
lib/cloudex/uploaded_image.ex
edouardmenayde/cloudex
dedac7b19eef68e6d68e0a18d39a2229e2459658
[ "WTFPL" ]
null
null
null
defmodule Cloudex.UploadedImage do @moduledoc """ A simple struct containing all the information from cloudinary. * source * public_id * version * signature * width * hieght * format * resource_type * created_at * tags * bytes * type * etag * url * secure_url * original_filename *...
24.21875
65
0.495484
5abd408aa956bfc5f9fca5afb64ae333e83e1f92
4,729
exs
Elixir
test/json_schema_test_suite/draft6/one_of_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/one_of_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
test/json_schema_test_suite/draft6/one_of_test.exs
romul/xema
8273e10645cf54e8765a197b1ff0c097994275d9
[ "MIT" ]
null
null
null
defmodule JsonSchemaTestSuite.Draft6.OneOfTest do use ExUnit.Case import Xema, only: [valid?: 2] describe "oneOf" do setup do %{ schema: Xema.from_json_schema( %{"oneOf" => [%{"type" => "integer"}, %{"minimum" => 2}]}, draft: "draft6" ) } e...
22.956311
93
0.495877
5abd414126403576241be192f0301874da3c038f
1,503
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_deploy_processor_version_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_deploy_processor_version_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_uiv1beta3_deploy_processor_version_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing, s...
30.673469
108
0.779108
5abd56831ea5ea36aa1882b606607dcfcab43720
4,745
exs
Elixir
test/pay_in_test.exs
Eweev/mangopay-elixir
7a4ff7b47c31bfa9a77d944803158f8297d51505
[ "MIT" ]
1
2020-04-07T22:17:25.000Z
2020-04-07T22:17:25.000Z
test/pay_in_test.exs
Eweev/mangopay-elixir
7a4ff7b47c31bfa9a77d944803158f8297d51505
[ "MIT" ]
17
2018-04-11T12:07:07.000Z
2019-03-18T21:33:18.000Z
test/pay_in_test.exs
Eweev/mangopay-elixir
7a4ff7b47c31bfa9a77d944803158f8297d51505
[ "MIT" ]
2
2020-06-22T09:31:41.000Z
2020-06-22T09:34:23.000Z
defmodule PayInTest do use ExUnit.Case use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney use MangoPay.Factory use MangoPay.UserFactory use MangoPay.BankAccountFactory use MangoPay.MandateFactory use MangoPay.CardFactory use MangoPay.PreauthorizationFactory use MangoPay.WalletFactory use MangoPay.PayInF...
39.214876
112
0.724763
5abd69e877ef9fb4e7fa88ef9e45972613cf0ad6
30
exs
Elixir
priv/repo/seeds.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
806
2018-04-07T20:40:33.000Z
2022-03-30T01:39:57.000Z
priv/repo/seeds.exs
isshindev/accent
ae4c13139b0a0dfd64ff536b94c940a4e2862150
[ "BSD-3-Clause" ]
194
2018-04-07T13:49:37.000Z
2022-03-30T19:58:45.000Z
priv/repo/seeds.exs
doc-ai/accent
e337e16f3658cc0728364f952c0d9c13710ebb06
[ "BSD-3-Clause" ]
89
2018-04-09T13:55:49.000Z
2022-03-24T07:09:31.000Z
Accent.Seeds.run(Accent.Repo)
15
29
0.8
5abdb0b79aa97711ba0f973b34cb9d8d8b68ee37
1,137
exs
Elixir
config/config.exs
ckhrysze/json_provider
7c884b603c4f98350ec00fc3a8fdb2f55ecf9d1d
[ "MIT" ]
1
2019-04-01T11:55:30.000Z
2019-04-01T11:55:30.000Z
config/config.exs
ckhrysze/json_provider
7c884b603c4f98350ec00fc3a8fdb2f55ecf9d1d
[ "MIT" ]
null
null
null
config/config.exs
ckhrysze/json_provider
7c884b603c4f98350ec00fc3a8fdb2f55ecf9d1d
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
36.677419
73
0.752858
5abdc516002cb67c351c3f3d6372506566b1456d
360
exs
Elixir
test/controllers/game_controller_test.exs
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
test/controllers/game_controller_test.exs
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
test/controllers/game_controller_test.exs
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
defmodule WhereItsDue.GameControllerTest do use WhereItsDue.ConnCase alias WhereItsDue.Game setup %{conn: conn} do {:ok, conn: put_req_header(conn, "accept", "application/json")} end test "lists all entries on index", %{conn: conn} do conn = get conn, game_path(conn, :index) assert json_respo...
22.5
67
0.683333
5abdc64fb1528337f114fe75bde1160d22629223
952
exs
Elixir
test/ecto/integration/streaming_test.exs
dozoyo/exqlite
517eaa7f39be7effad0e968986f708f7845e1d5c
[ "MIT" ]
null
null
null
test/ecto/integration/streaming_test.exs
dozoyo/exqlite
517eaa7f39be7effad0e968986f708f7845e1d5c
[ "MIT" ]
null
null
null
test/ecto/integration/streaming_test.exs
dozoyo/exqlite
517eaa7f39be7effad0e968986f708f7845e1d5c
[ "MIT" ]
null
null
null
defmodule Ecto.Integration.StreamingTest do use Ecto.Integration.Case alias Ecto.Integration.TestRepo alias Exqlite.Integration.User import Ecto.Query test "handles streams properly" do # TODO: We really need to get proper sandboxing in place before_count = User |> select([u], u) |> TestRepo.all() ...
30.709677
75
0.607143
5abdce922e21566acbf3e4e8d0550d8bfae78688
619
exs
Elixir
test/protobuf/protoc/generator_test.exs
hayesgm/protobuf-ex
9ca03063de265a9690f341fcda77055613f4ff17
[ "MIT" ]
null
null
null
test/protobuf/protoc/generator_test.exs
hayesgm/protobuf-ex
9ca03063de265a9690f341fcda77055613f4ff17
[ "MIT" ]
null
null
null
test/protobuf/protoc/generator_test.exs
hayesgm/protobuf-ex
9ca03063de265a9690f341fcda77055613f4ff17
[ "MIT" ]
null
null
null
defmodule Protobuf.Protoc.GeneratorTest do use ExUnit.Case, async: true alias Protobuf.Protoc.{Generator, Context} test "generate/2 works" do ctx = %Context{} desc = Google.Protobuf.FileDescriptorProto.new(name: "name.proto") assert Generator.generate(ctx, desc) == Google.Protobuf.Compiler.CodeGener...
36.411765
132
0.694669
5abde50819852cb8f380c5907fe88b1da4c6be38
1,183
exs
Elixir
examples/search.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
384
2015-03-09T05:03:42.000Z
2022-02-27T00:45:58.000Z
examples/search.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
144
2015-03-06T11:19:49.000Z
2021-06-11T11:26:39.000Z
examples/search.exs
DataKrewTech/tirexs
8238da373f4547d27eea57a10826114e947aa66b
[ "Apache-2.0" ]
97
2015-03-21T13:58:38.000Z
2022-01-07T14:40:49.000Z
# # Run this example from console manually: # # $ mix run -r examples/search.exs # # => curl -X POST -d '{"query": {"nested": {"query": {"bool": {"must": [{"match": {"comments.author": {"query": "John"}}},{"match": {"comments.message": {"query": "cool"}}}]}},"path": "comments"}}}' http://127.0.0.1:9200/posts/_searc...
33.8
238
0.595097
5abde9f562898887febc14410afda74d64fa76d5
155
ex
Elixir
lib/geometry.ex
tesseract-libs/tesseract-geometry
17fe9f59019453810071b1cd30834a541eb76beb
[ "MIT" ]
null
null
null
lib/geometry.ex
tesseract-libs/tesseract-geometry
17fe9f59019453810071b1cd30834a541eb76beb
[ "MIT" ]
1
2018-06-08T00:32:01.000Z
2018-06-09T23:46:50.000Z
lib/geometry.ex
tesseract-libs/tesseract-geometry
17fe9f59019453810071b1cd30834a541eb76beb
[ "MIT" ]
null
null
null
defmodule Tesseract.Geometry do # Vec3 def dimensions({_, _, _}) do 3 end # Box def dimensions({{_, _, _}, {_, _, _}}) do 3 end end
12.916667
43
0.548387
5abe106c221fa2650fd80c916977a3724ca3f8a7
3,129
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_event_handler.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_event_handler.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3beta1_event_handler.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing, s...
46.014706
455
0.730904
5abe2ede386a3630d23c674f8bd1ed0fd1c9e432
79
ex
Elixir
lib/errors/did_token_error.ex
allenan/magic-admin-elixir
e5888eae099b2ab7773b5ed7a8dfbd3721402ff4
[ "Apache-2.0" ]
1
2022-02-01T02:53:03.000Z
2022-02-01T02:53:03.000Z
lib/errors/did_token_error.ex
allenan/magic-admin-elixir
e5888eae099b2ab7773b5ed7a8dfbd3721402ff4
[ "Apache-2.0" ]
1
2022-03-14T15:02:16.000Z
2022-03-14T15:02:16.000Z
lib/errors/did_token_error.ex
allenan/magic-admin-elixir
e5888eae099b2ab7773b5ed7a8dfbd3721402ff4
[ "Apache-2.0" ]
null
null
null
defmodule Magic.DIDTokenError do defexception message: "DID Token error" end
19.75
41
0.810127
5abe506670152e8bd82a180246f8d798a678f6f6
2,204
ex
Elixir
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/secret_env_source.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/secret_env_source.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/secret_env_source.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing, s...
40.814815
242
0.735935
5abe50e747e8f924d8c3f8a20cfa35ab62ec1b7c
9,846
ex
Elixir
clients/iam/lib/google_api/iam/v1/api/roles.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/iam/lib/google_api/iam/v1/api/roles.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
clients/iam/lib/google_api/iam/v1/api/roles.ex
chingor13/elixir-google-api
85e13fa25c4c9f4618bb463ab4c79245fc6d2a7b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
46.663507
196
0.629799
5abe582f38c32827b49267194018ee47a9f4f1cc
2,404
ex
Elixir
lib/tasks_web.ex
Charlie1099/tasks
38020d28c98cf197473b623bc7650b930b11da07
[ "Unlicense" ]
null
null
null
lib/tasks_web.ex
Charlie1099/tasks
38020d28c98cf197473b623bc7650b930b11da07
[ "Unlicense" ]
null
null
null
lib/tasks_web.ex
Charlie1099/tasks
38020d28c98cf197473b623bc7650b930b11da07
[ "Unlicense" ]
null
null
null
defmodule TasksWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use TasksWeb, :controller use TasksWeb, :view The definitions below will be executed for every view, controller, etc, s...
21.657658
81
0.673461
5abe5830a2cb0cd6290019be553e733eb5774a16
2,501
ex
Elixir
clients/you_tube/lib/google_api/you_tube/v3/model/invideo_branding.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/invideo_branding.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/you_tube/lib/google_api/you_tube/v3/model/invideo_branding.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing, s...
42.389831
179
0.718513
5abe66b065afe6e4580d21b4aedd17114d646f22
5,872
ex
Elixir
lib/exq/redis/connection.ex
vkuznetsov/exq
02a19f2cd5cec5e9663c96aa8be8c0922f636a8f
[ "Apache-2.0" ]
null
null
null
lib/exq/redis/connection.ex
vkuznetsov/exq
02a19f2cd5cec5e9663c96aa8be8c0922f636a8f
[ "Apache-2.0" ]
null
null
null
lib/exq/redis/connection.ex
vkuznetsov/exq
02a19f2cd5cec5e9663c96aa8be8c0922f636a8f
[ "Apache-2.0" ]
null
null
null
defmodule Exq.Redis.Connection do @moduledoc """ The Connection module encapsulates interaction with a live Redis connection or pool. """ require Logger alias Exq.Support.Config alias Exq.Support.Redis def flushdb!(redis) do {:ok, res} = q(redis, ["flushdb"]) res end def decr!(redis, key) ...
23.488
93
0.601839
5abe6f49ba8ab31716af80f0b071bf56f1a1815f
280
exs
Elixir
rummage_tester/priv/repo/migrations/20180603143507_create_employees.exs
acolin/rummage_ecto
69b83579437c9d88de6b1951b6ee831424cfaec3
[ "MIT" ]
99
2018-08-19T10:31:42.000Z
2021-10-31T03:36:53.000Z
rummage_tester/priv/repo/migrations/20180603143507_create_employees.exs
acolin/rummage_ecto
69b83579437c9d88de6b1951b6ee831424cfaec3
[ "MIT" ]
43
2017-03-14T02:00:41.000Z
2018-07-05T16:28:39.000Z
rummage_tester/priv/repo/migrations/20180603143507_create_employees.exs
acolin/rummage_ecto
69b83579437c9d88de6b1951b6ee831424cfaec3
[ "MIT" ]
26
2018-08-23T06:13:42.000Z
2021-10-19T06:57:18.000Z
defmodule RummageTester.Repo.Migrations.CreateEmployees do use Ecto.Migration def change do create table(:employees, primary_key: false) do add :first_name, :string add :last_name, :string add :date_of_birth, :date timestamps() end end end
20
58
0.692857
5abe83e99b4cd3b744e3791f457ac3b6bd3f800f
456
exs
Elixir
implementations/elixir/ockam/ockam/test/ockam_test.exs
plaxi0s/ockam
2cc911dff720228bca950d83faf095ea84717981
[ "Apache-2.0" ]
1,912
2019-01-10T14:17:00.000Z
2022-03-30T19:16:44.000Z
implementations/elixir/ockam/ockam/test/ockam_test.exs
plaxi0s/ockam
2cc911dff720228bca950d83faf095ea84717981
[ "Apache-2.0" ]
1,473
2019-01-16T15:14:47.000Z
2022-03-31T23:44:50.000Z
implementations/elixir/ockam/ockam/test/ockam_test.exs
plaxi0s/ockam
2cc911dff720228bca950d83faf095ea84717981
[ "Apache-2.0" ]
219
2019-01-11T03:35:13.000Z
2022-03-31T10:25:56.000Z
defmodule Ockam.Tests do use ExUnit.Case, async: true doctest Ockam describe "Ockam.start/2" do test "Ockam.Router is started", do: Ockam.Router |> find_child |> Process.alive?() |> assert test "Ockam.Node is started", do: Ockam.Node |> find_child |> Process.alive?() |> assert end def find_child(nam...
26.823529
96
0.635965
5abeaed0b1bd71b7d2c939be8a3c534a9a73b78c
1,112
exs
Elixir
config/config.exs
angrycandy/elixir-mllp
f3b5988c0d9f2fefaca16890b13f8c08db2ce382
[ "Apache-2.0" ]
22
2018-10-08T18:37:23.000Z
2022-02-22T13:53:38.000Z
config/config.exs
angrycandy/elixir-mllp
f3b5988c0d9f2fefaca16890b13f8c08db2ce382
[ "Apache-2.0" ]
27
2020-03-03T16:29:22.000Z
2022-03-16T20:09:59.000Z
config/config.exs
angrycandy/elixir-mllp
f3b5988c0d9f2fefaca16890b13f8c08db2ce382
[ "Apache-2.0" ]
10
2019-03-29T04:19:59.000Z
2021-12-13T17:39:08.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. import Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the parent...
35.870968
73
0.753597
5abeb0c783f3c972407c440cc117e2329e3ad38c
774
exs
Elixir
test/rosetta_euler/k_test.exs
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
36
2015-01-24T08:11:52.000Z
2021-03-21T00:32:00.000Z
test/rosetta_euler/k_test.exs
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
null
null
null
test/rosetta_euler/k_test.exs
seaneshbaugh/rosetta-euler
14f24dfc347e7d9a4c9c0f090acf2811aa65f453
[ "MIT" ]
4
2015-01-24T08:17:42.000Z
2022-01-11T16:10:56.000Z
Code.require_file "../rosetta_euler_test.exs", __DIR__ Code.require_file "../support/answers.exs", __DIR__ defmodule RosettaEuler.KTest do use ExUnit.Case, async: true import RosettaEuler.Test, only: [rosetta_euler_tests: 2] import RosettaEuler.Answers, only: [answer_for: 1] setup context do {:ok, [test_...
26.689655
72
0.684755
5abec2fd565b633228d5162eda2b2bdb63978e70
2,334
ex
Elixir
clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_dicom_gcs_source.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_dicom_gcs_source.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/health_care/lib/google_api/health_care/v1/model/google_cloud_healthcare_v1_dicom_gcs_source.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing, s...
49.659574
904
0.755784
5abeda052e1dbc4feda4ff03ccefa792174b98a4
6,415
ex
Elixir
lib/dateformat/formats.ex
lafka/timex
99334777d2f5bc13a8b17b19dcd9873058abc0dd
[ "MIT" ]
null
null
null
lib/dateformat/formats.ex
lafka/timex
99334777d2f5bc13a8b17b19dcd9873058abc0dd
[ "MIT" ]
null
null
null
lib/dateformat/formats.ex
lafka/timex
99334777d2f5bc13a8b17b19dcd9873058abc0dd
[ "MIT" ]
null
null
null
defmodule Timex.DateFormat.Formats do @moduledoc """ This module defines all known (by timex) common date/time formats, in macro form. Each format is returned as the following structure: [tokenizer: <module this format string will be tokenized with (expects a tokenize/1 def)>, format: <format as a (...
29.027149
94
0.65643
5abee5ae8a4e33a460736a7173a48777f1a8f846
698
ex
Elixir
elixir/enumTest.ex
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2019-05-23T06:05:20.000Z
2019-11-17T01:35:45.000Z
elixir/enumTest.ex
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2020-08-29T12:29:11.000Z
2020-08-29T12:30:14.000Z
elixir/enumTest.ex
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2020-07-18T17:07:36.000Z
2021-12-06T02:21:15.000Z
list = [10,25,30] #2x for each element of list IO.inspect Enum.map(list, fn(x) -> 2*x end) IO.inspect Enum.map(list, &(2*&1)) #print list of odd numbers IO.inspect Enum.filter(list, &(rem(&1,2) == 1)) #calculate sum of elems using Enum.reduce IO.inspect Enum.reduce(list, 0, fn(x,sum) -> sum + x end ) IO.inspect En...
22.516129
58
0.680516
5abee864cc09ef2073712ed240ac2d09c88d58ee
1,576
ex
Elixir
lib/xdr/ledger_entries/trust_line_asset.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
3
2021-08-17T20:32:45.000Z
2022-03-13T20:26:02.000Z
lib/xdr/ledger_entries/trust_line_asset.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
45
2021-08-12T20:19:41.000Z
2022-03-27T21:00:10.000Z
lib/xdr/ledger_entries/trust_line_asset.ex
einerzg/stellar_base
2d10c5fc3b8159efc5de10b5c7c665e3b57b3d8f
[ "MIT" ]
2
2021-09-22T23:11:13.000Z
2022-01-23T03:19:11.000Z
defmodule StellarBase.XDR.TrustLineAsset do @moduledoc """ Representation of Stellar `TrustLineAsset` type. """ alias StellarBase.XDR.{AlphaNum4, AlphaNum12, AssetType, Void, PoolID} @behaviour XDR.Declaration @arms [ ASSET_TYPE_NATIVE: Void, ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4, ASSET_TYPE_...
24.246154
72
0.64467
5abf0d9a69894e36e56575ff41334739a0e58c7c
948
ex
Elixir
lib/real_world_web/views/comment_view.ex
codefordenver/new-code-for-denver-site
af6cc232c898a197601b4d37e0cd217d0503fd9b
[ "MIT" ]
1
2019-09-28T05:50:46.000Z
2019-09-28T05:50:46.000Z
lib/real_world_web/views/comment_view.ex
codefordenver/new-code-for-denver-site
af6cc232c898a197601b4d37e0cd217d0503fd9b
[ "MIT" ]
null
null
null
lib/real_world_web/views/comment_view.ex
codefordenver/new-code-for-denver-site
af6cc232c898a197601b4d37e0cd217d0503fd9b
[ "MIT" ]
null
null
null
defmodule RealWorldWeb.CommentView do use RealWorldWeb, :view alias RealWorldWeb.{CommentView, FormatHelpers, UserView} def render("index.json", %{comments: comments}) do %{comments: render_many(comments, CommentView, "comment.json")} end def render("show.json", %{comment: comment}) do %{comment: re...
33.857143
77
0.702532